dahlb / ha_carrier

Carrier Infinity Integration for Home Assistant
MIT License
35 stars 3 forks source link

Feat: Add zone “conditioning” status to entity #115

Open Gthubln060920 opened 4 weeks ago

Gthubln060920 commented 4 weeks ago

Checklist

Is your feature request related to a problem? Please describe.

Debug log shows the API is returning a “conditioning” status for each zone. (I only have Zone1) The status shows values such as: idle, prep_cool, active_cool, active_heat

Describe the solution you'd like

Can we get that status exposed to Home Assistant for dashboard and history?

Describe alternatives you've considered

Not sure how to parse zone data

Additional context

"status": { "outdoor_temperature": 70.0, "mode": "cool", "temperature_unit": "F", "filter_used": 30, "is_disconnected": false, "airflow_cfm": 525, "outdoor_unit_operational_status": "off", "indoor_unit_operational_status": "off", "time_stamp": "06/04/2024, 20:13:43 CDT", "zones": [ { "id": "1", "name": "ZONE 1", "current_activity": "home", "temperature": 76.0, "humidity": 52, "fan": "low", "hold": false, "occupancy": false, "hold_until": null, "heat_set_point": 68.0, "cool_set_point": 77.0, "conditioning": "prep_cool" }

dahlb commented 3 weeks ago

already supported, add a templated sensor

template:
  - sensor:
      - name: "Airflow CFM"
        unit_of_measurement: "CFM"
        state: '{{ state_attr("climate.hvac_zone_1", "airflow_cfm") }}'
      - name: "AC Status"
        state: '{{ state_attr("climate.hvac_zone_1", "outdoor_unit_operational_status") }}'
      - name: "Heating Status"
        state: '{{ state_attr("climate.hvac_zone_1", "indoor_unit_operational_status") }}'
Gthubln060920 commented 3 weeks ago

I added those states but it’s missing the zone “conditioning’ state which is a property of the zone. This shows things like “precool’ when the smart recovery feature starts cooling before a scheduled change.