Temperature and humidity records stop working

Hello everybody, I hope you are doing well !

My Name is Jérôme, English is not my native language so feel free to ask me for more details if I’m unclear.

I have a lot my Mysa thermostats at home, they are all working perfectly. However, one of them is having trouble to record temperature and humidity.

Sometime it works, then stops working for a couple of hours, then works again.

I’m running Home Assistant in Docker on Debian.

Here is a screenshot of the temperature recordings :

And here is a log when the crash happen :


Logger: aiohomekit.utils
Source: /usr/local/lib/python3.13/site-packages/aiohomekit/utils.py:45
First occurred: 2:36:43 AM (1 occurrence)
Last logged: 2:36:43 AM

Failure running background task: Task-207129
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/utils.py", line 40, in _handle_task_result
    task.result()
    ~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/pairing.py", line 451, in _process_config_changed
    await self.list_accessories_and_characteristics()
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/pairing.py", line 211, in list_accessories_and_characteristics
    response = await self.connection.get_json("/accessories")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/connection.py", line 376, in get_json
    response = await self.get(target)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/connection.py", line 370, in get
    return await self.request(
           ^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/connection.py", line 520, in request
    resp = await self.protocol.send_bytes(request_bytes)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/connection.py", line 204, in send_bytes
    return await self._send_lines(buffer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohomekit/controller/ip/connection.py", line 127, in _send_lines
    return await result
           ^^^^^^^^^^^^
aiohomekit.exceptions.AccessoryDisconnectedError: Connection closed

Again, it’s only one of the Mysas, all the other one are working perfectly fine.

Thank you a lot in advance for your help and have a wonderfull day !

Jérôme.

Looks like it is having trouble connecting. Is it in a poor reception area?

Hello Tom, thank you for your answer, no the Mysa have a very strong signal, I just checked.

The other Mysas are able to record temperature and humidity correctly.

I’m able to see the temperature and humidity history on the Mysa app.

So I really don’t know what is the issue… :confused:

Do you know if it’s possible to make to script or something to force home assistant to read and record the mysa ?

If it’s possible, do you have a link for a tutorial or something ?

I’ve been triyng to fix that issue for weeks if not months, and I’m running out of ideas.

Thank you for your help and have a great day !

Jérôme.

The logs indicate that HA cannot connect to the device and lost connection.

HA cannot record what it’s not connected to.

Hello Petro, thank you for your response.

Do you have any suggestions about what should I do ? I can try to remove and re add the Mysa again but it did not worked last time.

Also, I just found something weird.

If I go do settings, devices, Homekit, select the Mysa and click on the “mode” history, everything is recorded like you can see on the picture below :

But if I go on the temperature history, I can’t see anything recorded after Dec 14th 2:36 AM :

This is really what’s bugging me, the records works for everything in HA except precisely temperature and humidity on this particular Mysa, even if the temperature in the “mode” history is recorded correctly…

Thank you very much for trying to help me, and again sorry for my “not great English”, if you want more informations please feel free to ask.

Have a great day !

Jérôme.

Those are separate entities… are they the same device or a different device?

From the same device.

First graph come from entity 1 and second graph from entity 2

Edit : I made a mistake, the red 2 should be near the temperature entity.

This is likely just a bug then if the Mode T… has the current temperature

To my understanding “red 1” is your Heating Pump, and “red 2” is a Thermostat(with a Thermometer) and this is placed in the Entre

Do you have other Thermostats which control Your Heating Pump ?

EDIT: Guess i was wrong , it looks like 1 is the Thermostat(device) in your entre, from where you control your Heating-Pump, and 2 is the thermometer in that(device) or other way around, beats me,
Anyways it seems like it’s “connecting/talking” to your heatpump over IR, so make sure it’s within reach of your heatpump, and 2.4 GHz WiFi connection(if the wifi-connevtion works flawless, the graphs behavior is most ike do to problems with connection to/from Your Heatpump

One thing is for sure you can’t expect the temperatures/thermostat in several room can be satisfied with i.e 1 split-heatpump, hanging in the livingroom

Hello, sorry for the late response.

I use this to control my heatpump : Mysa for Mini-Split Heat Pumps

It’s basically a wifi remote controlled IR remote.

The Home Assistant send controls to the Mysa via wifi, then the Mysa send the controls to the heatpump via IR like a regular remote.
The heatpump never send informations to the Mysa, it’s behaving like a regular IR remote.

The mysa has 2 sensors, one for humidity, the other one for temperature.

My problem is this particular mysa is not able to record the temperature and humidity in home assistant, however, it’s able to record the temperature in “mode” as shown on post #5.

Additional notes :
Temperature and humidity are recorded in the mysa app without any troubles, so I don’t think it’s a sensor problem.
I use 8 other mysas to control baseboard heaters, they are able to record the temperature and humidity without any troubles.
The mysa is very close to the router (TPlink Archer AX55) so I don’t think it has connections issues.

If it’s a bug, can you tell me how to report it ?

Also, it is possible to “force” the mysa to reconnect with a script or something ?

Thank you very much for you help, I’ve been triyng to understand and fix this issue for weeks without any success…

Have a great day,

Jérôme.

I was actually not specific thinking of your wifi connction,but

You still only have 1 temperature sensor in the unit, so im more curios about how and when and what it reports back to HA ( their docs as many brands hardly ever provide details for “nerds”

What i would have done is remove if from the APP, WIFI and HA. Let it rest for a day-
Next day Go to one of the other nearby Thermostats,Place it next to it, but not to close and from there connect it to your WIFI/APP and HA again. If it still behaves the same way, i wouldn’t give it a second thought ( Return it to the seller),

I assume you also have no idea of to what degree this Thermostat contribute to your Heatpumps Work-Flow, partly because the Heatpump probably don’t register statistic of several different Thermostats IR-signals.
With 8 totally independent Thermostats talking to it i can’t even imagine how stressful life your Heatpump must have :slight_smile:

You says it have good wifi signal( al-thou it’s in you " Entre ") where you maybe close a door, to rest of your house "no heat comes from the Heatpump, beside no IR signal-commands, will also never reach your Heatpump etc, (And you opens your front-door to a freezing hell ) and there could be other causes of interference. (IR == Free direct Sight) that is if you don’t have a reflecting directed surface leading it to it’s destination

Anywas you can add/enable the device _tracker for this Thermostat,
In the History Page, You can then follow and compare the on/off of the wifi device, and the Temperature-signals behavior

I wouldn’t spend to much time before i’ve decided to return the product

Thank you for the great suggestion, I’m going to move the mysa somewhere else to be sure it’s not a wifi issue.

Only the heatpump mysa is “talking” to the heatpump, the other mysas controls baseboards (they are not the same model).

My router was also in “eco mode” whatever that mean. I’ve changed that for normal operations.

I’ll let you know if moving the mysa and shutdown eco mode solved my problem.

Thanks again for the great suggestions have have a nice day !

1 Like

Sorry i missed that part in your previous post :blush: