d.hawes
(D Hawes)
October 14, 2023, 8:32am
1
Hi. I have really tried and done some googling but stuck.
All I wish to do is convert a entity value in a card from Kwh to Wh
So for example how would I do this in say a card?
- entity: {{ sensor.kitt_energy_added * 1000 }}
name: Kitt
show_state: false
- entity: sensor.pool_current_power
name: Pool
show_state: false
tom_l
October 14, 2023, 9:10am
2
You would not do that in a card. With very few exceptions core dashboard cards do not support templates.
Use a template sensor.
1 Like
Or you can use a custom card which supports templates.
Like template-entity-row inside Entities card.
Or you can use card-mod if you need to show these values in Glance card (for example).
Maybe - but certainly a (very) ugly Title
Check out on how to ask a good question
Having a good topic title is essential. It should summarise your post so that without even opening it people can have a good idea of what it’s about.
A good topic generally:
Includes unique part of the error you’re getting
Contains the integration name or action description
Describes the thing you’re having an issue with
Is emotionless
For example:
Good How do I use a timer in an automation to delay an action?
Bad Timer not working
Ugly Problem/Need help
Good Z-Wave - Not able to include device ZXX123
Bad ZXX123 not discovered
Ugly ZWave problem
If you’re having a problem writing a good topic title, leave it for last - once you’ve written the whole question, it might be easier to write a summary title for it.
Before we begin…
This forum is not a helpdesk
The people here don’t work for Home Assistant, that’s an open source project. We are volunteering our free time to help others. Not all topics may get an answer, never mind one that helps you solve your problem.
[image]
This also isn’t a general home automation forum, this is a forum for Home Assistant and things related to it. Any question about Home Assistant, and about using things with Home Assistant, is welcome here. We can’t help you with e…