Read Switch Status - Progress....

Moderator: leecollings

Post Reply
KevinR
Posts: 25
Joined: Saturday 07 May 2016 22:10
Target OS: Windows
Domoticz version: 3.5877
Location: Cheshire
Contact:

Read Switch Status - Progress....

Post 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
Last edited by KevinR on Thursday 28 July 2016 13:53, edited 1 time in total.
KevinR
Posts: 25
Joined: Saturday 07 May 2016 22:10
Target OS: Windows
Domoticz version: 3.5877
Location: Cheshire
Contact:

Re: Read Switch Status

Post by KevinR »

PS. I am using:
RFXtrx433E
Transceiver type = 433.92MHz
Firmware version = 1002
Firmware Type = Ext2
Transmit power = 10dBm
Hardware version = 1.3
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: Read Switch Status

Post 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 ;)
Last edited by safi78 on Thursday 28 July 2016 10:52, edited 1 time in total.
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
KevinR
Posts: 25
Joined: Saturday 07 May 2016 22:10
Target OS: Windows
Domoticz version: 3.5877
Location: Cheshire
Contact:

Re: Read Switch Status

Post by KevinR »

Thanks, I'll give it a try.
KevinR
Posts: 25
Joined: Saturday 07 May 2016 22:10
Target OS: Windows
Domoticz version: 3.5877
Location: Cheshire
Contact:

Re: Read Switch Status - Progress

Post 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.
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: Read Switch Status - Progress

Post 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 :)
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
KevinR
Posts: 25
Joined: Saturday 07 May 2016 22:10
Target OS: Windows
Domoticz version: 3.5877
Location: Cheshire
Contact:

Re: Read Switch Status - Progress....

Post by KevinR »

So far it is ignoring the Off command. I will work on it over the weekend.
leoncornelissen
Posts: 24
Joined: Monday 27 April 2015 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8258
Location: Netherlands
Contact:

Re: Read Switch Status - Progress....

Post 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?
mrf68

Re: Read Switch Status - Progress....

Post 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.
leoncornelissen
Posts: 24
Joined: Monday 27 April 2015 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8258
Location: Netherlands
Contact:

Re: Read Switch Status - Progress....

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest