Mysa2mqtt: Integrate Mysa thermostats via MQTT auto-discovery

I have built a tool that bridges Mysa smart thermostats to MQTT, enabling integration with Home Assistant via MQTT auto-discovery. Hopefully this will be useful to others!

Repository: GitHub - bourquep/mysa2mqtt: Expose Mysa smart thermostats to home automation platforms via MQTT.

Blog post: Integrate Mysa thermostats with Home Assistant | Medium

Let me know what you think!

Pascal

2 Likes

This looks amazing! I’m very new to HA, but one of my top to-do’s was pulling temperature data from my existing Mysa’s into automations of some window fans this summer. If I can pull in power data that’s even better!

Given that I’m new, the github readme is a bit over my head. I run HA on a bare metal x86 stick computer. Where would I run npm install -g mysa2mqtt ? I understand that I’ll need to set up an MQTT broker like mosquito, I’m just not sure where/how to install mysa2mqtt and create the .env file.

Hey Pascal,

This is awesome, thanks so much! I’ve got the project loaded and the thermostat came up in HA right away. I am seeing one issue in that while status is displayed, the Mysa is not responsive to commands from HA. Here’s the log entry:

[20:13:33.662] DEBUG (mysa2mqtt/801): [mysa-js-sdk] Sending request to set device state for

My device is a BB-V2-0, and I see from your blog you mainly tested with V1 devices. If you can point me towards what data would be helpful, I’d be happy to help debug.

Cheers,
-Dan

Update: I found the issue. Pull request submitted, my first ever.