Page 1 of 1
Can Domoticz be used as an interface between different makes
Posted: Sunday 04 November 2018 9:20
by Dave21w
OK not sure if my subject line makes sense so I'll desrcibe it better (hopefully)
I'm not going to use manufacturer names as there's no need, lets just say I have a wireless hand held 4 button switch made by ABC, domoticz can see it and register when the button are pressed. I also have a a remote relay / light made by XYZ, its registered with Domoticz and it can be controlled by the app to turn it on and off, is it possible to setup Domoticz so that when it see's a button pressed on the device made by ABC it tells the device made by XYZ to turn on or off accordingly.
Re: Can Domoticz be used as an interface between different makes
Posted: Sunday 04 November 2018 11:15
by zak45
Dave21w wrote: Sunday 04 November 2018 9:20
I'm not going to use manufacturer names as there's no need, lets just say I have a wireless hand held 4 button switch made by ABC, domoticz can see it and register when the button are pressed. I also have a a remote relay / light made by XYZ, its registered with Domoticz and it can be controlled by the app to turn it on and off, is it possible to setup Domoticz so that when it see's a button pressed on the device made by ABC it tells the device made by XYZ to turn on or off accordingly.
Of course, main goal of Domoticz is to drive different HW togheter
Re: Can Domoticz be used as an interface between different makes
Posted: Sunday 04 November 2018 17:29
by Dave21w
Thanks for the reply, I've spent quite some time searching on how to do this but everthing I try fails to work, how do I link a switch from one manufacturer with a device from another?
I've looked at the scripting information but it all seems to imply you have a reasonable understanding of the format required etc before you start.
For instance in the edit tab for a switch there is this:-
On Action: (Should start with http://, https:// or script://)
Off Action: (Should start with http://, https:// or script://)
In the "On Action" line can I simply type the name of a switch and state = On
I guess not as I've tried it but it doesnt work
Thanks
Re: Can Domoticz be used as an interface between different makes
Posted: Sunday 04 November 2018 17:58
by zak45
Dave21w wrote: Sunday 04 November 2018 17:29
Thanks for the reply, I've spent quite some time searching on how to do this but everthing I try fails to work, how do I link a switch from one manufacturer with a device from another?
I've looked at the scripting information but it all seems to imply you have a reasonable understanding of the format required etc before you start.
For instance in the edit tab for a switch there is this:-
On Action: (Should start with http://, https:// or script://)
Off Action: (Should start with http://, https:// or script://)
In the "On Action" line can I simply type the name of a switch and state = On
I guess not as I've tried it but it doesnt work
Thanks
first advice: read domoticz documentation & wiki to understand the logic behind all of that...
second:
this should give you one possible way to go, without any scripting

- Capture.JPG (68.53 KiB) Viewed 889 times
Re: Can Domoticz be used as an interface between different makes
Posted: Sunday 04 November 2018 18:17
by Dave21w
Thanks zak45,
I thought the sub/slave option would work for another option I want but I can't get it to work properly either, or at least how I think it should work.
Sorry to be a pain but is the below not possible?
I have a LWRF relay connected to a garden light, I have this setup in Domoticz as an on/off switch, pressing the lighbulb in the switch via the gui turns the light on and off, works great, no issues.
I created a switch in domoticz as a push on button with an on time of 10 sec (as a test) it then auto switches off as expected, I've added this switch as a sub/slave device to my garden light switch so if I press the main garden light switch the light is on till i turn it off, if I press the push button as its linked to the garden light it should come on for 10 secs and go off right?
Well when i press it the button changes state and so does the main garden light switch in the gui then after 10 secs they both go off but the actual light does not come on, it seems that its all working except domotics isnt sending any commands via the RFXCOM, i thought if the switch was showing as changed in state the command should have been sent.
Thanks
Re: Can Domoticz be used as an interface between different makes
Posted: Sunday 04 November 2018 23:43
by zak45
Not really...
And maybe you should try the 'scene' in your case.
Re: Can Domoticz be used as an interface between different makes
Posted: Wednesday 07 November 2018 20:25
by Dave21w
Well I've been trying to do this with blockly without too much success either, can anybody tell me what I've done wrong, I've created a virtual switch configured as a push on button which comes on with no delay but goes off after 10 sec so that its visible state has been reset. I have then created the following in blockly however the lamp comes on OK but never goes off.
TIA if anyone can help.
Dave
Re: Can Domoticz be used as an interface between different makes
Posted: Wednesday 07 November 2018 23:17
by StanHD
Hi, remove the "Time=" block and replace with just the number block on its own.
Re: Can Domoticz be used as an interface between different makes
Posted: Thursday 08 November 2018 20:15
by Dave21w
Thanks StanHD, that did the trick.
Cheers for the help.