Skip to content

Question: Is it possible modify the sensor to show the 10% of the total value showed? #214

Closed Answered by tijsverkoyen
rafa16277 asked this question in Q&A
Discussion options

You must be logged in to vote

Settings → Devices & Services → Helpers → Create helper -> Template Helper → Template a sensor.

In the field state template enter something like below:

{{ states('sensor.xxx_current_year_consumption')|float / 100 * 10 }}

Offcourse change the sensor name to the one you want to calculate the value for.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rafa16277
Comment options

@tijsverkoyen
Comment options

Answer selected by tijsverkoyen
@rafa16277
Comment options

@rafa16277
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants