'KeyError: None' when running main.py

Recently I was getting an error (the could not encode error) that was fixed with the latest release of PentestGPT. I am now getting an error that says this when I run it with the command (python3 main.py --reasoning_model=gpt-4 --useAPI=False):
`python3 main.py --reasoning_model=gpt-4 --useAPI=False

ChatGPT Sessions Initialized.
Please describe the penetration testing task in one line, including the target IP, task type, etc.

i want to test <IP_ADDRESS>
Traceback (most recent call last):
File "/Users/gold/Documents/Programs/PentestGPT/main.py", line 25, in
pentestGPTHandler.main()
File "/Users/gold/Documents/Programs/PentestGPT/utils/pentest_gpt.py", line 466, in main
_response = self.reasoning_handler(prefixed_init_description)
File "/Users/gold/Documents/Programs/PentestGPT/utils/pentest_gpt.py", line 128, in reasoning_handler
response = self.chatGPT4Agent.send_message(
File "/Users/gold/Documents/Programs/PentestGPT/utils/chatgpt_api.py", line 92, in send_message
conversation = self.conversation_dict[conversation_id]
KeyError: None`

Again, this seems to be an error that may relate to the cookie and the ability for the program to send and receive messages from ChatGPT. I do have a ChatGPT plus so that is not the issue (using the cookie for GPT-4). I will check later if it is working on my Windows device still.

I raised a new issue by mistake, moving text here and closing the issue. I have the same problem and I have plus. Here is my description:
Trying to test the new changes to the tool, I run into the following error as soon as I  tried. As you can see test_connection seems to work:
python3 test_connection.py
#### Test connection for chatgpt cookie
1. You're connected with ChatGPT Plus cookie.
To start PentestGPT, please use <python3 main.py --reasoning_model=gpt-4 --useAPI=False>
#### Test connection for OpenAI api (GPT-4)
The OpenAI API key is not properly configured. Please follow README to update OpenAI API key in config/chatgpt_config.py
#### Test connection for OpenAI api (GPT-3.5)
The OpenAI API key is not properly configured. Please follow README to update OpenAI API key in config/chatgpt_config.py

but main doesn't:
python3 main.py --reasoning_model=gpt-4 --useAPI=False
- ChatGPT Sessions Initialized.
Please describe the penetration testing task in one line, including the target IP, task type, e
> test localhost <IP_ADDRESS>
Traceback (most recent call last):
  File "/media/psf/Documents/GitHub/PentestGPT/main.py", line 25, in <module>
    pentestGPTHandler.main()
  File "/media/psf/Documents/GitHub/PentestGPT/utils/pentest_gpt.py", line 466, in main
    _response = self.reasoning_handler(prefixed_init_description)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/psf/Documents/GitHub/PentestGPT/utils/pentest_gpt.py", line 128, in reasoning_handler
    response = self.chatGPT4Agent.send_message(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/psf/Documents/GitHub/PentestGPT/utils/chatgpt_api.py", line 92, in send_message
    conversation = self.conversation_dict[conversation_id]
                   ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: None

This problem should be fixed. You may refer to the latest documentation. Note that there is a change in the tool usage. Now --useAPI does not require input params. If you use OpenAI API, you can do it with python3 main.py --reasoning_model=gpt-4 --useAPI. Otherwise, just use python3 main.py --reasoning_model=gpt-4.


An error occurs in the project while switching the editor mode in code and text: expandAll() undefined

I added emit('mode-change', mode) to expose the editor mode for some component then send mode to props to check the editor is expand or not then the error was fixed.

Thank You @solarcellsky


Use imports instead of fully qualified

coverage: 87.31%. remained the same
when pulling 8f55d3df6e0ed896b79df92c4ed0e6dc94f182ed on hazendaz:next
into f979843421516ffa18852f3d3559c6ea5cf7e049 on mybatis:master.


Indexed Meshes

Are they not supported? I use indexed meshes because it's faster applying transformations to them. The difficulty is that this library seems to require that each primitive is an instanced class.
Specifically, it's arranged like this.
template <typename Float, typename Index>
struct Mesh final {
  Eigen::Matrix<Float, 3, Eigen::Dynamic> vertices;
  Eigen::Matrix<Float, 3, Eigen::Dynamic> normals;
  Eigen::Matrix<Float, 2, Eigen::Dynamic> tex_coords;

  /* +3 vertices, +3 normals, +3 texture coordinates */
  Eigen::Matrix<Index, 9, Eigen::Dynamic> faces;
};

I don't think this is too uncommon, it's how libigl seems to handle meshes as well.

It does support indexed meshes. The intersection and traversal are vastly faster by not using an indexed representation and removing indirections. You could create a custom intersector that does indirections to look up the triangle but I strongly recommend against it, as the performance it is 20-30% if not more, depending on your layout.

Also, during construction, having a centers and bounding box for each primitive is necessary to have an acceptable performance at all. At each level of the BVH, the center and bounding box of every primitive will be re-evaluated, so in this case if this library were to do indirections and recompute centers and bounding boxes, construction algorithms would be several times slower.

I guess the hit on transforms is just inevitable then. Alright, thanks for the advice!


az afd rule create fails with valiation message

Describe the bug
I am creating a rule:
  az afd rule create --rule-name "RedirectToSPA" --order 1 \
    -g "$tcResGroup" --profile-name "$profName" --rule-set-name "$spaRuleset" \
    --match-variable UrlPath --operator RegEx --negate-condition true \
    --match-values "\\.(svg|js|css|png|jpg|jpeg|json|woff|woff2|ttf|html)" \
    --action-name "UrlRewrite" --source-pattern '/' --destination '/web-client/index.html' --preserve-unmatched-path 0 \
    --match-processing-behavior "Continue"

Related command
az afd rule create
Errors
(BadRequest) SourcePattern must always start with \'/\' and be a single line. The max length of Destination is 260.
or
(BadRequest) Destination must always start with \'/\' and be a single line. The max length of Destination is 260.
Issue script & Debug output
Parts of my bash script:
  az afd rule create --rule-name "RedirectToSPA" --order 1 \
    -g "$tcResGroup" --profile-name "$profName" --rule-set-name "$spaRuleset" \
    --match-variable UrlPath --operator RegEx --negate-condition true \
    --match-values "\\.(svg|js|css|png|jpg|jpeg|json|woff|woff2|ttf|html)" \
    --action-name "UrlRewrite" --source-pattern '/' --destination '/web-client/index.html' --preserve-unmatched-path 0 \
    --match-processing-behavior "Continue"

Debug output shows the issue:
cli.knack.cli: Command arguments: ['afd', 'rule', 'create', '--rule-name', 'RedirectToSPA', '--order', '1', '-g', 'cree-dev-toolchain-01', '--profile-name', 'cree-toolchain-dev', '--rule-set-name', 'SPArules', '--match-variable', 'UrlFileExtension', '--operator', 'RegEx', '--negate-condition', 'true', '--match-values', '\\\\.(svg|js|css|png|jpg|jpeg|json|woff|woff2|ttf|html)', '--action-name', 'UrlRewrite', '--source-pattern', 'C:/Program Files/Git/', '--destination', 'C:/Program Files/Git/web-client/index.html', '--preserve-unmatched-path', '0', '--match-processing-behavior', 'Continue', '--debug']

for some reason my parameters are expanded to a path, if they begin with a /.
Expected behavior
I expect the parameters to not be expanded into a path. I tried everything on my end to prohibit expansion (set -f, single quoting)
Environment Summary
$ az --version
azure-cli                         2.65.0
core                              2.65.0
telemetry                          1.1.0
Dependencies:
msal                              1.31.0
azure-mgmt-resource               23.1.1
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\utillity.azure\cliextensions'
Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb  6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response

Thank you for opening this issue, we will look into it.

@utillity
Hi I found that 2 issue opened by you provide parameters that is begun with C:/Program Files/Git while debugging, however the input seems normal. And I cannot reproduce this in my env.

Hi @utillity, the issue is related to the path mangling behavior in MinGW/MSYS: https://stackoverflow.com/questions/7250130/how-to-stop-mingw-and-msys-from-mangling-path-names-given-at-the-command-line
To prevent this behavior, you can set

MSYS_NO_PATHCONV=1


[Device Support Request] Lidl RGB Smart Bulb (Tuya TS0505A whitelabel RGBCCT controller)

Is your feature request related to a problem? Please describe.
I bought some Lidl RGB smart bulbs which appear to be built on the Tuya TS0505A RGBCCT controller. The only control that shows up when adding them is a single toggle labeled Level, light_color, on_off which toggles the lamp but doesn't allow any color, color temperature or brightness settings.
Describe the solution you'd like
I'd like for the lamp to be fully controllable with brightness, color, color temperature, etc.
Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x010d",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0008",
        "0x0300",
        "0x1000"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZ3000_dbou1ap4",
  "model": "TS0505A",
  "class": "zigpy.device.Device"
}

Pairing log:
New device 0xc3f2 (84:2e:14:ff:fe:22:d4:fe) joined the network
[0xc3f2] Scheduling initialization
Tries remaining: 3
[0xc3f2] Requesting 'Node Descriptor'
Tries remaining: 2
[0xc3f2] Extending timeout for 0x0f request
Device 0xc3f2 (84:2e:14:ff:fe:22:d4:fe) joined the network
[0xc3f2] Scheduling initialization
[0xc3f2] Canceling old initialize call
Tries remaining: 3
[0xc3f2] Requesting 'Node Descriptor'
Tries remaining: 2
[0xc3f2] Extending timeout for 0x11 request
Device 0xc3f2 (84:2e:14:ff:fe:22:d4:fe) joined the network
[0xc3f2] Scheduling initialization
[0xc3f2] Canceling old initialize call
Tries remaining: 3
[0xc3f2] Requesting 'Node Descriptor'
Tries remaining: 2
[0xc3f2] Extending timeout for 0x13 request
Device 0xc3f2 (84:2e:14:ff:fe:22:d4:fe) joined the network
[0xc3f2] Scheduling initialization
[0xc3f2] Canceling old initialize call
Tries remaining: 3
[0xc3f2] Requesting 'Node Descriptor'
Tries remaining: 2
[0xc3f2] Extending timeout for 0x15 request
Device 0xc3f2 (84:2e:14:ff:fe:22:d4:fe) joined the network
[0xc3f2] Scheduling initialization
[0xc3f2] Canceling old initialize call
Tries remaining: 3
[0xc3f2] Requesting 'Node Descriptor'
Tries remaining: 2
[0xc3f2] Extending timeout for 0x17 request
Device 0xc3f2 (84:2e:14:ff:fe:22:d4:fe) joined the network
[0xc3f2] Scheduling initialization
[0xc3f2] Canceling old initialize call
Tries remaining: 3
[0xc3f2] Requesting 'Node Descriptor'
Tries remaining: 2
[0xc3f2] Extending timeout for 0x19 request
Device 0xc3f2 (84:2e:14:ff:fe:22:d4:fe) joined the network
[0xc3f2] Scheduling initialization
[0xc3f2] Canceling old initialize call
Received frame on uninitialized device <Device model=None manuf=None nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=False> from ep 0 to ep 0, cluster 19: b'\x8e\xf2\xc3\xfe\xd4"\xfe\xff\x14.\x84\x8e'
[0xc3f2:zdo] ZDO request ZDOCmd.Device_annce: [0xC3F2, 84:2e:14:ff:fe:22:d4:fe, 142]
Tries remaining: 3
[0xc3f2] Requesting 'Node Descriptor'
Tries remaining: 2
[0xc3f2] Extending timeout for 0x1b request
Received frame on uninitialized device <Device model=None manuf=None nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=False> from ep 0 to ep 0, cluster 32770: b'\x1b\x00\xf2\xc3\x01@\x8e\x02\x10RR\x00\x00,R\x00\x00'
[0xc3f2] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)
[0xc3f2] Discovering endpoints
Tries remaining: 3
Received frame on uninitialized device <Device model=None manuf=None nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=False> from ep 0 to ep 0, cluster 32770: b'\x19\x00\xf2\xc3\x01@\x8e\x02\x10RR\x00\x00,R\x00\x00'
Received frame on uninitialized device <Device model=None manuf=None nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=False> from ep 0 to ep 0, cluster 32770: b'\x19\x00\xf2\xc3\x01@\x8e\x02\x10RR\x00\x00,R\x00\x00'
[0xc3f2] Invalid state on future for 0x19 seq -- probably duplicate response
[0xc3f2] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)
[0xc3f2] Discovering endpoints
Tries remaining: 3
Received frame on uninitialized device <Device model=None manuf=None nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=False> from ep 0 to ep 0, cluster 32773: b'\x1f\x00\xf2\xc3\x02\x01\xf2'
[0xc3f2] Discovered endpoints: [1, 242]
[0xc3f2] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>, <Endpoint id=242 in=[] out=[] status=<Status.NEW: 0>>]
[0xc3f2:1] Discovering endpoint information
Tries remaining: 3
Received frame on uninitialized device <Device model=None manuf=None nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=False> from ep 0 to ep 0, cluster 32773: b'\x1d\x00\xf2\xc3\x02\x01\xf2'
[0xc3f2] Discovered endpoints: [1, 242]
[0xc3f2] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>, <Endpoint id=242 in=[] out=[] status=<Status.NEW: 0>>]
[0xc3f2:1] Discovering endpoint information
Tries remaining: 3
Received frame on uninitialized device <Device model=None manuf=None nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=False> from ep 0 to ep 0, cluster 32772: b'!\x00\xf2\xc3\x1c\x01\x04\x01\r\x01\x01\x08\x00\x00\x03\x00\x04\x00\x05\x00\x06\x00\x08\x00\x00\x03\x00\x10\x02\x19\x00\n\x00'
[0xc3f2:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=269, device_version=1, input_clusters=[0, 3, 4, 5, 6, 8, 768, 4096], output_clusters=[25, 10])
[0xc3f2:242] Discovering endpoint information
Tries remaining: 3
Received frame on uninitialized device <Device model=None manuf=None nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=False> from ep 0 to ep 0, cluster 32772: b'#\x00\xf2\xc3\x1c\x01\x04\x01\r\x01\x01\x08\x00\x00\x03\x00\x04\x00\x05\x00\x06\x00\x08\x00\x00\x03\x00\x10\x02\x19\x00\n\x00'
[0xc3f2:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=269, device_version=1, input_clusters=[0, 3, 4, 5, 6, 8, 768, 4096], output_clusters=[25, 10])
[0xc3f2:242] Discovering endpoint information
Tries remaining: 3
Received frame on uninitialized device <Device model=None manuf=None nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=False> from ep 0 to ep 0, cluster 32772: b'%\x00\xf2\xc3\n\xf2\xe0\xa1a\x00\x00\x00\x01!\x00'
[0xc3f2:242] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=242, profile=41440, device_type=97, device_version=0, input_clusters=[], output_clusters=[33])
Received frame on uninitialized device <Device model=None manuf=None nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=False> from ep 0 to ep 0, cluster 32772: b"'\x00\xf2\xc3\n\xf2\xe0\xa1a\x00\x00\x00\x01!\x00"
[0xc3f2:242] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=242, profile=41440, device_type=97, device_version=0, input_clusters=[], output_clusters=[33])
[0xc3f2:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=41 command_id=Command.Read_Attributes_rsp>
[0xc3f2] Read model 'TS0505A' and manufacturer '_TZ3000_dbou1ap4' from <Endpoint id=1 in=[basic:0x0000, identify:0x0003, groups:0x0004, scenes:0x0005, on_off:0x0006, level:0x0008, light_color:0x0300, lightlink:0x1000] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>
[0xc3f2] Discovered basic device information for <Device model='TS0505A' manuf='_TZ3000_dbou1ap4' nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=True>
Device is initialized <Device model='TS0505A' manuf='_TZ3000_dbou1ap4' nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=True>
Checking quirks for _TZ3000_dbou1ap4 TS0505A (84:2e:14:ff:fe:22:d4:fe)
Considering <class 'cct.CCTLight'>
Found custom device replacement for 84:2e:14:ff:fe:22:d4:fe: <class 'cct.CCTLight'>
device - 0xC3F2:84:2e:14:ff:fe:22:d4:fe entering async_device_initialized - is_new_join: True
device - 0xC3F2:84:2e:14:ff:fe:22:d4:fe has joined the ZHA zigbee network
[0xC3F2](TS0505A): started configuration
[0xC3F2:ZDO](TS0505A): 'async_configure' stage succeeded
Error handling '_save_attribute' event with (84:2e:14:ff:fe:22:d4:fe, 1, 0, 4, '_TZ3000_dbou1ap4') params: FOREIGN KEY constraint failed
Error handling '_save_attribute' event with (84:2e:14:ff:fe:22:d4:fe, 1, 0, 5, 'TS0505A') params: FOREIGN KEY constraint failed
[0xc3f2:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=43 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0000] ZCL request 0x0001: [[ReadAttributeRecord(attrid=4, status=<Status.SUCCESS: 0>, value=<TypeValue type=CharacterString, value=_TZ3000_dbou1ap4>), ReadAttributeRecord(attrid=5, status=<Status.SUCCESS: 0>, value=<TypeValue type=CharacterString, value=TS0505A>)]]
[0xC3F2:1:0x0006]: bound 'on_off' cluster: Status.SUCCESS
[0xC3F2:1:0x0300]: bound 'light_color' cluster: Status.SUCCESS
[0xc3f2:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=51 command_id=Command.Configure_Reporting_rsp>
[0xC3F2:1:0x0008]: bound 'level' cluster: Status.SUCCESS
[0xC3F2:1:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=0)]
[0xC3F2:1:0x0006]: finished channel configuration
[0xC3F2:1:0x0000]: finished channel configuration
[0xc3f2:1:0x0300] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=53 command_id=Command.Configure_Reporting_rsp>
[0xc3f2:1:0x0008] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=55 command_id=Command.Configure_Reporting_rsp>
[0xc3f2:1:0x1000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=57 command_id=Command.Default_Response>
[0xC3F2:1:0x0300]: Successfully configured reporting for '{'current_x': (30, 900, 1), 'current_y': (30, 900, 1), 'color_temperature': (30, 900, 1)}' on 'light_color' cluster: [ConfigureReportingResponseRecord(status=0)]
[0xC3F2:1:0x0300]: finished channel configuration
[0xC3F2:1:0x0008]: Successfully configured reporting for '{'current_level': (1, 900, 1)}' on 'level' cluster: [ConfigureReportingResponseRecord(status=0)]
[0xC3F2:1:0x0008]: finished channel configuration
[0xC3F2:1:0x0019]: finished channel configuration
[0xC3F2:1:0x0006]: 'async_configure' stage succeeded
[0xC3F2:1:0x0300]: 'async_configure' stage succeeded
[0xC3F2:1:0x0008]: 'async_configure' stage succeeded
[0xC3F2:1:0x0000]: 'async_configure' stage succeeded
[0xC3F2:1:0x1000]: 'async_configure' stage failed: not enough values to unpack (expected 3, got 2)
[0xC3F2:1:0x0019]: 'async_configure' stage succeeded
[0xC3F2](TS0505A): completed configuration
[0xC3F2](TS0505A): stored in registry: ZhaDeviceEntry(name='_TZ3000_dbou1ap4 TS0505A', ieee='84:2e:14:ff:fe:22:d4:fe', last_seen=1637690957.9451642)
[0xc3f2:1:0x0003] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=59 command_id=Command.Default_Response>
[0xC3F2:1:0x0003]: executed 'trigger_effect' command with args: '(2, 0)' kwargs: '{}' result: [64, <Status.UNSUP_CLUSTER_COMMAND: 129>]
[0xC3F2](TS0505A): started initialization
[0xC3F2:ZDO](TS0505A): 'async_initialize' stage succeeded
[0xC3F2:1:0x0006]: initializing channel: from_cache: False
[0xC3F2:1:0x0300]: initializing channel: from_cache: False
[0xC3F2:1:0x0008]: initializing channel: from_cache: False
[0xc3f2:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=61 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0300] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=63 command_id=Command.Read_Attributes_rsp>
[0xC3F2:1:0x0006]: finished channel initialization
[0xC3F2:1:0x0000]: initializing channel: from_cache: False
[0xC3F2:1:0x0000]: finished channel initialization
[0xC3F2:1:0x1000]: initializing channel: from_cache: False
[0xC3F2:1:0x1000]: finished channel initialization
[0xC3F2:1:0x0019]: initializing channel: from_cache: False
[0xC3F2:1:0x0019]: finished channel initialization
[0xc3f2:1:0x0008] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=65 command_id=Command.Read_Attributes_rsp>
[0xC3F2:1:0x0008]: received attribute: 0 update with value: 255
[0xC3F2:1:0x0008]: finished channel initialization
[0xc3f2:1:0x0300] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=67 command_id=Command.Read_Attributes_rsp>
[0xC3F2:1:0x0300]: finished channel initialization
[0xC3F2:1:0x0006]: 'async_initialize' stage succeeded
[0xC3F2:1:0x0300]: 'async_initialize' stage succeeded
[0xC3F2:1:0x0008]: 'async_initialize' stage succeeded
[0xC3F2:1:0x0000]: 'async_initialize' stage succeeded
[0xC3F2:1:0x1000]: 'async_initialize' stage succeeded
[0xC3F2:1:0x0019]: 'async_initialize' stage succeeded
[0xC3F2](TS0505A): power source: Mains
[0xC3F2](TS0505A): completed initialization
None: polling current state
[0xc3f2:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=69 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0008] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=71 command_id=Command.Read_Attributes_rsp>
[0xC3F2:1:0x0008]: received attribute: 0 update with value: 255
[0xc3f2:1:0x0300] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=73 command_id=Command.Read_Attributes_rsp>
[0xc3f2:zdo] ZDO request ZDOCmd.Node_Desc_rsp: [<Status.SUCCESS: 0>, 0xC3F2, NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)]
[0xc3f2:zdo] Unsupported ZDO request:ZDOCmd.Node_Desc_rsp
[0xc3f2:zdo] ZDO request ZDOCmd.Node_Desc_req: [0x0000]
[0xc3f2:zdo] Unsupported ZDO request:ZDOCmd.Node_Desc_req
[0xc3f2:zdo] ZDO request ZDOCmd.Node_Desc_rsp: [<Status.SUCCESS: 0>, 0xC3F2, NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)]
[0xc3f2:zdo] Unsupported ZDO request:ZDOCmd.Node_Desc_rsp
Tries remaining: 2
[0xc3f2] Already have endpoints: {0: <zigpy.zdo.ZDO object at 0x7f8abfef2340>, 1: <Endpoint id=1 in=[basic:0x0000, identify:0x0003, groups:0x0004, scenes:0x0005, on_off:0x0006, level:0x0008, light_color:0x0300, lightlink:0x1000] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>, 242: <Endpoint id=242 in=[] out=[green_power:0x0021] status=<Status.ZDO_INIT: 1>>}
[0xc3f2] All endpoints are already initialized: [<Endpoint id=1 in=[basic:0x0000, identify:0x0003, groups:0x0004, scenes:0x0005, on_off:0x0006, level:0x0008, light_color:0x0300, lightlink:0x1000] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>, <Endpoint id=242 in=[] out=[green_power:0x0021] status=<Status.ZDO_INIT: 1>>]
[0xc3f2] Already have model and manufacturer info
[0xc3f2] Discovered basic device information for <Device model='TS0505A' manuf='_TZ3000_dbou1ap4' nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=True>
Device is initialized <Device model='TS0505A' manuf='_TZ3000_dbou1ap4' nwk=0xC3F2 ieee=84:2e:14:ff:fe:22:d4:fe is_initialized=True>
Checking quirks for _TZ3000_dbou1ap4 TS0505A (84:2e:14:ff:fe:22:d4:fe)
Considering <class 'cct.CCTLight'>
Found custom device replacement for 84:2e:14:ff:fe:22:d4:fe: <class 'cct.CCTLight'>
device - 0xC3F2:84:2e:14:ff:fe:22:d4:fe entering async_device_initialized - is_new_join: False
device - 0xC3F2:84:2e:14:ff:fe:22:d4:fe has been reset and re-added or its nwk address changed
skipping discovery for previously discovered device - 0xC3F2:84:2e:14:ff:fe:22:d4:fe
[0xC3F2](TS0505A): started configuration
[0xC3F2:ZDO](TS0505A): 'async_configure' stage succeeded
Device 84:2e:14:ff:fe:22:d4:fe already exists. Updating it.
[0xc3f2:zdo] ZDO request ZDOCmd.Bind_rsp: [<Status.SUCCESS: 0>]
[0xc3f2:zdo] Unsupported ZDO request:ZDOCmd.Bind_rsp
[0xc3f2:zdo] ZDO request ZDOCmd.Bind_rsp: [<Status.SUCCESS: 0>]
[0xc3f2:zdo] Unsupported ZDO request:ZDOCmd.Bind_rsp
[0xc3f2:zdo] ZDO request ZDOCmd.Bind_rsp: [<Status.SUCCESS: 0>]
[0xc3f2:zdo] Unsupported ZDO request:ZDOCmd.Bind_rsp
[0xC3F2:1:0x0006]: Failed to bind 'on_off' cluster:
[0xC3F2:1:0x0300]: Failed to bind 'light_color' cluster:
[0xc3f2:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=81 command_id=Command.Configure_Reporting_rsp>
[0xc3f2:1:0x0006] ZCL request 0x0007: [[ConfigureReportingResponseRecord(status=0)]]
[0xC3F2:1:0x0008]: Failed to bind 'level' cluster:
[0xc3f2:1:0x0300] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=83 command_id=Command.Configure_Reporting_rsp>
[0xc3f2:1:0x0300] ZCL request 0x0007: [[ConfigureReportingResponseRecord(status=0)]]
[0xc3f2:1:0x0008] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=85 command_id=Command.Configure_Reporting_rsp>
[0xc3f2:1:0x0008] ZCL request 0x0007: [[ConfigureReportingResponseRecord(status=0)]]
[0xC3F2:1:0x0006]: failed to set reporting on 'on_off' cluster for:
[0xC3F2:1:0x0006]: finished channel configuration
[0xC3F2:1:0x0000]: finished channel configuration
[0xc3f2:1:0x1000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=87 command_id=Command.Default_Response>
[0xc3f2:1:0x1000] ZCL request 0x000b: [65, <Status.UNSUPPORTED_CLUSTER: 195>]
[0xC3F2:1:0x0300]: failed to set reporting on 'light_color' cluster for:
[0xC3F2:1:0x0300]: finished channel configuration
[0xC3F2:1:0x0019]: finished channel configuration
[0xC3F2:1:0x0008]: failed to set reporting on 'level' cluster for:
[0xC3F2:1:0x0008]: finished channel configuration
[0xC3F2:1:0x1000]: Couldn't get list of groups:
[0xC3F2:1:0x0006]: 'async_configure' stage succeeded
[0xC3F2:1:0x0300]: 'async_configure' stage succeeded
[0xC3F2:1:0x0008]: 'async_configure' stage succeeded
[0xC3F2:1:0x0000]: 'async_configure' stage succeeded
[0xC3F2:1:0x1000]: 'async_configure' stage succeeded
[0xC3F2:1:0x0019]: 'async_configure' stage succeeded
[0xC3F2](TS0505A): completed configuration
[0xC3F2](TS0505A): stored in registry: ZhaDeviceEntry(name='_TZ3000_dbou1ap4 TS0505A', ieee='84:2e:14:ff:fe:22:d4:fe', last_seen=1637690973.3301601)
[0xc3f2:1:0x0003] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=89 command_id=Command.Default_Response>
[0xc3f2:1:0x0003] ZCL request 0x000b: [64, <Status.UNSUP_CLUSTER_COMMAND: 129>]
[0xC3F2:1:0x0003]: command failed: 'trigger_effect' args: '(2, 0)' kwargs '{}' exception: ''
[0xC3F2](TS0505A): started initialization
[0xC3F2:ZDO](TS0505A): 'async_initialize' stage succeeded
[0xC3F2:1:0x0006]: initializing channel: from_cache: False
[0xC3F2:1:0x0300]: initializing channel: from_cache: False
[0xC3F2:1:0x0008]: initializing channel: from_cache: False
[0xc3f2:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=91 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0006] ZCL request 0x0001: [[ReadAttributeRecord(attrid=0, status=<Status.SUCCESS: 0>, value=<TypeValue type=Bool, value=Bool.true>)]]
[0xc3f2:1:0x0300] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=93 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0300] ZCL request 0x0001: [[ReadAttributeRecord(attrid=16386, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>), ReadAttributeRecord(attrid=3, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=45874>), ReadAttributeRecord(attrid=4, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=19660>), ReadAttributeRecord(attrid=7, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=153>)]]
[0xc3f2:1:0x0008] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=95 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0008] ZCL request 0x0001: [[ReadAttributeRecord(attrid=0, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint8_t, value=255>)]]
[0xC3F2:1:0x0006]: failed to get attributes '['on_off']' on 'on_off' cluster:
[0xC3F2:1:0x0006]: async_initialize: retryable request #1 failed: . Retrying in 0.9s
[0xC3F2:1:0x0300]: failed to get attributes '['color_loop_active', 'current_x', 'current_y', 'color_temperature']' on 'light_color' cluster:
[0xC3F2:1:0x0300]: async_initialize: retryable request #1 failed: . Retrying in 0.8s
[0xC3F2:1:0x0008]: failed to get attributes '['current_level']' on 'level' cluster:
[0xC3F2:1:0x0008]: async_initialize: retryable request #1 failed: . Retrying in 1.2s
[0xC3F2:1:0x0300]: initializing channel: from_cache: False
[0xc3f2:1:0x0300] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=97 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0300] ZCL request 0x0001: [[ReadAttributeRecord(attrid=16386, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>), ReadAttributeRecord(attrid=3, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=45874>), ReadAttributeRecord(attrid=4, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=19660>), ReadAttributeRecord(attrid=7, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=153>)]]
[0xC3F2:1:0x0006]: initializing channel: from_cache: False
[0xc3f2:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=99 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0006] ZCL request 0x0001: [[ReadAttributeRecord(attrid=0, status=<Status.SUCCESS: 0>, value=<TypeValue type=Bool, value=Bool.true>)]]
[0xC3F2:1:0x0008]: initializing channel: from_cache: False
[0xc3f2:1:0x0008] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=101 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0008] ZCL request 0x0001: [[ReadAttributeRecord(attrid=0, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint8_t, value=255>)]]
[0xC3F2:1:0x0300]: failed to get attributes '['color_loop_active', 'current_x', 'current_y', 'color_temperature']' on 'light_color' cluster:
[0xC3F2:1:0x0300]: async_initialize: retryable request #2 failed: . Retrying in 1.1s
[0xC3F2:1:0x0006]: failed to get attributes '['on_off']' on 'on_off' cluster:
[0xC3F2:1:0x0006]: async_initialize: retryable request #2 failed: . Retrying in 0.9s
[0xC3F2:1:0x0008]: failed to get attributes '['current_level']' on 'level' cluster:
[0xC3F2:1:0x0008]: async_initialize: retryable request #2 failed: . Retrying in 1.0s
[0xC3F2:1:0x0006]: initializing channel: from_cache: False
[0xc3f2:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=103 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0006] ZCL request 0x0001: [[ReadAttributeRecord(attrid=0, status=<Status.SUCCESS: 0>, value=<TypeValue type=Bool, value=Bool.true>)]]
[0xC3F2:1:0x0300]: initializing channel: from_cache: False
[0xc3f2:1:0x0300] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=105 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0300] ZCL request 0x0001: [[ReadAttributeRecord(attrid=16386, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>), ReadAttributeRecord(attrid=3, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=45874>), ReadAttributeRecord(attrid=4, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=19660>), ReadAttributeRecord(attrid=7, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=153>)]]
[0xC3F2:1:0x0008]: initializing channel: from_cache: False
[0xc3f2:1:0x0008] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=107 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0008] ZCL request 0x0001: [[ReadAttributeRecord(attrid=0, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint8_t, value=255>)]]
[0xC3F2:1:0x0006]: failed to get attributes '['on_off']' on 'on_off' cluster:
[0xC3F2:1:0x0006]: async_initialize: retryable request #3 failed: . Retrying in 3.1s
[0xC3F2:1:0x0300]: failed to get attributes '['color_loop_active', 'current_x', 'current_y', 'color_temperature']' on 'light_color' cluster:
[0xC3F2:1:0x0300]: async_initialize: retryable request #3 failed: . Retrying in 3.7s
[0xC3F2:1:0x0008]: failed to get attributes '['current_level']' on 'level' cluster:
[0xC3F2:1:0x0008]: async_initialize: retryable request #3 failed: . Retrying in 2.7s
[0xC3F2:1:0x0006]: initializing channel: from_cache: False
[0xc3f2:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=109 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0006] ZCL request 0x0001: [[ReadAttributeRecord(attrid=0, status=<Status.SUCCESS: 0>, value=<TypeValue type=Bool, value=Bool.true>)]]
[0xC3F2:1:0x0008]: initializing channel: from_cache: False
[0xc3f2:1:0x0008] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=111 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0008] ZCL request 0x0001: [[ReadAttributeRecord(attrid=0, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint8_t, value=255>)]]
[0xC3F2:1:0x0300]: initializing channel: from_cache: False
[0xc3f2:1:0x0300] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=113 command_id=Command.Read_Attributes_rsp>
[0xc3f2:1:0x0300] ZCL request 0x0001: [[ReadAttributeRecord(attrid=16386, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>), ReadAttributeRecord(attrid=3, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=45874>), ReadAttributeRecord(attrid=4, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=19660>), ReadAttributeRecord(attrid=7, status=<Status.SUCCESS: 0>, value=<TypeValue type=uint16_t, value=153>)]]
[0xC3F2:1:0x0006]: failed to get attributes '['on_off']' on 'on_off' cluster:
[0xC3F2:1:0x0006]: async_initialize: all attempts have failed: [TimeoutError(), TimeoutError(), TimeoutError(), TimeoutError()]
[0xC3F2:1:0x0000]: initializing channel: from_cache: False
[0xC3F2:1:0x0000]: finished channel initialization
[0xC3F2:1:0x1000]: initializing channel: from_cache: False
[0xC3F2:1:0x1000]: finished channel initialization
[0xC3F2:1:0x0019]: initializing channel: from_cache: False
[0xC3F2:1:0x0019]: finished channel initialization
[0xC3F2:1:0x0008]: failed to get attributes '['current_level']' on 'level' cluster:
[0xC3F2:1:0x0008]: async_initialize: all attempts have failed: [TimeoutError(), TimeoutError(), TimeoutError(), TimeoutError()]
[0xC3F2:1:0x0300]: failed to get attributes '['color_loop_active', 'current_x', 'current_y', 'color_temperature']' on 'light_color' cluster:
[0xC3F2:1:0x0300]: async_initialize: all attempts have failed: [TimeoutError(), TimeoutError(), TimeoutError(), TimeoutError()]
[0xC3F2:1:0x0006]: 'async_initialize' stage succeeded
[0xC3F2:1:0x0300]: 'async_initialize' stage succeeded
[0xC3F2:1:0x0008]: 'async_initialize' stage succeeded
[0xC3F2:1:0x0000]: 'async_initialize' stage succeeded
[0xC3F2:1:0x1000]: 'async_initialize' stage succeeded
[0xC3F2:1:0x0019]: 'async_initialize' stage succeeded
[0xC3F2](TS0505A): power source: Mains
[0xC3F2](TS0505A): completed initialization

Wot is happening then you is clicking on the Level, light_color, on_off or the light bulb icon ?
Normally you shall getting one card with the control of the light that is only on/off if the light is off.
If it being on you shall getting light level if one dim light and TC if its one CT light and RGB if the light is RGB.
If not working open manage  cluster and "Color (Endpoint id: 1, Id: 0x0300, Type: in)" and attribute "color_capabilities (id: 0x400a)" and clicking "get zigbee attribute" and you shall getting somthing like: bitmap16.16|8|4|2|1.

There's not 3 controls, there's just one which toggles the light. color_capabilities returns None which is a known quirk of the sister device TS0502A CCT (non-RGB). The quirk for that device just hardcodes it to 0x16.

I have one LIDL LED RGBTC Stripe and its having RGB and CT but is also returning "none" then reading the color capacity so is shall also not having any controls for RGB and CT but it have ;-(
First re starting HA and see if its loading the device OK and you is getting the controller in ZHA GUI.
If not working configure local quirks in HA config and copy the TS0502A quirk in the local quirk folder but you need adding your device ID and changing the https://github.com/zigpy/zha-device-handlers/blob/fbee5ba7a378b42c0196b21ef42ebfc361af526a/zhaquirks/lidl/cct.py#L55
to what your device is having (EXTENDED_COLOR_LIGHT = 0x010D) or its not loading the quirk. Also double check that the cluster is the same.
Then restarting HA and all is going OK you shall getting TC controllers and also the quirk name as device class in the signature.
After that you can trying changing the attribute https://github.com/zigpy/zha-device-handlers/blob/fbee5ba7a378b42c0196b21ef42ebfc361af526a/zhaquirks/lidl/cct.py#L33
so you is getting all function for your light.

Very nice done !!!!!
Under 24 hours :-))


Adds documentation skeleton

Work done so far for #8

great, please now add the readthedocs.yml so we deploy to readthedocs.org, check this repo as reference: https://github.com/ploomber/jupysql

Ok, so I added the project to readthedocs.org and added you as maintainer, I think you should be able to add the config and deploy

I created a PR (#10) for this, once it is merged I can configure the deploy (I've accepted the invite for access to the rtd project).


Make the types explicit instead of using var's everywhere

This idea came from this code review https://github.com/meilisearch/meilisearch-dotnet/pull/215#discussion_r786077142
According to Microsoft's good practice guides is not good to have var variable = SomethingYouDontReallyKnowTheReturn();.
In order to prevent this from happen this issue talks about removing all of the var from:

[ ] Documentation (eg. code-samples)
[ ] Source Code
[ ] Comments
[ ] Tests

With the concept in mind about only changing when the type on the right side of the statement is not clear like the guide says.
Use common sense in order to achieve the best readability possible during the refactor! ;)

If you look at how Microsoft is developing aspnet core, it looks like they go all the way with var
https://github.com/dotnet/aspnetcore/blob/main/src/Middleware/HttpLogging/src/HttpLoggingMiddleware.cs
I'm not sure this doc is really up to date

Hello @juchom, thank you again for being so present in this repo, we really appreciate your support! ❤
Reading the links you send me, make the guide even clearer, what I was trying to achieve is a good way to explain to contributors, "how the code should look like".
So if in the community (in this case the creator of the language) we have a style guide that is adopted by them I really think that is good for us to adopt it, instead of giving them a list of repositories and saying "hey do what they are doing".
I am really confident that is a good way to spread patterns around the source code.
I'll update the issue to add a sentence telling about using common sense during the refactor. And the idea of this issue is not to refactor everything no matter what, but yes, is just to improve the readability by using types when the right side of the assignment is not so clear.
For example in these cases I agree with the usage of var keyword because is clear for me what is the type:

L72 var list = new List<KeyValuePair<string, object?>>(...)

L126var httpRequestLog = new HttpRequestLog(list);

But not in this one:

L136var response = context.Response;

So, feel free to raise your concerns about it, I really appreciate your attention (and sorry for the late reply)

I would vote for var - it's what most developers are going to be used too and Microsoft themselves recommend this style when the type is obvious from the assignment - if you need to have certainty on the type then be explicit, otherwise don't.

I saw that you are mixing StyleCop rulesets and .editorconfig.
I would strongly suggest to remove rulesets and move them to .editorconfig, you will have a central point for configuring everything.

I can open a PR with the asp.net core coding style and leave it for review.
This PR will have to be merged fast because every file will be modified. If you're ok with that, just let me know when you have time for the review.

I can open a PR with the asp.net core coding style and leave it for review.
This PR will have to be merged fast because every file will be modified. If you're ok with that, just let me know when you have time for the review.

Can you open a PR modifying some files? (not every file). This way we could iterate in the comments to make sure we are in the same page regarding this theme, then you could open the PR for every other file following our new convention.
What do you think @juchom ?

A draft is open and I'll update it according to the reviews

Hello :)
I suggest running dotnet new editorconfig in the root of the project and overwriting/updating the exisiting one.
The generated file will contain all the default styling rules from microsoft. Running dotnet format and dotnet format --severity info` will then format the cofe according to those rules.

You get warnings/errors if your code is not properly formatted, which is immensely helpful in PR builds.
My go-to editorconfig file is the one from asp.net core, it just works. And i don't really care much about specific styling, as long as it is consistent.

Hello everyone, thanks for your suggestions here, this will make this package even better!
This issue started with one idea and your comments regarding this topic changed my mind. I don't develop in C# for a long time, and the community evolved!
I will not remove the initial suggestions, I will put a DISCLAIMER into the main description of this issue mentioning the final decision.
Like I mentioned in @juchom's PR, what I really want in the first place is to have consistent styling, a way to automate the code review regarding styling, and a way to explain to users how they should develop the code (regarding the styling of course) without having to discuss about it.
@juchom can you add in your PR, some lines into the CONTRIBUTING.md talking about the styling and how they should look like? - if you have some official references (articles, guides, repositories) it would be awesome for the contributors (and for maintainers) -.

I added a few lines and two repos that almost look like what Microsoft is doing in asp.net core. It's pretty difficult to have a perfect match since every developers in the end have their own styles and use different versions of C#.
This is a base where StyleCop and .editorconfig are not fighting, the style looks like what you will find in OSS projects.
Now, if you miss something or want something to be checked, just open an issue and we'll see if we can solve it with .editorconfig or a roslyn analyzer


RDKTV-14246: CEC enable/disable inconsistencies fix

Reason for change:1) Prevent Initiate ARC message process
form audio device when TV CEC is disabled.
2) Increase timeout for critical arc messages so that TV
can retry sending in case of any cec message write failures
Test Procedure: Verify cec enable/disable
Risks: Low
Signed-off-by: Deekshit Devadas<EMAIL_ADDRESS>

Closing older PRs. Pls resubmit to latest 2205 sprint.

Closing older PRs. Pls resubmit to latest 2205 sprint.

Closing older PRs. Pls resubmit to latest 2205 sprint.


Automated Builds docs do not discuss Repository Links

File: docker-hub/builds/index.md
Automated Builds docs do not discuss Repository Links. It misses the section around off or "Enable for Base Image".
The note in the site around "non-official" images is confusing as I don't understand whether this will trigger for me building a non-official when referencing an official image.

Would also be nice to understand what happens if there are mulitple FROM images specified.


domain error when training

Thanks for working on this rasa example!
I am having this error after 'rasa train'.

python 3.7.6
rasa 1.10.9

❯ rasa train
Traceback (most recent call last):
  File "/home/henry/.venv/bin/rasa", line 10, in <module>
    sys.exit(main())
  File "/home/henry/.venv/lib/python3.7/site-packages/rasa/__main__.py", line 92, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/home/henry/.venv/lib/python3.7/site-packages/rasa/cli/train.py", line 76, in train
    additional_arguments=extract_additional_arguments(args),
  File "/home/henry/.venv/lib/python3.7/site-packages/rasa/train.py", line 50, in train
    additional_arguments=additional_arguments,
  File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
  File "/home/henry/.venv/lib/python3.7/site-packages/rasa/train.py", line 101, in train_async
    additional_arguments,
  File "/home/henry/.venv/lib/python3.7/site-packages/rasa/train.py", line 172, in _train_async_internal
    new_fingerprint = await model.model_fingerprint(file_importer)
  File "/home/henry/.venv/lib/python3.7/site-packages/rasa/model.py", line 290, in model_fingerprint
    domain_without_nlg = Domain.from_dict(domain_dict)
  File "/home/henry/.venv/lib/python3.7/site-packages/rasa/core/domain.py", line 162, in from_dict
    **additional_arguments,
  File "/home/henry/.venv/lib/python3.7/site-packages/rasa/core/domain.py", line 431, in __init__
    self._check_domain_sanity()
  File "/home/henry/.venv/lib/python3.7/site-packages/rasa/core/domain.py", line 1049, in _check_domain_sanity
    incorrect_mappings,
rasa.core.domain.InvalidDomain: Intent 'handoff' is set to trigger action 'utter_greet', which is not defined in the domain.

Thanks for the issue, @tabergma will get back to you about it soon!
You may find help in the docs and the forum, too 🤗

Did you edit the domain at all? utter_greet is defined here:
https://github.com/RasaHQ/financial-demo/blob/c552ea1a3bbe3a27c26f9f72e315d94ccb4efdb3/domain.yml#L190

@melindaloubser1  using the same domain file as it it's... seems that the 'intent' is looking for the utter_greet as an 'action'. I will get into the details, just noticed that downloading and running directly crashes as above
Intent 'handoff' is set to trigger action 'utter_greet'

I can't reproduce this. Could you try doing a clean clone of the repo, checking out master, and running it again?

This seems to be a bug in Rasa 1.10.9. Issue opened here https://github.com/RasaHQ/rasa/issues/6336


Fix codecov/codecov-action: Attempt 3

Signed-off-by: Stavros Ntentos<EMAIL_ADDRESS>

Superseded by https://github.com/pylint-dev/pylint-pytest/pull/43


Scala Stream Collector: nuid behavior inconsistent with clojure collector

See https://github.com/snowplow/snowplow/issues/3450
Above bug exists only in Clojure Collector. In SSC (through Snowplow Mini) we were able to get Iglu Adapter and custom-set nuid work, which at first made me believe that there's no nuid in SSC payload at all, but it seems it's logic is just different.
Instead of just always adding there content of cookie (as in Clojure Collector) - it first checks if nuid is present in tracker's payload and if so - adds its content as tracker payload, otherwise - uses cookie's value.
So, I'm not sure which colloector's behavior is more correct, but they're clearly inconsistent.

Thoughts from @BenFradet on which is the "correct" behavior?

I personally think the ssc's current approach gives more flexibility, and so should be preferred? Happy to hear counterarguments.

Hmm. The Tracker Protocol is quite confusing on this point:
https://github.com/snowplow/snowplow/wiki/snowplow-tracker-protocol#15-user-related-parameters
You could reasonably ask, why does the Tracker Protocol specify both nuid and tnuid? By definition everything in the Tracker Protocol is t*.
The reason is this:
https://github.com/snowplow/snowplow/blob/master/2-collectors/clojure-collector/java-servlet/war-resources/.ebextensions/server.xml#L138
The Clojure Collector "hacks" a nuid parameter into the querystring - so it's really a server-side property, masquerading as something tracker-sent. This is why we had to introduce a tnuid to identify the truly-tracker sent nuid. The SSC has no such issue (it adds the network ID as a separate dedicated column in the Thrift).
So in a way, both implementations are correct, given their starting point. tnuid is important in a Clojure Collector world; it's unnecessary with the SSC.
Given that we will retire the Clojure Collector, I am tempted to deprecate the tnuid option (but never retire it, as we never break old event archives) and not implement #3450. Thoughts?

And as far as I know all cookies are present in thrift payload anyway, so we're not overriding anything in-place? If so - I agree.
We'll need to make sure there's unit tests for tnuid and add a comment with link to this conversation to tnuid-logic as it'll be matter of archeology and in some way it is already.

And as far as I know all cookies are present in thrift payload anyway, so we're not overriding anything in-place?

I believe so - all the cookies are recorded in the headers, plus there's a dedicated slot in the Thrift for the actual nuid.


feat(ast)! remove invalid expressions from TSEnumMemberName

#7219  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Boshen and the rest of your teammates on  Graphite


Lint ejs templates

This adds a script to the pre-commit hook and Travis CI build to check all ejs templates by running JSHint on the output from ejs. When I get a chance I may spin this off into a separate NPM module.

Wow, that is a nice move, and yeah, that could totally make a cool module. I'm okay putting it in the Travis script instead of or in addition to that, too, FWIW.


fix: remove console error

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
follow the type definition of oruga ui, that's the reason of the console's error.

now enjoy the clear console :)
👇 __ Let's make a quick check before the contribution.
PR Type

[x] Bugfix
[ ] Feature
[ ] Refactoring

Context

[x] Closes #6706
[ ] Requires deployment <snek/rubick/worker>

Before submitting pull request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality

Optional

[ ] I've tested it at </ksm/collection>
[ ] I've tested PR on mobile
[ ] I've written unit tests 🧪
[ ] I've found edge cases

Did your issue had any of the "$" label on it?

[x] Fill up your DOT address: Payout

Community participation

[x] Are you at KodaDot Discord?

Screenshot 📸

[ ] My fix has changed something on UI; a screenshot is best to understand changes for others.

Copilot Summary

🤖 Generated by Copilot at 3cde46d
Changed the autoClose prop type of the NeoTooltip component to accept an array of event names. This allows customizing the tooltip behavior based on different user interactions.

🤖 Generated by Copilot at 3cde46d

autoClose prop
array of events or bool
autumn leaves falling

cc @daiagi

seems there's something wrong on the preview site, maybe network issue🤔

seems there's something wrong on the preview site, maybe network issue🤔

Yes, seems like Subsquid had a major outage
https://github.com/kodadot/uptime/issues/1188

pay 20 usd
good hit @floyd-li

😍 Perfect, I’ve sent the payout
💵 $20 @ 4.98 USD/DOT ~ 4.016 $DOT
🧗 13rv1SWoLg9Gb3tmvHPZxb7JbVy51BtMziX7k9WQGSJ7Kp3A
🔗 0xf166bb445bff59b0ed375eb691acd523552044a20b87bcf722e15a11cf71f2e7
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


Update Openbitlab.toml

Description
Genesis validator active since public-testnet-6
https://github.com/anoma/namada-testnets/pull/366
https://github.com/anoma/namada-testnets/pull/786
https://github.com/anoma/namada-testnets/pull/1276
https://github.com/anoma/namada-testnets/pull/1605
https://github.com/anoma/namada-testnets/pull/1916
If this is an UPDATE for a previous genesis validator
Checks are made against your net_address. If this has changed since the previous testnet, make sure you provide links of previous prs merged from your previous git username.
Thanks in advance!
Checklist before merging

[X] Only one toml is added in this PR
[X] The file being added is indeed a .toml file
[X] The toml being added is to the correct folder, and only to the correct folder
[X] The eth_hot_key and eth_cold_key are present
[X] The email, discord, elements telegram, and twitter fields are present and valid

Successfully validated transactions.toml file for commit hash 49cd6c8


Allow global setup code in tests (before threads spawn)

I have some setup code that I'd like to run that requires the process be single threaded when it runs. std::sync::Once called at the top of each #[test] isn't enough, as threads have already spawned by that point. My workaround is to use harness = false but I either lose nice reporting or opt into #[feature(test)] and require nightly.
I'm aware of #816, but I'm hoping that a limited improvement might be allowed to the stable interface of the existing test crate... :-)

For a concrete example where this could be useful: https://github.com/carllerche/nix-rust/issues/248
The test calls unshare(2) to enter a user namespace; this cannot be done if the calling process is threaded.


Improve compactness of script variable export

Also contains some improvements to error conditions encountered in regular use.
The "unity auto upgrade" one is interesting; I'm not sure if the lightmap support actually works with this version of unity. I was using 5.6.2f1.

userData block now looks like this, if you use one of the primitive types:
"userData" : {
"tag" : "Action",
"layer" : "Interactive",
"isStatic" : false,
"ActionParams" : {
"mandatory" : false
}
},

would you check indenting?

I will. A few more changes to come.
Which editor are you using? Are you using monodevelop? or Visual studio? It's helpful if I can just take the whole file and "auto format" it. Not sure if that'll help in this case.


[test] Add GitHub Actions to the merge requirement of bors

bors r+

bors r+

bors ping

bors ping

bors r+