Device created in plugging, use in blocky
Posted: Friday 24 March 2017 12:03
Hi,
Within blocky, I'm trying to use a device that has been created with a python plugin :
The device appear in blocky but the statement are not executed correctly (if plugin_devince = Closed). Nevertheless, the current states display the good state of this device.
It seems as only the OnCommand() function of the pluggin is called?
By the way, this device does not change icon state either on the switch tab.
I have noticed a difference between a dummy blind switch and the plugin device blind switch :
[img]Debug_Blind_switch.jpg[/img]
I was looking for the list of TypeName and SwitchType. TypeName are clearly mentionned here https://www.domoticz.com/wiki/Developin ... hon_plugin. Is it up to date ? Where could I find the switchtype number list ?
Thank you for your help
Within blocky, I'm trying to use a device that has been created with a python plugin :
Code: Select all
Domoticz.Device(Name="Plugin_Blind", Unit=2, TypeName="Switch", DeviceID="07070707", Switchtype=3).Create()
It seems as only the OnCommand() function of the pluggin is called?
By the way, this device does not change icon state either on the switch tab.
I have noticed a difference between a dummy blind switch and the plugin device blind switch :
[img]Debug_Blind_switch.jpg[/img]
I was looking for the list of TypeName and SwitchType. TypeName are clearly mentionned here https://www.domoticz.com/wiki/Developin ... hon_plugin. Is it up to date ? Where could I find the switchtype number list ?
Thank you for your help