how to create custom block
Posted: Monday 25 May 2020 21:07
On my Dashticz-dashboard I want to create a block that compares the values of two different sensors, and shows a text accordingly. I have an indoor temp sensor 2, and an outdoor sensor 256, and want to compare the two.
I'm new to Dashtizc, but I've figured out:
[*] Make my own block, with the values of both sensors combined. For example: 'Current temps. Indoor: 26. Outdoor 15.' on three lines.
[*] Subtract two values and show them on the block. So I'd like to calculate the difference between indoor-temp and outdoor-temp, and show that value.
[*] show a short text if the subtraction has a certain value, for example 'open some windows' if indoor-temp is warmer.
I read the (excellent) guide, but I can't figure out how to get started on this (and if it is even possible), and wasn't able to find topic on the forum about this. Any pointers are welcome! Thanks in advance!
I'm new to Dashtizc, but I've figured out:
- how to make a block that show the temperature of the sensor ('2_1': the first value of domoticz-ID 2
- combined graphs
- that it's possible to do basic math with values
[*] Make my own block, with the values of both sensors combined. For example: 'Current temps. Indoor: 26. Outdoor 15.' on three lines.
[*] Subtract two values and show them on the block. So I'd like to calculate the difference between indoor-temp and outdoor-temp, and show that value.
[*] show a short text if the subtraction has a certain value, for example 'open some windows' if indoor-temp is warmer.
I read the (excellent) guide, but I can't figure out how to get started on this (and if it is even possible), and wasn't able to find topic on the forum about this. Any pointers are welcome! Thanks in advance!