Door contact?

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
TroisSix
Posts: 92
Joined: Monday 11 January 2016 9:29
Target OS: -
Domoticz version: 2022.2
Location: France
Contact:

Door contact?

Post 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-)
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Door contact?

Post 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.
Last edited by waltervl on Saturday 09 April 2022 19:44, edited 1 time in total.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Door contact?

Post 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.
TroisSix
Posts: 92
Joined: Monday 11 January 2016 9:29
Target OS: -
Domoticz version: 2022.2
Location: France
Contact:

Re: Door contact?

Post 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
VM Debian - Domoticz stable v2024.7, RFXtrx433, Aeotec Z-Stick Gen5, Two APC
- rts: dio, oregon, somfy
- zwave: fibaro fgs212, aeotec smart switch, vision ZG8101
- IO Homecontrol: Velux Connexoon
- logitech harmony hub, philips hue, Pilot app.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest