Retreive the value of a selector switch.

Python and python framework

Moderator: leecollings

Post Reply
Thorgal789
Posts: 918
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Retreive the value of a selector switch.

Post by Thorgal789 »

Hello, I know it s possible to retreive the level.

Code: Select all

    def onCommand(self, Unit, Command, Level, Hue):
        Domoticz.Log("onCommand called for Unit " + str(Unit) + ": Parameter '" + str(Command) + "', Level: " + str(Level) + ", Hue: " + str(Hue))
But is it possible te retreive the value in the selector instead of the level ?
Post Reply