The following code fails:
The following code as described by the wiki using the named argument TypeName
Code: Select all
Domoticz.Device(Name="Indoor TempHum", Unit=1, TypeName="Temp+Hum").Create()
Code: Select all
2017-01-18 16:58:59.227 Error: (WH2600) 'CDevice_init' failed 'TypeError':''TypeName' is an invalid keyword argument for this function'.
2017-01-18 16:58:59.227 Error: Expected: myVar = Domoticz.Device(Name="myDevice", Unit=0, Type=0, Subtype=0, Switchtype=0, Image=0, Options="")