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