Page 1 of 1

Door contact?

Posted: Tuesday 05 April 2022 20:31
by TroisSix
Hi guys,

I searched over the forum and I couldn't find my answer: I cannot modify the textOn / textOff for a Door contact :oops:

I can specify an imageOn/ImageOff, but either the textOn/textOff are not working (it displays in french: OUVERT/FERME instead of Open/Closed)

Code: Select all

blocks['DoorTest'] = { idx: 1111, title: 'DoorTest', textOn:"Open", textOff:"Closed", hide_data : false, last_update: false, width: 2}
Do you have any idea?

Thanks for your help 8-)

Re: Door contact?

Posted: Tuesday 05 April 2022 21:03
by waltervl
Edit: below answer can be ignored as I did not see it was a Dashticz related question.

The text of device states (open/close/on/off etc) are hard coded.
Sometimes there are inverted devices that switch the state. So if you click on the edit button you can change the switch type.
See wiki page https://www.domoticz.com/wiki/Dummy_for ... l_Switches for short descriptions of all available switches.

Re: Door contact?

Posted: Saturday 09 April 2022 10:13
by Lokonli
TroisSix wrote: Tuesday 05 April 2022 20:31 Hi guys,

I searched over the forum and I couldn't find my answer: I cannot modify the textOn / textOff for a Door contact :oops:

I can specify an imageOn/ImageOff, but either the textOn/textOff are not working (it displays in french: OUVERT/FERME instead of Open/Closed)

Code: Select all

blocks['DoorTest'] = { idx: 1111, title: 'DoorTest', textOn:"Open", textOff:"Closed", hide_data : false, last_update: false, width: 2}
Do you have any idea?

Thanks for your help 8-)
You are correct: For some switch types, including Door Contact, the textOn/textOff parameters were not supported.

I've fixed that in the latest beta version of Dashticz.

Re: Door contact?

Posted: Saturday 09 April 2022 18:32
by TroisSix
Oh great, thanks Lokonli! I’ll try this soon when I’m back at home ;)
For now, I use a simple switch dummy device in parallel of my door contact :p