Hello
if there a Way to get the State of a plugin Device???
I try to write a plugin to control my Nuvo Essentia.
I need to get the State "zoneOnOff" of my Device to Toggle Power On and Off
or if there another way to do toggle my deviceState "zoneOnOff
my Problem --->
---> if StateOnServer((key="zoneOnOff") = True):
MESSAGE = MESSAGEZoneStart + zone + "OFF" + MESSAGEEnd
self.sendUDP(MESSAGE, dev, logMessage)
dev.updateStateOnServer(key="zoneOnOff", value=False)
else:
MESSAGE = MESSAGEZoneStart + zone + "ON" + MESSAGEEnd
self.sendUDP(MESSAGE, dev, logMessage)
dev.updateStateOnServer(key="zoneOnOff", value=True)
pleas help me, i use indigo a long time but plugin programming and Python is new for me...
English is not my native language --> sorry