Page 1 of 1

red or green background based on kWh price?

Posted: Thursday 27 July 2023 8:02
by renerene
For my dynamic energy contract it would be nice to have the Dasthicz background green if currentkWh price is lower than average.
I am no CSS master, but working in dzVents is no problem.

can you help?

An alternative scale 0-100 red -green based on a dummy dimmer status would also be nice. But simple on/off red/green boolean is also ok

Re: red or green background based on kWh price?

Posted: Thursday 27 July 2023 9:36
by Xenomes
You can use this function of Dashticz.
https://dashticz.readthedocs.io/en/mast ... tomjs.html

Re: red or green background based on kWh price?

Posted: Thursday 27 July 2023 14:14
by renerene
Xenomes wrote: Thursday 27 July 2023 9:36 You can use this function of Dashticz.
https://dashticz.readthedocs.io/en/mast ... tomjs.html
Thank you, this looks like half of the solution.
Missing is the option to change color of the ENTIRE dashticz background, not just background of single device

Re: red or green background based on kWh price?

Posted: Thursday 27 July 2023 14:32
by Xenomes
You need to find the correct class to manipulate the color, in your browser hit F12 and you see the built of the page and you will see/find the class complete page.