home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.31k stars 30.62k forks source link

Homekit - Thermostat MYSA cannot be controlled after been turn-off #125435

Open MarcMTLDK opened 1 month ago

MarcMTLDK commented 1 month ago

The problem

The problem is based on the MYSA Thermostats. I used to have them to work until last spring and I can't remember exactly from when. I have 5 of them and sundently I could not set them from Home Assistant but I was (and still) able to do it from the App.

  1. I reinstalled everything many times (meaning Home Assistant)
  2. I reinstalled the Thermostat (MYSA v1 et v2)
  3. They are showing in home assistant and I can control them UNTIL THEY REMAIN ON
  4. If I changed it to OFF, from this point forward I'm loosing control of it. . I still can see the temperature, humidity
  5. it is impossible from HOME ASSISTant to turn in ON 5.1 I can turn it on from the APP
  6. Back to point 3 where I'm having access until they are remaining ON.

What version of Home Assistant Core has the issue?

core-2024-05-0 to core-2024-09-0

What was the last working version of Home Assistant Core?

core-2024-05-0 (not sure)

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

apple home kit

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

The Log below is from where I begin installing the thermostat identify with "c3c9a8", it was working and until I turn-it off , and when I try to turn in ON afterwards without success and without errors message. 

2024-09-06 13:31:41.175 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds
2024-09-06 13:32:41.177 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds
2024-09-06 13:33:11.176 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.thermostat is taking over 10 seconds
2024-09-06 13:36:55.515 WARNING (MainThread) [homeassistant.components.homekit_controller.connection] HomeKit device update skipped as previous poll still in flight: E9:C7:F0:10:00:E6
2024-09-06 13:37:39.618 DEBUG (MainThread) [homeassistant.components.homekit_controller.config_flow] Discovered device Mysa-77a030 (Mysa-77a030 - 82:4D:3F:B3:E6:68)
2024-09-06 13:37:39.654 DEBUG (MainThread) [homeassistant.components.homekit_controller.config_flow] Discovered device Aqara-Hub-E1-24F7 (HE1-G01 - 29:E4:10:9A:7B:59)
2024-09-06 13:37:39.654 DEBUG (MainThread) [homeassistant.components.homekit_controller.config_flow] HomeKit device 29:E4:10:9A:7B:59 ignored as already paired"
2024-09-06 13:37:39.777 DEBUG (MainThread) [homeassistant.components.homekit_controller.config_flow] Discovered device Mysa-34f594 (BB-V2-0 - B1:ED:CF:9F:7B:33)
2024-09-06 13:37:39.777 DEBUG (MainThread) [homeassistant.components.homekit_controller.config_flow] HomeKit device B1:ED:CF:9F:7B:33 ignored as already paired
2024-09-06 13:37:39.777 DEBUG (MainThread) [homeassistant.components.homekit_controller.config_flow] Discovered device Mysa-8ecb18 (Mysa-8ecb18 - 5D:E3:4D:42:86:47)
2024-09-06 13:37:39.777 DEBUG (MainThread) [homeassistant.components.homekit_controller.config_flow] HomeKit device 5D:E3:4D:42:86:47 ignored as already paired
2024-09-06 13:37:40.276 DEBUG (MainThread) [aiohomekit.zeroconf] e9:c7:f0:10:00:e6: Notifying pairing of description update: HomeKitService(name='Mysa-c3c9a8', id='e9:c7:f0:10:00:e6', model='Mysa-c3c9a8', feature_flags=<FeatureFlags.SUPPORTS_APPLE_AUTHENTICATION_COPROCESSOR: 1>, status_flags=<StatusFlags: 0>, config_num=16, state_num=1, category=<Categories.THERMOSTAT: 9>, protocol_version='1.1', type='_hap._tcp.local.', address='10.0.0.102', addresses=['10.0.0.102'], port=57959)
2024-09-06 13:37:51.532 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 10.0.0.102: raw request: b'PUT /characteristics HTTP/1.1\r\nHost: 10.0.0.102\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":22,"value":0}]}'
2024-09-06 13:37:51.923 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 10.0.0.102: raw response: bytearray(b'')
2024-09-06 13:37:51.923 DEBUG (MainThread) [aiohomekit.controller.abstract] callback ev:{(1, 22): {'value': 0}}
2024-09-06 13:37:51.923 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Called async_set_available_state with True for E9:C7:F0:10:00:E6
2024-09-06 13:37:58.188 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 10.0.0.102: raw request: b'PUT /characteristics HTTP/1.1\r\nHost: 10.0.0.102\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":22,"value":1}]}'
2024-09-06 13:37:58.501 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 10.0.0.102: raw response: bytearray(b'{"characteristics":[{"aid":1,"iid":22,"status":-70410}]}')
2024-09-06 13:38:02.891 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Starting HomeKit device update: 0C:85:41:2C:D6:26
2024-09-06 13:38:02.892 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 10.0.0.126: raw request: b'GET /characteristics?id=1.28,1.47,1.15,1.21,1.14,1.43,1.44,1.42,1.45,1.29,1.22 HTTP/1.1\r\nHost: 10.0.0.126\r\n\r\n'
2024-09-06 13:38:03.067 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 10.0.0.126: raw response: bytearray(b'{\n\t"characteristics":\t[{\n\t\t\t"aid":\t1,\n\t\t\t"iid":\t28,\n\t\t\t"value":\ttrue\n\t\t}, {\n\t\t\t"aid":\t1,\n\t\t\t"iid":\t47,\n\t\t\t"value":\t0\n\t\t}, {\n\t\t\t"aid":\t1,\n\t\t\t"iid":\t15,\n\t\t\t"value":\ttrue\n\t\t}, {\n\t\t\t"aid":\t1,\n\t\t\t"iid":\t21,\n\t\t\t"value":\t0\n\t\t}, {\n\t\t\t"aid":\t1,\n\t\t\t"iid":\t14,\n\t\t\t"value":\t0\n\t\t}, {\n\t\t\t"aid":\t1,\n\t\t\t"iid":\t43,\n\t\t\t"value":\t0.023000\n\t\t}, {\n\t\t\t"aid":\t1,\n\t\t\t"iid":\t44,\n\t\t\t"value":\t1.378906\n\t\t}, {\n\t\t\t"aid":\t1,\n\t\t\t"iid":\t42,\n\t\t\t"value":\t117\n\t\t}, {\n\t\t\t"aid":\t1,\n\t\t\t"iid":\t45,\n\t\t\t"value":\t3.503394\n\t\t}, {\n\t\t\t"aid":\t1,\n\t\t\t"iid":\t29,\n\t\t\t"value":\tfalse\n\t\t}, {\n\t\t\t"aid":\t1,\n\t\t\t"iid":\t22,\n\t\t\t"value":\ttrue\n\t\t}]\n}')
2024-09-06 13:38:03.068 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Called async_set_available_state with True for 0C:85:41:2C:D6:26
2024-09-06 13:38:03.068 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Finished HomeKit device update: 0C:85:41:2C:D6:26
2024-09-06 13:38:05.098 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Accessory is reachable, limiting poll to firmware version: E9:C7:F0:10:00:E6
2024-09-06 13:38:05.098 INFO (MainThread) [homeassistant.components.homekit_controller.connection] HomeKit device no longer detecting back pressure - not skipping poll: E9:C7:F0:10:00:E6
2024-09-06 13:38:05.098 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Starting HomeKit device update: E9:C7:F0:10:00:E6
2024-09-06 13:38:05.098 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 10.0.0.102: raw request: b'GET /characteristics?id=1.7 HTTP/1.1\r\nHost: 10.0.0.102\r\n\r\n'
2024-09-06 13:38:05.352 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 10.0.0.102: raw response: bytearray(b'{"characteristics":[{"aid":1,"iid":7,"value":"3.16.2"}]}')
2024-09-06 13:38:05.352 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Called async_set_available_state with True for E9:C7:F0:10:00:E6
2024-09-06 13:38:05.352 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Finished HomeKit device update: E9:C7:F0:10:00:E6
2024-09-06 13:38:06.326 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Starting HomeKit device update: F6:50:7C:B2:33:5E
2024-09-06 13:38:06.326 DEBUG (MainThread) [aiohomekit.controller.coap.connection] ENCRYPT counter=45
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.connection] DECRYPT counter=45
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x00, Status=Success, Len=6
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x01, Status=Success, Len=4
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x02, Status=Success, Len=6
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x03, Status=Success, Len=6
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x04, Status=Success, Len=3
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x05, Status=Success, Len=4
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x06, Status=Success, Len=6
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.protocol.tlv] receiving [
  1 (Identifier): (4 bytes/<class 'bytearray'>) 0x00008743
]

2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.connection] Read value for aid 1 iid 53: value 270.0
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.protocol.tlv] receiving [
  1 (Identifier): (2 bytes/<class 'bytearray'>) 0x1000
]

2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.connection] Read value for aid 1 iid 117: value 16
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.protocol.tlv] receiving [
  1 (Identifier): (4 bytes/<class 'bytearray'>) 0x64000000
]

2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.connection] Read value for aid 1 iid 52: value 100
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.protocol.tlv] receiving [
  1 (Identifier): (4 bytes/<class 'bytearray'>) 0x99000000
]

2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.connection] Read value for aid 1 iid 55: value 153
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.protocol.tlv] receiving [
  1 (Identifier): (1 bytes/<class 'bytearray'>) 0x00
]

2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.controller.coap.connection] Read value for aid 1 iid 51: value False
2024-09-06 13:38:06.364 DEBUG (MainThread) [aiohomekit.protocol.tlv] receiving [
  1 (Identifier): (2 bytes/<class 'bytearray'>) 0x0c00
]

2024-09-06 13:38:06.365 DEBUG (MainThread) [aiohomekit.controller.coap.connection] Read value for aid 1 iid 115: value 12
2024-09-06 13:38:06.365 DEBUG (MainThread) [aiohomekit.protocol.tlv] receiving [
  1 (Identifier): (4 bytes/<class 'bytearray'>) 0x0000c842
]

2024-09-06 13:38:06.365 DEBUG (MainThread) [aiohomekit.controller.coap.connection] Read value for aid 1 iid 54: value 100.0
2024-09-06 13:38:06.365 DEBUG (MainThread) [aiohomekit.controller.coap.connection] Read characteristics: {(1, 53): {'value': 270.0}, (1, 117): {'value': 16}, (1, 52): {'value': 100}, (1, 55): {'value': 153}, (1, 51): {'value': False}, (1, 115): {'value': 12}, (1, 54): {'value': 100.0}}
2024-09-06 13:38:06.365 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Called async_set_available_state with True for F6:50:7C:B2:33:5E
2024-09-06 13:38:06.365 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Finished HomeKit device update: F6:50:7C:B2:33:5E
2024-09-06 13:38:06.436 DEBUG (MainThread) [homeassistant.components.homekit_controller.connection] Starting HomeKit device update: 8D:53:BC:1A:59:6D
2024-09-06 13:38:06.436 DEBUG (MainThread) [aiohomekit.controller.coap.connection] ENCRYPT counter=45
2024-09-06 13:38:06.476 DEBUG (MainThread) [aiohomekit.controller.coap.connection] DECRYPT counter=45
2024-09-06 13:38:06.476 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x00, Status=Success, Len=6
2024-09-06 13:38:06.476 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x01, Status=Success, Len=4
2024-09-06 13:38:06.476 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x02, Status=Success, Len=6
2024-09-06 13:38:06.476 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x03, Status=Success, Len=6
2024-09-06 13:38:06.476 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x04, Status=Success, Len=3
2024-09-06 13:38:06.476 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x05, Status=Success, Len=4
2024-09-06 13:38:06.476 DEBUG (MainThread) [aiohomekit.controller.coap.pdu] Got PDU Control=0x02, TID=0x06, Status=Success, Len=6
2024-09-06 13:38:06.476 DEBUG (MainThread) [aiohomekit.protocol.tlv] receiving [
  1 (Identifier): (4 bytes/<class 'bytearray'>) 0x00008743

Additional information

  1. I reinstalled everything many times (meaning Home Assistant)
  2. I reinstalled the Thermostat (MYSA v1 et v2)
  3. They are showing in home assistant and I can control them UNTIL THEY REMAIN ON
  4. If I changed it to OFF, from this point forward I'm loosing control of it. . I still can see the temperature, humidity
  5. it is impossible from HOME ASSISTant to turn in ON 5.1 I can turn it on from the APP
  6. Back to point 3 where I'm having access until they are remaining ON.
MarcMTLDK commented 1 month ago

home-assistant.log home-assistant-2.log

home-assistant[bot] commented 1 month ago

Hey there @jc2k, @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit_controller) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `homekit_controller` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign homekit_controller` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


homekit_controller documentation homekit_controller source (message by IssueLinks)