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

3 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.

1 Like

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.

1 Like

Hi there,
I have just discovered this thread and I’m wondering how to run those npm commands from home assistant terminal. Is that possible? Thanks

Looks like this has been broken for a little while. There is a bug open on the SDK repo but seemingly its been in the wild for a couple months.

So sad! Let’s hope that this is going to be fixed.

hey just found this topic yesterday and mysotherm repo that this is based.
I’ve put out this quickly as a first draft for an extension that use mysotherm to get and set state for Mysa natively (without homekit)

again this is a rough draft (created with Google antigravity and gemini so your mileage may vary :smiley: ) that work with my Baseboard v2
I tought this could come handy for some here

Had to fix some library code from mysotherm mainly for dependencies

It’s working for now haven’t even look at the code done by gemini

Here it is

1 Like

Bonjour @beruk

First, contrary to some postings above, your implementation seems to be working fine for me. I’m running a v2-lite.

I know you wrote this to grab the energy data, but I’m interested in adding a function that doesn’t exist right now: resume schedule (and possibly hold until X time). I prefer to keep my schedule in the thermostat instead of using HA in case anything goes wrong with my HA instance.

Using the native app and watching with mysa2mqtt, I can see the commands, but not being a developer I have no idea how to extend what you’ve done. Any chance you’d be open to adding these features? I’m happy to feed you the info I have if it helps.

Also @Kgelinas I tried your version and found a couple of issues

  • it doesn’t support half degrees in C. If I adjust the setting to a half degree using your integration in HA, it only updates to the int value
  • it doesn’t respond to settings made elsewhere. I tried changing the setting using HA homekit, HA mqtt and the native app but none caused yours to update.
1 Like

That’s amazing work! Just installed it and its working like a charm. I am willing to test any beta / features that would be useful on your end, I love my mysa thermostats and am so happy to see such an extensive integration developped. Cheers

I’ve been busy updating it and fixing a lot of issues
If you still want to give it a go feel free to give me some feedback
https://community.home-assistant.io/t/mysa-integration-call-for-new-mysa-central-hvac-testers

1 Like