Page 1 of 1

display on/off

Posted: Sunday 18 August 2019 10:53
by pvklink
Hi,

I have a switch (regen) that turns on blue when it is (going) to rain. I use this switch for my irrigationsystem

The switch displays:
the name: regen
date: last updated
status: On/OFF

Is it possible to show the name, update_date but NOT the ON/OFF --> i can see that by the color blue that appears when it is on.
With the current block properties this combination is not possible...
when i set hide_data to true, the update_date also disappered, this date is important
Naamloos.png
Naamloos.png (4.68 KiB) Viewed 1075 times

Re: display on/off

Posted: Thursday 22 August 2019 15:17
by pvklink
problem is solved
blocks[1423]['textOn'] = '';
blocks[1423]['textOff'] = '';