13.09.2019, 02:10
(This post was last modified: 15.09.2019, 05:00 by PassivPluss.)
Hi
I would like to make a button on the floor plan on each room.
This will be colored due to offset between set temperature of a room and the temperature status of the room.
1/0/1 temperature status
1/0/2 temperature set point
For instance if offset is -0.5 -> 0.5 would give green with opacity 0.7
With offset -0.5->-1 gives light blue opacity 0.8 (indicate colder)
With offset 0.5->1 gives light orange opacity 0.8 (indicate hotter)
And so on. The script should find correct values to calculate with based on room number. Then calculate and make button correct color
On click of button the room widget opens.
Anybody found a way to make this?
I would like to make a button on the floor plan on each room.
This will be colored due to offset between set temperature of a room and the temperature status of the room.
1/0/1 temperature status
1/0/2 temperature set point
For instance if offset is -0.5 -> 0.5 would give green with opacity 0.7
With offset -0.5->-1 gives light blue opacity 0.8 (indicate colder)
With offset 0.5->1 gives light orange opacity 0.8 (indicate hotter)
And so on. The script should find correct values to calculate with based on room number. Then calculate and make button correct color
On click of button the room widget opens.
Anybody found a way to make this?