pihome-shc / pihome

PiHome - Smart Heating, Ventilation and Air Conditioning (HVAC)
http://www.pihome.eu
Other
52 stars 25 forks source link

Home Assistant integration #458

Closed JSa1987 closed 2 years ago

JSa1987 commented 2 years ago

Hello all,

I have added the Home Assistant integration via MQTT. The advantage over using APIs for integration is that this way the configuration needed on the HA side is minimal. PiHome will automatically broadcast over MQTT all the entity definitions needed to setup and then update the following HA entities:

The climate entities allow to trigger the PiHome Boost function (Aux Heat in Home Assistant) for each zone, enable or disable the PiHome Away status and adjust the target temperature for each zone. When the target temperature of a zone is adjusted in Home Assistant the Override mode is triggered in PiHome with the new target temperature. When installing this add-on a change will be made to the PiHome Override mode logic: the Override mode will automatically be disabled when a new schedule for the zone starts.

Compared to the previous pull request I have now implemented the use of Home Assistant Climate entities (instead of sensors), this will facilitate the port to MaxAir as all HVAC functions are supported.

Installation is handled by the bash install.sh script this will: install the Phyton modules needed, create and enable a service for autostart Start service.

pihome-shc commented 2 years ago

@JSa1987 Thank you for working on this.