absalom-muc / MHI-AC-Ctrl

Reads and writes data (e.g. power, mode, fan status etc.) from/to a Mitsubishi Heavy Industries (MHI) air conditioner (AC) via SPI controlled by MQTT
MIT License
270 stars 61 forks source link

How do you add the device to Home Assistant? #96

Closed nmg196 closed 2 years ago

nmg196 commented 2 years ago

I'm finally getting somewhere and i'm up and running with the software side. However I've not used Home Assistant before so I'm not sure of the next step.

...but how do I actually control the A/C? It doesn't seem to be listed as an "entity" and I can't find any reference to it in HA, despite having connected HA to my MQTT Broker.

I found some YAML in another issue (https://github.com/absalom-muc/MHI-AC-Ctrl/files/6404612/IoTMQTTPanel-210330_095559.txt) ...but this doesn't seem to work in HA as it's missing the "type" property.

stosoorok commented 2 years ago

It is a lot easier to use MHI-AC-Ctrl-ESPHome in my opinion. https://github.com/ginkage/MHI-AC-Ctrl-ESPHome

Install ESPHome add-on, copy MHI-AC-Ctrl files to ESPHome folder and make installer for Wemos D1 mini. Flash Wemos, reboot it and the HA should dicover the MHI-AC-Ctrl and just add entities to Lovelace.

nmg196 commented 2 years ago

Thanks - that looks interesting. I'll check it out this evening.

nmg196 commented 2 years ago

I'm really confused by both your comment and the instructions on the ESPHome page. Which files should be preserved or kept when copying the files into the ESPHome folder? If I let it overwrite the files with the same name then it doesn't even compile. I have opened an issue here: https://github.com/ginkage/MHI-AC-Ctrl-ESPHome/issues/24

KRGT-NL commented 2 years ago

When you device called MHI-AC-Zolder you can use attached for configuration.yaml.

If you have another name, change it accordingly. (You need to change all MHI-AC-Zolder to Mila-AC-Ctrl)

MHI.txt

absalom-muc commented 2 years ago

I believe the issue was addressed, therefore closed. If there are further questions, please feel free to re-open it.