-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Is there a way to modify the value of an entity before displaying? I have a few sensors I like to display on a cardEntities page which HA stores as watts and watt hours, but I prefer to display as kW and kWh. Previously in my AppDaemon yaml, I was using the 'value: {{ jinja_code }}' functionality to do some basic math and string manipulation. Is there an equivalent yet in this project? When I try to add value: or lambda: sections to my entities list I get an error, so I assume not.
Failing that, is there a way to include a local sensor in an entities list? I was thinking as a workaround that I could create a template sensor based on the HA entity, modify its value in a lambda, and then display the local entity instead of the remote. Unfortunately specifying a local sensor as an entity_id in the -entities list also results in an error.
Appreciate any help you can provide.
-A