Closed JSa1987 closed 3 years ago
This is an example of how the dashboard can be setup on Home Assistant:
Below are screenshots of how this dashboard looks like in the Home Assistant iOS app:
@JSa1987 thank you for your work, can you write how to and i can publish this on PiHome website, PiHome version 1.77 is final version and new version MaxAir is under development, this update compatible with new version or can you have look if you have free time. https://github.com/pihome-shc/PiHomeHVAC
@pihome-shc what would be the best format to write this up? Would a text document with some screenshot work got you?
I had a look at https://github.com/pihome-shc/PiHomeHVAC :
@JSa1987 you can do text or rich text format and if you can take images as well that would great. @twa127 is working on MaxAir i haven't had that much time to go through the code.
@JSa1987 you are correct the boiler_logs table has now been incorporated in to the controller_zone_logs table, the controller (old boiler) has a zone_id = 1
@twa127 thank you for the info, it should be an easy fix to adjust getBoiler.php for MaxAir. Could you confirm that when the boiler is started a row is created in controller_zone_logs with stop_datetime = NULL and then a new row is created with the actual stop time when the boiler is stop?
When the system controller turns ON a new row is created with stop_datetime = NULL, when the system_controller turns OFF the stop_datetime is set to the current time and the stop_cause is set. The process repeats the next time system controller turns ON and OFF
Very good that is the same as it was in PiHome for the boiler_logs, therefore the same logic should work (i.e. the boiler is ON if stop_datetime = NULL). I will submit a Pull request with the modified files also for pihome-shc/PiHomeHVAC .
@pihome-shc attached is a little article that explain how to setup the integration in Home Assistant. HA Intergration for PiHome.docx
@JSa1987 thank you for your effort. i will post this on PiHome website.
I made some changes to the API to allow a better integration with Home Assistant. The idea is for PiHome to still run the whole logic but to be able to monitor the status from Home Assistant.
getTemperature.php has been changed to return also the sensor battery status, it now returns:
{"success":true,"state":"19.00","datetime":"2021-02-28 15:23:34","bat_voltage":"2.50","bat_level":"43.00"}
getBoiler.php has been added to return the boiler status:
{"success":true,"state":"OFF"}
This allows the temperature of the zones, boiler status and battery info to be monitored from a dashboard in Home Assistant. In addition, the Zone Boost can be triggered from the Home Assistant dashboard.
I can write a little how to on how to setup the Home Assistant side to work with this.