Switch-status change via remote?

Moderator: leecollings

Post Reply
Duivleo
Posts: 11
Joined: Monday 27 May 2019 12:51
Target OS: NAS (Synology & others)
Domoticz version: v4.10717
Contact:

Switch-status change via remote?

Post by Duivleo »

Hello all,

First off all: I am a noob

If have a question:
I have quite a lot of Elro AB440 switches, controling lights and blinds (non-somfy)
I can control all of them, via Domoticz/RFXcom433XL and/or Elro remote.
Now my question:
Is it possible for Domoticz to change the switch status, e.g. from ON to OFF, when I use the Elro Remote(s)?
Actually, I have same question for my Somfy=blinds, of which I have one.

Can some one help?

Regards,
Leo
Lebo2d9
Posts: 139
Joined: Tuesday 06 September 2016 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: L stab
Location: Belgium
Contact:

Re: Switch-status change via remote?

Post by Lebo2d9 »

Hi,
You need to create dummy switched in domitics that you control with your remote and those switches are controling your ab440 switches.
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
Duivleo
Posts: 11
Joined: Monday 27 May 2019 12:51
Target OS: NAS (Synology & others)
Domoticz version: v4.10717
Contact:

Re: Switch-status change via remote?

Post by Duivleo »

Thanks for your reply,

I will continue working on this, but I have difficulties with this. I will struggle on a bit and come back with reply; with (hopefully) positive result.

regards,
Leo
Duivleo
Posts: 11
Joined: Monday 27 May 2019 12:51
Target OS: NAS (Synology & others)
Domoticz version: v4.10717
Contact:

Re: Switch-status change via remote?

Post by Duivleo »

Once again thanks for your reply, Lebo2d9.

Sorry for coming back so late, but it took me quite some time; but I think that I have figured it out now.

The problem is that the Elro Transmitter signal is being decoded as a Lightning4 signal by RFXcom/Domotics; where as a Elro AB400 switch within Domoticz is configured as Lightnig1. Hence, the on/off-widget within Domoticz will not pick up the lightining4 code and as such not change the status.

In addition to this, I think that the whole Master/Sub-slave within Domoticz doesn’t work that great.

For any-one interested, this is what I did:
a) Configure an actual Elro AB400 switch with the dipswitches and connect it to a lamp or so. E.g. DIP-switch: 01101 1000 (Which is House-code G and Unit-code 13. Remember this, it comes back later.)
b) In Domoticz/switches, via Manual, make a switch with following details: NAAM, AB400D, On/off, G, 13, master. Remember its IDX. (e.g. 357). This switch can also be placed on Dashboard by clicking the Star. (Which I recommend.)
c) Configure an actual Elro Transmitter; set dip-switches in any available combination, except 01101, see A above.
d) In Domoticz/switches, via Listen, make a On-switch by pressing ON, for instance A-ON, on the transmitter. Called it e.g. NAAM-on.
e) In Domoticz/switches, via Listen, make a Off-switch by pressing OFF for instance A-OFF on the transmitter. Called it e.g. NAAM-off.
f) In Domoticz/switches, select the switch made under D and select adjust.
• At On-action type: http://192.168.0.43:8084/json.htm?type= ... itchcmd=On
• Where 357 is my IDX (see B) and the IP-address is my NAS with Domoticz. (Of course you do not have to use MY stuff, use your own.)
g) In Domoticz/switches, select the switch made under E and select adjust.
• At On-action type: http://192.168.0.43:8084/json.htm?type= ... tchcmd=Off
• Where 357 is my IDX (see B) and the IP-address is my NAS with Domoticz. (Of course you do not have to use MY stuff, use your own.)
• Eventhough it is a switch-off command, it should come under ON-action.
h) I recommend to leave the last two switches under the switch-tab and not on the dashboard. (It has no use there; especially as the switch does not say in what state it is.)

Having done all of the above, when one presses the A on/off button of the transmitter, the light will go ON or OFF. (There is a little delay of max 1 sec.) AND the status of the switch made under item B will change its status to ON or OFF. (Although there are delays here: from OFF to ON approx. 5 sec. and from ON to OFF approx.. 3 sec.; most likely something to do with whatever the NAS does at the time.) Both the switch on the Dashboard and the transmitter can be used and the switch on the Dashboard will always state its status.

In addition, with the On-action option, one can also prepare some nice scenes with several switches/ In that case the json-commands need to be placed in a PHP-file, which can be called via the NAS-web-server. (E.g.: HTTP://192.168.0.43/scene1.php; this will evoke a PHP-file called scene1.php which is placed in the WEB folder of the NAS. This php.file should have lines like the following inside:

<?php
file_get_contents("http://192.168.0.43:8084/json.htm?type= ... itchcmd=On");
?>

(I might be preparing a post related to JSON when I have time.)

Regards,
Leo
Duivleo
Posts: 11
Joined: Monday 27 May 2019 12:51
Target OS: NAS (Synology & others)
Domoticz version: v4.10717
Contact:

Re: Switch-status change via remote?

Post by Duivleo »

Duivleo
Posts: 11
Joined: Monday 27 May 2019 12:51
Target OS: NAS (Synology & others)
Domoticz version: v4.10717
Contact:

Re: Switch-status change via remote?

Post by Duivleo »

Weird, abbreviated again;
the text without the http in front; this time it must be ok.

192.168.0.43:8084/json.htm?type=command&param=switchlight&idx=357&switchcmd=On
192.168.0.43:8084/json.htm?type=command&param=switchlight&idx=357&switchcmd=Off
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest