Device Type for Humidifier Setpoint?

Python and python framework

Moderator: leecollings

Post Reply
david81
Posts: 6
Joined: Thursday 31 December 2015 2:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Device Type for Humidifier Setpoint?

Post by david81 »

I'm working on updating a plugin for a WiFi connected thermostat that supports humidifier/dehumidifier control. I'd like to add devices for controlling the setpoint for humidity control, but I've been unable to stumble upon the right device type. A thermostat setpoint technically works, but it obviously displays in the users selected temp units (confusing) and requires some fiddling with the numbers to ensure the right values are passed back and forth.

I tried a dimmer control, but I can't seem to update the device with the proper value from within the plugin (perhaps I'm missing something there). I can use it to send the correct value to the thermostat, but when I get the current value from the thermostat and attempt to update the domoticz device with the same value, I just end up with no level set.

Some sort of generic setpoint would be ideal, but nothing is jumping out at me. I attempted to use Type=243, Subtype=16, which I thought would be a generic setpoint, but there does not appear to be a UI available for this one. I can see the devices in the devices list, but when setting to Used, no switch is created. Do I need to define a Switchtype, as well? If so, which one?
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Device Type for Humidifier Setpoint?

Post by Dnpwwo »

@david81,

Dimmers can be updated (the Kodi example uses them for volume and % played for media) but you need to map data to a range 0 to 99. Have a look at that example (or this version https://github.com/dnpwwo/Domoticz-Kodi-Plugin).

As for Type=243, Subtype=16 devices, did you check all the tabs in Domoticz? Not everything shows up as a switch.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
david81
Posts: 6
Joined: Thursday 31 December 2015 2:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Device Type for Humidifier Setpoint?

Post by david81 »

Dnpwwo wrote:@david81,

Dimmers can be updated (the Kodi example uses them for volume and % played for media) but you need to map data to a range 0 to 99. Have a look at that example (or this version https://github.com/dnpwwo/Domoticz-Kodi-Plugin).

As for Type=243, Subtype=16 devices, did you check all the tabs in Domoticz? Not everything shows up as a switch.
I finally got the dimmer working (didn't realize that I needed to set nValue to 2 to display %). That makes this functional, if not ideal.

As for the other device type, yep. Checked all tabs button no new items showed up. I'd still prefer to use a setpoint type device, if possible, but the dimmer at least provides a functional UI.

Sent from my SAMSUNG-SM-G935A using Tapatalk

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest