Code: Select all
Domoticz.Device(Unit=1, Name="Time", TypeName="Custom", Options={"Custom": "1;sec"}).Create()
Code: Select all
if fnumber >= 60:
fnumber = round(fnumber / 60, 2)
UpdateDeviceOptions(1, {"Custom": "1;min"})
Code: Select all
def UpdateDeviceOptions(Unit, Options={}):
Devices[Unit].Update(nValue=Devices[Unit].nValue, sValue=Devices[Unit].sValue, Options=Options)
Domoticz.Debug("Update options " + Devices[Unit].Name + ": " + str(Options))
Code: Select all
2018-01-10 21:12:37.096 (Test) Update options Test - Time: {'Custom': '1;min'}
In the documentation (http://www.domoticz.com/wiki/Developing ... in#Devices) is described that Options can be updated, but that doesn't work?