-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home Assistant #23
Comments
Unfortunatelly I've no experience with Home assistant. In general you have to setup a MQTT server for receiving the messages from MHI-AC-Ctrl. But maybe @apateluk or @ThomasHFWright who discussed a Home assistant topic in this issue could support you. |
You need to add the climate mqtt platform to your configuration. Note, I havn't tried the latest build of MHI-AC-Ctrl yet, but is meant to be more compatible with HA.
|
Thanks, at least some understanding. If you still know what, please write. |
I added to configuration.yaml as you wrote above, |
At first thanks @absalom-muc for the great effort in the compiling. I have set up my yaml as above, everything works except; AC unit is off - can't switch the ac unit on from the UI of HA. However when a command "On" is sent to the the topic MHI-AC-Ctrl/set/Power via an mqtt.fx the AC unit turns on. Once the AC is on, modes (heat, cool, dry) from the front UI of HA function, it will change on the AC as well. When I switch to "Off" front he UI of HA it doesn't work and unit doesn't respond. - error I get when looked up on serial communication of D1 mini is "invalid command". However, when an "Off" command is published from the mqtt.fx to the power topic it switches off. In summary the on and off command are not working from the UI of the HA. Anyone come up with this issue, if so any solution. Thanks |
did you check the updated wiring picture absalin posted? Also whats the topic for the DS18B20, i cannot get a readinf out of it. |
closed since there was no update for a long time. Please feel free to re-open in case of follow-up topics. |
If you add this line in HA (configuration.yaml): and change the following 2 lines in MHI-AC-Ctrl.h from: to: It seems to work then.. |
Has anybody got this working in Home Assistant with the new config layout? mqtt:
climate:
unique_id: mhi0001a
name: HeatPump
initial: 18
min_temp: 18
max_temp: 30
modes:
- "auto"
- "dry"
- "cool"
- "fan_only"
- "heat"
- "off"
swing_modes:
- "1"
- "2"
- "3"
- "4"
- "Swing"
fan_modes:
- "1"
- "2"
- "3"
- "4"
mode_command_topic: "MHI-AC-Ctrl/set/Mode"
mode_state_topic: "MHI-AC-Ctrl/Mode"
temperature_command_topic: "MHI-AC-Ctrl/set/Tsetpoint"
temperature_state_topic: "MHI-AC-Ctrl/Tsetpoint"
fan_mode_command_topic: "MHI-AC-Ctrl/set/Fan"
fan_mode_state_topic: "MHI-AC-Ctrl/Fan"
swing_mode_command_topic: "MHI-AC-Ctrl/set/Vanes"
swing_mode_state_topic: "MHI-AC-Ctrl/Vanes"
current_temperature_topic: "MHI-AC-Ctrl/Troom" |
Honestly I just use: https://github.com/ginkage/MHI-AC-Ctrl-ESPHome |
I have been able to toggle / Target / Fan mode and Swing mode successfully, hence unfortunately I am not able to enable the features displayed under Mode. If I select "Heat" = I can see a message has been send through MQTT topic: MHI-AC-Ctrl/set/Mode = heat I can see a response through MQTT topic: MHI-AC-Ctrl/cmd_received = invalid parameter Can you advice how to resolve the parameter issue? Please find attached the software I have loaded on to the Wemos D1; Please find below a screenshot of Home Assistant entity and MQTT explorer; Please find below the code in configuration.yaml mqtt: Many thanks for your help! Regards, |
I figured this out after reading the documentation. There is a line in support.h #define POWERON_WHEN_CHANGING_MODE true that needs to be uncommented to be able to turn on and off with Home Assistant. #define PAYLOAD_MODE_AUTO "auto"
#define PAYLOAD_MODE_STOP "stop"
#define PAYLOAD_MODE_DRY "dry"
#define PAYLOAD_MODE_COOL "cool"
#define PAYLOAD_MODE_FAN "fan_only"
#define PAYLOAD_MODE_HEAT "heat" Home Assistant is sending "heat" but your device is expecting "Heat". Home Assistant can only work with it lower case and so you have to change the payloads. |
Excellent it working perfectly! |
@scottm1985 I have do want to add a second AC to Home Assistant, I have created a prefix HOSTNAME Room1 and Room2 however unfortunately the Dasboard in Home Assistant is no longer working. Once I delete either Room1 or Room2 (so basically just have one HOSTNAME / HOSTNAME prefix) the dashboard is working. Could you please advise what I am missing? #define MQTT_PREFIX HOSTNAME "/Room1/" // basic prefix used for publishing AC data (e.g. for status), Please find below the details of the configuration.yaml file in Home Assistant. mqtt: Beste regards, Allard |
By creating unique HOSTNAME's and PREFIX'es MQTT has been able to divide the messages. The issue has been resolved and I am now able to control my three AC's through Home Assistant. Many thanks for your help! |
I added this issue in the Integration examples list for as Home Assistant. |
Do you have an example of integration in Home assistant?
The text was updated successfully, but these errors were encountered: