I’m working on attaching a dehumidifier to my vera, in order to have a central interface to control it, write scenes and so on.
The device itself is a sonoff TH, controlled by my own MQTT library running on a C# middleware, updating virtual devices in Vera. So far, so good, since I can control it (it also has HTTP endpoints to turn on/off the device) and get both temperature and humidity in virtual devices (and update back the status via MQTT) with no polling involved.
Right now I’m struggling with a proper device file for it. I’m experimenting with D_Heater1.json and friends, but I want to customize it a little bit further, since +/- commands have no meaning for me (the dehumidifier will turn on or off based on its own logic - based on humidity anyway). Based on my finding, I can choose for On/Off only, Temp Only, and both, but no options has On/Off and temperarure display.
I also tried with a custom device file, but somehow fw 7.30 and beyond have become more picky, and when the device file is not recognized, the device is simply removed from the device list. This is time consuming and annoying as hell.
I just want the ability to turn it on or off, display current temperature and (optionally) current humidity (I can live with it in a different device).
Anyone has more knowledge about device file than me and want to help? Thanks.