Page 1 of 1

Read Switch Status - Progress....

Posted: Wednesday 27 July 2016 14:20
by KevinR
Hi, I have recently set up my Domoticx system and it works well. From the dashboard I can see the status of the switches and turn the switches on/off as required.

However, if I operate the switches manually using a local remote, and change a switch from on to off. This is not reflected in the dashboard. i.e. no feedback from the switch to update the app. Is there a way to do this. i.e. for Domoticz to pick up the change in switch status?

Apologies if this is a dumb question - I am new at this.

Thanks

Re: Read Switch Status

Posted: Wednesday 27 July 2016 14:23
by KevinR
PS. I am using:
RFXtrx433E
Transceiver type = 433.92MHz
Firmware version = 1002
Firmware Type = Ext2
Transmit power = 10dBm
Hardware version = 1.3

Re: Read Switch Status

Posted: Wednesday 27 July 2016 16:01
by safi78
iirc: The 433HHz stuff does not actively communicate their status back, so if you operate the switch directly with a remote (communication between switch and remote) Domoticz is not involved, hence the status is not updated.

I think this is why the Sub/Slave devices where introduced (it's in the manual: http://www.domoticz.com/DomoticzManual.pdf).

I think you'll have to add/learn the remote to Domoticz as well and make it a Sub or Slave device to the switch you want to operate.

Or script it all together with LUA ;)

Re: Read Switch Status

Posted: Thursday 28 July 2016 0:25
by KevinR
Thanks, I'll give it a try.

Re: Read Switch Status - Progress

Posted: Thursday 28 July 2016 13:51
by KevinR
I have found that the hand held controller for my Brennensthul sockets, is recognised by the RFXCom transceiver, using mode 'Lighting 4'.

Managed to get it to successfully interact with one socket, so far....
- I identified button A from the remote. Then added it as a new device.
- Made this device a slave to the Brennensthul socket.
- When I use the hand held controller to turn the socket on, it works as normal and does update the Domoticz dashboard.
- I am still working on the 'Turn Off' scenario...

I will post a full solution once working - thanks for the tip.

Re: Read Switch Status - Progress

Posted: Thursday 28 July 2016 15:33
by safi78
KevinR wrote: - I am still working on the 'Turn Off' scenario...

I will post a full solution once working - thanks for the tip.
Hi KevinR,

The idea is that the On and Off with the remote is sent to Domoticz, then, because it's a slave/sub it would handle the Off command just as well as the On command? Doesn't that work?

And you're welcome :)

Re: Read Switch Status - Progress....

Posted: Friday 29 July 2016 13:16
by KevinR
So far it is ignoring the Off command. I will work on it over the weekend.

Re: Read Switch Status - Progress....

Posted: Thursday 10 August 2017 21:36
by leoncornelissen
I'm trying out to use the master slave configuration in combination with sub/slaves. But I don't get it working.

I have two instances of Domoticz, One is master and one is the slave. I want to control one switch from the slave by the "main" switch of the master.

So I do the configuration on the master and I added the main switch as a sub of the switch copy of the slave. I do see the states switching but the lights do not follow.
What am I doing wrong?

Re: Read Switch Status - Progress....

Posted: Thursday 10 August 2017 22:07
by mrf68
A slave switch updates the status of the master switch without Domoticz sending a signal. Domoticz just listens when the slave switch sends its signal and updates the status of the master instead of switching the master switch.

Re: Read Switch Status - Progress....

Posted: Tuesday 15 August 2017 21:35
by leoncornelissen
Oke, clear, this is in line with my expectations

How do I configure the following usecase:
I have two domoticz servers, One should be the master (first device) and one should be the slave (second device). If a switch or light on the master is on, a different light on the seconde device should also go on.

I added the second device (slave) to the first device by adding "Domoticz - remote server" to the first device hardware list. I switched the switches of the second device, discovered the switch in the device list of the first device and added the switch

If I switch the "slave light 1" (idx 581) on the master, the light / switch connected to the second server responds accordingly. This works fine. Now time to automate,

If I go directly http://10.0.0.03:8080/json.htm?type=com ... itchcmd=On , the light turns on as expected

I tried to enter this in the on/off action of a switch but this does not trigger the light on the second device.
I tried to use sub/slave but as described above, this won't work in my case.

What can I do to get this working?