threeway switch traveler system

Moderator: leecollings

Post Reply
Sprokkie
Posts: 13
Joined: Friday 22 June 2018 10:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

threeway switch traveler system

Post 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
SweetPants

Re: threeway switch traveler system

Post 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}
Sprokkie
Posts: 13
Joined: Friday 22 June 2018 10:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: threeway switch traveler system

Post by Sprokkie »

yes i use the mqtt how do you send trhat command from the rules section ?
SweetPants

Re: threeway switch traveler system

Post 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.
Sprokkie
Posts: 13
Joined: Friday 22 June 2018 10:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: threeway switch traveler system

Post by Sprokkie »

domoticz/in ?? can you explain that ?
Sprokkie
Posts: 13
Joined: Friday 22 June 2018 10:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: threeway switch traveler system

Post 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 ?
Sprokkie
Posts: 13
Joined: Friday 22 June 2018 10:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: threeway switch traveler system

Post 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
Sprokkie
Posts: 13
Joined: Friday 22 June 2018 10:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: threeway switch traveler system

Post by Sprokkie »

removed the mqtt other devices stopped working i have to solve this with HTTP commands
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest