Hey everyone, I wanted to share my experience integrating my Mitsubishi HVAC system with Tasmota using MQTT. I’ve been trying to get this setup working for a while now, and I thought I’d document my journey in case it helps someone else out there!
So, the goal was to control my Mitsubishi AC through Home Assistant using Tasmota’s IR capabilities. I managed to send manual commands via MQTT Explorer, which worked perfectly. For example, sending a payload like {"Vendor":"Mitsubishi","Power":1,"Mode":"Cold","FanSpeed":"5","Temp":17} would turn on the AC, set it to cool mode, and adjust the temperature. Simple enough, right?
But the real challenge came when I tried to automate this process within Home Assistant. After diving into the HA Climate, MQTT, and Templating documentation, I realized I needed to use templating to convert HA’s climate component outputs into the specific JSON payload my AC expects. However, I was a bit stuck on how exactly to implement this.
I stumbled upon this forum post where someone seemed to be tackling the same issue, but unfortunately, there were no responses. Frustrated but determined, I decided to experiment with different templating approaches.
After several trials and errors, I finally found a solution that worked for me. I set up a template that maps HA’s climate states to the required JSON format. It wasn’t straightforward, but breaking down the problem into smaller parts helped. For instance, I created separate templates for power, mode, fan speed, and temperature, then combined them into the final payload.
Here’s a snippet of what my configuration ended up looking like:
yaml
climate:
- platform: mqtt
name: “Mitsubishi AC”
state_topic: “house/ac/IRhvac”
command_topic: “house/ac/IRhvac”
value_template: “{{
Vendor: ‘Mitsubishi’,
Power: {{ state.attributes.is_on | int }},
Mode: {{ state.attributes.hvac_mode | title }},
FanSpeed: ‘{{ state.attributes.fan_mode }}’,
Temp: {{ state.attributes.temperature }}
}}”
This setup allows me to control the AC through Home Assistant’s climate interface, and it’s been working like a charm ever since! I’m thrilled to have finally cracked this puzzle.
If anyone has tips or alternative approaches, I’d love to hear them. It’s always great to learn from the community and maybe even improve this setup further. Happy automating everyone! ![]()