Page 1 of 1

threeway switch traveler system

Posted: Saturday 22 December 2018 20:16
by Sprokkie
Hi,

i want to control light in a room with domoticz and the threeway switch.
The wall switch is a threeway switch so i can buils a travelar system
Walswitch and relay witch changeover contacts together is should work as a traveler system

Now i encounter the problem that the actual state of the light is not corrensponding wth the lightswitch icon in domotiqz.
So i added a 230v -> 3V optocoupler system and read the acutal state of te light in to domotiqz.
Send the actual state with the IDX number of the domotiqz virtual switch.
When i test on a breadboard the domitiqz icon switches acrodingly to the state.
If i turn on the lghts wiht the wall switch the relay is switched back by domotiqz :(

Any idea how to solve this ?

i used the words threeway switch and travaler system from wikipedia: https://en.wikipedia.org/wiki/Multiway_switching

Re: threeway switch traveler system

Posted: Sunday 23 December 2018 13:41
by SweetPants
Are you using MQTT to update the switch state? I had a similar issue and had to update domoticz only without triggering the On/Off action. I used MQTT: Topic: domoticz/in, Message: {"command":"udevice","idx":140,"nvalue":0}

Re: threeway switch traveler system

Posted: Monday 24 December 2018 18:29
by Sprokkie
yes i use the mqtt how do you send trhat command from the rules section ?

Re: threeway switch traveler system

Posted: Tuesday 25 December 2018 11:34
by SweetPants
Sprokkie wrote: Monday 24 December 2018 18:29 yes i use the mqtt how do you send that command from the rules section ?
What do you mean with 'rules section'. What I do is every time there is a locally wallswitch command, I update the switch in domoticz via domoticz/in with the new state without triggering the On/Off action. Also every minute I update it as a failsafe in case something went wrong during the first update.

Re: threeway switch traveler system

Posted: Wednesday 26 December 2018 15:09
by Sprokkie
domoticz/in ?? can you explain that ?

Re: threeway switch traveler system

Posted: Wednesday 26 December 2018 15:16
by Sprokkie
I looked again i use http command to donotiqz server, sorry for not understanding.
now i want to enable mqtt how to do that ?

Re: threeway switch traveler system

Posted: Wednesday 26 December 2018 15:30
by Sprokkie
got mqtt working now
stil the same issue the icon changes but the command is stil send from domotiqz
i just need a way only update the icon and not trigering the commad that is linked to the on or off status of the icon
that command can only be triggered bu clicking on the icon in domoti

Re: threeway switch traveler system

Posted: Wednesday 26 December 2018 16:09
by Sprokkie
removed the mqtt other devices stopped working i have to solve this with HTTP commands