MizterB / homeassistant-infinitude

Home Assistant custom component for controlling Carrier Infinity Touch thermostats through an Infinitude proxy server.
55 stars 20 forks source link

Expose AC and Furnace Stages #62

Open FSFirenze opened 5 months ago

FSFirenze commented 5 months ago

The HA_CARRIER integration (https://github.com/dahlb/ha_carrier) for Home Assistant is able to pull the AC Stage and the Heating Stage from the carrier online server. Is it possible to extract the same information with the infinitude integration?

Thanks

MizterB commented 5 months ago

If you can identify where this information is stored in http://infinitude:3000/api/config or http://infinitude:3000/api/status, then I should be able to add it in.

FSFirenze commented 5 months ago

I do see them at http://infinitude:3000/api/config

They are the following, where what I am interested in is the idu/opstat parameter (which is the Furnace stage) and the odu/opstat parameter which is the AC Stage.

"idu":[{"cfm":["0"],"opstat":["off"],"type":["furnace2stg"]}] "odu":[{"opmode":["off"],"opstat":["off"],"type":["proteusac"]}]

I also think that this parameter is interesting to receive, it may be useful to understand if the communication with the Thermostat is still active "localTime":["2024-01-31T11:51:40"]

finally, this seems to be similar to the request at this link https://github.com/MizterB/homeassistant-infinitude/pull/57

for completeness, this is the entire string i receive:

{"cfgem":["F"],"cfgtype":["heatcool"],"filtrlvl":["20"],"humid":["off"],"humlvl":["58"],"idu":[{"cfm":["0"],"opstat":["off"],"type":["furnace2stg"]}],"localTime":["2024-01-31T11:40:32"],"mode":["off"],"oat":["75"],"odu":[{"opmode":["off"],"opstat":["off"],"type":["proteusac"]}],"oprstsmsg":[{}],"uvlvl":["58"],"vacatrunning":["off"],"ventlvl":["100"],"version":"1.41","zones":[{"zone":[{"clsp":["78.0"],"currentActivity":["manual"],"damperposition":["15"],"enabled":["on"],"fan":["off"],"hold":["on"],"htsp":["70.0"],"id":"1","name":["ZONE 1"],"occupancy":["occupied"],"occupancyOverride":["off"],"otmr":[{}],"rh":["50"],"rt":["71.0"],"zoneconditioning":["idle"]},{"clsp":["80.0"],"currentActivity":["away"],"damperposition":["15"],"enabled":["off"],"fan":["off"],"hold":["off"],"htsp":["60.0"],"id":"2","name":["Zone 2"],"occupancy":["unoccupied"],"occupancyOverride":["off"],"otmr":[{}],"rh":["50"],"rt":[{}],"zoneconditioning":["idle"]},{"clsp":["80.0"],"currentActivity":["away"],"damperposition":["15"],"enabled":["off"],"fan":["off"],"hold":["off"],"htsp":["60.0"],"id":"3","name":["Zone 3"],"occupancy":["unoccupied"],"occupancyOverride":["off"],"otmr":[{}],"rh":["50"],"rt":[{}],"zoneconditioning":["idle"]},{"clsp":["80.0"],"currentActivity":["away"],"damperposition":["15"],"enabled":["off"],"fan":["off"],"hold":["off"],"htsp":["60.0"],"id":"4","name":["Zone 4"],"occupancy":["unoccupied"],"occupancyOverride":["off"],"otmr":[{}],"rh":["50"],"rt":[{}],"zoneconditioning":["idle"]},{"clsp":["80.0"],"currentActivity":["away"],"damperposition":["15"],"enabled":["off"],"fan":["off"],"hold":["off"],"htsp":["60.0"],"id":"5","name":["Zone 5"],"occupancy":["unoccupied"],"occupancyOverride":["off"],"otmr":[{}],"rh":["50"],"rt":[{}],"zoneconditioning":["idle"]},{"clsp":["80.0"],"currentActivity":["away"],"damperposition":["15"],"enabled":["off"],"fan":["off"],"hold":["off"],"htsp":["60.0"],"id":"6","name":["Zone 6"],"occupancy":["unoccupied"],"occupancyOverride":["off"],"otmr":[{}],"rh":["50"],"rt":[{}],"zoneconditioning":["idle"]},{"clsp":["80.0"],"currentActivity":["away"],"damperposition":["15"],"enabled":["off"],"fan":["off"],"hold":["off"],"htsp":["60.0"],"id":"7","name":["Zone 7"],"occupancy":["unoccupied"],"occupancyOverride":["off"],"otmr":[{}],"rh":["50"],"rt":[{}],"zoneconditioning":["idle"]},{"clsp":["80.0"],"currentActivity":["away"],"damperposition":["15"],"enabled":["off"],"fan":["off"],"hold":["off"],"htsp":["60.0"],"id":"8","name":["Zone 8"],"occupancy":["unoccupied"],"occupancyOverride":["off"],"otmr":[{}],"rh":["50"],"rt":[{}],"zoneconditioning":["idle"]}]}]}

brettonw commented 3 months ago

Seconded - I use this for real-time energy tracking - will it be exposed in "beyond"? I don't see it there yet.

MizterB commented 2 months ago

I'll get there...waiting for Beyond to stabilize with the same data available here, then I'll come back to these remaining issues/requests and try to address them in Beyond.

brettonw commented 2 months ago

I can still fetch this from the state attributes for the climate entity, so no hurry...