Home Assistant release with the issue: 0.92.0
Last working Home Assistant release (if known):0.91
Operating environment: Docker
hi all,
since the update to 0.91 (even updating to 0.92 haven't fixed it) i recognized some strange behavior within the homekit app when changing the color of my yeelight and hue led stripes. color changes to the chosen color and immediately turns back to white. changing color in the web front or HA iOS app is no problem and is working. hue bridge is implemented with the integration feature and yeelight is being auto discovered.
in the log i got following error:
Unable to update bulb status: {‘code’: -1, ‘message’: ‘client quota exceeded’}
any idea, please!?
This repository is for issues relating to Home Assistant Companion for iOS, not general iOS issues.
Hey there @Jc2k, mind taking a look at this issue as its been labeled with a integration (homekit_controller) you are listed as a codeowner for? Thanks!
_This is a automatic comment generated by codeowners-mention to help ensure issues and pull requests are seen by the right people._
This sounds like an issue with using iOS HomeKit to control Home Assistant rather than with a problem using Home Assistant to control HomeKit devices - I don't think it should be tagged homekit_controller @awarecan
The yeelight error in partciular sounds a lot like this and is probably a side effect rather than cause of the bug (something is triggering lots of API calls and hitting a rate limit in the bulb?).
Hey there @cdce8p, mind taking a look at this issue as its been labeled with a integration (homekit) you are listed as a codeowner for? Thanks!
_This is a automatic comment generated by codeowners-mention to help ensure issues and pull requests are seen by the right people._
Is the label correct now?
I think so, ta.
by the way, I can change and set color temperature without any problems. So it seems that just setting the color is broken!?
@dave-castle Can you add the following section to your config, test it again and then past the log here?
logger:
default: info
logs:
homeassistant.components.homekit: debug
pyhap: debug
Unable to update bulb status: {‘code’: -1, ‘message’: ‘client quota exceeded’}
Is this related to the yeelight?
Unable to update bulb status: {‘code’: -1, ‘message’: ‘client quota exceeded’}
Is this related to the
yeelight?
yes, this is related to yeelight, but for some reasons this message is currently not appearing.
Which part of the log you want to have, as it is to big to paste in here
@dave-castle If that's to long, use this instead:
logger:
default: warning # info changed to warning
logs:
homeassistant.components.homekit: debug
pyhap: debug
@cdce8p i am sorry, but it's still too long, anything special you're looking for?
Try stopping HA, deleting the log file and restart HA.
Reproduce the error and take a look at the log.
It should be smaller now. If still to big, take a look at the timestamps and only include the lines after you triggered the issue.
@cdce8p
this is the log for the hue LED stripe:
2019-05-03 11:12:51 DEBUG (Thread-9) [pyhap.hap_server] Request PUT from address '('192.168.178.41', 49775)' for path '/characteristics'.
2019-05-03 11:12:51 DEBUG (Thread-9) [pyhap.hap_server] Set characteristics content: {'characteristics': [{'aid': 298582908, 'iid': 9, 'value': 0}]}
2019-05-03 11:12:51 DEBUG (Thread-9) [pyhap.characteristic] client_update_value: On to 0
2019-05-03 11:12:51 DEBUG (Thread-9) [homeassistant.components.homekit.type_lights] light.led: Set state to 0
2019-05-03 11:12:51 DEBUG (Thread-4) [pyhap.accessory_driver] Send event: topic(298582908.9), data(b'{"characteristics": [{"aid": 298582908, "iid": 9, "value": 0}]}')
2019-05-03 11:12:51 INFO (Thread-9) [pyhap.hap_server] 192.168.178.41 - "PUT /characteristics HTTP/1.1" 204 -
2019-05-03 11:12:51 DEBUG (Thread-4) [pyhap.accessory_driver] Sending event to client: ('192.168.178.41', 49775)
2019-05-03 11:12:51 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state light.led=off; min_mireds=153, max_mireds=500, effect_list=['colorloop', 'random'], friendly_name=LED Schrank, supported_features=63 @2019-05-03T11:12:51.780478+02:00>
2019-05-03 11:12:53 DEBUG (Thread-9) [pyhap.hap_server] Request PUT from address '('192.168.178.41', 49775)' for path '/characteristics'.
2019-05-03 11:12:53 DEBUG (Thread-9) [pyhap.hap_server] Set characteristics content: {'characteristics': [{'aid': 298582908, 'iid': 9, 'value': 1}]}
2019-05-03 11:12:53 DEBUG (Thread-9) [pyhap.characteristic] client_update_value: On to 1
2019-05-03 11:12:53 DEBUG (Thread-9) [homeassistant.components.homekit.type_lights] light.led: Set state to 1
2019-05-03 11:12:53 DEBUG (Thread-4) [pyhap.accessory_driver] Send event: topic(298582908.9), data(b'{"characteristics": [{"aid": 298582908, "iid": 9, "value": 1}]}')
2019-05-03 11:12:53 INFO (Thread-9) [pyhap.hap_server] 192.168.178.41 - "PUT /characteristics HTTP/1.1" 204 -
2019-05-03 11:12:53 DEBUG (Thread-4) [pyhap.accessory_driver] Sending event to client: ('192.168.178.41', 49775)
2019-05-03 11:12:53 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state light.led=on; min_mireds=153, max_mireds=500, effect_list=['colorloop', 'random'], brightness=254, color_temp=153, effect=none, friendly_name=LED Schrank, supported_features=63 @2019-05-03T11:12:53.165784+02:00>
2019-05-03 11:12:56 DEBUG (Thread-9) [pyhap.hap_server] Request PUT from address '('192.168.178.41', 49775)' for path '/characteristics'.
2019-05-03 11:12:56 DEBUG (Thread-9) [pyhap.hap_server] Set characteristics content: {'characteristics': [{'aid': 298582908, 'iid': 12, 'value': 273}, {'aid': 298582908, 'iid': 13, 'value': 100}]}
2019-05-03 11:12:56 DEBUG (Thread-9) [pyhap.characteristic] client_update_value: Hue to 273
2019-05-03 11:12:56 DEBUG (Thread-9) [homeassistant.components.homekit.type_lights] light.led: Set hue to 273
2019-05-03 11:12:56 DEBUG (Thread-4) [pyhap.accessory_driver] Send event: topic(298582908.12), data(b'{"characteristics": [{"aid": 298582908, "iid": 12, "value": 273}]}')
2019-05-03 11:12:56 DEBUG (Thread-9) [pyhap.characteristic] client_update_value: Saturation to 100
2019-05-03 11:12:56 DEBUG (Thread-4) [pyhap.accessory_driver] Sending event to client: ('192.168.178.41', 49775)
2019-05-03 11:12:56 DEBUG (Thread-9) [homeassistant.components.homekit.type_lights] light.led: Set saturation to 100
2019-05-03 11:12:56 DEBUG (Thread-4) [pyhap.accessory_driver] Send event: topic(298582908.13), data(b'{"characteristics": [{"aid": 298582908, "iid": 13, "value": 100}]}')
2019-05-03 11:12:56 DEBUG (Thread-9) [homeassistant.components.homekit.type_lights] light.led: Set hs_color to (273, 100)
2019-05-03 11:12:56 DEBUG (Thread-4) [pyhap.accessory_driver] Sending event to client: ('192.168.178.41', 49775)
2019-05-03 11:12:56 INFO (Thread-9) [pyhap.hap_server] 192.168.178.41 - "PUT /characteristics HTTP/1.1" 204 -
2019-05-03 11:12:56 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state light.led=on; min_mireds=153, max_mireds=500, effect_list=['colorloop', 'random'], brightness=254, hs_color=(271.282, 91.765), rgb_color=(142, 20, 255), xy_color=(0.235, 0.089), effect=none, friendly_name=LED Schrank, supported_features=63 @2019-05-03T11:12:53.165784+02:00>
2019-05-03 11:12:56 DEBUG (Thread-9) [pyhap.hap_server] Request PUT from address '('192.168.178.41', 49775)' for path '/characteristics'.
2019-05-03 11:12:56 DEBUG (Thread-9) [pyhap.hap_server] Set characteristics content: {'characteristics': [{'aid': 298582908, 'iid': 11, 'value': 153}]}
2019-05-03 11:12:56 DEBUG (Thread-9) [pyhap.characteristic] client_update_value: ColorTemperature to 153
2019-05-03 11:12:56 DEBUG (Thread-9) [homeassistant.components.homekit.type_lights] light.led: Set color temp to 153
2019-05-03 11:12:56 DEBUG (Thread-4) [pyhap.accessory_driver] Send event: topic(298582908.11), data(b'{"characteristics": [{"aid": 298582908, "iid": 11, "value": 153}]}')
2019-05-03 11:12:56 INFO (Thread-9) [pyhap.hap_server] 192.168.178.41 - "PUT /characteristics HTTP/1.1" 204 -
2019-05-03 11:12:56 DEBUG (Thread-4) [pyhap.accessory_driver] Sending event to client: ('192.168.178.41', 49775)
2019-05-03 11:12:56 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state light.led=on; min_mireds=153, max_mireds=500, effect_list=['colorloop', 'random'], brightness=254, color_temp=153, effect=none, friendly_name=LED Schrank, supported_features=63 @2019-05-03T11:12:53.165784+02:00>
Hey there @rytilahti, @zewelor, mind taking a look at this issue as its been labeled with a integration (yeelight) you are listed as a codeowner for? Thanks!
_This is a automatic comment generated by codeowners-mention to help ensure issues and pull requests are seen by the right people._
@dave-castle Thanks for the log. It helped a lot. This particular issue seems to be with the yeelight component. When setting a color in HomeKit, it will always transmit the hue, saturation and color_temperature values. The issue here arises, since the yeelight component forgets the previously set hue, saturation values and only interprets the new color_temperature ones.
@rytilahti and @zewelor I believe the default implementation is to save the hs values and just write the new color_temp ones. At least that's how the demo component works. I've attached a short log to indicate the problem.
# Service call: `turn_on` with `{ATTR_HS_COLOR: (273, 100)}`
2019-05-03 11:12:56 DEBUG (MainThread) New_state: <state light.led=on; min_mireds=153,
max_mireds=500, effect_list=['colorloop', 'random'], brightness=254,
hs_color=(271.282, 91.765), rgb_color=(142, 20, 255), xy_color=(0.235, 0.089),
effect=none, friendly_name=LED Schrank, supported_features=63
@2019-05-03T11:12:53.165784+02:00>
# Service call: `turn_on` with `{ATTR_COLOR_TEMP: 153}`
2019-05-03 11:12:56 DEBUG (MainThread) New_state: <state light.led=on; min_mireds=153,
max_mireds=500, effect_list=['colorloop', 'random'], brightness=254,
color_temp=153, effect=none, friendly_name=LED Schrank, supported_features=63
@2019-05-03T11:12:53.165784+02:00>
From what I can see, HSV and color_temp setting are different setting modes on yeelight. You can set HSV value or color_temperature. From yeelight API docs ( https://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf )
NOTE: HUE and SAT should be used in combination. CT mode, RGB mode and HSV mode
are mutually exclusively.
it was running trouble-free previously, so I am a little bit confused that it stopped working in 0.92
It was working on 0.91 and broke on 0.92 ?
Yeelight and Hue LED stripes were working without any issues before 0.92. Very strange is that I also got a color bulb from IKEA which is integrated via the Hue hub and is running without problems. So it has to be trouble from the stripes 🤷♂️
Are you making any progress in this case?
I have the same issue with my Hue lights. When I try to change the color of one of my lights in HomeKit it will immediately set the color temperature of the light.
Here is a log of what happens when I try to set the color:
2019-05-27 22:10:47 DEBUG (Thread-35) [pyhap.hap_server] Request PUT from address '('192.168.1.29', 61644)' for path '/characteristics'.
2019-05-27 22:10:47 DEBUG (Thread-35) [pyhap.hap_server] Set characteristics content: {'characteristics': [{'aid': 1025640163, 'iid': 12, 'value': 255}, {'aid': 1025640163, 'iid': 13, 'value': 68}]}
2019-05-27 22:10:47 DEBUG (Thread-35) [pyhap.characteristic] client_update_value: Hue to 255
2019-05-27 22:10:47 DEBUG (Thread-35) [homeassistant.components.homekit.type_lights] light.hobbyhyllan: Set hue to 255
2019-05-27 22:10:47 DEBUG (Thread-22) [pyhap.accessory_driver] Send event: topic(1025640163.12), data(b'{"characteristics": [{"aid": 1025640163, "iid": 12, "value": 255}]}')
2019-05-27 22:10:47 DEBUG (Thread-35) [pyhap.characteristic] client_update_value: Saturation to 68
2019-05-27 22:10:47 DEBUG (Thread-22) [pyhap.accessory_driver] Sending event to client: ('192.168.1.29', 61644)
2019-05-27 22:10:47 DEBUG (Thread-35) [homeassistant.components.homekit.type_lights] light.hobbyhyllan: Set saturation to 68
2019-05-27 22:10:47 DEBUG (Thread-22) [pyhap.accessory_driver] Send event: topic(1025640163.13), data(b'{"characteristics": [{"aid": 1025640163, "iid": 13, "value": 68}]}')
2019-05-27 22:10:47 DEBUG (Thread-35) [homeassistant.components.homekit.type_lights] light.hobbyhyllan: Set hs_color to (255, 68)
2019-05-27 22:10:47 INFO (Thread-35) [pyhap.hap_server] 192.168.1.29 - "PUT /characteristics HTTP/1.1" 204 -
2019-05-27 22:10:47 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state light.hobbyhyllan=on; min_mireds=153, max_mireds=500, effect_list=['colorloop'], brightness=254, hs_color=(254.824, 66.667), rgb_color=(127, 84, 255), xy_color=(0.215, 0.113), is_deconz_group=False, friendly_name=Hobbyhyllan, supported_features=63 @ 2019-05-27T22:09:57.567873+02:00>
2019-05-27 22:10:48 DEBUG (Thread-35) [pyhap.hap_server] Request PUT from address '('192.168.1.29', 61644)' for path '/characteristics'.
2019-05-27 22:10:48 DEBUG (Thread-35) [pyhap.hap_server] Set characteristics content: {'characteristics': [{'aid': 1025640163, 'iid': 11, 'value': 153}]}
2019-05-27 22:10:48 DEBUG (Thread-35) [pyhap.characteristic] client_update_value: ColorTemperature to 153
2019-05-27 22:10:48 DEBUG (Thread-35) [homeassistant.components.homekit.type_lights] light.hobbyhyllan: Set color temp to 153
2019-05-27 22:10:48 INFO (Thread-35) [pyhap.hap_server] 192.168.1.29 - "PUT /characteristics HTTP/1.1" 204 -
2019-05-27 22:10:48 DEBUG (Thread-22) [pyhap.accessory_driver] Send event: topic(1025640163.11), data(b'{"characteristics": [{"aid": 1025640163, "iid": 11, "value": 153}]}')
2019-05-27 22:10:48 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state light.hobbyhyllan=on; min_mireds=153, max_mireds=500, effect_list=['colorloop'], brightness=254, color_temp=153, is_deconz_group=False, friendly_name=Hobbyhyllan, supported_features=63 @ 2019-05-27T22:09:57.567873+02:00>
2019-05-27 22:10:48 DEBUG (Thread-22) [pyhap.accessory_driver] Sending event to client: ('192.168.1.29', 61644)
Good to know I am not alone 😂
After updating to 0.94.3 it works when I changed color with Siri but with the Home app same issue as before...
I was happy to find this thread but I am sad that there is still no solution yet after upgrading to 0.95.4 it still doesn't work. I am having the same problem as described above. I was not using my lights in the last couple of months but I can confirm that everything was working in 0.92 and at some point it broke. However I am experiencing the issue a little bit differently.
My Yeelight LED strip works without problem either from Home Assistant and HomeKit, so I only have problem with Philips Hue lights.
My Philips Hue strip, Spot lights, Bulbs, don't change color. Actually they pick up the HomeKit color wheel's color for a second and then immediately change to white.
If I set the hue light's color from HA web front it works. If I ask Siri to set the color it works. But not with manual color picking from HomeKit.
If I expose the Hue bridge hub directly to HomeKit without HA, so the HomeKit is directly communicating to the Hue hub then all the Hue lights are working well.
So it must be some problem when HA's HomeKit component is telling to HA to change color.
I also have this issue.
I have the same issue on Hassio 0.98.1
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
I can say that I still have issues with 0.102.3. will record a short video tomorrow.
Seems to be fixed for me.
I can say that I still have issues with 0.102.3. will record a short video tomorrow.
Forgot that D:
The color change works. What doesn't work are the preset colors. When I click on one of the presets the color switches to the warm white.
I'm on 0.103.0 and getting the same issue as @Tiippex with my hue light strips.
Most helpful comment
It was working on 0.91 and broke on 0.92 ?