Python plugin: slave device do not trigger OnCommand

Python and python framework

Moderator: leecollings

Post Reply
darrepac
Posts: 142
Joined: Tuesday 04 February 2014 21:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Isère, France
Contact:

Python plugin: slave device do not trigger OnCommand

Post by darrepac »

Hi

I have 3 lights
I have 1 dummy device Roomlight
I put the Roomlight in the slave area of each 3 lights, so when I turn Roomlight On each 3 lights turn On. It works

But these 3 lights are Shelly lights and they are managed by a plugin (ShellyMQTT).

Problem:
When I trigger the Roomlight, Domoticz turn the 3 lights on but in real the 3 lights stay off (=they are On on Domoticz GUI but in reality the lights are off).
I debug a bit and I saw that the OnCommand function from the plugin never receive any command from Domoticz when I trigger the Roomlight.
It is like slave/master stuff doesn't trigger OnCommand function...

Is it normal? Is there any workaround?
darrepac
Posts: 142
Joined: Tuesday 04 February 2014 21:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Isère, France
Contact:

Re: Python plugin: slave device do not trigger OnCommand

Post by darrepac »

Post Reply