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.75k stars 30.86k forks source link

Light off while brightness below 35 on a GLEDOPTO GL-C-008 led controller @ ZHA #42355

Closed froggyfly closed 3 years ago

froggyfly commented 4 years ago

The problem

Hi, the GLEDOPTO GL-C-008 led controller connected with ZHA will turn off while the brightness below 35. I have two of these, they are same. Using the led strip to another type of controller, it can be on at brightness 1%.

Environment

Problem-relevant configuration.yaml

Traceback/Error logs

2020-10-25 16:28:17 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=input_select, service=select_option, service_data=entity_id=['input_select.fas_power'], option=关闭新风> 2020-10-25 16:28:17 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.input_chu_shi_guan, old_state=<state automation.input_chu_shi_guan=on; last_triggered=2020-10-25T16:28:16.995484+00:00, mode=single, current=1, id=1597048007455, friendly_name=input_除湿关 @ 2020-10-25T16:09:02.321460+00:00>, new_state=<state automation.input_chu_shi_guan=on; last_triggered=2020-10-25T16:28:16.995484+00:00, mode=single, current=0, id=1597048007455, friendly_name=input_除湿关 @ 2020-10-25T16:09:02.321460+00:00>> 2020-10-25 16:28:17 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=input_select, service=select_option, service_data=entity_id=input_select.fas_speed, option=III> 2020-10-25 16:28:17 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=input_select, service=select_option, service_data=entity_id=input_select.fas_mode, option=除湿> 2020-10-25 16:28:17 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.ztc1_power_d0bae46406e8, old_state=<state sensor.ztc1_power_d0bae46406e8=11.0; unit_of_measurement=W, friendly_name=客厅插座功率, icon=mdi:gauge @ 2020-10-25T16:28:07.827176+00:00>, new_state=<state sensor.ztc1_power_d0bae46406e8=10.8; unit_of_measurement=W, friendly_name=客厅插座功率, icon=mdi:gauge @ 2020-10-25T16:28:17.803938+00:00>> 2020-10-25 16:28:19 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2020-10-25 16:28:19 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 241 (readCounters) received: b'9900860022000e00100004000000000012000f003b001c000f000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000850100000000000000000000' 2020-10-25 16:28:19 DEBUG (MainThread) [bellows.zigbee.application] EZSP Counters: COUNTER_MAC_RX_BROADCAST: 153,COUNTER_MAC_TX_BROADCAST: 134,COUNTER_MAC_RX_UNICAST: 34,COUNTER_MAC_TX_UNICAST_SUCCESS: 14,COUNTER_MAC_TX_UNICAST_RETRY: 16,COUNTER_MAC_TX_UNICAST_FAILED: 4,COUNTER_APS_DATA_RX_BROADCAST: 0,COUNTER_APS_DATA_TX_BROADCAST: 0,COUNTER_APS_DATA_RX_UNICAST: 18,COUNTER_APS_DATA_TX_UNICAST_SUCCESS: 15,COUNTER_APS_DATA_TX_UNICAST_RETRY: 59,COUNTER_APS_DATA_TX_UNICAST_FAILED: 28,COUNTER_ROUTE_DISCOVERY_INITIATED: 15,COUNTER_NEIGHBOR_ADDED: 2,COUNTER_NEIGHBOR_REMOVED: 0,COUNTER_NEIGHBOR_STALE: 0,COUNTER_JOIN_INDICATION: 0,COUNTER_CHILD_REMOVED: 0,COUNTER_ASH_OVERFLOW_ERROR: 0,COUNTER_ASH_FRAMING_ERROR: 0,COUNTER_ASH_OVERRUN_ERROR: 0,COUNTER_NWK_FRAME_COUNTER_FAILURE: 0,COUNTER_APS_FRAME_COUNTER_FAILURE: 0,COUNTER_UTILITY: 0,COUNTER_APS_LINK_KEY_NOT_AUTHORIZED: 0,COUNTER_NWK_DECRYPTION_FAILURE: 0,COUNTER_APS_DECRYPTION_FAILURE: 0,COUNTER_ALLOCATE_PACKET_BUFFER_FAILURE: 0,COUNTER_RELAYED_UNICAST: 0,COUNTER_PHY_TO_MAC_QUEUE_LIMIT_REACHED: 0,COUNTER_PACKET_VALIDATE_LIBRARY_DROPPED_COUNT: 0,COUNTER_TYPE_NWK_RETRY_OVERFLOW: 0,COUNTER_PHY_CCA_FAIL_COUNT: 0,COUNTER_BROADCAST_TABLE_FULL: 0,COUNTER_PTA_LO_PRI_REQUESTED: 0,COUNTER_PTA_HI_PRI_REQUESTED: 389,COUNTER_PTA_LO_PRI_DENIED: 0,COUNTER_PTA_HI_PRI_DENIED: 0,COUNTER_PTA_LO_PRI_TX_ABORTED: 0,COUNTER_PTA_HI_PRI_TX_ABORTED: 0,COUNTER_ADDRESS_CONFLICT_SENT: 0 2020-10-25 16:28:24 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=light, service=turn_on, service_data=entity_id=light.gledopto_gl_c_008_299f1421_level_light_color_on_off, brightness=15> 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x9862, EmberApsFrame(profileId=260, clusterId=8, sourceEndpoint=11, destinationEndpoint=11, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=87), 88, b'\x01W\x04\x0f\x01\x00') 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 52 (sendUnicast) received: b'00a5' 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 63 (messageSentHandler) received: b'006298040108000b0b40010000a5580000' 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 39010, EmberApsFrame(profileId=260, clusterId=8, sourceEndpoint=11, destinationEndpoint=11, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=165), 88, <EmberStatus.SUCCESS: 0>, b''] 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040108000b0b000100000494c16298ffff0518570b0400' 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=8, sourceEndpoint=11, destinationEndpoint=11, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=4), 148, -63, 0x9862, 255, 255, b'\x18W\x0b\x04\x00'] 2020-10-25 16:28:24 DEBUG (MainThread) [zigpy.zcl] [0x9862:11:0x0008] ZCL deserialize: <ZCLHeader frame_control= manufacturer=None tsn=87 command_id=Command.Default_Response> 2020-10-25 16:28:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9862:11:0x0008]: executed 'move_to_level_with_on_off' command with args: '(15, 1)' kwargs: '{}' result: [4, <Status.SUCCESS: 0>] 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x9862, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=11, destinationEndpoint=11, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=89), 90, b'\x01Y\x01') 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 52 (sendUnicast) received: b'00a6' 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 63 (messageSentHandler) received: b'006298040106000b0b40010000a65a0000' 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 39010, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=11, destinationEndpoint=11, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=166), 90, <EmberStatus.SUCCESS: 0>, b''] 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040106000b0b000100000594c16298ffff0518590b0100' 2020-10-25 16:28:24 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=11, destinationEndpoint=11, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=5), 148, -63, 0x9862, 255, 255, b'\x18Y\x0b\x01\x00'] 2020-10-25 16:28:24 DEBUG (MainThread) [zigpy.zcl] [0x9862:11:0x0006] ZCL deserialize: <ZCLHeader frame_control= manufacturer=None tsn=89 command_id=Command.Default_Response> 2020-10-25 16:28:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9862:11:0x0006]: executed 'on' command with args: '()' kwargs: '{}' result: [1, <Status.SUCCESS: 0>] 2020-10-25 16:28:24 DEBUG (MainThread) [homeassistant.components.zha.entity] light.gledopto_gl_c_008_299f1421_level_light_color_on_off: turned on: {'move_to_level_with_on_off': [4, <Status.SUCCESS: 0>], 'on_off': [1, <Status.SUCCESS: 0>]} 2020-10-25 16:28:24 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.gledopto_gl_c_008_299f1421_level_light_color_on_off, old_state=<state light.gledopto_gl_c_008_299f1421_level_light_color_on_off=on; min_mireds=155, max_mireds=495, effect_list=['colorloop'], brightness=7, hs_color=(0, 0), rgb_color=(255, 255, 255), xy_color=(0.323, 0.329), off_brightness=None, friendly_name=书房灯带控制, supported_features=63 @ 2020-10-25T16:28:02.109022+00:00>, new_state=<state light.gledopto_gl_c_008_299f1421_level_light_color_on_off=on; min_mireds=155, max_mireds=495, effect_list=['colorloop'], brightness=15, hs_color=(0, 0), rgb_color=(255, 255, 255), xy_color=(0.323, 0.329), off_brightness=None, friendly_name=书房灯带控制, supported_features=63 @ 2020-10-25T16:28:02.109022+00:00>> 2020-10-25 16:28:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.ztc1_time_d0bae46406e8, old_state=<state sensor.ztc1_time_d0bae46406e8=49天6小时49分钟; friendly_name=客厅插座运行时间, icon=mdi:gauge @ 2020-10-25T16:27:27.909421+00:00>, new_state=<state sensor.ztc1_time_d0bae46406e8=49天6小时50分钟; friendly_name=客厅插座运行时间, icon=mdi:gauge @ 2020-10-25T16:28:27.794954+00:00>> 2020-10-25 16:28:29 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2020-10-25 16:28:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 241 (readCounters) received: b'9a008700260010001100040000000000140011003b001c000f0002000000000000000000000000000000000000000000000000000000000000000000000000000000000000008e0100000000000000000000' 2020-10-25 16:28:29 DEBUG (MainThread) [bellows.zigbee.application] EZSP Counters: COUNTER_MAC_RX_BROADCAST: 154,COUNTER_MAC_TX_BROADCAST: 135,COUNTER_MAC_RX_UNICAST: 38,COUNTER_MAC_TX_UNICAST_SUCCESS: 16,COUNTER_MAC_TX_UNICAST_RETRY: 17,COUNTER_MAC_TX_UNICAST_FAILED: 4,COUNTER_APS_DATA_RX_BROADCAST: 0,COUNTER_APS_DATA_TX_BROADCAST: 0,COUNTER_APS_DATA_RX_UNICAST: 20,COUNTER_APS_DATA_TX_UNICAST_SUCCESS: 17,COUNTER_APS_DATA_TX_UNICAST_RETRY: 59,COUNTER_APS_DATA_TX_UNICAST_FAILED: 28,COUNTER_ROUTE_DISCOVERY_INITIATED: 15,COUNTER_NEIGHBOR_ADDED: 2,COUNTER_NEIGHBOR_REMOVED: 0,COUNTER_NEIGHBOR_STALE: 0,COUNTER_JOIN_INDICATION: 0,COUNTER_CHILD_REMOVED: 0,COUNTER_ASH_OVERFLOW_ERROR: 0,COUNTER_ASH_FRAMING_ERROR: 0,COUNTER_ASH_OVERRUN_ERROR: 0,COUNTER_NWK_FRAME_COUNTER_FAILURE: 0,COUNTER_APS_FRAME_COUNTER_FAILURE: 0,COUNTER_UTILITY: 0,COUNTER_APS_LINK_KEY_NOT_AUTHORIZED: 0,COUNTER_NWK_DECRYPTION_FAILURE: 0,COUNTER_APS_DECRYPTION_FAILURE: 0,COUNTER_ALLOCATE_PACKET_BUFFER_FAILURE: 0,COUNTER_RELAYED_UNICAST: 0,COUNTER_PHY_TO_MAC_QUEUE_LIMIT_REACHED: 0,COUNTER_PACKET_VALIDATE_LIBRARY_DROPPED_COUNT: 0,COUNTER_TYPE_NWK_RETRY_OVERFLOW: 0,COUNTER_PHY_CCA_FAIL_COUNT: 0,COUNTER_BROADCAST_TABLE_FULL: 0,COUNTER_PTA_LO_PRI_REQUESTED: 0,COUNTER_PTA_HI_PRI_REQUESTED: 398,COUNTER_PTA_LO_PRI_DENIED: 0,COUNTER_PTA_HI_PRI_DENIED: 0,COUNTER_PTA_LO_PRI_TX_ABORTED: 0,COUNTER_PTA_HI_PRI_TX_ABORTED: 0,COUNTER_ADDRESS_CONFLICT_SENT: 0 2020-10-25 16:28:39 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2020-10-25 16:28:39 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 241 (readCounters) received: b'9b008800260010001100040000000000140011003b001c000f000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000900100000000000000000000' 2020-10-25 16:28:39 DEBUG (MainThread) [bellows.zigbee.application] EZSP Counters: COUNTER_MAC_RX_BROADCAST: 155,COUNTER_MAC_TX_BROADCAST: 136,COUNTER_MAC_RX_UNICAST: 38,COUNTER_MAC_TX_UNICAST_SUCCESS: 16,COUNTER_MAC_TX_UNICAST_RETRY: 17,COUNTER_MAC_TX_UNICAST_FAILED: 4,COUNTER_APS_DATA_RX_BROADCAST: 0,COUNTER_APS_DATA_TX_BROADCAST: 0,COUNTER_APS_DATA_RX_UNICAST: 20,COUNTER_APS_DATA_TX_UNICAST_SUCCESS: 17,COUNTER_APS_DATA_TX_UNICAST_RETRY: 59,COUNTER_APS_DATA_TX_UNICAST_FAILED: 28,COUNTER_ROUTE_DISCOVERY_INITIATED: 15,COUNTER_NEIGHBOR_ADDED: 2,COUNTER_NEIGHBOR_REMOVED: 0,COUNTER_NEIGHBOR_STALE: 0,COUNTER_JOIN_INDICATION: 0,COUNTER_CHILD_REMOVED: 0,COUNTER_ASH_OVERFLOW_ERROR: 0,COUNTER_ASH_FRAMING_ERROR: 0,COUNTER_ASH_OVERRUN_ERROR: 0,COUNTER_NWK_FRAME_COUNTER_FAILURE: 0,COUNTER_APS_FRAME_COUNTER_FAILURE: 0,COUNTER_UTILITY: 0,COUNTER_APS_LINK_KEY_NOT_AUTHORIZED: 0,COUNTER_NWK_DECRYPTION_FAILURE: 0,COUNTER_APS_DECRYPTION_FAILURE: 0,COUNTER_ALLOCATE_PACKET_BUFFER_FAILURE: 0,COUNTER_RELAYED_UNICAST: 0,COUNTER_PHY_TO_MAC_QUEUE_LIMIT_REACHED: 0,COUNTER_PACKET_VALIDATE_LIBRARY_DROPPED_COUNT: 0,COUNTER_TYPE_NWK_RETRY_OVERFLOW: 0,COUNTER_PHY_CCA_FAIL_COUNT: 0,COUNTER_BROADCAST_TABLE_FULL: 0,COUNTER_PTA_LO_PRI_REQUESTED: 0,COUNTER_PTA_HI_PRI_REQUESTED: 400,COUNTER_PTA_LO_PRI_DENIED: 0,COUNTER_PTA_HI_PRI_DENIED: 0,COUNTER_PTA_LO_PRI_TX_ABORTED: 0,COUNTER_PTA_HI_PRI_TX_ABORTED: 0,COUNTER_ADDRESS_CONFLICT_SENT: 0

Additional information

Zigbee signature: { "node_descriptor": "NodeDescriptor(byte1=1, byte2=64, mac_capability_flags=142, manufacturer_code=0, maximum_buffer_size=80, maximum_incoming_transfer_size=160, server_mask=0, maximum_outgoing_transfer_size=160, descriptor_capability_field=0)", "endpoints": { "11": { "profile_id": 49246, "device_type": "0x0210", "in_clusters": [ "0x0000", "0x0003", "0x0004", "0x0005", "0x0006", "0x0008", "0x0300" ], "out_clusters": [] } }, "manufacturer": "GLEDOPTO", "model": "GL-C-008", "class": "zhaquirks.gledopto.soposhgu10.SoposhGU10" }

probot-home-assistant[bot] commented 4 years ago

Hey there @dmulcahey, @adminiuga, mind taking a look at this issue as its been labeled with an integration (zha) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

Adminiuga commented 4 years ago

This is not a zha problem. Zha just tells it to move to level 15, if the controller turns the strip off, then it is the controller problem. Same as with the bulbs connected to dimming outlets, different bulbs will turn off at different levels.

github-actions[bot] commented 3 years ago

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 has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.