Page 1 of 1
motion switch and sub/slave devices
Posted: Friday 13 March 2020 3:50
by voyo
Hi,
What I'd like to accomplish is to configure 'virtual motion switch' , which will be related on few other "more or less real PIR sensors".
All devices are actually dumb devices, updated by json or mqtt, by Satel PIR, camera etc.
I tough I can configure it by adding "motion virtual (dumb)" switch, then add all other 'pir' switches as Sub/Slave device.
But it is not working like I expected, this "motion virtual" switch is not getting updated when other PIR switches are activated.
Am I missing something ? Or is there a bug ?
Re: motion switch and sub/slave devices
Posted: Friday 13 March 2020 12:34
by waaren
voyo wrote: ↑Friday 13 March 2020 3:50
I tough I can configure it by adding "motion virtual (dumb)" switch, then add all other 'pir' switches as Sub/Slave device.
Please correct me if I am wrong but the Sub/Slave device mechanism is designed for switch -> switch communication. I don't think it will work for PIR -> switch.
A small dzVents script could be a solution. Happy to help with that if that would be an acceptable method.
Re: motion switch and sub/slave devices
Posted: Friday 13 March 2020 14:24
by voyo
Thank you for fast reply Waaren.
waaren wrote: ↑Friday 13 March 2020 12:34
Please correct me if I am wrong but the Sub/Slave device mechanism is designed for switch -> switch communication. I don't think it will work for PIR -> switch.
And this is a switch device, virtual/dumb - but still. Right ?
So I expected it to have working sub/slave mechanism, especially that this option is exposed in UI.
I know it is possible to do this via scripting, but if possible I prefer simpler solutions.
Do you think it *should* work that way ? I couldn't find much information online about sub/slave...
Worth to report as a bug , or feature request rather ?
Re: motion switch and sub/slave devices
Posted: Friday 13 March 2020 15:00
by waaren
voyo wrote: ↑Friday 13 March 2020 14:24
So I expected it to have working sub/slave mechanism, especially that this option is exposed in UI.
The sub / slave stuf is not the most intuitive part of domoticz. Did you follow the description from
the (old) manual ?
Re: motion switch and sub/slave devices
Posted: Saturday 14 March 2020 9:24
by microchip1974
i have the same problems,it seems that sub/lsave mechanism its not working. i get the motion sensor event but i cannot use it to light a bulb. but its not only related to pirs also standard rf switch are not working as slave device. maybe a release bug? i triad both stable and beta but nothing to do.
Re: motion switch and sub/slave devices
Posted: Monday 21 September 2020 17:22
by voyo
waaren wrote: ↑Friday 13 March 2020 15:00
voyo wrote: ↑Friday 13 March 2020 14:24
So I expected it to have working sub/slave mechanism, especially that this option is exposed in UI.
The sub / slave stuf is not the most intuitive part of domoticz. Did you follow the description from
the (old) manual ?
Yes Waaren, I followed this manual, its just not working like expected.
IMHO this is a bug, or I completely dont understand this mechanism...