boe666 wrote: Wednesday 03 November 2021 2:22
Can U send the defice type working witch thermostat module in HomeHabit ?
There is no one-to-one matching list of supported devices with Domoticz. Because many type/subtype values are brand specific, HomeHabit works by finding common values and determining type from that.
For thermostat mode specifically, HomeHabit internal structure is a selector with auto/heat/cool/off values. Since Domoticz does not have a common type for that, it is not possible to match.
I'm not sure why Domoticz does not use specific thermostat mode/state types, since it would be easy to support it then.
waltervl wrote: Thursday 04 November 2021 15:29
So if Homehabit cannot find the appropriate devices it should list all devices and let us users decide what the correct device is for eg Fan speed and heat/cool/dry mode etc
But Igor has problems in getting the correct devices from Domoticz and the value format for each device. I also already suggested to help by updating the wiki. But if no reaction from Igor I cannot help
In general, the app is very flexible in how devices can be mapped when data is processed - as long as there is something that uniquely identifies the type. Unless I'm missing something, there is nothing that identifies thermostat mode device specifically in API.
waltervl wrote: Wednesday 03 November 2021 7:31
How do you communicate with Domoticz? With the http Json API? Which API functions do you use to get data?
I would be glad to help extending the API documentation.
It is not only issue of documentation, but also the API format itself. Type/Subtype/SwitchType are used in many different ways (and other boolean flags), that are not always match the real device. There are many devices that are not a dimmer, but return "HaveDimmer" as true, or SwitchType having contact sensor value or similar.
JSON API is used to get the data (not using websocket):
load data from "json.htm?type=devices&filter=all&used=true"
update data from "json.htm?type=devices&filter=all&used=true&lastupdate="