Hello, when you make an action on a device It trigger something like that
2019-10-31 16:51:34.247 Status: User: Admin initiated a switch command (93/device/Off)
2019-10-31 16:51:34.256 (plugin) onCommand called for Unit 2: Parameter 'Off', Level: 0
If the device is an rgb bulb, there is the parameter "Hue" else this one is empty.
But for "level", this parameter is always here, even with a device that can make only on / off.
Impossible to differentiate a level = 0 command or a device without dimmer.
Will be nice if level = '' or "-1" is it need to be a numeric value in the situation the device haven't dimmer.
It will be realy usefull for somes scripts.
Don't add level parameter on command if device don't have dimmer.
Moderators: leecollings, remb0
-
- Posts: 852
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest