Thermostat Mode Widget

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Thermostat Mode Widget

Post by pipiche »

I want to create a Thermostat Mode widget inside a plugin, but I'm facing trouble to get/set Modes
Screenshot 2019-02-16 at 19.33.10.png
Screenshot 2019-02-16 at 19.33.10.png (146.85 KiB) Viewed 1294 times
Here after is the code I'm using to create. However how can I add/define the Mode List ?

Code: Select all

unit = 1
myDev = Domoticz.Device(DeviceID='001', Name='Thermostat Mode', Unit=unit, Type=243, Subtype=20)
myDev.Create()
ID = myDev.ID
if myDev.ID == -1 :
      Domoticz.Error("Domoticz widget creation failed. %s" %(str(myDev)))
Screenshot 2019-02-16 at 19.33.10.png
Screenshot 2019-02-16 at 19.33.10.png (146.85 KiB) Viewed 1294 times

I had a look to an existing device created by OZW. I do not see any Mode define at that level !!!

Code: Select all

343|20|00000401|1|BT Entrée - Thermostat Mode|1|243|20|0|0|12|255|1||2019-02-15 20:17:21|75|0.0|1.0|0.0|1.0|||0|0|0|||
Attachments
Screenshot 2019-02-16 at 19.34.50.png
Screenshot 2019-02-16 at 19.34.50.png (98.48 KiB) Viewed 1294 times
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest