Closed JSa1987 closed 3 years ago
@JSa1987 can we implement on MaxAir version?
@pihome-shc I would think this should be possible. My understanding is that the database structure has change so I would need to adjust a bit how data is pulled. Can you confirm that pihome-shc / PiHomeHVAC
is the current repository for AirMax?
Unfortunately I don't have an installation of MaxAir to experiment and test. What is the status of development for AirMax, is this mature enough to be used to control the heat system? If so, I could consider upgrading so that I can then get a better understanding of how the new system works and then port this over.
Yes, MaxAir is mature now and using it in production. Yes pihome-shc/PiHomeHVAC is correct repository. Thank you for working on this.
On 14 Aug 2021, at 09:50, JSa1987 @.***> wrote:
@pihome-shc I would think this should be possible. My understanding is that the database structure has change so I would need to adjust a bit how data is pulled. Can you confirm that pihome-shc / PiHomeHVAC is the current repository for AirMax?
Unfortunately I don't have an installation of MaxAir to experiment and test. What is the status of development for AirMax, is this mature enough to be used to control the heat system? If so, I could consider upgrading so that I can then get a better understanding of how the new system works and then port this over.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Very good then. I will look into upgrading to MaxAir and start porting this also there. I will close this pull request for now. Once I will had a look at MaxAir I will revisit also the implementation for PiHome so that they are kept as similar as possible and I will then re-submit another pull request.
we can still update pihome as work is already done so why not.
Added a 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 sensor definition needed to setup and then update the following HA sensors:
Changes
cron/home-assistant_sensors.py
script was created that handles all the MQTT communication. This is based on the system_sensors from Sennevds .cron/check_HA.php
script was addd to check thatcron/home-assistant_sensors.py
is running and if not re-start it.ajax.php
was modified to add the option to define the MQTT broker used by for HA.cron/CronJobs List
was modified to runcron/check_HA.php
every minutesetup.php
was modified to add the option forcron/check_HA.php
to crontab and install the Python modules needed (defined inrequirements.txt
). Not sure if there is a better way to install the Python modules required during the setup, I'm open to ideas here.