Broadlinkac2mqtt - Control your broadlink-based air conditioner with Home Assistant

Finally, I found the issue with creating an addon for hassio.
Now everyone can add the addon to their instance!
It takes a long time to installing (3-10 min), but it works!

I managed to run the addon but it does not see the AC. My config:

service:
  update_interval: 10
  log_level: error
mqtt:
  broker: mqtt://addon_core_mosquitto:1883
  user: mqtt
  password: ***
  client_id: aircon
  topic_prefix: aircon
  auto_discovery_topic: homeassistant
  auto_discovery_topic_retain: false
  certificate_authority: ca.crt
  skip_cert_cn_check: true
  certificate_client: client.crt
  key-client: client.key
devices:
  - ip: 192.168.8.41
    mac: ec0baea6416b
    name: Living room AC
    port: 80

In the logs I see the following:

{"level":"error","input":{"Command":101,"Payload":"RTRS5/ku2pWDRJMINe+abftpLcNwuQRDrFzWP7tTrfoIgUyn+M9BcQAyjlcMO4bJTQVwhEmjieKa4QRUNqBb3dwCwWGvEyXofhmw99HOBo0=","Mac":"ec0baea6416b"},"device":"ec0baea6416b","time":"2023-07-19T19:43:36Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:703","message":"failed to send a command"}
{"level":"error","error":"read udp 172.30.33.5:35588->192.168.8.41:80: i/o timeout","input":{"Mac":"ec0baea6416b"},"time":"2023-07-19T19:43:36Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:140","message":"failed to send command"}
{"level":"error","error":"read udp 172.30.33.5:35588->192.168.8.41:80: i/o timeout","device":"ec0baea6416b","time":"2023-07-19T19:43:36Z","caller":"/app/broadlinkac2mqtt/main.go:156","message":"Failed to Auth device ec0baea6416b. Reconnect in 3 seconds..."}

I am running HA on RPi4. Does WiFi need to be up and in the same SSID/network as AC during discovery?

@homy2023 same issue here. The Broadlink seems to be locked to the cloud service. End of the line. After my vacation (>4 weeks) Iā€™ll try this

It will replace the entire Broadcom wifi module for 2-3 euro worth of componements.

Yeah, it requires a bit of soldering. I would rather not do that but if there is no other option then perhaps will have to go for it :slight_smile:
Would really like to know how it went for you!

Iā€™m new to Home Assistant so Iā€™m sorry for the obvious questions. I 've set up MQTT, installed and configured Broadlinkac2mqtt addon and I think it runs fine. Now what should I do? I cannot find an AC device nor similar entities. I see broadlinkac2mqtt device but it doesnā€™t have AC related entities. Can someone help me what step am I missing?

1 Like

Ok, prototype is running



It took 10 minutes of soldering and some messing around with uploading esphome. Next step is creating a proper board and 3d print housing, and then mass produce it for my 5 unitsšŸ˜‰

4 Likes

It looks cool (pun intended). Can you control the AC unit from HA as well - like changing temperature/mode and so on?
Perhaps you can mass produce one more unit (for reasonable price) for me as well? :slightly_smiling_face:

I might. Itā€™s quite a bit of work to solder it and then flash. It seems to be able to control a lot of rebranded aircos.

A similar problem. Addon Log:

{"level":"error","error":"read udp 172.30.33.10:47563->192.168.0.163:80: i/o timeout","time":"2023-09-11T20:09:11Z","caller":"/app/broadlinkac2mqtt/app/webClient/client.go:43","message":"Failed to read the response"}
{"level":"error","error":"read udp 172.30.33.10:47563->192.168.0.163:80: i/o timeout","input":{"Command":101,"Payload":"RTRS5/ku2pWDRJMINe+abftpLcNwuQRDrFzWP7tTrfoIgUyn+M9BcQAyjlcMO4bJTQVwhEmjieKa4QRUNqBb3dwCwWGvEyXofhmw99HOBo0=","Mac":"ec0bae19435b"},"device":"ec0bae19435b","time":"2023-09-11T20:09:11Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:665","message":"failed to send a command"}
{"level":"error","error":"read udp 172.30.33.10:47563->192.168.0.163:80: i/o timeout","input":{"Mac":"ec0bae19435b"},"time":"2023-09-11T20:09:11Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:139","message":"failed to send command"}
{"level":"error","error":"read udp 172.30.33.10:47563->192.168.0.163:80: i/o timeout","device":"ec0bae19435b","time":"2023-09-11T20:09:11Z","caller":"/app/broadlinkac2mqtt/main.go:156","message":"Failed to Auth device ec0bae19435b. Reconnect in 3 seconds..."}

Checking the port:
image

Hi / Hoi Martijn, looks promising.
Just ordered the products to do the same. Wondering if everything is still working smoothly and also if you have any tips or tricks? Flashing and installing ESPHome? Easy job?

Thx.
Marnix

1 Like

Would you mind writing a guide on how to accomplish this?

1 Like

Hi, any solution for the ā€œFailed to Auth deviceā€ massage for some AUX models ?

I am new to Home assistant and Broadlink, but have managed to setup one RM4 Pro and four of the RM4 miniā€™s. I have also setup one room into the broadlink app and also managed to get scripts into Home assistant. I encountered an issue with getting the Air cons showing up in Lovelace as a card something like those thermostat cards.
Upon searching the web I stumbled upon this page.

  1. Can I clarify if this addon is meant to work with those scripts I created and does it incorporate a dashboard card etc or I am missing the intent of this addon?
  2. Does it work for all Air cons? I have Fujitsu, Daikin, Panasonic, LG and Mitsubishi.

Thanks

Hi !

I would like to mention that I am not a home assistant specialist. All the integrations I made were completed just by reading this forum and trying to figure out how each one works.

In this case below I have a dilemma.

I have a Vortex air conditioner (with wifi) that I control through the ā€˜Ac freedomā€™ application and from the home assistant I only give it on/off commands learned through tuya IR.

I recently read about broadlinkac2mqtt. I managed to make it work through this add-on but I do NOT understand how it works.

I will tell you the steps I took.

  • I deleted the Ac device from the ā€˜Ac freedomā€™ application

  • I reset wifi Ac

  • in the add-on I filled in the ip and mac of Ac (and mqtt)ā€¦ (information I knew since it was connected through the Acfreedom app)

  • in Broadlink (RM4) I did not find the integration for Ac Vortex and tried other brands. I found AEG on the list, which correctly sends IR commands to Ac Vortex.

  • I restarted the home assistant and found with surprise that it works.

My question is how did the air conditioner connect to the router, being deleted from the Acfreedom application.

I see there is Added support of Home Assistant BIRTH AND LAST WILL MESSAGES. Does that mean I can check the current state the air conditioning is in?

My situation is this:
I do have the broadlink RM4 Pro switching my aircon on and off through IR.
When I leave the house it has to switch off the aircon.
I want to be able to check if it is really switched off, so the aircon is not running for days or weeks when Iā€™m on holiday.
Another thing is when the aircon is not running and the Broadlink will send the on/off command it will turn on instead of off.

Is this last will message a way to do this?
Is it possible anyway for the aircon to report back over IR?

Hello!

IR has no feedback. The signal is sent in one direction only

Yes, I thought so. Iā€™m wondering how do those AC remotes get their information on the display. Iā€™ve seen information on current temp, goal temp, fan speed, etc. Does that work with RF?

Iā€™ve made a few changes to the addon. Can anyone check if the program is running? I donā€™t have a raspberry at the moment to test. it is necessary to check the dev branch

Iā€™m just trying to integrate my AUX air conditioner, my HA runs on a Raspberry Pi 3 B+. I would say the addon is running but I cannot authenticate with the air conditioner.

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
{"time":"2024-04-11T20:40:15.67812641Z","level":"ERROR","source":{"function":"github.com/ArtemVladimirov/broadlinkac2mqtt/app/webClient.(*webClient).SendCommand","file":"/github/workspace/app/webClient/client.go","line":43},"msg":"Failed to read the response","err":"read udp 172.30.33.3:38986->192.168.1.162:80: i/o timeout"}
{"time":"2024-04-11T20:40:15.678815573Z","level":"ERROR","source":{"function":"github.com/ArtemVladimirov/broadlinkac2mqtt/app/service.(*service).SendCommand","file":"/github/workspace/app/service/service.go","line":720},"msg":"failed to send a command","err":"read udp 172.30.33.3:38986->192.168.1.162:80: i/o timeout","device":"<macAdress>","input":{"Payload":"WqWqVVqlqlUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADu7wAAKk5lAH9b7Auu06w6AAAAAKHDAABFNFLn+S7alYNEkwg175pt+2ktw3C5BEOsXNY/u1Ot+giBTKf4z0FxADKOVww7hslNBXCESaOJ4prhBFQ2oFvd3ALBYa8TJeh+GbD30c4GjQ==","Ip":"192.168.1.162","Port":80}}
{"time":"2024-04-11T20:40:15.680329992Z","level":"ERROR","source":{"function":"github.com/ArtemVladimirov/broadlinkac2mqtt/app/service.(*service).AuthDevice","file":"/github/workspace/app/service/service.go","line":137},"msg":"failed to send command","err":"read udp 172.30.33.3:38986->192.168.1.162:80: i/o timeout","input":{"Mac":"<macAdress>"}}
{"time":"2024-04-11T20:40:15.681011186Z","level":"ERROR","source":{"function":"main.(*App).Run.func1","file":"/github/workspace/main.go","line":162},"msg":"failed to Auth device <macAdress>. Reconnect in 3 seconds...","err":"read udp 172.30.33.3:38986->192.168.1.162:80: i/o timeout"}

2024-04-22_16-46-55

This is all im getting when trying to start the dev version.