Support for Mysa thermostat

The Mysa Smartthings integration was approved for the New Smartthings App! It’s important to note, there are actually two Smartthings apps, the New Smartthings app and the Smartthings classic app. Currently, only Smartthings Classic integrates with Hass.io, and that’s done using the MQTT Bridge. Mysa has no plans to support the Smartthings Classic app. (I don’t think they could even if they wanted too - because Smartthings doesn’t appear to be approving new devices for the Classic app)
However, I just got wind of a Hass.io component that supports integrating the new app.. I think that component is slated for the next release - but I’m not certain. Reading the docs on that page, it requires remote access to your hass.io instance - but you can’t use a self-signed certificate. I think the standard duckdns config uses a self signed certificate, so it looks like it’ll be a pain to setup, at least initially. (I could be wrong on that - if i am, please let me know!). It also only supports fan, light, switch, and binary sensor at the moment, but I expect that support list will grow.

Would also be interested in a component for Mysa

It looks like the new Hass.io Smartthings component that launched yesterday is for the Classic app. There’s still no way to connect Mysa to Hass.io.

I’ve got Mysa working through the Homekit Controller component. It displays the current temp, and allows you to set a new temp, but I can’t figure out how to get it to display the current set temp.

1 Like

I also have a bunch of Mysa’s, and am very interested in getting them working in any Home Automation Software. Ideally, it would be nice if they just gave us a Direct API to use.

That said, a couple months ago I did try to Homekit Controller component, and was able to add them to HomeAssistant.io. It didn’t feel like the cleanest solution, but it did show the current temp and I was able to set the temperature. It did feel buggy though, and not “smooth” (maybe all thermostats fell like that in HA?)

What it didn’t do, was give access to the Humidity Sensor, or the Light Sensor (brightness of the panel). Or the DisplaySetTemp. Unsure if all those are even shown through the normal Apple Homekit integration.

Anyone have better luck with integration? Or perhaps some other software that they integrate better with? Would be appreciated. Else maybe fiddling/improving the Homekit Component to support humidity sensor and light sensor for a thermostat object may improve things with HA & Mysas.

We have to find a way to put pressure on Mysa or connect…

I’ve been fussing with Mysas since they launched, and despite the initial complaints, I’m super happy with them now. I used to have 3 Mysas connected via the Smartthings integration. The Smartthings integration wouldn’t let me change setpoints, it only gave me sensor data, so it wasn’t very helpful.

When Hass.io started detecting the Mysas as a Homekit integration, I tried pairing them that way. (I had to unpair them from Smartthings, reset the thermostats, remove them from the mysa app, then re-add them to the Mysa app to get the Homekit Hassio integration to pair properly). If you don’t have to un-pair your Mysas from another system, the initial setup should be easy. The Homekit integration auto-detects new devices, so you don’t even need to modify configuration.yaml to have the system see these, everything is done through the integrations page. During setup, adding the dashes to the Homekit pairing code caused me some trouble - but I think they have a format example on the integration setup page now.
Once I got them connected via Homekit, they’ve been fantastic.

When you integrate via Homekit, it creates 2 entities, one is climate.<name of your mysa> the other is light.<name of your mysa>_light. The light entity lets you turn on/off the display, and set brightness. This is controlled like any other light.

The climate sensor is the part that deals with heating. You can pull the temp, humidity, and setpoint data from the entity. When you initially add the thermostats, they don’t create separate sensors, but the data is there. (You can see that this data appears as entity attributes when you look at the Mysas at developer-tools/state).

Here’s what my entities look like for my office thermostat:
11 AM

Here’s what I’ve got in sensors.yaml to setup that climate data as individual sensors:

# Mysa thermostats   
  - platform: template
    sensors:
      mysa_office_temp:
        friendly_name: "Office Temperature"
        unit_of_measurement: "°F"
        value_template: "{{ state_attr('climate.office_thermostat', 'current_temperature') }}"
  - platform: template
    sensors:
      mysa_office_humidity:
        friendly_name: "Office Humidity"
        unit_of_measurement: "%"
        value_template: "{{ state_attr('climate.office_thermostat', 'current_humidity') }}"   
  - platform: template
    sensors:
      mysa_office_setpoint:
        friendly_name: "Office Setpoint"
        unit_of_measurement: "°F"
        value_template: "{{ state_attr('climate.office_thermostat', 'temperature') }}" 

You can use automation to change the setpoint. Here’s an automation I use to turn down the temperature when I leave the house:

- id: '1572982291659'
  alias: Heaters off when everybody leaves
  description: 'If all people are away, set the office thermostat to 64 degrees'
  trigger:
  - entity_id: input_boolean.present_mode
    from: 'on'
    platform: state
    to: 'off'
  condition: []
  action:
  - data:
      entity_id: climate.office_thermostat
      temperature: 64
    service: climate.set_temperature

I use the lovelace climate card to add the thermostat to the frontend:

At this point, I think we’ve got full Mysa integration. If anything, they need to put up a blog post about Hass.io integration so people don’t have to muck about trying to figure out the best way to integrate.

1 Like

Since it uses HomeKit, do I need a Apple product? I don’t own any.

Thanks

This is fantastic information! Thank you so much for taking the time to write up everything. I’m going to grab a few thermostats and try it out as well.

Good question - you definitely do not need an apple product to use the hassio homekit integration. I don’t have homekit configured on any of my apple devices, the Mysa integration in Hassio is the only place in my home that I’m use the homekit features.

Awesome! Yea with the HomeKit integration, the Mysa’s are “almost” perfectly supported by Home-Assistant now! Be nice if it automatically set the right HVAC modes, but that’s fine. Very exciting.

Some small issues, but the main one I have right now, is that sometimes the Mysa Thermostat (in HA) will “hang”. It kinda locks its state and doesn’t change. The Mysa still works fine, and shows the right temperature on the wall. It just won’t update the state in HA. If you look in the temperature graph, you will see the other mysas going up and down, but the “hung” mysa will just be the same temperature (straight line). I assume this is some HomeKit error which get hung up on some update value and freezes or loops. I notice this happens more regularly if I change the Mysa manually on the wall (or through the Mysa App), while if you just change it through HA, it won’t get into this “hung” state often, where HA still shows the entity, but doesn’t update or can’t control it.

Anyway, not a big issue, it’s easily detectable (if the temperature has been the EXACT same temperature for 1 hour, it’s likely in this state). And to fix it, I just go to INTEGRATIONS > DEVICE > and then I “Disable” the climate.mysa device. Wait 1 min, then I re-enabled it, and it’ll update and HA can control it again.

I can do this through the GUI fine. But my issue is I can’t seem to find where I can Disable / Re-enable an entity within an Automation… anyone know how I can do this? I see no service or anything which allows me to disable an entity (even though I can do it through the GUI fine…).

I just want a way where I can disable/enable the entity automatically, so I don’t have to go through the GUI every day disabling/reenabling all my hung Myas’s.

Just an FYI I have 5 of these thermostats and received the 5th for Christmas. Thew new version shows a v1.1 compared to 1 on the previous. I am able to add the climate.mysadevice, however the light.mysadevice does not show up via HomeKit anymore. Wondering if anyone else has a new Thermostat that is seeing the same

Has anyone been able to get the energy usage feature integrated?

I am trying to add my Mysa and you mentioned

During setup, adding the dashes to the Homekit pairing code caused me some trouble - but I think they have a format example on the integration setup page now.

I can’t figure this out!! My QR reader shows the following:

X-HM://###HUVSBOSX#I

Can you give an example what the “pairing code” should look like?

Update:

Figured it out… I was reading the QR Code but it’s the ACTUAL NUMBERS printed beside the QR Code… (faceplant) I’m done for tonight, but I suspect I may have more questions :stuck_out_tongue:

https://help.getmysa.com/hc/en-us/articles/360030654051-Connecting-to-Apple-HomeKit

I’m doing a full write-up BTW, but it’s a WIP ATM.

https://www.freesoftwareservers.com/display/FREES/Add+Mysa+to+Home-Assistant

1 Like

Thew new version shows a v1.1 compared to 1 on the previous. I am able to add the climate.mysadevice, however the light.mysadevice does not show up via HomeKit anymore. Wondering if anyone else has a new Thermostat that is seeing the same

I am showing/having same thing. No light option.

It bothered me having the humidity stat not showing, but available so I created a vertical stack card w/ that entity below like so:

type: vertical-stack
cards:
  - type: thermostat
    entity: climate.mysa_dddddd
  - type: entities
    entities:
      - entity: sensor.mysa_living_room_humidity
    show_header_toggle: false

Card

I’d still love to see some other stats/functions integrated, but I’m guessing they aren’t available in Apple/HomeKit and it’s a Mysa problem before its a HA problem.

Is it possible to add the Mysa’s by hand in the configuration file? I have HA running in a VM (kvm) on a laptop, and this creates a whole load of issues which makes the pairing tricky (mdns not passing between subnets, no wireless bridging etc). I can set the pairing mode and see them using avahi-browse from the host machine, but that’s not where HA is running. Would be great if this was possible somehow. Any ideas?!

I tried (and succeeded, thanks in part to this thread) to connect my Mysa to HA. Unfortunately, as was discussed earlier, when paired with HA there is no way to control the light.

This is somewhat of a showstopper for me as I don’t want the default lighting in some areas (the bedroom for example). Did anyone find a way around that? I fully expected the light instance to be exposed via Homekit. :frowning:

This is sad, the only reason I swapped my thermostats to Mysas was to track the temperatures in HA, but this is still not possible. Had I known this upfront I would have probably bought Sinopé units instead, as those work just fine with HA.

Disappointingly, there doesn’t seem to be a way to read the energy usage either (this is also not exposed via Homekit, only the Mysa app), but I kind of expected that. AFAIK you can’t see the energy usage with Sinopé either.

The older hardware version of Mysa stats would integrate both entities, but the newest versions don’t seem to be acting the same.

I have old v1 stats that import as (2) entities and new v1-1 stats that import only the climate entity. Currently I am trying to figure out how to get the light entity to come through the integration of the new sensors as well. Any advice?

Odd thing is that both sets of hardware are running the same firmware versions…

I gave up and returned all my Mysas, replaced them with Sinopé TH1123ZB. Much happier! Zigbee version is supported natively by ZHA so you don’t have to buy the hub if you don’t care for the native cloud services.

Zigbee version of the Sinopé returns live energy usage in Watts, and the clock is automatically set by ZHA, those ended up being nice extras.

IMO the fact that the Mysa forces you to choose between HA integration or their app kind of ruined the whole deal for me. I would have probably stuck with it if everything had been exposed via the Homekit interface.