Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Device Support Request] tuya DINRail Power meter TS0601_TZE200_lsanae15 #1768

Open
TommisGR opened this issue Sep 18, 2022 · 167 comments
Open
Labels
custom quirk available A custom quirk is available to solve the issue, but it's not merged in the repo yet Tuya Request/PR regarding a Tuya device

Comments

@TommisGR
Copy link

TommisGR commented Sep 18, 2022

Is your feature request related to a problem? Please describe.
tuya Din Rail Power Meter recognized as
TS0601 by _TZE200_lsanae15
Only entities created are LQI and RSSI

Describe the solution you'd like
To be able to report Power usage

Device signature
{
  "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=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, 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": "0x0051",
      "in_clusters": [
        "0x0000",
        "0x0004",
        "0x0005",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZE200_lsanae15",
  "model": "TS0601",
  "class": "zigpy.device.Device"
}
Diagnostic information
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.8.7",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.5",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Athens",
    "os_name": "Linux",
    "os_version": "5.15.32-v8",
    "supervisor": "2022.08.6",
    "host_os": "Home Assistant OS 8.5",
    "docker_version": "20.10.14",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.27.2",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "watchman": {
      "version": "0.5.1",
      "requirements": [
        "prettytable==3.0.0"
      ]
    },
    "ble_monitor": {
      "version": "10.0.0",
      "requirements": [
        "pycryptodomex>=3.14.1",
        "janus>=1.0.0",
        "aioblescan>=0.2.13",
        "btsocket>=0.2.0",
        "pyric>=0.1.6.3"
      ]
    },
    "mopidy": {
      "version": "1.4.6",
      "requirements": [
        "mopidyapi==1.0.0"
      ]
    },
    "androidtv_custom": {
      "version": "0.1.0",
      "requirements": [
        "adb-shell[async]==0.4.2",
        "androidtv[async]==0.0.67",
        "pure-python-adb[async]==0.3.0.dev0"
      ]
    },
    "tapo": {
      "version": "1.2.15",
      "requirements": [
        "plugp100==2.1.18"
      ]
    },
    "sonoff": {
      "version": "3.2.0",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    }
  },
  "integration_manifest": {
    "domain": "zha",
    "name": "Zigbee Home Automation",
    "config_flow": true,
    "documentation": "https://www.home-assistant.io/integrations/zha",
    "requirements": [
      "bellows==0.33.1",
      "pyserial==3.5",
      "pyserial-asyncio==0.6",
      "zha-quirks==0.0.78",
      "zigpy-deconz==0.18.0",
      "zigpy==0.50.2",
      "zigpy-xbee==0.15.0",
      "zigpy-zigate==0.9.2",
      "zigpy-znp==0.8.2"
    ],
    "usb": [
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*2652*",
        "known_devices": [
          "slae.sh cc2652rb stick"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*zigstar*",
        "known_devices": [
          "ZigStar Coordinators"
        ]
      },
      {
        "vid": "1CF1",
        "pid": "0030",
        "description": "*conbee*",
        "known_devices": [
          "Conbee II"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8A2A",
        "description": "*zigbee*",
        "known_devices": [
          "Nortek HUSBZB-1"
        ]
      },
      {
        "vid": "0403",
        "pid": "6015",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate+"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8B34",
        "description": "*bv 2010/10*",
        "known_devices": [
          "Bitron Video AV2010/10"
        ]
      }
    ],
    "codeowners": [
      "@dmulcahey",
      "@adminiuga",
      "@puddly"
    ],
    "zeroconf": [
      {
        "type": "_esphomelib._tcp.local.",
        "name": "tube*"
      },
      {
        "type": "_zigate-zigbee-gateway._tcp.local.",
        "name": "*zigate*"
      }
    ],
    "after_dependencies": [
      "onboarding",
      "usb",
      "zeroconf"
    ],
    "iot_class": "local_polling",
    "loggers": [
      "aiosqlite",
      "bellows",
      "crccheck",
      "pure_pcapy3",
      "zhaquirks",
      "zigpy",
      "zigpy_deconz",
      "zigpy_xbee",
      "zigpy_zigate",
      "zigpy_znp"
    ],
    "is_built_in": true
  },
  "data": {
    "ieee": "**REDACTED**",
    "nwk": 56904,
    "manufacturer": "_TZE200_lsanae15",
    "model": "TS0601",
    "name": "_TZE200_lsanae15 TS0601",
    "quirk_applied": false,
    "quirk_class": "zigpy.device.Device",
    "manufacturer_code": 4417,
    "power_source": "Mains",
    "lqi": 100,
    "rssi": -75,
    "last_seen": "2022-09-18T15:51:59",
    "available": true,
    "device_type": "Router",
    "signature": {
      "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=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, 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": "0x0051",
          "in_clusters": [
            "0x0000",
            "0x0004",
            "0x0005",
            "0xef00"
          ],
          "out_clusters": [
            "0x000a",
            "0x0019"
          ]
        },
        "242": {
          "profile_id": 41440,
          "device_type": "0x0061",
          "in_clusters": [],
          "out_clusters": [
            "0x0021"
          ]
        }
      }
    },
    "active_coordinator": false,
    "entities": [],
    "neighbors": [],
    "endpoint_names": [
      {
        "name": "SMART_PLUG"
      },
      {
        "name": "unknown 97 device_type of 0xa1e0 profile id"
      }
    ],
    "user_given_name": "DIN Rail Power",
    "device_reg_id": "62511e954010a08bd9424e57016c480f",
    "area_id": null,
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "SMART_PLUG",
          "id": 81
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0004": {
            "endpoint_attribute": "groups",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0005": {
            "endpoint_attribute": "scenes",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0xef00": {
            "endpoint_attribute": null,
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {
              "0x0001": {
                "attribute_name": "app_version",
                "value": 70
              },
              "0x0004": {
                "attribute_name": "manufacturer",
                "value": "_TZE200_lsanae15"
              },
              "0x0005": {
                "attribute_name": "model",
                "value": "TS0601"
              }
            },
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x000a": {
            "endpoint_attribute": "time",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      },
      "242": {
        "device_type": {
          "name": "unknown",
          "id": 97
        },
        "profile_id": 41440,
        "in_clusters": {},
        "out_clusters": {
          "0x0021": {
            "endpoint_attribute": "green_power",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      }
    }
  }
}
Additional logs
Paste any additional debug logs here.
Don't remove the extra line breaks outside the ``` marks.

Additional context
Add any other context or screenshots about the feature request here.
image
https://www.aliexpress.com/item/1005004399475951.html

@TommisGR TommisGR changed the title [Device Support Request] [Device Support Request] tuya DINRail Power meter TS0601_TZE200_lsanae15 Sep 20, 2022
@TommisGR
Copy link
Author

Tryied adding custom quirk 'ts0601_din_power.py' with the below change:

MODELS_INFO: [
            ("_TZE200_lsanae15", "TS0601"),
        ],

but it doesnt get recognized am I doing something wrong
quirk folder works the'pycache' is created after I delete it and restart HA

@TommisGR
Copy link
Author

can someone please guide me with adding a custom quirk.

@javicalle
Copy link
Collaborator

javicalle commented Sep 21, 2022

It seems to be the TuyaPowerMeter with the GPP cluster.

Can you try with that quirk?:

TuyaPowerMeter_GPP
class TuyaPowerMeter_GPP(TuyaSwitch):
    """Tuya power meter device."""

    def __init__(self, *args, **kwargs):
        """Init device."""
        self.switch_bus = Bus()
        super().__init__(*args, **kwargs)

    signature = {
        # "node_descriptor": "<NodeDescriptor byte1=1 byte2=64 mac_capability_flags=142 manufacturer_code=4098
        #                       maximum_buffer_size=82 maximum_incoming_transfer_size=82 server_mask=11264
        #                       maximum_outgoing_transfer_size=82 descriptor_capability_field=0>",
        # device_version=1
        # input_clusters=[0x0000, 0x0004, 0x0005, 0xef00]
        # output_clusters=[0x000a, 0x0019]
        MODELS_INFO: [
            ("_TZE200_lsanae15", "TS0601"),
        ],
        ENDPOINTS: {
            # <SimpleDescriptor endpoint=1 profile=260 device_type=51
            # device_version=1
            # input_clusters=[0, 4, 5, 61184]
            # output_clusters=[10, 25]>
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaManufClusterAttributes.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            242: {
                # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
                # input_clusters=[]
                # output_clusters=[33]
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaManufClusterDinPower,
                    TuyaPowerMeasurement,
                    TuyaElectricalMeasurement,
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            242: {
                # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
                # input_clusters=[]
                # output_clusters=[33]
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        }
    }

You will need to import the GreenPowerProxy:

from zigpy.zcl.clusters.general import GreenPowerProxy

@TommisGR
Copy link
Author

used the "ts0601_din_power.py" from the 0.0.79 and replaced from the
class TuyaPowerMeter(TuyaSwitch):
and to the bottom with the
class TuyaPowerMeter_GPP(TuyaSwitch): (all the page)
additionaly added on top
from zigpy.zcl.clusters.general import Basic, Groups, Ota, Scenes, Time , GreenPowerProxy

image
some improvement but still cant view current consumsion

@javicalle
Copy link
Collaborator

I think you need to remove the device from HA and re-pair again.

If there are no improvements, the debug logs would be necessary to know what could be happening:

PS: No need to remove the TuyaPowerMeter class, you can keep both classes in the file. 😉

@TommisGR
Copy link
Author

TommisGR commented Sep 22, 2022

NO improvements and log files sims long what part should I grep for?
running grep "TZE200" home-assistant.log
with

logger:
  default: info
  logs:
    homeassistant.core: debug
    homeassistant.components.zha: debug
    bellows.zigbee.application: debug
    bellows.ezsp: debug
    zigpy: debug
#    zigpy_deconz.zigbee.application: debug
#    zigpy_deconz.api: debug
#    zigpy_xbee.zigbee.application: debug
#    zigpy_xbee.api: debug
#    zigpy_zigate: debug
#    zigpy_znp: debug
    zhaquirks: debug

configuration.yaml

grep output

2022-09-22 09:33:04.644 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0000] Attribute id: 4 value: _TZE200_lsanae15
2022-09-22 09:33:04.897 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for _TZE200_lsanae15 TS0601 (a4:c1:38:cb:35:b5:0e:3b)
2022-09-22 09:33:05.728 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0000] Attribute id: 4 value: _TZE200_lsanae15
2022-09-22 09:33:18.472 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] [0x73D2](_TZE200_lsanae15 TS0601) restored as 'available', last seen: 0:02:45 ago, consider_unavailable_time: 7200 seconds
2022-09-22 09:33:21.100 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.tze200_lsanae15_ts0601_electricalmeasurementpowerfactor, old_state=None, new_state=<state sensor.tze200_lsanae15_ts0601_electricalmeasurementpowerfactor=unknown; state_class=measurement, unit_of_measurement=%, device_class=power_factor, friendly_name=_TZE200_lsanae15 TS0601 Electricalmeasurementpowerfactor @ 2022-09-22T09:33:21.100618+03:00>>
2022-09-22 09:33:21.141 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.tze200_lsanae15_ts0601_switch, old_state=None, new_state=<state switch.tze200_lsanae15_ts0601_switch=off; friendly_name=_TZE200_lsanae15 TS0601 Switch @ 2022-09-22T09:33:21.140894+03:00>>

@javicalle
Copy link
Collaborator

You can try to grep the device UID 0x73d2.
Any warning of "no handler for..." o similar will be usefull.

@TommisGR
Copy link
Author

the grep "0x73d2" home-assistant.log returns lots of the below nothing about "no handler"
anything else I could try?

2022-09-22 13:36:02.775 DEBUG (MainThread) [zigpy.topology] Scanning neighbors of a4:c1:38:cb:35:b5:0e:3b/0x73d2 device
2022-09-22 13:36:03.093 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32817, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=13), 148, -63, 0x73d2, 255, 255, b'f\x00\x04\x00\x02\x98\xf4\xab\xe3\xcc\xcc\xcc\xccQ\xf6\x08\xfe\xff#\xa4`\x00\x00\x04\x02\x00d\x98\xf4\xab\xe3\xcc\xcc\xcc\xcc\xdf\xc9\xca$\x00K\x12\x00wL%\x02\x01*']
2022-09-22 13:36:03.102 DEBUG (MainThread) [zigpy.neighbor] [0x73d2] request status: Status.SUCCESS. response: Neighbors(entries=4, start_index=0, neighbor_table_list=[Neighbor(extended_pan_id=cc:cc:cc:cc:e3:ab:f4:98, ieee=60:a4:23:ff:fe:08:f6:51, nwk=0x0000, device_type=<DeviceType.Coordinator: 0>, rx_on_when_idle=<RxOnWhenIdle.On: 1>, relationship=<RelationShip.Parent: 0>, reserved1=0, permit_joining=<PermitJoins.Unknown: 2>, reserved2=0, depth=0, lqi=100), Neighbor(extended_pan_id=cc:cc:cc:cc:e3:ab:f4:98, ieee=00:12:4b:00:24:ca:c9:df, nwk=0x4C77, device_type=<DeviceType.Router: 1>, rx_on_when_idle=<RxOnWhenIdle.On: 1>, relationship=<RelationShip.Sibling: 2>, reserved1=0, permit_joining=<PermitJoins.Unknown: 2>, reserved2=0, depth=1, lqi=42)])
2022-09-22 13:36:04.372 DEBUG (MainThread) [zigpy.neighbor] [0x73d2] Querying next starting at 2
2022-09-22 13:36:04.732 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32817, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=14), 148, -63, 0x73d2, 255, 255, b'h\x00\x04\x02\x02\x98\xf4\xab\xe3\xcc\xcc\xcc\xcc\xd7\x18\xc2$\x00K\x12\x00\x1e\xd6%\x02\x01!\x98\xf4\xab\xe3\xcc\xcc\xcc\xccw\x90\xc5$\x00K\x12\x00\xad\xaf%\x02\x01\x12']
2022-09-22 13:36:04.740 DEBUG (MainThread) [zigpy.neighbor] [0x73d2] request status: Status.SUCCESS. response: Neighbors(entries=4, start_index=2, neighbor_table_list=[Neighbor(extended_pan_id=cc:cc:cc:cc:e3:ab:f4:98, ieee=00:12:4b:00:24:c2:18:d7, nwk=0xD61E, device_type=<DeviceType.Router: 1>, rx_on_when_idle=<RxOnWhenIdle.On: 1>, relationship=<RelationShip.Sibling: 2>, reserved1=0, permit_joining=<PermitJoins.Unknown: 2>, reserved2=0, depth=1, lqi=33), Neighbor(extended_pan_id=cc:cc:cc:cc:e3:ab:f4:98, ieee=00:12:4b:00:24:c5:90:77, nwk=0xAFAD, device_type=<DeviceType.Router: 1>, rx_on_when_idle=<RxOnWhenIdle.On: 1>, relationship=<RelationShip.Sibling: 2>, reserved1=0, permit_joining=<PermitJoins.Unknown: 2>, reserved2=0, depth=1, lqi=18)])
2022-09-22 13:36:04.742 DEBUG (MainThread) [zigpy.neighbor] [0x73d2] Done scanning. Total 4 neighbours
2022-09-22 13:36:53.433 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=15), 132, -67, 0x73d2, 255, 255, b'\t\xef\x02\x01\x02\x06\x00\x00\x08\x08\xe4\x00\x04j\x00\x00\xb1']
2022-09-22 13:36:53.452 DEBUG (MainThread) [zhaquirks.tuya] [0x73d2:1:0xef00] Received value [8, 228, 0, 4, 106, 0, 0, 177] for attribute 0x0006 (command 0x0002)
2022-09-22 13:36:53.636 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=16), 148, -63, 0x73d2, 255, 255, b'\t\xf0\x02\x01\x03\x01\x02\x00\x04\x00\x00\x0c\x0f']
2022-09-22 13:36:53.657 DEBUG (MainThread) [zhaquirks.tuya] [0x73d2:1:0xef00] Received value [0, 0, 12, 15] for attribute 0x0201 (command 0x0002)
2022-09-22 13:38:05.125 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=17), 136, -66, 0x73d2, 255, 255, b'\x08\xf1\n\x01\x00 F\xe2\xff 6\xe4\xff \x00']
2022-09-22 13:38:53.440 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=18), 144, -64, 0x73d2, 255, 255, b'\t\xf2\x02\x01\x04\x06\x00\x00\x08\x08\xeb\x00\x04\xe7\x00\x00\xc1']
2022-09-22 13:38:53.465 DEBUG (MainThread) [zhaquirks.tuya] [0x73d2:1:0xef00] Received value [8, 235, 0, 4, 231, 0, 0, 193] for attribute 0x0006 (command 0x0002)
2022-09-22 13:38:53.644 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=19), 148, -63, 0x73d2, 255, 255, b'\t\xf3\x02\x01\x05\x01\x02\x00\x04\x00\x00\x0c\x0f']
2022-09-22 13:38:53.666 DEBUG (MainThread) [zhaquirks.tuya] [0x73d2:1:0xef00] Received value [0, 0, 12, 15] for attribute 0x0201 (command 0x0002)
2022-09-22 13:40:53.415 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=20), 148, -63, 0x73d2, 255, 255, b'\t\xf4\x02\x01\x06\x06\x00\x00\x08\x08\xec\x00\x05\x11\x00\x00\xd7']
2022-09-22 13:40:53.448 DEBUG (MainThread) [zhaquirks.tuya] [0x73d2:1:0xef00] Received value [8, 236, 0, 5, 17, 0, 0, 215] for attribute 0x0006 (command 0x0002)
2022-09-22 13:40:53.608 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=21), 148, -63, 0x73d2, 255, 255, b'\t\xf5\x02\x01\x07\x01\x02\x00\x04\x00\x00\x0c\x10']
2022-09-22 13:40:53.626 DEBUG (MainThread) [zhaquirks.tuya] [0x73d2:1:0xef00] Received value [0, 0, 12, 16] for attribute 0x0201 (command 0x0002)

@javicalle
Copy link
Collaborator

I was expecting some of this:

2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Received ZCL frame: b'\t\x97\x02\x00\xdf\x06\x01\x00\x01\x00'
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=151, command_id=2, *is_reply=True)
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Decoded ZCL frame: TuyaWindowCoverManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=223, dp=6, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Received command 0x02 (TSN 151): set_data_response(data=TuyaCommand(status=0, tsn=223, dp=6, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=223, dp=6, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))
2022-06-25 15:19:25 WARNING (MainThread) [zigpy.zcl] [0xC958:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=223, dp=6, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=151, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)

Any warning that could be relevant to us?

@TommisGR
Copy link
Author

grep "0x73d2" home-assistant.log | grep "zigpy"

2022-09-22 09:33:04.644 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0000] Attribute id: 4 value: _TZE200_lsanae15
2022-09-22 09:33:04.645 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0000] Attribute id: 5 value: TS0601
2022-09-22 09:33:05.728 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0000] Attribute id: 4 value: _TZE200_lsanae15
2022-09-22 09:33:05.729 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0000] Attribute id: 5 value: TS0601
2022-09-22 09:33:05.729 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0b04] Attribute id: 1539 value: 1000
2022-09-22 09:33:05.729 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0b04] Attribute id: 1538 value: 1
2022-09-22 09:33:05.730 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0702] Attribute id: 768 value: 0
2022-09-22 09:33:05.730 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0000] Attribute id: 1 value: 70
2022-09-22 09:33:05.730 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0000] Attribute id: 65506 value: 54
2022-09-22 09:33:05.730 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0000] Attribute id: 65508 value: 0
2022-09-22 09:33:05.730 DEBUG (MainThread) [zigpy.appdb] [0x73d2:1:0x0000] Attribute id: 65503 value: S�*���*e��*�
2022-09-22 13:36:02.775 DEBUG (MainThread) [zigpy.topology] Scanning neighbors of a4:c1:38:cb:35:b5:0e:3b/0x73d2 device
2022-09-22 13:36:03.102 DEBUG (MainThread) [zigpy.neighbor] [0x73d2] request status: Status.SUCCESS. response: Neighbors(entries=4, start_index=0, neighbor_table_list=[Neighbor(extended_pan_id=cc:cc:cc:cc:e3:ab:f4:98, ieee=60:a4:23:ff:fe:08:f6:51, nwk=0x0000, device_type=<DeviceType.Coordinator: 0>, rx_on_when_idle=<RxOnWhenIdle.On: 1>, relationship=<RelationShip.Parent: 0>, reserved1=0, permit_joining=<PermitJoins.Unknown: 2>, reserved2=0, depth=0, lqi=100), Neighbor(extended_pan_id=cc:cc:cc:cc:e3:ab:f4:98, ieee=00:12:4b:00:24:ca:c9:df, nwk=0x4C77, device_type=<DeviceType.Router: 1>, rx_on_when_idle=<RxOnWhenIdle.On: 1>, relationship=<RelationShip.Sibling: 2>, reserved1=0, permit_joining=<PermitJoins.Unknown: 2>, reserved2=0, depth=1, lqi=42)])
2022-09-22 13:36:04.372 DEBUG (MainThread) [zigpy.neighbor] [0x73d2] Querying next starting at 2
2022-09-22 13:36:04.740 DEBUG (MainThread) [zigpy.neighbor] [0x73d2] request status: Status.SUCCESS. response: Neighbors(entries=4, start_index=2, neighbor_table_list=[Neighbor(extended_pan_id=cc:cc:cc:cc:e3:ab:f4:98, ieee=00:12:4b:00:24:c2:18:d7, nwk=0xD61E, device_type=<DeviceType.Router: 1>, rx_on_when_idle=<RxOnWhenIdle.On: 1>, relationship=<RelationShip.Sibling: 2>, reserved1=0, permit_joining=<PermitJoins.Unknown: 2>, reserved2=0, depth=1, lqi=33), Neighbor(extended_pan_id=cc:cc:cc:cc:e3:ab:f4:98, ieee=00:12:4b:00:24:c5:90:77, nwk=0xAFAD, device_type=<DeviceType.Router: 1>, rx_on_when_idle=<RxOnWhenIdle.On: 1>, relationship=<RelationShip.Sibling: 2>, reserved1=0, permit_joining=<PermitJoins.Unknown: 2>, reserved2=0, depth=1, lqi=18)])
2022-09-22 13:36:04.742 DEBUG (MainThread) [zigpy.neighbor] [0x73d2] Done scanning. Total 4 neighbours
2022-09-22 14:28:54.085 DEBUG (MainThread) [zigpy.device] [0x73d2] Invalid state on future for 0x37 seq -- probably duplicate response

@javicalle
Copy link
Collaborator

Can you pair the device again and attach the logs from the pairing process?

@TommisGR
Copy link
Author

TommisGR commented Sep 22, 2022

Will do but probably tomorow not at home atm
What will I be looking for? (grep example)

@RealKanashii
Copy link

RealKanashii commented Sep 22, 2022

I tried the quirk but I got an error:

 File "/config/custom_zha_quirks/ts0601_din_power.py", line 3, in <module>
    class TuyaPowerMeter_GPP(TuyaSwitch):
NameError: name 'TuyaSwitch' is not defined

@TommisGR
Copy link
Author

deleted device and cache restarted then added device again
new UID
grep "0xb6e9" home-assistant.log

2022-09-22 22:59:02.463 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0xb6e9, a4:c1:38:cb:35:b5:0e:3b, <EmberDeviceUpdate.STANDARD_SECURITY_UNSECURED_JOIN: 1>, <EmberJoinDecision.USE_PRECONFIGURED_KEY: 0>, 0x0000]
2022-09-22 22:59:02.465 INFO (MainThread) [zigpy.application] New device 0xb6e9 (a4:c1:38:cb:35:b5:0e:3b) joined the network
2022-09-22 22:59:02.468 DEBUG (MainThread) [zigpy.device] [0xb6e9] Scheduling initialization
2022-09-22 22:59:02.479 INFO (MainThread) [zigpy.device] [0xb6e9] Requesting 'Node Descriptor'
2022-09-22 22:59:02.481 DEBUG (MainThread) [zigpy.device] [0xb6e9] Extending timeout for 0x29 request
2022-09-22 22:59:02.484 DEBUG (MainThread) [bellows.zigbee.application] Extending timeout for a4:c1:38:cb:35:b5:0e:3b/0xb6e9
2022-09-22 22:59:02.497 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_BROADCAST: 4>, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_NONE: 0>, groupId=0, sequence=32), 180, -55, 0xb6e9, 255, 255, b'\x04\xe9\xb6;\x0e\xb55\xcb8\xc1\xa4\x8e']
2022-09-22 22:59:02.500 INFO (MainThread) [bellows.zigbee.application] ZDO Device announce: 0xb6e9, a4:c1:38:cb:35:b5:0e:3b
2022-09-22 22:59:02.501 INFO (MainThread) [zigpy.application] Device 0xb6e9 (a4:c1:38:cb:35:b5:0e:3b) joined the network
2022-09-22 22:59:02.502 DEBUG (MainThread) [zigpy.device] [0xb6e9] Scheduling initialization
2022-09-22 22:59:02.503 DEBUG (MainThread) [zigpy.device] [0xb6e9] Canceling old initialize call
2022-09-22 22:59:02.505 DEBUG (MainThread) [zigpy.zdo] [0xb6e9:zdo] ZDO request ZDOCmd.Device_annce: [0xB6E9, a4:c1:38:cb:35:b5:0e:3b, 142]
2022-09-22 22:59:02.524 INFO (MainThread) [zigpy.device] [0xb6e9] Requesting 'Node Descriptor'
2022-09-22 22:59:02.526 DEBUG (MainThread) [zigpy.device] [0xb6e9] Extending timeout for 0x2b request
2022-09-22 22:59:02.557 DEBUG (MainThread) [bellows.zigbee.application] Extending timeout for a4:c1:38:cb:35:b5:0e:3b/0xb6e9
2022-09-22 22:59:02.748 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=33), 184, -54, 0xb6e9, 255, 255, b'+\x00\xe9\xb6\x01@\x8eA\x11BB\x00\x00*B\x00\x00']
2022-09-22 22:59:02.758 INFO (MainThread) [zigpy.device] [0xb6e9] 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=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, 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)
2022-09-22 22:59:02.761 INFO (MainThread) [zigpy.device] [0xb6e9] Discovering endpoints
2022-09-22 22:59:02.875 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32773, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=34), 184, -54, 0xb6e9, 255, 255, b'-\x00\xe9\xb6\x02\x01\xf2']
2022-09-22 22:59:02.884 INFO (MainThread) [zigpy.device] [0xb6e9] Discovered endpoints: [1, 242]
2022-09-22 22:59:02.885 INFO (MainThread) [zigpy.device] [0xb6e9] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>, <Endpoint id=242 in=[] out=[] status=<Status.NEW: 0>>]
2022-09-22 22:59:02.886 INFO (MainThread) [zigpy.endpoint] [0xb6e9:1] Discovering endpoint information
2022-09-22 22:59:02.989 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=35), 180, -55, 0xb6e9, 255, 255, b'/\x00\xe9\xb6\x14\x01\x04\x01Q\x00\x01\x04\x04\x00\x05\x00\x00\xef\x00\x00\x02\x19\x00\n\x00']
2022-09-22 22:59:03.004 INFO (MainThread) [zigpy.endpoint] [0xb6e9:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=81, device_version=1, input_clusters=[4, 5, 61184, 0], output_clusters=[25, 10])
2022-09-22 22:59:03.012 INFO (MainThread) [zigpy.endpoint] [0xb6e9:242] Discovering endpoint information
2022-09-22 22:59:03.138 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=36), 176, -56, 0xb6e9, 255, 255, b'1\x00\xe9\xb6\n\xf2\xe0\xa1a\x00\x00\x00\x01!\x00']
2022-09-22 22:59:03.154 INFO (MainThread) [zigpy.endpoint] [0xb6e9:242] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=242, profile=41440, device_type=97, device_version=0, input_clusters=[], output_clusters=[33])
2022-09-22 22:59:03.246 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=37), 176, -56, 0xb6e9, 255, 255, b'\x183\x01\x04\x00\x00B\x10_TZE200_lsanae15\x05\x00\x00B\x06TS0601']
2022-09-22 22:59:03.269 INFO (MainThread) [zigpy.device] [0xb6e9] Read model 'TS0601' and manufacturer '_TZE200_lsanae15' from <Endpoint id=1 in=[groups:0x0004, scenes:0x0005, None:0xEF00, basic:0x0000] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>
2022-09-22 22:59:03.271 INFO (MainThread) [zigpy.device] [0xb6e9] Discovered basic device information for <Device model='TS0601' manuf='_TZE200_lsanae15' nwk=0xB6E9 ieee=a4:c1:38:cb:35:b5:0e:3b is_initialized=True>
2022-09-22 22:59:03.492 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32801, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=38), 184, -54, 0xb6e9, 255, 255, b'5\x82']
2022-09-22 22:59:03.694 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=39), 172, -57, 0xb6e9, 255, 255, b'\x05\x00\x00']
2022-09-22 22:59:03.698 DEBUG (MainThread) [zigpy.zdo] [0xb6e9:zdo] ZDO request ZDOCmd.Node_Desc_req: [0x0000]
2022-09-22 22:59:03.699 DEBUG (MainThread) [zigpy.zdo] [0xb6e9:zdo] No handler for ZDO request:ZDOCmd.Node_Desc_req([0x0000])
2022-09-22 22:59:03.811 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_BROADCAST: 4>, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_NONE: 0>, groupId=0, sequence=42), 168, -58, 0xb6e9, 255, 255, b'\x06\xb4\x01']
2022-09-22 22:59:03.815 DEBUG (MainThread) [zigpy.zdo] [0xb6e9:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [180, <Bool.true: 1>]
2022-09-22 22:59:08.827 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=43), 184, -54, 0xb6e9, 255, 255, b'\t\xfd\x11\x05\xfa@']
2022-09-22 22:59:09.128 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=44), 180, -55, 0xb6e9, 255, 255, b'\t\xfd\x11\x05\xfa@']
2022-09-22 22:59:09.239 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=45), 172, -57, 0xb6e9, 255, 255, b'\t\xfd\x11\x05\xfa@']
2022-09-22 22:59:09.440 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=46), 180, -55, 0xb6e9, 255, 255, b'\t\xfd\x11\x05\xfa@']
2022-09-22 22:59:09.633 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=47), 168, -58, 0xb6e9, 255, 255, b'\t\xfd\x11\x05\xfa@']
2022-09-22 22:59:09.848 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=10, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=48), 172, -57, 0xb6e9, 255, 255, b'\x00\xfe\x00\x07\x00']
2022-09-22 22:59:13.450 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=49), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.471 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [9, 44, 0, 7, 33, 0, 1, 80] for attribute 0x0006 (command 0x0002)
2022-09-22 22:59:13.548 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=51), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.576 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=49), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.593 DEBUG (MainThread) [zigpy.device] [0xb6e9] Invalid state on future for 0xff seq -- probably duplicate response
2022-09-22 22:59:13.605 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=50), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.620 DEBUG (MainThread) [zigpy.device] [0xb6e9] Invalid state on future for 0xff seq -- probably duplicate response
2022-09-22 22:59:13.625 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=51), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.639 DEBUG (MainThread) [zigpy.device] [0xb6e9] Invalid state on future for 0xff seq -- probably duplicate response
2022-09-22 22:59:13.644 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=52), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.658 DEBUG (MainThread) [zigpy.device] [0xb6e9] Invalid state on future for 0xff seq -- probably duplicate response
2022-09-22 22:59:13.664 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=53), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.677 DEBUG (MainThread) [zigpy.device] [0xb6e9] Invalid state on future for 0xff seq -- probably duplicate response
2022-09-22 22:59:13.681 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=50), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.694 DEBUG (MainThread) [zigpy.device] [0xb6e9] Invalid state on future for 0xff seq -- probably duplicate response
2022-09-22 22:59:13.716 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=51), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.728 DEBUG (MainThread) [zigpy.device] [0xb6e9] Invalid state on future for 0xff seq -- probably duplicate response
2022-09-22 22:59:13.731 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=52), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.745 DEBUG (MainThread) [zigpy.device] [0xb6e9] Invalid state on future for 0xff seq -- probably duplicate response
2022-09-22 22:59:13.750 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=53), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.764 DEBUG (MainThread) [zigpy.device] [0xb6e9] Invalid state on future for 0xff seq -- probably duplicate response
2022-09-22 22:59:13.769 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=54), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.784 DEBUG (MainThread) [zigpy.device] [0xb6e9] Invalid state on future for 0xff seq -- probably duplicate response
2022-09-22 22:59:13.788 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=55), 180, -55, 0xb6e9, 255, 255, b'\t\xff\x02\x00\x01\x06\x00\x00\x08\t,\x00\x07!\x00\x01P']
2022-09-22 22:59:13.799 DEBUG (MainThread) [zigpy.device] [0xb6e9] Invalid state on future for 0xff seq -- probably duplicate response
2022-09-22 22:59:13.844 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=56), 176, -56, 0xb6e9, 255, 255, b'\t\x00\x02\x00\x02\x01\x02\x00\x04\x00\x00\rK']
2022-09-22 22:59:13.865 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [0, 0, 13, 75] for attribute 0x0201 (command 0x0002)
2022-09-22 22:59:14.039 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=57), 180, -55, 0xb6e9, 255, 255, b'\t\x00\x02\x00\x02\x01\x02\x00\x04\x00\x00\rK']
2022-09-22 22:59:14.143 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=58), 180, -55, 0xb6e9, 255, 255, b'\t\x01\x02\x00\x03\x03\x00\x00\x08\x16\t\x16\t\x00\x00\rK']
2022-09-22 22:59:14.164 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [22, 9, 22, 9, 0, 0, 13, 75] for attribute 0x0003 (command 0x0002)
2022-09-22 22:59:14.375 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=59), 180, -55, 0xb6e9, 255, 255, b'\t\x02\x02\x00\x04\x04\x00\x00\x08\t\x16\t\x16\x00\x00\x02\xc2']
2022-09-22 22:59:14.400 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [9, 22, 9, 22, 0, 0, 2, 194] for attribute 0x0004 (command 0x0002)
2022-09-22 22:59:14.536 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=60), 180, -55, 0xb6e9, 255, 255, b'\t\x03\x02\x00\x05\x0b\x00\x00\x02\x01\x00']
2022-09-22 22:59:14.557 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [1, 0] for attribute 0x000b (command 0x0002)
2022-09-22 22:59:14.741 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=61), 180, -55, 0xb6e9, 255, 255, b'\t\x04\x02\x00\x06\x11\x00\x00\x04\x01\x01\x00P']
2022-09-22 22:59:14.763 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [1, 1, 0, 80] for attribute 0x0011 (command 0x0002)
2022-09-22 22:59:14.894 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=62), 180, -55, 0xb6e9, 255, 255, b'\x08\x05\n\x01\x00 F\xe2\xff 6\xe4\xff \x00']
2022-09-22 22:59:15.076 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=63), 180, -55, 0xb6e9, 255, 255, b'\t\x06\x02\x00\x07\x10\x01\x00\x01\x01\x12\x03\x00\x0822071024']
2022-09-22 22:59:15.098 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [1, 18, 3, 0, 8, 50, 50, 48, 55, 49, 48, 50, 52] for attribute 0x0110 (command 0x0002)
2022-09-22 22:59:15.265 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=64), 180, -55, 0xb6e9, 255, 255, b'\x08\x07\n\xdf\xffB\x0fS\xa4\xbf*\x132\xa5\xbf*e3\xa5\xbf*\x12']
2022-09-22 23:00:52.495 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [9, 38, 0, 6, 249, 0, 1, 71] for attribute 0x0006 (command 0x0002)
2022-09-22 23:00:52.721 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [0, 0, 13, 76] for attribute 0x0201 (command 0x0002)
2022-09-22 23:02:52.509 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [9, 32, 0, 6, 197, 0, 1, 60] for attribute 0x0006 (command 0x0002)
2022-09-22 23:02:52.675 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [0, 0, 13, 77] for attribute 0x0201 (command 0x0002)
2022-09-22 23:04:52.523 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [9, 33, 0, 6, 198, 0, 1, 61] for attribute 0x0006 (command 0x0002)
2022-09-22 23:04:52.665 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [0, 0, 13, 79] for attribute 0x0201 (command 0x0002)
2022-09-22 23:06:52.499 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [9, 41, 0, 6, 189, 0, 1, 60] for attribute 0x0006 (command 0x0002)
2022-09-22 23:06:52.685 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [0, 0, 13, 80] for attribute 0x0201 (command 0x0002)
2022-09-22 23:08:52.511 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [9, 37, 0, 6, 176, 0, 1, 55] for attribute 0x0006 (command 0x0002)
2022-09-22 23:08:52.648 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [0, 0, 13, 81] for attribute 0x0201 (command 0x0002)
2022-09-22 23:10:52.479 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [9, 45, 0, 6, 168, 0, 1, 54] for attribute 0x0006 (command 0x0002)
2022-09-22 23:10:52.619 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [0, 0, 13, 82] for attribute 0x0201 (command 0x0002)
2022-09-22 23:12:52.500 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [9, 36, 0, 6, 150, 0, 1, 49] for attribute 0x0006 (command 0x0002)
2022-09-22 23:12:52.688 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [0, 0, 13, 83] for attribute 0x0201 (command 0x0002)

@javicalle
Copy link
Collaborator

I tried the quirk but I got an error:

 File "/config/custom_zha_quirks/ts0601_din_power.py", line 3, in <module>
    class TuyaPowerMeter_GPP(TuyaSwitch):
NameError: name 'TuyaSwitch' is not defined

You need to add the proposed quirk at the bottom of the existing ts0601_din_power.py file:

@RealKanashii
Copy link

Thanks, same result that @TommisGR , switch appears, no power metrics.... unknow. Thanks for the effort. My logs:

2022-09-22 23:38:58.668 INFO (MainThread) [zigpy.application] New device 0x8ffa (a4:c1:38:f0:77:0f:4a:6d) joined the network
2022-09-22 23:38:58.669 DEBUG (MainThread) [zigpy.device] [0x8ffa] Scheduling initialization
2022-09-22 23:38:58.671 DEBUG (MainThread) [zigpy.zdo] [0x8ffa:zdo] ZDO request ZDOCmd.Device_annce: [0x8FFA, a4:c1:38:f0:77:0f:4a:6d, 142]
2022-09-22 23:38:58.673 INFO (MainThread) [zigpy.device] [0x8ffa] Requesting 'Node Descriptor'
2022-09-22 23:38:58.673 DEBUG (MainThread) [zigpy.device] [0x8ffa] Extending timeout for 0x42 request
2022-09-22 23:38:58.774 INFO (MainThread) [zigpy.device] [0x8ffa] 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=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, 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)
2022-09-22 23:38:58.775 INFO (MainThread) [zigpy.device] [0x8ffa] Discovering endpoints
2022-09-22 23:38:58.905 INFO (MainThread) [zigpy.device] [0x8ffa] Discovered endpoints: [1, 242]
2022-09-22 23:38:58.906 INFO (MainThread) [zigpy.device] [0x8ffa] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>, <Endpoint id=242 in=[] out=[] status=<Status.NEW: 0>>]
2022-09-22 23:38:58.908 INFO (MainThread) [zigpy.endpoint] [0x8ffa:1] Discovering endpoint information
2022-09-22 23:38:59.012 INFO (MainThread) [zigpy.endpoint] [0x8ffa:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=81, device_version=1, input_clusters=[4, 5, 61184, 0], output_clusters=[25, 10])
2022-09-22 23:38:59.015 INFO (MainThread) [zigpy.endpoint] [0x8ffa:242] Discovering endpoint information
2022-09-22 23:38:59.129 INFO (MainThread) [zigpy.endpoint] [0x8ffa:242] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=242, profile=41440, device_type=97, device_version=0, input_clusters=[], output_clusters=[33])
2022-09-22 23:38:59.223 INFO (MainThread) [zigpy.device] [0x8ffa] Read model 'TS0601' and manufacturer '_TZE200_lsanae15' from <Endpoint id=1 in=[groups:0x0004, scenes:0x0005, None:0xEF00, basic:0x0000] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>
2022-09-22 23:38:59.224 INFO (MainThread) [zigpy.device] [0x8ffa] Discovered basic device information for <Device model='TS0601' manuf='_TZE200_lsanae15' nwk=0x8FFA ieee=a4:c1:38:f0:77:0f:4a:6d is_initialized=True>
2022-09-22 23:39:09.053 DEBUG (MainThread) [zhaquirks.tuya] [0x8ffa:1:0xef00] Received value [8, 248, 0, 12, 139, 0, 2, 143] for attribute 0x0006 (command 0x0002)
2022-09-22 23:39:09.200 DEBUG (MainThread) [zhaquirks.tuya] [0x8ffa:1:0xef00] Received value [0, 0, 0, 170] for attribute 0x0201 (command 0x0002)
2022-09-22 23:39:09.369 DEBUG (MainThread) [zhaquirks.tuya] [0x8ffa:1:0xef00] Received value [22, 9, 22, 9, 0, 0, 0, 170] for attribute 0x0003 (command 0x0002)
2022-09-22 23:39:09.509 DEBUG (MainThread) [zhaquirks.tuya] [0x8ffa:1:0xef00] Received value [9, 23, 9, 23, 0, 0, 0, 170] for attribute 0x0004 (command 0x0002)
2022-09-22 23:39:09.646 DEBUG (MainThread) [zhaquirks.tuya] [0x8ffa:1:0xef00] Received value [1, 0] for attribute 0x000b (command 0x0002)
2022-09-22 23:39:09.798 DEBUG (MainThread) [zhaquirks.tuya] [0x8ffa:1:0xef00] Received value [1, 1, 0, 80] for attribute 0x0011 (command 0x0002)
2022-09-22 23:39:09.967 DEBUG (MainThread) [zhaquirks.tuya] [0x8ffa:1:0xef00] Received value [1, 18, 3, 0, 8, 50, 50, 48, 56, 49, 55, 53, 49] for attribute 0x0110 (command 0x0002)
2022-09-22 23:40:41.070 DEBUG (MainThread) [zhaquirks.tuya] [0x8ffa:1:0xef00] Received value [8, 248, 0, 12, 65, 0, 2, 129] for attribute 0x0006 (command 0x0002)
2022-09-22 23:40:41.212 DEBUG (MainThread) [zhaquirks.tuya] [0x8ffa:1:0xef00] Received value [0, 0, 0, 171] for attribute 0x0201 (command 0x0002)

@RealKanashii
Copy link

Tell me if you need more logs or test something.

@javicalle
Copy link
Collaborator

The TuyaPowerMeter_GPP quirk definitely doesn't work for your device.

The quirk handles DPs:

TUYA_TOTAL_ENERGY_ATTR = 0x0211
TUYA_CURRENT_ATTR = 0x0212
TUYA_POWER_ATTR = 0x0213
TUYA_VOLTAGE_ATTR = 0x0214
TUYA_DIN_SWITCH_ATTR = 0x0101

And your device seems to make use of DPs (the attribute IDs):

Received value [22, 9, 22, 9, 0, 0, 13, 75] for attribute 0x0003
Received value [9, 22, 9, 22, 0, 0, 2, 194] for attribute 0x0004
Received value [9, 44, 0, 7, 33, 0, 1, 80] for attribute 0x0006
Received value [1, 0] for attribute 0x000b
Received value [1, 1, 0, 80] for attribute 0x0011
Received value [1, 18, 3, 0, 8, 50, 50, 48, 55, 49, 48, 50, 52] for attribute 0x0110
Received value [0, 0, 13, 75] for attribute 0x0201

A new quirk is necessary to be able to make it work. It will be necessary to match the IDs (and data types) with the magnitudes.

@TommisGR
Copy link
Author

TommisGR commented Sep 23, 2022

is there a guide or some sort info on how to go about it ourselfs?
eg. what the number in the [] of reveived value coresponr to.
do we need to change the atttr of the tuya from above to match the ones in the received value?

edit:
I made following changing with no joy same as before but I am running blind here :)

TUYA_TOTAL_ENERGY_ATTR = 0x0201 #0x0211
TUYA_CURRENT_ATTR = 0x0003      #0x0212
TUYA_POWER_ATTR = 0x0004        #0x0213
TUYA_VOLTAGE_ATTR = 0x0011      #0x0214
TUYA_DIN_SWITCH_ATTR = 0x000b   #0x0101

@javicalle
Copy link
Collaborator

javicalle commented Sep 23, 2022

If you want to try there is my proposal:

ts0601_din_power_mcu.py
"""Tuya Din Power Meter."""
from typing import Dict

from zigpy.profiles import zha
from zigpy.quirks import CustomDevice
import zigpy.types as t
from zigpy.zcl.clusters.general import Basic, GreenPowerProxy, Groups, Ota, Scenes, Time
from zigpy.zcl.clusters.homeautomation import ElectricalMeasurement
from zigpy.zcl.clusters.smartenergy import Metering

from zhaquirks import LocalDataCluster
from zhaquirks.const import (
    DEVICE_TYPE,
    ENDPOINTS,
    INPUT_CLUSTERS,
    MODELS_INFO,
    OUTPUT_CLUSTERS,
    PROFILE_ID,
)
from zhaquirks.tuya import TuyaManufClusterAttributes
from zhaquirks.tuya.mcu import (
    DPToAttributeMapping,
    TuyaDPType,
    TuyaMCUCluster,
    TuyaOnOff,
)

TUYA_TOTAL_ENERGY_ATTR = 0x0211
TUYA_CURRENT_ATTR = 0x0212
TUYA_POWER_ATTR = 0x0213
TUYA_VOLTAGE_ATTR = 0x0214
TUYA_DIN_SWITCH_ATTR = 0x0101

SWITCH_EVENT = "switch_event"


class TuyaManufClusterDinPower(TuyaManufClusterAttributes):
    """Manufacturer Specific Cluster of the Tuya Power Meter device."""

    attributes = {
        TUYA_TOTAL_ENERGY_ATTR: ("energy", t.uint16_t, True),
        TUYA_CURRENT_ATTR: ("current", t.int16s, True),
        TUYA_POWER_ATTR: ("power", t.uint16_t, True),
        TUYA_VOLTAGE_ATTR: ("voltage", t.uint16_t, True),
        TUYA_DIN_SWITCH_ATTR: ("switch", t.uint8_t, True),
    }

    # def _update_attribute(self, attrid, value):
    #     super()._update_attribute(attrid, value)
    #     if attrid == TUYA_TOTAL_ENERGY_ATTR:
    #         self.endpoint.smartenergy_metering.energy_reported(value / 100)
    #     elif attrid == TUYA_CURRENT_ATTR:
    #         self.endpoint.electrical_measurement.current_reported(value)
    #     elif attrid == TUYA_POWER_ATTR:
    #         self.endpoint.electrical_measurement.power_reported(value / 10)
    #     elif attrid == TUYA_VOLTAGE_ATTR:
    #         self.endpoint.electrical_measurement.voltage_reported(value / 10)
    #     elif attrid == TUYA_DIN_SWITCH_ATTR:
    #         self.endpoint.device.switch_bus.listener_event(
    #             SWITCH_EVENT, self.endpoint.endpoint_id, value
    #         )


class TuyaPowerMeasurement(LocalDataCluster, ElectricalMeasurement):
    """Custom class for power, voltage and current measurement."""

    POWER_ID = 0x050B
    VOLTAGE_ID = 0x0505
    CURRENT_ID = 0x0508

    AC_CURRENT_MULTIPLIER = 0x0602
    AC_CURRENT_DIVISOR = 0x0603

    _CONSTANT_ATTRIBUTES = {AC_CURRENT_MULTIPLIER: 1, AC_CURRENT_DIVISOR: 1000}

    # def voltage_reported(self, value):
    #     """Voltage reported."""
    #     self._update_attribute(self.VOLTAGE_ID, value)

    # def power_reported(self, value):
    #     """Power reported."""
    #     self._update_attribute(self.POWER_ID, value)

    # def current_reported(self, value):
    #     """Ampers reported."""
    #     self._update_attribute(self.CURRENT_ID, value)


class TuyaElectricalMeasurement(LocalDataCluster, Metering):
    """Custom class for total energy measurement."""

    cluster_id = Metering.cluster_id
    CURRENT_ID = 0x0000
    POWER_WATT = 0x0000

    """Setting unit of measurement."""
    _CONSTANT_ATTRIBUTES = {0x0300: POWER_WATT}

    # def energy_reported(self, value):
    #     """Summation Energy reported."""
    #     self._update_attribute(self.CURRENT_ID, value)


class DinPowerManufCluster(TuyaMCUCluster):
    """Tuya Manufacturer Cluster with ContactSwitch Sensor data points."""

    dp_to_attribute: Dict[int, DPToAttributeMapping] = {
        # 1: DPToAttributeMapping(
        #     ContactSwitchCluster.ep_attribute,
        #     "zone_status",
        #     dp_type=TuyaDPType.BOOL,
        #     converter=lambda x: IasZone.ZoneStatus.Alarm_1 if x else 0,
        # ),
        # 2: DPToAttributeMapping(
        #     TuyaPowerConfigurationCluster.ep_attribute,
        #     "battery_percentage_remaining",  # 0x0021
        #     dp_type=TuyaDPType.VALUE,
        # ),
        16: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
        ),
    }

    data_point_handlers = {
        # 1: "_dp_2_attr_update",
        # 2: "_dp_2_attr_update",
        16: "_dp_2_attr_update",
    }


class TuyaPowerMeter_GPP(CustomDevice):
    """Tuya power meter with GPP device."""

    signature = {
        # "node_descriptor": "<NodeDescriptor byte1=1 byte2=64 mac_capability_flags=142 manufacturer_code=4098
        #                       maximum_buffer_size=82 maximum_incoming_transfer_size=82 server_mask=11264
        #                       maximum_outgoing_transfer_size=82 descriptor_capability_field=0>",
        # device_version=1
        # input_clusters=[0x0000, 0x0004, 0x0005, 0xef00]
        # output_clusters=[0x000a, 0x0019]
        MODELS_INFO: [
            ("_TZE200_lsanae15", "TS0601"),
        ],
        ENDPOINTS: {
            # <SimpleDescriptor endpoint=1 profile=260 device_type=51
            # device_version=1
            # input_clusters=[0, 4, 5, 61184]
            # output_clusters=[10, 25]>
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaManufClusterAttributes.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            242: {
                # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
                # input_clusters=[]
                # output_clusters=[33]
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    DinPowerManufCluster,
                    TuyaPowerMeasurement,
                    TuyaElectricalMeasurement,
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            242: {
                # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
                # input_clusters=[]
                # output_clusters=[33]
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        }
    }

Delete the previous quirk file and put all the code inside a new file (with a new name).
That quirk is not functional but I expect that could get all the info to create a functional one.

With that quirk it's expected to get a full of logs like:

2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Received ZCL frame: b'\t\x97\x02\x00\xdf\x06\x01\x00\x01\x00'
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=151, command_id=2, *is_reply=True)
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Decoded ZCL frame: TuyaWindowCoverManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=223, dp=6, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Received command 0x02 (TSN 151): set_data_response(data=TuyaCommand(status=0, tsn=223, dp=6, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=223, dp=6, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))
2022-06-25 15:19:25 WARNING (MainThread) [zigpy.zcl] [0xC958:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=223, dp=6, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=151, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-06-25 15:19:25 DEBUG (MainThread) [zigpy.zcl] [0xC958:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)

This kind of log (the No 'handle_set_data_response' tuya handler found lines) will tell us:

  • dp=6 the MCU datapoint that report a value
  • dp_type=<TuyaDPType.BOOL: 1> the datapoint type (necessary for the new quirk)
  • payload=<Bool.false: 0> reported value

With that info someone with the device must match the DP with the magnitude (Is the dp=4 the Power value or the Voltage? And the dp=11?). With all that info it will be possible to create the new quirk.
Probably there will be a x10 or x100 factor in some magnitudes.

@RealKanashii
Copy link

Testing...

@RealKanashii
Copy link

Here the log...

2022-09-23 22:26:42.794 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=113, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'/\x04\x00\x00', *payload=1071)))
2022-09-23 22:26:42.859 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=114, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'/\x04\x00\x00', *payload=1071)))
2022-09-23 22:28:42.818 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=116, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'3\x04\x00\x00', *payload=1075)))
2022-09-23 22:28:42.885 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=117, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'3\x04\x00\x00', *payload=1075)))
2022-09-23 22:30:42.783 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=119, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'6\x04\x00\x00', *payload=1078)))
2022-09-23 22:30:42.840 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=120, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'6\x04\x00\x00', *payload=1078)))
2022-09-23 22:32:42.809 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=122, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'9\x04\x00\x00', *payload=1081)))
2022-09-23 22:32:43.087 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=123, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b':\x04\x00\x00', *payload=1082)))
2022-09-23 22:34:42.771 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=125, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'=\x04\x00\x00', *payload=1085)))
2022-09-23 22:34:42.837 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=126, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'=\x04\x00\x00', *payload=1085)))
2022-09-23 22:36:42.791 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=128, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'@\x04\x00\x00', *payload=1088)))
2022-09-23 22:36:42.848 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=129, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'@\x04\x00\x00', *payload=1088)))
2022-09-23 22:38:42.762 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=131, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'D\x04\x00\x00', *payload=1092)))
2022-09-23 22:38:42.820 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=132, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'D\x04\x00\x00', *payload=1092)))
2022-09-23 22:40:42.781 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=134, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'G\x04\x00\x00', *payload=1095)))
2022-09-23 22:40:42.850 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=135, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'G\x04\x00\x00', *payload=1095)))
2022-09-23 22:42:42.800 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=137, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'J\x04\x00\x00', *payload=1098)))
2022-09-23 22:42:42.870 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=138, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'J\x04\x00\x00', *payload=1098)))
2022-09-23 22:44:42.768 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=140, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'N\x04\x00\x00', *payload=1102)))
2022-09-23 22:44:42.844 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=141, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'N\x04\x00\x00', *payload=1102)))
2022-09-23 22:46:42.786 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=143, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'Q\x04\x00\x00', *payload=1105)))
2022-09-23 22:46:42.843 WARNING (MainThread) [zigpy.zcl] [0x8FFA:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=5, tsn=144, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'Q\x04\x00\x00', *payload=1105)))
2022-09-23 22:48:07.826 WARNING (MainThread) [zigpy.zcl] [0x7B96:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=2, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'S\x04\x00\x00', *payload=1107)))
2022-09-23 22:48:07.891 WARNING (MainThread) [zigpy.zcl] [0x7B96:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=3, dp=1, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'S\x04\x00\x00', *payload=1107)))
2022-09-23 22:48:15.512 WARNING (MainThread) [zigpy.zcl] [0x7B96:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=14, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-23 22:48:15.588 WARNING (MainThread) [zigpy.zcl] [0x7B96:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=15, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-23 22:48:15.669 WARNING (MainThread) [zigpy.zcl] [0x7B96:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=16, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))

@javicalle
Copy link
Collaborator

javicalle commented Sep 23, 2022

Device is reporting only DPs 1 and 16. 🤔

DP16 is some incremental value. Consumed power, uptime, ...
DP1 is a boolean. Usually it is a sensor or a switch. Is the current switch in HA working? if its not working try to replace in dp_to_attribute and the data_point_handlers the DP 11 for the 16 and try again. Or even better, switch off and on the device several times and look at the logs, you must be able to match the logs with the events.

Also you can try to unplug and plug again the device. Usually when the device is turned on it reports the status of its attributes.

@RealKanashii
Copy link

RealKanashii commented Sep 23, 2022

DP1-> kWh ( acumulative kWh ) <- For Energy panel I suppose.
DP16 -> switch ( on/off)

I think you saw it inverted.... the incremental is DP1 and the boolean DP16. Aren't they?

@RealKanashii
Copy link

RealKanashii commented Sep 23, 2022

Some guy integrated it to HA via zigbee2mqtt I guess. Seems there are more values than the DP1 & DP16...
image

@RealKanashii
Copy link

I changed the 11 for 1 ( as the incremental value is DP1 no DP16) now I only see the set_data_response from DP16:

Kanashii@casa:/usr/share/hassio/homeassistant $ grep "'handle_set_data_response" home-assistant.log
2022-09-24 01:30:08.620 WARNING (MainThread) [zigpy.zcl] [0x25C0:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=14, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-24 01:30:08.762 WARNING (MainThread) [zigpy.zcl] [0x25C0:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=15, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-24 01:30:08.846 WARNING (MainThread) [zigpy.zcl] [0x25C0:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=16, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-24 01:30:57.365 WARNING (MainThread) [zigpy.zcl] [0x6EE2:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=14, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-24 01:30:57.439 WARNING (MainThread) [zigpy.zcl] [0x6EE2:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=15, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-24 01:30:57.517 WARNING (MainThread) [zigpy.zcl] [0x6EE2:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=16, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-24 01:32:11.653 WARNING (MainThread) [zigpy.zcl] [0xF124:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=14, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-24 01:32:11.739 WARNING (MainThread) [zigpy.zcl] [0xF124:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=15, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-24 01:32:11.833 WARNING (MainThread) [zigpy.zcl] [0xF124:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=16, dp=16, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))

@RealKanashii
Copy link

RealKanashii commented Sep 23, 2022

Edit: miscoded, I used "on_off" as "ep_attribute" and "TuyaOnOff.ep_attribute". Which must I use?

Using this code I got no handle_set_data_response messages....

 dp_to_attribute: Dict[int, DPToAttributeMapping] = {
        # 1: DPToAttributeMapping(
        #     ContactSwitchCluster.ep_attribute,
        #     "zone_status",
        #     dp_type=TuyaDPType.BOOL,
        #     converter=lambda x: IasZone.ZoneStatus.Alarm_1 if x else 0,
        # ),
        # 2: DPToAttributeMapping(
        #     TuyaPowerConfigurationCluster.ep_attribute,
        #     "battery_percentage_remaining",  # 0x0021
        #     dp_type=TuyaDPType.VALUE,
        # ),
        16: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
        ),
        1: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.VALUE,
        )
    }

 data_point_handlers = {
        # 1: "_dp_2_attr_update",
        # 2: "_dp_2_attr_update",
        1: "_dp_2_attr_update",
        16: "_dp_2_attr_update",
    }

But still not seeing consumption (kWh) info. I don't want to use the switch 'cause I will shut down all my house.

@javicalle
Copy link
Collaborator

javicalle commented Sep 24, 2022

I think you saw it inverted.... the incremental is DP1 and the boolean DP16. Aren't they?

Yes, they are 🤦🏻‍♂️

It can't be 2 DP mapped to the same cluster (of the same endpoint). Don't worry for now, it can be addressed, just use one or another in the quirk.

You have 3 devices reporting values isn't it?

  • 0x25C0
  • 0x6EE2
  • 0xF124

Put a full trace from one device reporting. There must be something else.

@TommisGR
Copy link
Author

TommisGR commented Sep 24, 2022

After trying the above with zha failing to load I put but the 1st changed ts0601_din_power.py deleted cache and restarted now i see this
image

1st & 2nd value is constant
3rd is increasing seem to be the total energy consumption since install
and greping the device id
grep "0xb6e9" home-assistant.log

2022-09-24 08:16:35.492 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0000] Attribute id: 4 value: _TZE200_lsanae15
2022-09-24 08:16:35.493 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0000] Attribute id: 5 value: TS0601
2022-09-24 08:16:35.508 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0xef00] Attribute id: 4 value: 780
2022-09-24 08:16:37.392 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0000] Attribute id: 4 value: _TZE200_lsanae15
2022-09-24 08:16:37.392 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0000] Attribute id: 5 value: TS0601
2022-09-24 08:16:37.394 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0702] Attribute id: 768 value: 0
2022-09-24 08:16:37.394 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0b04] Attribute id: 1539 value: 1000
2022-09-24 08:16:37.395 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0b04] Attribute id: 1538 value: 1
2022-09-24 08:16:37.395 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0000] Attribute id: 1 value: 70
2022-09-24 08:16:37.396 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0000] Attribute id: 65506 value: 54
2022-09-24 08:16:37.397 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0000] Attribute id: 65508 value: 0
2022-09-24 08:16:37.397 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0000] Attribute id: 65503 value: ���*i���*i���*i���*i
2022-09-24 08:16:37.407 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0xef00] Attribute id: 513 value: 4422
2022-09-24 08:16:37.410 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0702] Attribute id: 0 value: 44.22
2022-09-24 08:16:37.411 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0xef00] Attribute id: 4 value: 780
2022-09-24 08:16:37.412 DEBUG (MainThread) [zigpy.appdb] [0xb6e9:1:0x0b04] Attribute id: 1291 value: 78.0
2022-09-24 08:18:49.163 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [8, 247, 0, 51, 145, 0, 11, 204] for attribute 0x0006 (command 0x0002)
2022-09-24 08:18:49.347 DEBUG (MainThread) [zhaquirks.tuya] [0xb6e9:1:0xef00] Received value [0, 0, 17, 116] for attribute 0x0201 (command 0x0002)

@MBRetrofit
Copy link

MBRetrofit commented Nov 22, 2023

Values
MatseePlus

@flety-emmanuel
Copy link

@MBRetrofit thank you. Do you confirm it's installed with ZHA and without a zha-quirk and that the switch is working ?

@MBRetrofit
Copy link

Yes, without anything added. But, is only usable as a switch. None of the values reported can be used because of the delay

@flety-emmanuel
Copy link

interesting + thanks how often are the data sent all in all ?

@MBRetrofit
Copy link

from 2 to 5 minute

@flety-emmanuel
Copy link

from 2 to 5 minute

ok, that's the rate at which I record, so I'm perfectly happy with that (5 minutes). I'll try pairing again without the quirk and see if I can get the switch to work. Thank you

@MBRetrofit
Copy link

You just want to use for making logs?

@flety-emmanuel
Copy link

That's what I use mostly. I do also get decisions made based on thresholds and such but for power measurements, it's essentially logging power usage and remote control. Other devices used for alarm and automations will have eventually a limit set in and will report a change (above limit) when it occurs. My smart meter (from the electricity company does that). My smart breakers too. This meter / Counter is used for metering my heat pump

@flety-emmanuel
Copy link

@MBRetrofit : was it installed thru zha or another system like MQTT ? What is your zha panel on the left column of your HA ? I seem to use the very same model from matsee plus but I don't get any data slots from it with the standard HA once I removed the quirk

@MBRetrofit
Copy link

MBRetrofit commented Nov 22, 2023

Indeed, I use ZigBee2mqtt

https://www.zigbee2mqtt.io/devices/DAC2161C.html

Your smart breakers are reporting power near real time?

@flety-emmanuel
Copy link

they seem to update quite often but I haven't checked exactly. It's obvious to me that posting thru MQTT would be a much slower period by nature. I can't use zigbee2MQTT at the same time as zha (same and single adapter) so I'll have to live with my quirk until someone posts a correct code with the proper endpoint to control the switch (it works with MQTT)

@MBRetrofit
Copy link

@flety-emmanuel
Copy link

flety-emmanuel commented Nov 22, 2023

I can't use the same dongle at the same time for ZHA and MQTT (share TTY)

my zha log gives me those entities. From what I understand, there are only 4 integers exported by this very meter, right ? I don't see ANY switch attribute or endpoint (no zigbee expert here and still learning). I'm trying to confirm if I can have a working switch or not and which attribute it would be here ?
could it be 65508 ? I can't even see that in the manual handling of the device in zha, to force it at 0 or 1. From the other models or implementation I should be looking for attribute ID 0x0010 (16) but I don't see that

2023-11-22 18:26:51.539 DEBUG (MainThread) [zigpy.appdb] [0xc479:1:0x0000] Attribute id: 4 value: _TZE204_lsanae15
2023-11-22 18:26:51.539 DEBUG (MainThread) [zigpy.appdb] [0xc479:1:0x0000] Attribute id: 5 value: TS0601
2023-11-22 18:26:51.539 DEBUG (MainThread) [zigpy.appdb] [0xc479:1:0xef00] Attribute id: 4 value: 2409 : V x 10
2023-11-22 18:26:51.539 DEBUG (MainThread) [zigpy.appdb] [0xc479:1:0xef00] Attribute id: 17 value: 285 : A x 100 ou 1000
2023-11-22 18:26:51.539 DEBUG (MainThread) [zigpy.appdb] [0xc479:1:0xef00] Attribute id: 6 value: 16 : W
2023-11-22 18:26:51.540 DEBUG (MainThread) [zigpy.appdb] [0xc479:1:0xef00] Attribute id: 513 value: 7281 : Wh
2023-11-22 18:26:51.540 DEBUG (MainThread) [zigpy.appdb] [0xc479:1:0x0000] Attribute id: 1 value: 74 : app version ?
2023-11-22 18:26:51.540 DEBUG (MainThread) [zigpy.appdb] [0xc479:1:0x0000] Attribute id: 65506 value: 56
2023-11-22 18:26:51.540 DEBUG (MainThread) [zigpy.appdb] [0xc479:1:0x0000] Attribute id: 65508 value: 0
2023-11-22 18:26:51.540 DEBUG (MainThread) [zigpy.appdb] [0xc479:1:0x0000] Attribute id: 65503 value: ��,i#��,i#��,i$��,i

@flety-emmanuel
Copy link

Reading more the datasheet of my meter : It has a "manual controlled relay". Would that mean that I can't control it via zigbee ? I'm at loss as I can't make a connection between the code and the attribute / clusters or tuya DP. Also, from how I see things in the quirk, the switch should be attribute 16 but in which cluster ? Control of it has been set in tuyaClusterDinPower but it seems to be handled by TuyaOnOff(NM).
Yet, even if we get the switch control, it's like it's not routed or mapped by the quirk from the right class or control (?)
this is what I have in my logs, I can't seem to find an attribute of 0x0010 (16) that would match the switch control

`Clusters 0x00 : basic (name, model, version etc)
2023-11-23 09:20:51.313 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0000] Attribute id: 4 value: _TZE204_lsanae15
2023-11-23 09:20:51.314 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0000] Attribute id: 5 value: TS0601
2023-11-23 09:20:51.315 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0000] Attribute id: 1 value: 74
2023-11-23 09:20:51.316 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0000] Attribute id: 65506 value: 56
2023-11-23 09:20:51.316 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0000] Attribute id: 65508 value: 1
2023-11-23 09:20:51.316 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0000] Attribute id: 65503 value: �

cluster 0x0b04 : provides an interface for obtaining electrical measurements from a device.
=> where we get the scales
2023-11-23 09:20:51.314 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0b04] Attribute id: 1539 value: 1000 // 0x0603 AC_CURRENT_DIVISOR (1000 ok)
2023-11-23 09:20:51.314 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0b04] Attribute id: 1538 value: 1 // 0x0602 AC_CURRENT_MULTIPLIER (1 ok)
2023-11-23 09:20:51.314 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0b04] Attribute id: 1537 value: 10 // 0x0601 AC_VOLTAGE_DIVISOR (10 ok)
2023-11-23 09:20:51.314 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0b04] Attribute id: 1536 value: 1 // 0x0600 AC_VOLTAGE_MULTIPLIER (1 ok)
2023-11-23 09:20:51.315 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0b04] Attribute id: 1285 value: 2404 // 0x0505 VOLTAGE_ID
2023-11-23 09:20:51.315 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0b04] Attribute id: 1288 value: 5356 // 0x0508 CURRENT_ID
2023-11-23 09:20:51.315 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0b04] Attribute id: 1291 value: 1143 // 0x050B POWER_ID

cluster 0x0702 : Simple Metering (?)
2023-11-23 09:20:51.314 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0702] Attribute id: 770 value: 100 // ??
2023-11-23 09:20:51.314 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0702] Attribute id: 768 value: 0 // ??
2023-11-23 09:20:51.315 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0x0702] Attribute id: 0 value: 7530 // doubled value from cluster ef00 ID 513 (Wh)

Cluster 0xef00 (61184) : not standard / referencenced by zigbee (tuya specific)
https://github.com/zigbeefordomoticz/wiki/blob/master/en-eng/Technical/Tuya-0xEF00.md
Sensors in the cluster 0xef00 (61184)
2023-11-23 09:20:51.315 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0xef00] Attribute id: 6 value: 1143 // power 0x0006 (6)
2023-11-23 09:20:51.315 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0xef00] Attribute id: 17 value: 5356 // current 0x0011 (17)
2023-11-23 09:20:51.315 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0xef00] Attribute id: 4 value: 2404 // voltage 0x0004 (4)
2023-11-23 09:20:51.315 DEBUG (MainThread) [zigpy.appdb] [0xb7b0:1:0xef00] Attribute id: 513 value: 7530 // energy Wh 0x0201 (513)`

@MBRetrofit
Copy link

@Saul-Tarvitz
Copy link

I do have TZE200, and I can confirm it has manual switch (relay). But the on/off is done via the touch sensitive buttons, not by physically flipping something, so it has to be software driven. But that doesn't mean the relay on/off is available through Zigbee. That's something I do not know.

@MBRetrofit
Copy link

The On/Off switch is available through ZigBee

@flety-emmanuel
Copy link

The On/Off switch is available through ZigBee

but you aren't using zha but MQTT. I'm looking after a working quirk for zha here. The switch appears. I tried many attribute IDs. It's NOT controlled. I'd like a working quirk for that if the the TZE204 is confirmed to work with the switch remotely controlled via zigbee. I couldn't find in the zigbee2MQTT what is wrong with my unit or with my quirk (posted above, which is really close to identical to the latest ones, with attempt to re enable the switch)

@MBRetrofit
Copy link

Koenkk/zigbee2mqtt#17465

This is the converter that z2m use it.

In my case the Chinese from Matsee Plus told that this switch should be recognised as _TZE200_lsanae15 and not the _TZE204_lsanae1 like my integration show it.

@flety-emmanuel
Copy link

the switch is exported by the quirk, but not working. I don't use Z2M. This is a zha quirk implementation discussion, not z2mqtt

I do have TZE200, and I can confirm it has manual switch (relay). But the on/off is done via the touch sensitive buttons, not by physically flipping something, so it has to be software driven. But that doesn't mean the relay on/off is available through Zigbee. That's something I do not know.

Thanks a lot. Which quirk code did you use if you use it with zha ? would you mind trying the switch control over ZHA ? I tried adding the DP / EP (16) but I never got any control with my current quirk. I'm looking at least for a confirmation it can be controlled (or not) by zigbee and not just manually so I know what I can do with it. Thanks

@ankostis
Copy link

ankostis commented Jan 15, 2024

I have this device with latest 24.2 hass+zha, have tried some quirk files from here
but still no sensors were added.

  • Q: Can someone please explain the status here?
  • Q: Can you post the complete quirk (the one to be merged)?
  • [edit] Q: Instructions? Should rename the file?

@manyos-robert
Copy link

That is the one that works for me:

`"""Tuya Din Power Meter."""
from zigpy.profiles import zha
import zigpy.types as t
from zigpy.zcl.clusters.general import Basic, Groups, Ota, Scenes, Time, GreenPowerProxy
from zigpy.zcl.clusters.homeautomation import ElectricalMeasurement
from zigpy.zcl.clusters.smartenergy import Metering

from zhaquirks import Bus, LocalDataCluster
from zhaquirks.const import (
DEVICE_TYPE,
ENDPOINTS,
INPUT_CLUSTERS,
MODELS_INFO,
OUTPUT_CLUSTERS,
PROFILE_ID,
)
from zhaquirks.tuya import (
NoManufacturerCluster,
TuyaManufClusterAttributes,
TuyaSwitch,
)

import logging
_LOGGER = logging.getLogger(name)

TUYA_TOTAL_ENERGY_ATTR = 0x0201 #total energy /100 0x0211
TUYA_CURRENT_ATTR = 0x0011 #0x0212
TUYA_POWER_ATTR = 0x0006 #0x0213
TUYA_VOLTAGE_ATTR = 0x0004 #0x0214

class TuyaManufClusterDinPower(TuyaManufClusterAttributes):
"""Manufacturer Specific Cluster of the Tuya Power Meter device."""

attributes = {
    TUYA_TOTAL_ENERGY_ATTR: ("energy", t.uint32_t, True),
    TUYA_CURRENT_ATTR: ("current", t.int16s, True),      #t.int16s
    TUYA_POWER_ATTR: ("power", t.uint64_t, True),         #t.uint16_t
    TUYA_VOLTAGE_ATTR: ("voltage", t.uint16_t, True),
}

def _update_attribute(self, attrid, value):
    #super()._update_attribute(attrid, value)
    if attrid == TUYA_TOTAL_ENERGY_ATTR:
        self.endpoint.smartenergy_metering.energy_reported(value)
        super()._update_attribute(attrid, value)
    elif attrid == TUYA_CURRENT_ATTR:
        _LOGGER.warning("TUYA_CURRENT_ATTR (0x%04x) value: %d (0x%x)" % (attrid, value, value))
    elif attrid == TUYA_POWER_ATTR:
        self.endpoint.electrical_measurement.voltage_reported((value >> 48) & 0xffff)
        self.endpoint.electrical_measurement.current_reported((value >> 24) & 0xffffff)
        self.endpoint.electrical_measurement.power_reported(value & 0xffffff)
        super()._update_attribute(TUYA_VOLTAGE_ATTR, (value >> 48) & 0xffff)
        super()._update_attribute(TUYA_CURRENT_ATTR, (value >> 24) & 0xffffff)
        super()._update_attribute(TUYA_POWER_ATTR, value & 0xffffff)
    elif attrid == TUYA_VOLTAGE_ATTR:
        _LOGGER.warning("TUYA_VOLTAGE_ATTR (0x%04x) value: %d (0x%x)" % (attrid, value, value))
    else:
        super()._update_attribute(attrid, value)
        _LOGGER.warning("attrid: 0x%04x value: %d (0x%x)" % (attrid, value, value))

class TuyaPowerMeasurement(LocalDataCluster, ElectricalMeasurement):
"""Custom class for power, voltage and current measurement."""

cluster_id = ElectricalMeasurement.cluster_id

POWER_ID = 0x050b             #0x050B
VOLTAGE_ID = 0x0505
CURRENT_ID = 0x0508

AC_VOLTAGE_MULTIPLIER = 0x0600
AC_VOLTAGE_DIVISOR = 0x0601
AC_CURRENT_MULTIPLIER = 0x0602
AC_CURRENT_DIVISOR = 0x0603

_CONSTANT_ATTRIBUTES = {AC_CURRENT_MULTIPLIER: 1, AC_CURRENT_DIVISOR: 1000, AC_VOLTAGE_MULTIPLIER: 1, AC_VOLTAGE_DIVISOR: 10}

def voltage_reported(self, value):
    """Voltage reported."""
    self._update_attribute(self.VOLTAGE_ID, value)

def power_reported(self, value):
    """Power reported."""
    self._update_attribute(self.POWER_ID, value)

def current_reported(self, value):
    """Ampers reported."""
    self._update_attribute(self.CURRENT_ID, value)

class TuyaElectricalMeasurement(LocalDataCluster, Metering):
"""Custom class for total energy measurement."""

cluster_id = Metering.cluster_id
CURRENT_SUMM_DELIVERED_ID = 0x0000
UNIT_OF_MEASURE_ID = 0x0300
MULTIPLIER_ID = 0x0301
DIVISOR_ID = 0x0302
POWER_WATT_ENUM = 0x0000

"""Setting unit of measurement."""
_CONSTANT_ATTRIBUTES = {UNIT_OF_MEASURE_ID: POWER_WATT_ENUM, DIVISOR_ID: 100}

def energy_reported(self, value):
    """Summation Energy reported."""
    self._update_attribute(self.CURRENT_SUMM_DELIVERED_ID, value)

class TuyaPowerMeter(TuyaSwitch):
"""Tuya power meter device."""

signature = {
    # "node_descriptor": "<NodeDescriptor byte1=1 byte2=64 mac_capability_flags=142 manufacturer_code=4098
    #                       maximum_buffer_size=82 maximum_incoming_transfer_size=82 server_mask=11264
    #                       maximum_outgoing_transfer_size=82 descriptor_capability_field=0>",
    # device_version=1
    # input_clusters=[0x0000, 0x0004, 0x0005, 0xef00]
    # output_clusters=[0x000a, 0x0019]
    MODELS_INFO: [
        ("_TZE200_byzdayie", "TS0601"),
        ("_TZE200_ewxhg6o9", "TS0601"),
    ],
    ENDPOINTS: {
        # <SimpleDescriptor endpoint=1 profile=260 device_type=51
        # device_version=1
        # input_clusters=[0, 4, 5, 61184]
        # output_clusters=[10, 25]>
        1: {
            PROFILE_ID: zha.PROFILE_ID,
            DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
            INPUT_CLUSTERS: [
                Basic.cluster_id,
                Groups.cluster_id,
                Scenes.cluster_id,
                TuyaManufClusterAttributes.cluster_id,
            ],
            OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
        }
    },
}

replacement = {
    ENDPOINTS: {
        1: {
            PROFILE_ID: zha.PROFILE_ID,
            DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
            INPUT_CLUSTERS: [
                Basic.cluster_id,
                Groups.cluster_id,
                Scenes.cluster_id,
                TuyaManufClusterDinPower,
                TuyaPowerMeasurement,
                TuyaElectricalMeasurement,
            ],
            OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
        }
    }
}

class TuyaPowerMeter_GPP(TuyaSwitch):
"""Tuya power meter device."""

signature = {
    # "node_descriptor": "<NodeDescriptor byte1=1 byte2=64 mac_capability_flags=142 manufacturer_code=4417
    #                       maximum_buffer_size=66 maximum_incoming_transfer_size=66 server_mask=10752
    #                       maximum_outgoing_transfer_size=66 descriptor_capability_field=0>",
    # device_version=1
    # input_clusters=[0x0000, 0x0004, 0x0005, 0xef00]
    # output_clusters=[0x000a, 0x0019]
    MODELS_INFO: [
        ("_TZE204_lsanae15", "TS0601"),
    ],
    ENDPOINTS: {
        # <SimpleDescriptor endpoint=1 profile=260 device_type=51
        # device_version=1
        # input_clusters=[0, 4, 5, 61184]
        # output_clusters=[10, 25]>
        1: {
            PROFILE_ID: zha.PROFILE_ID,
            DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
            INPUT_CLUSTERS: [
                Basic.cluster_id,
                Groups.cluster_id,
                Scenes.cluster_id,
                TuyaManufClusterAttributes.cluster_id,
            ],
            OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
        },
        242: {
            # <SimpleDescriptor endpoint=242 profile=41440 device_type=61
            # input_clusters=[]
            # output_clusters=[21]
            PROFILE_ID: 41440,
            DEVICE_TYPE: 97,
            INPUT_CLUSTERS: [],
            OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
        },
    },
}

replacement = {
    ENDPOINTS: {
        1: {
            PROFILE_ID: zha.PROFILE_ID,
            DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
            INPUT_CLUSTERS: [
                Basic.cluster_id,
                Groups.cluster_id,
                Scenes.cluster_id,
                TuyaManufClusterDinPower,
                TuyaPowerMeasurement,
                TuyaElectricalMeasurement,
            ],
            OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
        },
        242: {
            # <SimpleDescriptor endpoint=242 profile=41440 device_type=61
            # input_clusters=[]
            # output_clusters=[21]
            PROFILE_ID: 41440,
            DEVICE_TYPE: 97,
            INPUT_CLUSTERS: [],
            OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
        },
    }
}

`

@flety-emmanuel
Copy link

thank you @manyos-robert ! I'll compare with my quirk. Are you able to control the meter's switch remotely via ZHA ? Or is it only manual (via the LCD / buttons) on your unit ?

@manyos-robert
Copy link

I'm not able to control the switch remotely. There is no code for it in the quirk I use. Since it is not part of my use case it was not on my priority list. Did you got it working?

Added my file as gist for easy copy/paste.

https://gist.github.com/manyos-robert/bbfb76d9b1735416376a5900d76987a9

@ankostis
Copy link

ankostis commented Jan 15, 2024

Thank you, your gist worked!
(after a restart, i think)


Original fail report

Unfortunately it does not work for me.

It worked only once (a bit), when i put the device's sig in the class above, class TuyaPowerMeter(TuyaSwitch),
but it produced a switch and misconfygured sensors.
But even that i couldn't consistently make it work, it seems as if at times it doesn't even read the quirks dir.
Very annoying.

For reference, all times i precociously did the following:

  • rename the file inside the custom_zha_quirks/ dir to another name, to avoid clashing with existing one in hass sources
    • [edit] also tested leaving the same name custom_zha_quirks/ts0601_din_power.py and it kind of worked, sensors without values appeared, but failed to re-appear when device removed and re-added
  • delete the python-cache dir
  • remove and add anew the device

Q: how can i debug if/when/which quirks are read?
Q: where did you get the code (link)?

@ankostis
Copy link

Pasting my logs in case they are useful to debug my failure.

logs when adding device
homeassistant  | 2024-01-15 17:25:14.368 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 14, 368488, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.Broadcast: 15>, address=<BroadcastAddress.ALL_ROUTERS_AND_COORDINATOR: 65532>), dst_ep=0, source_route=None, extended_timeout=False, tsn=51, profile_id=0, cluster_id=<ZDOCmd.Mgmt_Permit_Joining_req: 0x0036>, data=Serialized[b'3\xfe\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:14.371 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 52, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0xFFFC, endpoint=0), 'profile_id': 0, 'cluster_id': <ZDOCmd.Mgmt_Permit_Joining_req: 0x0036>, 'src_ep': 0, 'asdu': b'3\xfe\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 'radius': 0, 'relays': None} (seq=202)
homeassistant  | 2024-01-15 17:25:14.372 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12ca0019001200340002fcff000000360000030033fe000200
homeassistant  | 2024-01-15 17:25:14.378 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12ca00090002002234
homeassistant  | 2024-01-15 17:25:14.379 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 52} (seq 202)
homeassistant  | 2024-01-15 17:25:14.398 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ecb000700a600
homeassistant  | 2024-01-15 17:25:14.399 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 203)
homeassistant  | 2024-01-15 17:25:14.401 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=203)
homeassistant  | 2024-01-15 17:25:14.402 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04cb0007000000
homeassistant  | 2024-01-15 17:25:14.404 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04cb0013000c00223402fcff00000000000000
homeassistant  | 2024-01-15 17:25:14.405 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 52, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0xFFFC, endpoint=0), 'src_ep': 0, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 203)
homeassistant  | 2024-01-15 17:25:14.407 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.write_parameter{'parameter_id': <NetworkParameter.permit_join: 33>, 'parameter': b'\xfe'} (seq=204)
homeassistant  | 2024-01-15 17:25:14.407 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0bcc000900020021fe
homeassistant  | 2024-01-15 17:25:14.411 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0bcc000800010021
homeassistant  | 2024-01-15 17:25:14.411 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.write_parameter{'status': <Status.SUCCESS: 0>, 'frame_length': 8, 'payload_length': 1, 'parameter_id': <NetworkParameter.permit_join: 33>} (seq 204)
homeassistant  | 2024-01-15 17:25:16.094 DEBUG (MainThread) [zigpy.application] Feeding watchdog
homeassistant  | 2024-01-15 17:25:16.095 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.write_parameter{'parameter_id': <NetworkParameter.watchdog_ttl: 38>, 'parameter': b'<\x00\x00\x00'} (seq=205)
homeassistant  | 2024-01-15 17:25:16.096 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0bcd000c000500263c000000
homeassistant  | 2024-01-15 17:25:16.098 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0bcd000800010026
homeassistant  | 2024-01-15 17:25:16.099 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.write_parameter{'status': <Status.SUCCESS: 0>, 'frame_length': 8, 'payload_length': 1, 'parameter_id': <NetworkParameter.watchdog_ttl: 38>} (seq 205)
homeassistant  | 2024-01-15 17:25:16.826 DEBUG (MainThread) [homeassistant.components.zha.entity] sensor.plug_mi01_power: polling for updated state
homeassistant  | 2024-01-15 17:25:16.827 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xDBEF:1:0x0b04]: async_update
homeassistant  | 2024-01-15 17:25:16.827 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xDBEF:1:0x0b04]: Reading attributes in chunks: ['active_power', 'rms_voltage']
homeassistant  | 2024-01-15 17:25:17.793 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ece000700aa00
homeassistant  | 2024-01-15 17:25:17.795 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 206)
homeassistant  | 2024-01-15 17:25:17.797 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=206)
homeassistant  | 2024-01-15 17:25:17.798 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17ce000800010001
homeassistant  | 2024-01-15 17:25:17.803 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17ce002a002300220200000102d74f0b040119000c00013d01004f1234140130011500aff084231200b5
homeassistant  | 2024-01-15 17:25:17.806 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 42, 'payload_length': 35, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x4FD7), 'src_ep': 11, 'profile_id': 260, 'cluster_id': 25, 'asdu': b'\x01=\x01\x00O\x124\x14\x010\x01\x15', 'reserved1': 0, 'reserved2': 175, 'lqi': 240, 'reserved3': 132, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -75} (seq 206)
homeassistant  | 2024-01-15 17:25:17.809 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 17, 808988, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4FD7), src_ep=11, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=25, data=Serialized[b'\x01=\x01\x00O\x124\x14\x010\x01\x15'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=240, rssi=-75)
homeassistant  | 2024-01-15 17:25:17.811 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Received ZCL frame: b'\x01=\x01\x00O\x124\x14\x010\x01\x15'
homeassistant  | 2024-01-15 17:25:17.812 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=61, command_id=1, *direction=<Direction.Server_to_Client: 0>)
homeassistant  | 2024-01-15 17:25:17.816 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Decoded ZCL frame: Ota:QueryNextImageCommand(field_control=<FieldControl: 0>, manufacturer_code=4687, image_type=5172, current_file_version=352399361)
homeassistant  | 2024-01-15 17:25:17.817 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Received command 0x01 (TSN 61): QueryNextImageCommand(field_control=<FieldControl: 0>, manufacturer_code=4687, image_type=5172, current_file_version=352399361)
homeassistant  | 2024-01-15 17:25:17.820 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] OTA query_next_image handler for 'GLEDOPTO GL-S-006P': field_control=0, manufacturer_id=4687, image_type=5172, current_file_version=352399361, hardware_version=None, model='GL-S-006P'
homeassistant  | 2024-01-15 17:25:17.820 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] No OTA image is available
homeassistant  | 2024-01-15 17:25:17.821 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=True, *is_general=False), tsn=61, command_id=2, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:17.823 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Sending reply: query_next_image_response(status=<Status.NO_IMAGE_AVAILABLE: 152>, manufacturer_code=None, image_type=None, file_version=None, image_size=None)
homeassistant  | 2024-01-15 17:25:17.828 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 17, 828173, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=11, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4FD7), dst_ep=11, source_route=None, extended_timeout=False, tsn=61, profile_id=260, cluster_id=25, data=Serialized[b'\x19=\x02\x98'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:17.830 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 53, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x4FD7, endpoint=11), 'profile_id': 260, 'cluster_id': 25, 'src_ep': 1, 'asdu': b'\x19=\x02\x98', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=207)
homeassistant  | 2024-01-15 17:25:17.831 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12cf001a001300350002d74f0b04011900010400193d02980600
homeassistant  | 2024-01-15 17:25:17.841 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12cf00090002002235
homeassistant  | 2024-01-15 17:25:17.842 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 53} (seq 207)
homeassistant  | 2024-01-15 17:25:17.853 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ed0000700a600
homeassistant  | 2024-01-15 17:25:17.854 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 208)
homeassistant  | 2024-01-15 17:25:17.855 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=208)
homeassistant  | 2024-01-15 17:25:17.855 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04d00007000000
homeassistant  | 2024-01-15 17:25:17.857 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04d00013000c00223502d74f0b010000000000
homeassistant  | 2024-01-15 17:25:17.859 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 53, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x4FD7, endpoint=11), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 208)
homeassistant  | 2024-01-15 17:25:17.869 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ed1000700aa00
homeassistant  | 2024-01-15 17:25:17.870 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 209)
homeassistant  | 2024-01-15 17:25:17.871 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=209)
homeassistant  | 2024-01-15 17:25:17.872 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17d1000800010001
homeassistant  | 2024-01-15 17:25:17.874 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17d10025001e00220200000102853c0104010604070018020a0000180100afff84231200ca
homeassistant  | 2024-01-15 17:25:17.876 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 37, 'payload_length': 30, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x3C85), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 1030, 'asdu': b'\x18\x02\n\x00\x00\x18\x01', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 132, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -54} (seq 209)
homeassistant  | 2024-01-15 17:25:17.877 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 17, 877030, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x3C85), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=1030, data=Serialized[b'\x18\x02\n\x00\x00\x18\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-54)
homeassistant  | 2024-01-15 17:25:17.878 DEBUG (MainThread) [zigpy.zcl] [0x3C85:1:0x0406] Received ZCL frame: b'\x18\x02\n\x00\x00\x18\x01'
homeassistant  | 2024-01-15 17:25:17.879 DEBUG (MainThread) [zigpy.zcl] [0x3C85:1:0x0406] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=2, command_id=10, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:17.880 DEBUG (MainThread) [zigpy.zcl] [0x3C85:1:0x0406] Decoded ZCL frame: OccupancyCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=bitmap8, value=<bitmap8: 1>))])
homeassistant  | 2024-01-15 17:25:17.881 DEBUG (MainThread) [zigpy.zcl] [0x3C85:1:0x0406] Received command 0x0A (TSN 2): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=bitmap8, value=<bitmap8: 1>))])
homeassistant  | 2024-01-15 17:25:17.882 DEBUG (MainThread) [zigpy.zcl] [0x3C85:1:0x0406] Attribute report received: occupancy=<bitmap8: 1>
homeassistant  | 2024-01-15 17:25:17.883 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x3C85:1:0x0500]: Updated alarm state: 1
homeassistant  | 2024-01-15 17:25:17.883 DEBUG (MainThread) [zigpy.zcl] [0x3C85:1:0x0500] 00:15:8d:00:06:33:46:b9 - Received motion event message
homeassistant  | 2024-01-15 17:25:18.846 DEBUG (MainThread) [homeassistant.components.zha.entity] sensor.plug_mi05_power: polling for updated state
homeassistant  | 2024-01-15 17:25:18.848 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x99DB:1:0x0b04]: async_update
homeassistant  | 2024-01-15 17:25:18.849 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x99DB:1:0x0b04]: Reading attributes in chunks: ['active_power', 'rms_voltage']
homeassistant  | 2024-01-15 17:25:20.867 DEBUG (MainThread) [homeassistant.components.zha.entity] sensor.plug_cyl07_power: polling for updated state
homeassistant  | 2024-01-15 17:25:20.871 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x8E93:1:0x0b04]: async_update
homeassistant  | 2024-01-15 17:25:20.872 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x8E93:1:0x0b04]: Reading attributes in chunks: ['active_power', 'rms_voltage']
homeassistant  | 2024-01-15 17:25:22.852 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x8F35](lumi.switch.l0agl1): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:22.852 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x8F35](lumi.switch.l0agl1): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:23.013 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x2C5A](lumi.sensor_magnet): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:23.013 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x2C5A](lumi.sensor_magnet): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:23.829 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x5967](lumi.sensor_magnet): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:23.829 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x5967](lumi.sensor_magnet): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:24.702 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ed2000700aa00
homeassistant  | 2024-01-15 17:25:24.704 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 210)
homeassistant  | 2024-01-15 17:25:24.706 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=210)
homeassistant  | 2024-01-15 17:25:24.707 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17d2000800010001
homeassistant  | 2024-01-15 17:25:24.711 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17d2004e004700220200000102595e010401000030001c5f11100a01ff4227032826052146020727000000000000000008211701092100030a2100006420006520036621720100afe089231200b4
homeassistant  | 2024-01-15 17:25:24.713 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 78, 'payload_length': 71, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x5E59), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 0, 'asdu': b"\x1c_\x11\x10\n\x01\xffB'\x03(&\x05!F\x02\x07'\x00\x00\x00\x00\x00\x00\x00\x00\x08!\x17\x01\t!\x00\x03\n!\x00\x00d \x00e \x03f!r\x01", 'reserved1': 0, 'reserved2': 175, 'lqi': 224, 'reserved3': 137, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -76} (seq 210)
homeassistant  | 2024-01-15 17:25:24.715 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 24, 715112, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x5E59), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=0, data=Serialized[b"\x1c_\x11\x10\n\x01\xffB'\x03(&\x05!F\x02\x07'\x00\x00\x00\x00\x00\x00\x00\x00\x08!\x17\x01\t!\x00\x03\n!\x00\x00d \x00e \x03f!r\x01"], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-76)
homeassistant  | 2024-01-15 17:25:24.718 DEBUG (MainThread) [zigpy.zcl] [0x5E59:1:0x0000] Received ZCL frame: b"\x1c_\x11\x10\n\x01\xffA'\x03(&\x05!F\x02\x07'\x00\x00\x00\x00\x00\x00\x00\x00\x08!\x17\x01\t!\x00\x03\n!\x00\x00d \x00e \x03f!r\x01"
homeassistant  | 2024-01-15 17:25:24.720 DEBUG (MainThread) [zigpy.zcl] [0x5E59:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=True, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), manufacturer=4447, tsn=16, command_id=10, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:24.722 DEBUG (MainThread) [zigpy.zcl] [0x5E59:1:0x0000] Decoded ZCL frame: BasicCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0xFF01, value=TypeValue(type=LVBytes, value=b"\x03(&\x05!F\x02\x07'\x00\x00\x00\x00\x00\x00\x00\x00\x08!\x17\x01\t!\x00\x03\n!\x00\x00d \x00e \x03f!r\x01"))])
homeassistant  | 2024-01-15 17:25:24.723 DEBUG (MainThread) [zigpy.zcl] [0x5E59:1:0x0000] Received command 0x0A (TSN 16): Report_Attributes(attribute_reports=[Attribute(attrid=0xFF01, value=TypeValue(type=LVBytes, value=b"\x03(&\x05!F\x02\x07'\x00\x00\x00\x00\x00\x00\x00\x00\x08!\x17\x01\t!\x00\x03\n!\x00\x00d \x00e \x03f!r\x01"))])
homeassistant  | 2024-01-15 17:25:24.724 DEBUG (MainThread) [zigpy.zcl] [0x5E59:1:0x0000] Attribute report received: 0xFF01=b"\x03(&\x05!F\x02\x07'\x00\x00\x00\x00\x00\x00\x00\x00\x08!\x17\x01\t!\x00\x03\n!\x00\x00d \x00e \x03f!r\x01"
homeassistant  | 2024-01-15 17:25:24.808 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x2DFD](ZBT-DIMLight-Candle0800): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:24.808 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x2DFD](ZBT-DIMLight-Candle0800): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:25.751 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4FD7](GL-S-006P): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:25.752 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4FD7](GL-S-006P): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:28.858 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x3C85](lumi.sensor_motion): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:28.858 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x3C85](lumi.sensor_motion): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:31.796 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x82B2](lumi.sensor_switch): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:31.797 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x82B2](lumi.sensor_switch): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:32.303 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ed3000700aa00
homeassistant  | 2024-01-15 17:25:32.305 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 211)
homeassistant  | 2024-01-15 17:25:32.306 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=211)
homeassistant  | 2024-01-15 17:25:32.307 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17d3000800010001
homeassistant  | 2024-01-15 17:25:32.314 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17d30064005d00220200000102efdb010401c0fc46001c5f11320af700413d64100003280e9839000000009539b2d43641963900c00a45973900000000052108009a20000821160107270000000000000000092100090b20009b100100afff89231200c0
homeassistant  | 2024-01-15 17:25:32.316 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 100, 'payload_length': 93, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0xDBEF), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 64704, 'asdu': b"\x1c_\x112\n\xf7\x00A=d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xb2\xd46A\x969\x00\xc0\nE\x979\x00\x00\x00\x00\x05!\x08\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x00\t\x0b \x00\x9b\x10\x01", 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 137, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -64} (seq 211)
homeassistant  | 2024-01-15 17:25:32.318 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 32, 318177, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xDBEF), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=64704, data=Serialized[b"\x1c_\x112\n\xf7\x00A=d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xb2\xd46A\x969\x00\xc0\nE\x979\x00\x00\x00\x00\x05!\x08\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x00\t\x0b \x00\x9b\x10\x01"], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-64)
homeassistant  | 2024-01-15 17:25:32.322 DEBUG (MainThread) [zigpy.zcl] [0xDBEF:1:0xfcc0] Received ZCL frame: b"\x1c_\x112\n\xf7\x00A=d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xb2\xd46A\x969\x00\xc0\nE\x979\x00\x00\x00\x00\x05!\x08\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x00\t\x0b \x00\x9b\x10\x01"
homeassistant  | 2024-01-15 17:25:32.324 DEBUG (MainThread) [zigpy.zcl] [0xDBEF:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=True, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), manufacturer=4447, tsn=50, command_id=10, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:32.327 DEBUG (MainThread) [zigpy.zcl] [0xDBEF:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b"d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xb2\xd46A\x969\x00\xc0\nE\x979\x00\x00\x00\x00\x05!\x08\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x00\t\x0b \x00\x9b\x10\x01"))])
homeassistant  | 2024-01-15 17:25:32.329 DEBUG (MainThread) [zigpy.zcl] [0xDBEF:1:0xfcc0] Received command 0x0A (TSN 50): Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b"d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xb2\xd46A\x969\x00\xc0\nE\x979\x00\x00\x00\x00\x05!\x08\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x00\t\x0b \x00\x9b\x10\x01"))])
homeassistant  | 2024-01-15 17:25:32.332 DEBUG (MainThread) [zigpy.zcl] [0xDBEF:1:0xfcc0] Attribute report received: 0x00F7=b"d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xb2\xd46A\x969\x00\xc0\nE\x979\x00\x00\x00\x00\x05!\x08\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x00\t\x0b \x00\x9b\x10\x01"
homeassistant  | 2024-01-15 17:25:32.784 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF711](lumi.plug.mmeu01): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:32.784 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF711](lumi.plug.mmeu01): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:33.739 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x37C3](lumi.light.aqcn02): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:33.740 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x37C3](lumi.light.aqcn02): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:33.767 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB94E](lumi.plug.mmeu01): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:33.768 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB94E](lumi.plug.mmeu01): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:34.990 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9140](lumi.sensor_switch): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:34.991 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9140](lumi.sensor_switch): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:35.905 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xDBEF](lumi.plug.mmeu01): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:35.905 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xDBEF](lumi.plug.mmeu01): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:36.865 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xFCA7](BASICZBR3): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:36.866 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xFCA7](BASICZBR3): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:37.744 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1cd40012000b00039a69eefdb438c1a4ffcd
homeassistant  | 2024-01-15 17:25:37.746 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.mac_poll{'status': <Status.SUCCESS: 0>, 'frame_length': 18, 'payload_length': 11, 'src_addr': DeconzAddress(address_mode=<AddressMode.IEEE: 3>, address=a4:c1:38:b4:fd:ee:69:9a), 'lqi': 255, 'rssi': -51, 'life_time': None, 'device_timeout': None} (seq 212)
homeassistant  | 2024-01-15 17:25:37.757 DEBUG (MainThread) [homeassistant.components.zha.entity] sensor.plug_rack_power: polling for updated state
homeassistant  | 2024-01-15 17:25:37.759 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xB94E:1:0x0b04]: async_update
homeassistant  | 2024-01-15 17:25:37.759 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0xB94E:1:0x0b04]: Reading attributes in chunks: ['active_power', 'rms_voltage']
homeassistant  | 2024-01-15 17:25:37.772 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ed5000700aa00
homeassistant  | 2024-01-15 17:25:37.774 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 213)
homeassistant  | 2024-01-15 17:25:37.779 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=212)
homeassistant  | 2024-01-15 17:25:37.780 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17d4000800010001
homeassistant  | 2024-01-15 17:25:37.785 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17d4002a0023002202fdff00024b9000000013000c00094b909a69eefdb438c1a48e00afff8a231200cd
homeassistant  | 2024-01-15 17:25:37.788 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 42, 'payload_length': 35, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0xFFFD), 'dst_ep': 0, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 0, 'profile_id': 0, 'cluster_id': 19, 'asdu': b'\tK\x90\x9ai\xee\xfd\xb48\xc1\xa4\x8e', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 212)
homeassistant  | 2024-01-15 17:25:37.794 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 37, 793914, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.Broadcast: 15>, address=<BroadcastAddress.RX_ON_WHEN_IDLE: 65533>), dst_ep=0, source_route=None, extended_timeout=False, tsn=None, profile_id=0, cluster_id=19, data=Serialized[b'\tK\x90\x9ai\xee\xfd\xb48\xc1\xa4\x8e'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:37.795 INFO (MainThread) [zigpy.application] New device 0x904b (a4:c1:38:b4:fd:ee:69:9a) joined the network
homeassistant  | 2024-01-15 17:25:37.796 DEBUG (MainThread) [zigpy.device] [0x904b] Scheduling initialization
homeassistant  | 2024-01-15 17:25:37.805 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x904B ieee=a4:c1:38:b4:fd:ee:69:9a is_initialized=False> from ep 0 to ep 0, cluster 19: Serialized[b'\tK\x90\x9ai\xee\xfd\xb48\xc1\xa4\x8e']
homeassistant  | 2024-01-15 17:25:37.806 DEBUG (MainThread) [zigpy.zdo] [0x904b:zdo] ZDO request ZDOCmd.Device_annce: [0x904B, a4:c1:38:b4:fd:ee:69:9a, 142]
homeassistant  | 2024-01-15 17:25:37.807 DEBUG (MainThread) [zigpy.util] Tries remaining: 5
homeassistant  | 2024-01-15 17:25:37.808 INFO (MainThread) [zigpy.device] [0x904b] Requesting 'Node Descriptor'
homeassistant  | 2024-01-15 17:25:37.808 DEBUG (MainThread) [zigpy.device] [0x904b] Extending timeout for 0x01 request
homeassistant  | 2024-01-15 17:25:37.809 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 37, 809332, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=0, source_route=None, extended_timeout=True, tsn=1, profile_id=0, cluster_id=<ZDOCmd.Node_Desc_req: 0x0002>, data=Serialized[b'\x01K\x90'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:37.813 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 54, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=0), 'profile_id': 0, 'cluster_id': <ZDOCmd.Node_Desc_req: 0x0002>, 'src_ep': 0, 'asdu': b'\x01K\x90', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 'radius': 0, 'relays': None} (seq=213)
homeassistant  | 2024-01-15 17:25:37.814 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12d500190012003600024b900000000200000300014b900200
homeassistant  | 2024-01-15 17:25:37.827 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12d500090002002236
homeassistant  | 2024-01-15 17:25:37.829 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 54} (seq 213)
homeassistant  | 2024-01-15 17:25:37.856 DEBUG (MainThread) [homeassistant.components.zha.entity] sensor.plug_mi06_power: polling for updated state
homeassistant  | 2024-01-15 17:25:37.857 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x5DDE:1:0x0b04]: async_update
homeassistant  | 2024-01-15 17:25:37.857 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x5DDE:1:0x0b04]: Reading attributes in chunks: ['active_power', 'rms_voltage']
homeassistant  | 2024-01-15 17:25:37.867 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ed6000700a600
homeassistant  | 2024-01-15 17:25:37.868 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 214)
homeassistant  | 2024-01-15 17:25:37.868 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=214)
homeassistant  | 2024-01-15 17:25:37.869 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04d60007000000
homeassistant  | 2024-01-15 17:25:37.881 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ed7000700ae00
homeassistant  | 2024-01-15 17:25:37.882 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 43>), 'reserved': 0} (seq 215)
homeassistant  | 2024-01-15 17:25:37.882 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04d60013000c002a36024b9000000000000000
homeassistant  | 2024-01-15 17:25:37.883 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 10>), 'request_id': 54, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=0), 'src_ep': 0, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 214)
homeassistant  | 2024-01-15 17:25:37.885 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=215)
homeassistant  | 2024-01-15 17:25:37.886 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17d7000800010001
homeassistant  | 2024-01-15 17:25:37.891 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17d7002f0028002202000000024b900000000280110001004b9001408e4111424200002a42000000afff8a231200cd
homeassistant  | 2024-01-15 17:25:37.893 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 47, 'payload_length': 40, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 0, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 0, 'profile_id': 0, 'cluster_id': 32770, 'asdu': b'\x01\x00K\x90\x01@\x8eA\x11BB\x00\x00*B\x00\x00', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 215)
homeassistant  | 2024-01-15 17:25:37.894 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 37, 894302, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=None, profile_id=0, cluster_id=32770, data=Serialized[b'\x01\x00K\x90\x01@\x8eA\x11BB\x00\x00*B\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:37.896 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x904B ieee=a4:c1:38:b4:fd:ee:69:9a is_initialized=False> from ep 0 to ep 0, cluster 32770: Serialized[b'\x01\x00K\x90\x01@\x8eA\x11BB\x00\x00*B\x00\x00']
homeassistant  | 2024-01-15 17:25:37.898 INFO (MainThread) [zigpy.device] [0x904b] 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.FullFunctionDevice|MainsPowered|RxOnWhenIdle|AllocateAddress: 142>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, 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)
homeassistant  | 2024-01-15 17:25:37.899 INFO (MainThread) [zigpy.device] [0x904b] Discovering endpoints
homeassistant  | 2024-01-15 17:25:37.899 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 37, 899606, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=0, source_route=None, extended_timeout=False, tsn=2, profile_id=0, cluster_id=<ZDOCmd.Active_EP_req: 0x0005>, data=Serialized[b'\x02K\x90'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:37.900 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 55, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=0), 'profile_id': 0, 'cluster_id': <ZDOCmd.Active_EP_req: 0x0005>, 'src_ep': 0, 'asdu': b'\x02K\x90', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 'radius': 0, 'relays': None} (seq=216)
homeassistant  | 2024-01-15 17:25:37.901 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12d800190012003700024b900000000500000300024b900200
homeassistant  | 2024-01-15 17:25:37.912 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12d800090002002237
homeassistant  | 2024-01-15 17:25:37.913 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 55} (seq 216)
homeassistant  | 2024-01-15 17:25:37.913 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ed9000700a600
homeassistant  | 2024-01-15 17:25:37.914 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 217)
homeassistant  | 2024-01-15 17:25:37.915 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=217)
homeassistant  | 2024-01-15 17:25:37.916 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04d90007000000
homeassistant  | 2024-01-15 17:25:37.925 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0eda000700ae00
homeassistant  | 2024-01-15 17:25:37.926 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 43>), 'reserved': 0} (seq 218)
homeassistant  | 2024-01-15 17:25:37.926 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04d90013000c002a37024b9000000000000000
homeassistant  | 2024-01-15 17:25:37.927 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 10>), 'request_id': 55, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=0), 'src_ep': 0, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 217)
homeassistant  | 2024-01-15 17:25:37.929 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=218)
homeassistant  | 2024-01-15 17:25:37.930 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17da000800010001
homeassistant  | 2024-01-15 17:25:37.936 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17da0025001e002202000000024b900000000580070002004b900201f200afff8a231200cd
homeassistant  | 2024-01-15 17:25:37.937 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 37, 'payload_length': 30, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 0, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 0, 'profile_id': 0, 'cluster_id': 32773, 'asdu': b'\x02\x00K\x90\x02\x01\xf2', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 218)
homeassistant  | 2024-01-15 17:25:37.938 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 37, 938597, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=None, profile_id=0, cluster_id=32773, data=Serialized[b'\x02\x00K\x90\x02\x01\xf2'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:37.939 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x904B ieee=a4:c1:38:b4:fd:ee:69:9a is_initialized=False> from ep 0 to ep 0, cluster 32773: Serialized[b'\x02\x00K\x90\x02\x01\xf2']
homeassistant  | 2024-01-15 17:25:37.940 INFO (MainThread) [zigpy.device] [0x904b] Discovered endpoints: [1, 242]
homeassistant  | 2024-01-15 17:25:37.940 INFO (MainThread) [zigpy.device] [0x904b] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>, <Endpoint id=242 in=[] out=[] status=<Status.NEW: 0>>]
homeassistant  | 2024-01-15 17:25:37.940 INFO (MainThread) [zigpy.endpoint] [0x904b:1] Discovering endpoint information
homeassistant  | 2024-01-15 17:25:37.941 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 37, 941227, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=0, source_route=None, extended_timeout=False, tsn=3, profile_id=0, cluster_id=<ZDOCmd.Simple_Desc_req: 0x0004>, data=Serialized[b'\x03K\x90\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:37.942 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 56, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=0), 'profile_id': 0, 'cluster_id': <ZDOCmd.Simple_Desc_req: 0x0004>, 'src_ep': 0, 'asdu': b'\x03K\x90\x01', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 'radius': 0, 'relays': None} (seq=219)
homeassistant  | 2024-01-15 17:25:37.942 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12db001a0013003800024b900000000400000400034b90010200
homeassistant  | 2024-01-15 17:25:37.952 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x5DDE](lumi.plug.mmeu01): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:37.952 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x5DDE](lumi.plug.mmeu01): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:37.957 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12db00090002002238
homeassistant  | 2024-01-15 17:25:37.959 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 56} (seq 219)
homeassistant  | 2024-01-15 17:25:37.967 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0edc000700a600
homeassistant  | 2024-01-15 17:25:37.968 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 220)
homeassistant  | 2024-01-15 17:25:37.969 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=220)
homeassistant  | 2024-01-15 17:25:37.969 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04dc0007000000
homeassistant  | 2024-01-15 17:25:37.972 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04dc0013000c002238024b9000000000000000
homeassistant  | 2024-01-15 17:25:37.973 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 56, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=0), 'src_ep': 0, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 220)
homeassistant  | 2024-01-15 17:25:37.981 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0edd000700aa00
homeassistant  | 2024-01-15 17:25:37.982 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 221)
homeassistant  | 2024-01-15 17:25:37.983 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=221)
homeassistant  | 2024-01-15 17:25:37.983 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17dd000800010001
homeassistant  | 2024-01-15 17:25:37.987 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17dd00370030002202000000024b900000000480190003004b9014010401510001040400050000ef00000219000a0000afff8a231200cd
homeassistant  | 2024-01-15 17:25:37.988 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 55, 'payload_length': 48, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 0, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 0, 'profile_id': 0, 'cluster_id': 32772, 'asdu': b'\x03\x00K\x90\x14\x01\x04\x01Q\x00\x01\x04\x04\x00\x05\x00\x00\xef\x00\x00\x02\x19\x00\n\x00', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 221)
homeassistant  | 2024-01-15 17:25:37.989 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 37, 989223, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=None, profile_id=0, cluster_id=32772, data=Serialized[b'\x03\x00K\x90\x14\x01\x04\x01Q\x00\x01\x04\x04\x00\x05\x00\x00\xef\x00\x00\x02\x19\x00\n\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:37.990 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x904B ieee=a4:c1:38:b4:fd:ee:69:9a is_initialized=False> from ep 0 to ep 0, cluster 32772: Serialized[b'\x03\x00K\x90\x14\x01\x04\x01Q\x00\x01\x04\x04\x00\x05\x00\x00\xef\x00\x00\x02\x19\x00\n\x00']
homeassistant  | 2024-01-15 17:25:37.991 INFO (MainThread) [zigpy.endpoint] [0x904b:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=81, device_version=1, input_clusters=[4, 5, 61184, 0], output_clusters=[25, 10])
homeassistant  | 2024-01-15 17:25:37.991 DEBUG (MainThread) [zigpy.zcl] Unknown cluster 0xEF00
homeassistant  | 2024-01-15 17:25:37.993 INFO (MainThread) [zigpy.endpoint] [0x904b:242] Discovering endpoint information
homeassistant  | 2024-01-15 17:25:37.993 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 37, 993306, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=0, source_route=None, extended_timeout=False, tsn=4, profile_id=0, cluster_id=<ZDOCmd.Simple_Desc_req: 0x0004>, data=Serialized[b'\x04K\x90\xf2'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:37.994 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 57, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=0), 'profile_id': 0, 'cluster_id': <ZDOCmd.Simple_Desc_req: 0x0004>, 'src_ep': 0, 'asdu': b'\x04K\x90\xf2', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 'radius': 0, 'relays': None} (seq=222)
homeassistant  | 2024-01-15 17:25:37.994 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12de001a0013003900024b900000000400000400044b90f20200
homeassistant  | 2024-01-15 17:25:38.003 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12de00090002002239
homeassistant  | 2024-01-15 17:25:38.004 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 57} (seq 222)
homeassistant  | 2024-01-15 17:25:38.004 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0edf000700a600
homeassistant  | 2024-01-15 17:25:38.005 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 223)
homeassistant  | 2024-01-15 17:25:38.005 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=223)
homeassistant  | 2024-01-15 17:25:38.005 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04df0007000000
homeassistant  | 2024-01-15 17:25:38.008 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04df0013000c002239024b9000000000000000
homeassistant  | 2024-01-15 17:25:38.009 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 57, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=0), 'src_ep': 0, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 223)
homeassistant  | 2024-01-15 17:25:38.020 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ee0000700aa00
homeassistant  | 2024-01-15 17:25:38.021 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 224)
homeassistant  | 2024-01-15 17:25:38.021 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=224)
homeassistant  | 2024-01-15 17:25:38.021 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17e0000800010001
homeassistant  | 2024-01-15 17:25:38.024 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17e0002d0026002202000000024b9000000004800f0004004b900af2e0a16100000001210000afff8a231200cd
homeassistant  | 2024-01-15 17:25:38.025 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 45, 'payload_length': 38, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 0, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 0, 'profile_id': 0, 'cluster_id': 32772, 'asdu': b'\x04\x00K\x90\n\xf2\xe0\xa1a\x00\x00\x00\x01!\x00', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 224)
homeassistant  | 2024-01-15 17:25:38.025 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 38, 25628, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=None, profile_id=0, cluster_id=32772, data=Serialized[b'\x04\x00K\x90\n\xf2\xe0\xa1a\x00\x00\x00\x01!\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:38.026 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x904B ieee=a4:c1:38:b4:fd:ee:69:9a is_initialized=False> from ep 0 to ep 0, cluster 32772: Serialized[b'\x04\x00K\x90\n\xf2\xe0\xa1a\x00\x00\x00\x01!\x00']
homeassistant  | 2024-01-15 17:25:38.027 INFO (MainThread) [zigpy.endpoint] [0x904b:242] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=242, profile=41440, device_type=97, device_version=0, input_clusters=[], output_clusters=[33])
homeassistant  | 2024-01-15 17:25:38.028 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=5, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>)
homeassistant  | 2024-01-15 17:25:38.029 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5])
homeassistant  | 2024-01-15 17:25:38.029 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 38, 29630, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=5, profile_id=260, cluster_id=0, data=Serialized[b'\x00\x05\x00\x04\x00\x05\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:38.030 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 58, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 0, 'src_ep': 1, 'asdu': b'\x00\x05\x00\x04\x00\x05\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 'radius': 0, 'relays': None} (seq=225)
homeassistant  | 2024-01-15 17:25:38.030 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12e1001d0016003a00024b900104010000010700000500040005000200
homeassistant  | 2024-01-15 17:25:38.042 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12e10009000200223a
homeassistant  | 2024-01-15 17:25:38.043 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 58} (seq 225)
homeassistant  | 2024-01-15 17:25:38.043 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ee2000700a600
homeassistant  | 2024-01-15 17:25:38.043 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 226)
homeassistant  | 2024-01-15 17:25:38.044 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=226)
homeassistant  | 2024-01-15 17:25:38.044 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04e20007000000
homeassistant  | 2024-01-15 17:25:38.048 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04e20013000c00223a024b9001010000000000
homeassistant  | 2024-01-15 17:25:38.049 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 58, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 226)
homeassistant  | 2024-01-15 17:25:38.056 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ee3000700aa00
homeassistant  | 2024-01-15 17:25:38.057 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 227)
homeassistant  | 2024-01-15 17:25:38.057 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=227)
homeassistant  | 2024-01-15 17:25:38.057 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17e3000800010001
homeassistant  | 2024-01-15 17:25:38.061 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17e30041003a002202000001024b900104010000230018050104000042105f545a453230345f6c73616e61653135050000420654533036303100afff8a231200cd
homeassistant  | 2024-01-15 17:25:38.062 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 65, 'payload_length': 58, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 0, 'asdu': b'\x18\x05\x01\x04\x00\x00B\x10_TZE204_lsanae15\x05\x00\x00B\x06TS0601', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 227)
homeassistant  | 2024-01-15 17:25:38.063 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 38, 63770, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=0, data=Serialized[b'\x18\x05\x01\x04\x00\x00B\x10_TZE204_lsanae15\x05\x00\x00B\x06TS0601'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:38.065 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Received ZCL frame: b'\x18\x05\x01\x04\x00\x00B\x10_TZE204_lsanae15\x05\x00\x00B\x06TS0601'
homeassistant  | 2024-01-15 17:25:38.065 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=5, command_id=1, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:38.066 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='_TZE204_lsanae15')), ReadAttributeRecord(attrid=0x0005, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='TS0601'))])
homeassistant  | 2024-01-15 17:25:38.068 INFO (MainThread) [zigpy.device] [0x904b] Read model 'TS0601' and manufacturer '_TZE204_lsanae15' from <Endpoint id=1 in=[groups:0x0004, scenes:0x0005, None:0xEF00, basic:0x0000] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>
homeassistant  | 2024-01-15 17:25:38.068 INFO (MainThread) [zigpy.device] [0x904b] Discovered basic device information for <Device model='TS0601' manuf='_TZE204_lsanae15' nwk=0x904B ieee=a4:c1:38:b4:fd:ee:69:9a is_initialized=True>
homeassistant  | 2024-01-15 17:25:38.068 DEBUG (MainThread) [zigpy.application] Device is initialized <Device model='TS0601' manuf='_TZE204_lsanae15' nwk=0x904B ieee=a4:c1:38:b4:fd:ee:69:9a is_initialized=True>
homeassistant  | 2024-01-15 17:25:38.070 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for _TZE204_lsanae15 TS0601 (a4:c1:38:b4:fd:ee:69:9a)
homeassistant  | 2024-01-15 17:25:38.070 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'ts0601_din_power_2.TuyaPowerMeter_GPP'>
homeassistant  | 2024-01-15 17:25:38.070 DEBUG (MainThread) [zigpy.quirks.registry] Found custom device replacement for a4:c1:38:b4:fd:ee:69:9a: <class 'ts0601_din_power_2.TuyaPowerMeter_GPP'>
homeassistant  | 2024-01-15 17:25:38.074 INFO (MainThread) [homeassistant.components.zha.core.endpoint] Creating cluster handler for cluster id: 0 class: <class 'homeassistant.components.zha.core.cluster_handlers.general.BasicClusterHandler'>
homeassistant  | 2024-01-15 17:25:38.075 INFO (MainThread) [homeassistant.components.zha.core.endpoint] Creating cluster handler for cluster id: 4 class: <class 'homeassistant.components.zha.core.cluster_handlers.general.Groups'>
homeassistant  | 2024-01-15 17:25:38.075 INFO (MainThread) [homeassistant.components.zha.core.endpoint] Creating cluster handler for cluster id: 5 class: <class 'homeassistant.components.zha.core.cluster_handlers.general.Scenes'>
homeassistant  | 2024-01-15 17:25:38.075 INFO (MainThread) [homeassistant.components.zha.core.endpoint] Creating cluster handler for cluster id: 61184 class: <class 'homeassistant.components.zha.core.cluster_handlers.manufacturerspecific.TuyaClusterHandler'>
homeassistant  | 2024-01-15 17:25:38.075 INFO (MainThread) [homeassistant.components.zha.core.endpoint] Creating cluster handler for cluster id: 2820 class: <class 'homeassistant.components.zha.core.cluster_handlers.homeautomation.ElectricalMeasurementClusterHandler'>
homeassistant  | 2024-01-15 17:25:38.075 INFO (MainThread) [homeassistant.components.zha.core.endpoint] Creating cluster handler for cluster id: 1794 class: <class 'homeassistant.components.zha.core.cluster_handlers.smartenergy.Metering'>
homeassistant  | 2024-01-15 17:25:38.076 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] Discovering entities for endpoint: a4:c1:38:b4:fd:ee:69:9a-1
homeassistant  | 2024-01-15 17:25:38.081 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'ElectricalMeasurementApparentPower' using ['electrical_measurement']
homeassistant  | 2024-01-15 17:25:38.081 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'ElectricalMeasurementRMSCurrent' using ['electrical_measurement']
homeassistant  | 2024-01-15 17:25:38.082 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'ElectricalMeasurementRMSVoltage' using ['electrical_measurement']
homeassistant  | 2024-01-15 17:25:38.082 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'ElectricalMeasurementFrequency' using ['electrical_measurement']
homeassistant  | 2024-01-15 17:25:38.082 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'ElectricalMeasurementPowerFactor' using ['electrical_measurement']
homeassistant  | 2024-01-15 17:25:38.082 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'RSSISensor' using ['basic']
homeassistant  | 2024-01-15 17:25:38.082 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'LQISensor' using ['basic']
homeassistant  | 2024-01-15 17:25:38.082 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'PolledElectricalMeasurement' using ['electrical_measurement']
homeassistant  | 2024-01-15 17:25:38.082 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'SmartEnergyMetering' using ['smartenergy_metering']
homeassistant  | 2024-01-15 17:25:38.082 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'SmartEnergySummation' using ['smartenergy_metering']
homeassistant  | 2024-01-15 17:25:38.085 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] Discovering entities for endpoint: a4:c1:38:b4:fd:ee:69:9a-242
homeassistant  | 2024-01-15 17:25:38.090 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x904B](TS0601): starting availability checks - interval: 86
homeassistant  | 2024-01-15 17:25:38.091 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x904B:a4:c1:38:b4:fd:ee:69:9a entering async_device_initialized - is_new_join: True
homeassistant  | 2024-01-15 17:25:38.091 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x904B:a4:c1:38:b4:fd:ee:69:9a has joined the ZHA zigbee network
homeassistant  | 2024-01-15 17:25:38.093 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x904B](TS0601): started configuration
homeassistant  | 2024-01-15 17:25:38.093 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:ZDO](TS0601): 'async_configure' stage succeeded
homeassistant  | 2024-01-15 17:25:38.100 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 0, 4, '_TZE204_lsanae15', datetime.datetime(2024, 1, 15, 15, 25, 38, 67857, tzinfo=datetime.timezone.utc)) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.101 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0000]: Configuring cluster attribute reporting
homeassistant  | 2024-01-15 17:25:38.101 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0000]: finished cluster handler configuration
homeassistant  | 2024-01-15 17:25:38.101 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: Performing cluster binding
homeassistant  | 2024-01-15 17:25:38.102 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: bound 'smartenergy_metering' cluster: Status.SUCCESS
homeassistant  | 2024-01-15 17:25:38.102 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: Configuring cluster attribute reporting
homeassistant  | 2024-01-15 17:25:38.102 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: Successfully configured reporting for '{'instantaneous_demand': (5, 900, 1), 'current_summ_delivered': (30, 900, 1), 'current_tier1_summ_delivered': (30, 900, 1)}' on 'smartenergy_metering' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
homeassistant  | 2024-01-15 17:25:38.103 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: Successfully configured reporting for '{'current_tier2_summ_delivered': (30, 900, 1), 'current_tier3_summ_delivered': (30, 900, 1), 'current_tier4_summ_delivered': (30, 900, 1)}' on 'smartenergy_metering' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
homeassistant  | 2024-01-15 17:25:38.104 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: Successfully configured reporting for '{'current_tier5_summ_delivered': (30, 900, 1), 'current_tier6_summ_delivered': (30, 900, 1), 'status': (1, 900, 1)}' on 'smartenergy_metering' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
homeassistant  | 2024-01-15 17:25:38.104 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: finished cluster handler configuration
homeassistant  | 2024-01-15 17:25:38.104 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: Performing cluster binding
homeassistant  | 2024-01-15 17:25:38.105 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: bound 'electrical_measurement' cluster: Status.SUCCESS
homeassistant  | 2024-01-15 17:25:38.105 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: Configuring cluster attribute reporting
homeassistant  | 2024-01-15 17:25:38.105 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: Successfully configured reporting for '{'active_power': (5, 900, 1), 'active_power_max': (30, 900, 1), 'apparent_power': (5, 900, 1)}' on 'electrical_measurement' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
homeassistant  | 2024-01-15 17:25:38.106 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: Successfully configured reporting for '{'rms_current': (5, 900, 1), 'rms_current_max': (30, 900, 1), 'rms_voltage': (5, 900, 1)}' on 'electrical_measurement' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
homeassistant  | 2024-01-15 17:25:38.107 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: Successfully configured reporting for '{'rms_voltage_max': (30, 900, 1), 'ac_frequency': (5, 900, 1), 'ac_frequency_max': (30, 900, 1)}' on 'electrical_measurement' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
homeassistant  | 2024-01-15 17:25:38.107 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: finished cluster handler configuration
homeassistant  | 2024-01-15 17:25:38.107 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0xef00]: Performing cluster binding
homeassistant  | 2024-01-15 17:25:38.108 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 38, 108249, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=0, source_route=None, extended_timeout=False, tsn=1, profile_id=0, cluster_id=<ZDOCmd.Bind_req: 0x0021>, data=Serialized[b'\x01\x9ai\xee\xfd\xb48\xc1\xa4\x01\x00\xef\x03\xf8\xf9\x07\xff\xff.!\x00\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:38.109 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 59, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=0), 'profile_id': 0, 'cluster_id': <ZDOCmd.Bind_req: 0x0021>, 'src_ep': 0, 'asdu': b'\x01\x9ai\xee\xfd\xb48\xc1\xa4\x01\x00\xef\x03\xf8\xf9\x07\xff\xff.!\x00\x01', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 'radius': 0, 'relays': None} (seq=228)
homeassistant  | 2024-01-15 17:25:38.109 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12e4002c0025003b00024b900000002100001600019a69eefdb438c1a40100ef03f8f907ffff2e2100010200
homeassistant  | 2024-01-15 17:25:38.110 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0019]: finished cluster handler configuration
homeassistant  | 2024-01-15 17:25:38.119 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 0, 5, 'TS0601', datetime.datetime(2024, 1, 15, 15, 25, 38, 67913, tzinfo=datetime.timezone.utc)) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.125 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12e40009000200223b
homeassistant  | 2024-01-15 17:25:38.125 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 59} (seq 228)
homeassistant  | 2024-01-15 17:25:38.126 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ee5000700a600
homeassistant  | 2024-01-15 17:25:38.126 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 229)
homeassistant  | 2024-01-15 17:25:38.131 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=229)
homeassistant  | 2024-01-15 17:25:38.131 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04e50007000000
homeassistant  | 2024-01-15 17:25:38.136 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04e50013000c00223b024b9000000000000000
homeassistant  | 2024-01-15 17:25:38.137 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 59, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=0), 'src_ep': 0, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 229)
homeassistant  | 2024-01-15 17:25:38.154 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ee6000700aa00
homeassistant  | 2024-01-15 17:25:38.155 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 230)
homeassistant  | 2024-01-15 17:25:38.156 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=230)
homeassistant  | 2024-01-15 17:25:38.156 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17e6000800010001
homeassistant  | 2024-01-15 17:25:38.158 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17e600200019002202000000024b9000000021800200010000afff8a231200cc
homeassistant  | 2024-01-15 17:25:38.160 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 32, 'payload_length': 25, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 0, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 0, 'profile_id': 0, 'cluster_id': 32801, 'asdu': b'\x01\x00', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -52} (seq 230)
homeassistant  | 2024-01-15 17:25:38.160 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 38, 160809, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=None, profile_id=0, cluster_id=32801, data=Serialized[b'\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-52)
homeassistant  | 2024-01-15 17:25:38.161 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0xef00]: bound 'tuya_manufacturer' cluster: Status.SUCCESS
homeassistant  | 2024-01-15 17:25:38.162 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0xef00]: Configuring cluster attribute reporting
homeassistant  | 2024-01-15 17:25:38.162 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0xef00]: finished cluster handler configuration
homeassistant  | 2024-01-15 17:25:38.164 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0000]: 'async_configure' stage succeeded
homeassistant  | 2024-01-15 17:25:38.165 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: 'async_configure' stage succeeded
homeassistant  | 2024-01-15 17:25:38.165 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: 'async_configure' stage succeeded
homeassistant  | 2024-01-15 17:25:38.165 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0xef00]: 'async_configure' stage succeeded
homeassistant  | 2024-01-15 17:25:38.165 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0019]: 'async_configure' stage succeeded
homeassistant  | 2024-01-15 17:25:38.166 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x904B](TS0601): completed configuration
homeassistant  | 2024-01-15 17:25:38.167 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x904B](TS0601): started initialization
homeassistant  | 2024-01-15 17:25:38.167 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:ZDO](TS0601): 'async_initialize' stage succeeded
homeassistant  | 2024-01-15 17:25:38.169 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0000]: initializing cluster handler: from_cache: False
homeassistant  | 2024-01-15 17:25:38.169 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0000]: finished cluster handler initialization
homeassistant  | 2024-01-15 17:25:38.169 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: initializing cluster handler: from_cache: False
homeassistant  | 2024-01-15 17:25:38.170 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: initializing cached cluster handler attributes: ['demand_formatting', 'divisor', 'metering_device_type', 'multiplier', 'summation_formatting', 'unit_of_measure']
homeassistant  | 2024-01-15 17:25:38.170 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: Reading attributes in chunks: ['demand_formatting', 'divisor', 'metering_device_type', 'multiplier', 'summation_formatting']
homeassistant  | 2024-01-15 17:25:38.171 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: Reading attributes in chunks: ['unit_of_measure']
homeassistant  | 2024-01-15 17:25:38.171 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: initializing uncached cluster handler attributes: ['instantaneous_demand', 'current_summ_delivered', 'current_tier1_summ_delivered', 'current_tier2_summ_delivered', 'current_tier3_summ_delivered', 'current_tier4_summ_delivered', 'current_tier5_summ_delivered', 'current_tier6_summ_delivered', 'status'] - from cache[False]
homeassistant  | 2024-01-15 17:25:38.171 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: Reading attributes in chunks: ['instantaneous_demand', 'current_summ_delivered', 'current_tier1_summ_delivered', 'current_tier2_summ_delivered', 'current_tier3_summ_delivered']
homeassistant  | 2024-01-15 17:25:38.172 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: Reading attributes in chunks: ['current_tier4_summ_delivered', 'current_tier5_summ_delivered', 'current_tier6_summ_delivered', 'status']
homeassistant  | 2024-01-15 17:25:38.172 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: Performing cluster handler specific initialization: ['instantaneous_demand', 'current_summ_delivered', 'current_tier1_summ_delivered', 'current_tier2_summ_delivered', 'current_tier3_summ_delivered', 'current_tier4_summ_delivered', 'current_tier5_summ_delivered', 'current_tier6_summ_delivered', 'status']
homeassistant  | 2024-01-15 17:25:38.173 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: finished cluster handler initialization
homeassistant  | 2024-01-15 17:25:38.173 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: initializing cluster handler: from_cache: False
homeassistant  | 2024-01-15 17:25:38.173 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: initializing cached cluster handler attributes: ['ac_current_divisor', 'ac_current_multiplier', 'ac_power_divisor', 'ac_power_multiplier', 'ac_voltage_divisor', 'ac_voltage_multiplier', 'ac_frequency_divisor', 'ac_frequency_multiplier', 'measurement_type', 'power_divisor', 'power_multiplier', 'power_factor']
homeassistant  | 2024-01-15 17:25:38.173 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: Reading attributes in chunks: ['ac_current_divisor', 'ac_current_multiplier', 'ac_power_divisor', 'ac_power_multiplier', 'ac_voltage_divisor']
homeassistant  | 2024-01-15 17:25:38.174 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: Reading attributes in chunks: ['ac_voltage_multiplier', 'ac_frequency_divisor', 'ac_frequency_multiplier', 'measurement_type', 'power_divisor']
homeassistant  | 2024-01-15 17:25:38.175 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: Reading attributes in chunks: ['power_multiplier', 'power_factor']
homeassistant  | 2024-01-15 17:25:38.175 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: initializing uncached cluster handler attributes: ['active_power', 'active_power_max', 'apparent_power', 'rms_current', 'rms_current_max', 'rms_voltage', 'rms_voltage_max', 'ac_frequency', 'ac_frequency_max'] - from cache[False]
homeassistant  | 2024-01-15 17:25:38.175 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: Reading attributes in chunks: ['active_power', 'active_power_max', 'apparent_power', 'rms_current', 'rms_current_max']
homeassistant  | 2024-01-15 17:25:38.176 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: Reading attributes in chunks: ['rms_voltage', 'rms_voltage_max', 'ac_frequency', 'ac_frequency_max']
homeassistant  | 2024-01-15 17:25:38.176 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: finished cluster handler initialization
homeassistant  | 2024-01-15 17:25:38.177 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0xef00]: initializing cluster handler: from_cache: False
homeassistant  | 2024-01-15 17:25:38.177 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0xef00]: finished cluster handler initialization
homeassistant  | 2024-01-15 17:25:38.177 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0019]: initializing cluster handler: from_cache: False
homeassistant  | 2024-01-15 17:25:38.177 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0019]: finished cluster handler initialization
homeassistant  | 2024-01-15 17:25:38.179 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0000]: 'async_initialize' stage succeeded
homeassistant  | 2024-01-15 17:25:38.179 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0702]: 'async_initialize' stage succeeded
homeassistant  | 2024-01-15 17:25:38.179 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0b04]: 'async_initialize' stage succeeded
homeassistant  | 2024-01-15 17:25:38.179 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0xef00]: 'async_initialize' stage succeeded
homeassistant  | 2024-01-15 17:25:38.179 DEBUG (MainThread) [homeassistant.components.zha.core.cluster_handlers] [0x904B:1:0x0019]: 'async_initialize' stage succeeded
homeassistant  | 2024-01-15 17:25:38.180 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x904B](TS0601): power source: Mains
homeassistant  | 2024-01-15 17:25:38.180 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x904B](TS0601): completed initialization
homeassistant  | 2024-01-15 17:25:38.183 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.zha entity: sensor.tze204_lsanae15_ts0601_rssi
homeassistant  | 2024-01-15 17:25:38.184 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.zha entity: sensor.tze204_lsanae15_ts0601_lqi
homeassistant  | 2024-01-15 17:25:38.209 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 772) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.240 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 774) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.246 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 769) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.251 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 771) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.258 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 1024) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.262 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 0) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.265 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 256) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.267 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 258) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.269 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 260) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.270 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 262) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.272 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 264) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.274 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 266) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.277 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 1794, 512) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.297 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1541) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.298 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1540) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.315 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1025) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.318 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1024) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.322 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 0) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.324 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1027) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.328 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1026) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.331 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1296) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.334 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1291) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.336 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1293) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.337 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1295) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.339 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1288) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.342 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1290) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.345 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1285) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.347 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 1287) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.348 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 768) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:38.350 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (a4:c1:38:b4:fd:ee:69:9a, 1, 2820, 770) params: FOREIGN KEY constraint failed
homeassistant  | 2024-01-15 17:25:41.006 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xA289](lumi.light.aqcn02): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:41.006 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xA289](lumi.light.aqcn02): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:41.887 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9673](lumi.plug.mmeu01): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:41.888 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9673](lumi.plug.mmeu01): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:42.814 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x8E89](lumi.sensor_switch): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:42.814 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x8E89](lumi.sensor_switch): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:42.835 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1B61](lumi.sensor_magnet): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:42.835 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1B61](lumi.sensor_magnet): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:43.746 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xD88F](TS0601): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:43.747 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xD88F](TS0601): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:43.790 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xC4EC](BASICZBR3): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:43.791 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xC4EC](BASICZBR3): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:43.913 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xAF78](lumi.sensor_motion): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:43.913 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xAF78](lumi.sensor_motion): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:44.037 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ee7000700aa00
homeassistant  | 2024-01-15 17:25:44.037 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 231)
homeassistant  | 2024-01-15 17:25:44.039 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=231)
homeassistant  | 2024-01-15 17:25:44.039 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17e7000800010001
homeassistant  | 2024-01-15 17:25:44.042 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17e70024001d002202000001024b9001040100ef0600097c1100934000afff8a231200cc
homeassistant  | 2024-01-15 17:25:44.043 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 36, 'payload_length': 29, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t|\x11\x00\x93@', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -52} (seq 231)
homeassistant  | 2024-01-15 17:25:44.044 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 44, 44590, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t|\x11\x00\x93@'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-52)
homeassistant  | 2024-01-15 17:25:44.045 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t|\x11\x00\x93@'
homeassistant  | 2024-01-15 17:25:44.046 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=124, command_id=17, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:44.047 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.047 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x11 (TSN 124): mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.048 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] No explicit handler for cluster command 0x11: mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.238 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ee8000700aa00
homeassistant  | 2024-01-15 17:25:44.238 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 232)
homeassistant  | 2024-01-15 17:25:44.240 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=232)
homeassistant  | 2024-01-15 17:25:44.241 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17e8000800010001
homeassistant  | 2024-01-15 17:25:44.243 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17e80024001d002202000001024b9001040100ef0600097c1100934000afff8a231200cc
homeassistant  | 2024-01-15 17:25:44.244 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 36, 'payload_length': 29, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t|\x11\x00\x93@', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -52} (seq 232)
homeassistant  | 2024-01-15 17:25:44.244 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 44, 244870, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t|\x11\x00\x93@'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-52)
homeassistant  | 2024-01-15 17:25:44.245 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t|\x11\x00\x93@'
homeassistant  | 2024-01-15 17:25:44.246 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=124, command_id=17, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:44.247 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.247 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x11 (TSN 124): mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.248 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] No explicit handler for cluster command 0x11: mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.439 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ee9000700aa00
homeassistant  | 2024-01-15 17:25:44.439 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 233)
homeassistant  | 2024-01-15 17:25:44.441 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=233)
homeassistant  | 2024-01-15 17:25:44.441 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17e9000800010001
homeassistant  | 2024-01-15 17:25:44.445 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17e90024001d002202000001024b9001040100ef0600097c1100934000afff8a231200cc
homeassistant  | 2024-01-15 17:25:44.446 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 36, 'payload_length': 29, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t|\x11\x00\x93@', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -52} (seq 233)
homeassistant  | 2024-01-15 17:25:44.447 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 44, 447117, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t|\x11\x00\x93@'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-52)
homeassistant  | 2024-01-15 17:25:44.448 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t|\x11\x00\x93@'
homeassistant  | 2024-01-15 17:25:44.448 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=124, command_id=17, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:44.449 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.449 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x11 (TSN 124): mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.450 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] No explicit handler for cluster command 0x11: mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.639 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0eea000700aa00
homeassistant  | 2024-01-15 17:25:44.639 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 234)
homeassistant  | 2024-01-15 17:25:44.640 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=234)
homeassistant  | 2024-01-15 17:25:44.641 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17ea000800010001
homeassistant  | 2024-01-15 17:25:44.642 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17ea0024001d002202000001024b9001040100ef0600097c1100934000afff8a231200cc
homeassistant  | 2024-01-15 17:25:44.643 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 36, 'payload_length': 29, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t|\x11\x00\x93@', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -52} (seq 234)
homeassistant  | 2024-01-15 17:25:44.644 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 44, 644468, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t|\x11\x00\x93@'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-52)
homeassistant  | 2024-01-15 17:25:44.645 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t|\x11\x00\x93@'
homeassistant  | 2024-01-15 17:25:44.645 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=124, command_id=17, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:44.646 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.647 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x11 (TSN 124): mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.647 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] No explicit handler for cluster command 0x11: mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.839 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0eeb000700aa00
homeassistant  | 2024-01-15 17:25:44.839 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 235)
homeassistant  | 2024-01-15 17:25:44.840 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=235)
homeassistant  | 2024-01-15 17:25:44.841 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17eb000800010001
homeassistant  | 2024-01-15 17:25:44.842 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17eb0024001d002202000001024b9001040100ef0600097c1100934000afff8a231200cd
homeassistant  | 2024-01-15 17:25:44.843 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 36, 'payload_length': 29, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t|\x11\x00\x93@', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 235)
homeassistant  | 2024-01-15 17:25:44.844 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 44, 844415, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t|\x11\x00\x93@'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:44.845 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t|\x11\x00\x93@'
homeassistant  | 2024-01-15 17:25:44.845 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=124, command_id=17, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:44.846 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.847 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x11 (TSN 124): mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.847 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] No explicit handler for cluster command 0x11: mcu_version_rsp(param=MCUVersionRsp(tsn=37632, version=64))
homeassistant  | 2024-01-15 17:25:44.934 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x99DB](lumi.plug.mmeu01): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:44.934 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x99DB](lumi.plug.mmeu01): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:45.352 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0eec000700aa00
homeassistant  | 2024-01-15 17:25:45.353 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 236)
homeassistant  | 2024-01-15 17:25:45.354 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=236)
homeassistant  | 2024-01-15 17:25:45.354 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17ec000800010001
homeassistant  | 2024-01-15 17:25:45.360 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17ec0023001c002202000001024b900104010a000500007d00070000afff8a231200cd
homeassistant  | 2024-01-15 17:25:45.361 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 35, 'payload_length': 28, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 10, 'asdu': b'\x00}\x00\x07\x00', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 236)
homeassistant  | 2024-01-15 17:25:45.362 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 45, 362368, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=10, data=Serialized[b'\x00}\x00\x07\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:45.363 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x000a] Received ZCL frame: b'\x00}\x00\x07\x00'
homeassistant  | 2024-01-15 17:25:45.364 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x000a] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=125, command_id=0, *direction=<Direction.Server_to_Client: 0>)
homeassistant  | 2024-01-15 17:25:45.365 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x000a] Decoded ZCL frame: Time:Read_Attributes(attribute_ids=[7])
homeassistant  | 2024-01-15 17:25:45.365 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x000a] Received command 0x00 (TSN 125): Read_Attributes(attribute_ids=[7])
homeassistant  | 2024-01-15 17:25:45.367 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x000a] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=125, command_id=<GeneralCommand.Read_Attributes_rsp: 1>, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:45.368 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x000a] Sending reply: Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0007, status=<Status.SUCCESS: 0>, value=TypeValue(type=LocalTime, value=758654745))])
homeassistant  | 2024-01-15 17:25:45.369 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 45, 369812, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=125, profile_id=260, cluster_id=10, data=Serialized[b"\x18}\x01\x07\x00\x00#\x19'8-"], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:45.370 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 60, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 10, 'src_ep': 1, 'asdu': b"\x18}\x01\x07\x00\x00#\x19'8-", 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=237)
homeassistant  | 2024-01-15 17:25:45.371 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12ed0021001a003c00024b900104010a00010b00187d01070000231927382d0600
homeassistant  | 2024-01-15 17:25:45.381 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12ed0009000200223c
homeassistant  | 2024-01-15 17:25:45.382 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 60} (seq 237)
homeassistant  | 2024-01-15 17:25:45.387 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0eee000700a600
homeassistant  | 2024-01-15 17:25:45.388 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 238)
homeassistant  | 2024-01-15 17:25:45.390 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=238)
homeassistant  | 2024-01-15 17:25:45.391 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04ee0007000000
homeassistant  | 2024-01-15 17:25:45.392 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04ee0013000c00223c024b9001010000000000
homeassistant  | 2024-01-15 17:25:45.393 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 60, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 238)
homeassistant  | 2024-01-15 17:25:45.821 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x8558](lumi.sensor_motion.aq2): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:45.821 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x8558](lumi.sensor_motion.aq2): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:45.871 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x77A9](lumi.weather): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:45.871 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x77A9](lumi.weather): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:45.968 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x15F5](lumi.switch.l0agl1): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:45.968 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x15F5](lumi.switch.l0agl1): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:46.103 DEBUG (MainThread) [zigpy.application] Feeding watchdog
homeassistant  | 2024-01-15 17:25:46.103 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.write_parameter{'parameter_id': <NetworkParameter.watchdog_ttl: 38>, 'parameter': b'<\x00\x00\x00'} (seq=239)
homeassistant  | 2024-01-15 17:25:46.104 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0bef000c000500263c000000
homeassistant  | 2024-01-15 17:25:46.107 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0bef000800010026
homeassistant  | 2024-01-15 17:25:46.107 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.write_parameter{'status': <Status.SUCCESS: 0>, 'frame_length': 8, 'payload_length': 1, 'parameter_id': <NetworkParameter.watchdog_ttl: 38>} (seq 239)
homeassistant  | 2024-01-15 17:25:47.786 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ef0000700aa00
homeassistant  | 2024-01-15 17:25:47.787 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 240)
homeassistant  | 2024-01-15 17:25:47.788 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=240)
homeassistant  | 2024-01-15 17:25:47.789 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17f0000800010001
homeassistant  | 2024-01-15 17:25:47.791 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17f0002a002300220200000102d74f0b040119000c00013e01004f1234140130011500afe08a231200b6
homeassistant  | 2024-01-15 17:25:47.792 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 42, 'payload_length': 35, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x4FD7), 'src_ep': 11, 'profile_id': 260, 'cluster_id': 25, 'asdu': b'\x01>\x01\x00O\x124\x14\x010\x01\x15', 'reserved1': 0, 'reserved2': 175, 'lqi': 224, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -74} (seq 240)
homeassistant  | 2024-01-15 17:25:47.793 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 47, 793676, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4FD7), src_ep=11, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=25, data=Serialized[b'\x01>\x01\x00O\x124\x14\x010\x01\x15'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-74)
homeassistant  | 2024-01-15 17:25:47.794 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Received ZCL frame: b'\x01>\x01\x00O\x124\x14\x010\x01\x15'
homeassistant  | 2024-01-15 17:25:47.795 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=62, command_id=1, *direction=<Direction.Server_to_Client: 0>)
homeassistant  | 2024-01-15 17:25:47.796 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Decoded ZCL frame: Ota:QueryNextImageCommand(field_control=<FieldControl: 0>, manufacturer_code=4687, image_type=5172, current_file_version=352399361)
homeassistant  | 2024-01-15 17:25:47.796 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Received command 0x01 (TSN 62): QueryNextImageCommand(field_control=<FieldControl: 0>, manufacturer_code=4687, image_type=5172, current_file_version=352399361)
homeassistant  | 2024-01-15 17:25:47.797 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] OTA query_next_image handler for 'GLEDOPTO GL-S-006P': field_control=0, manufacturer_id=4687, image_type=5172, current_file_version=352399361, hardware_version=None, model='GL-S-006P'
homeassistant  | 2024-01-15 17:25:47.797 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] No OTA image is available
homeassistant  | 2024-01-15 17:25:47.798 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=True, *is_general=False), tsn=62, command_id=2, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:47.799 DEBUG (MainThread) [zigpy.zcl] [0x4FD7:11:0x0019] Sending reply: query_next_image_response(status=<Status.NO_IMAGE_AVAILABLE: 152>, manufacturer_code=None, image_type=None, file_version=None, image_size=None)
homeassistant  | 2024-01-15 17:25:47.799 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 47, 799841, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=11, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4FD7), dst_ep=11, source_route=None, extended_timeout=False, tsn=62, profile_id=260, cluster_id=25, data=Serialized[b'\x19>\x02\x98'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:47.800 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 61, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x4FD7, endpoint=11), 'profile_id': 260, 'cluster_id': 25, 'src_ep': 1, 'asdu': b'\x19>\x02\x98', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=241)
homeassistant  | 2024-01-15 17:25:47.801 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12f1001a0013003d0002d74f0b04011900010400193e02980600
homeassistant  | 2024-01-15 17:25:47.818 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12f10009000200223d
homeassistant  | 2024-01-15 17:25:47.818 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 61} (seq 241)
homeassistant  | 2024-01-15 17:25:47.825 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ef2000700a600
homeassistant  | 2024-01-15 17:25:47.826 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 242)
homeassistant  | 2024-01-15 17:25:47.827 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=242)
homeassistant  | 2024-01-15 17:25:47.827 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04f20007000000
homeassistant  | 2024-01-15 17:25:47.829 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04f20013000c00223d02d74f0b010000000000
homeassistant  | 2024-01-15 17:25:47.830 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 61, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x4FD7, endpoint=11), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 242)
homeassistant  | 2024-01-15 17:25:47.833 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ef3000700aa00
homeassistant  | 2024-01-15 17:25:47.834 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 243)
homeassistant  | 2024-01-15 17:25:47.835 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=243)
homeassistant  | 2024-01-15 17:25:47.835 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17f3000800010001
homeassistant  | 2024-01-15 17:25:47.836 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17f3002f0028002202000001024b9001040100ef1100097e0200010600000808b000174f00051500afff8a231200cd
homeassistant  | 2024-01-15 17:25:47.838 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 47, 'payload_length': 40, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t~\x02\x00\x01\x06\x00\x00\x08\x08\xb0\x00\x17O\x00\x05\x15', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 243)
homeassistant  | 2024-01-15 17:25:47.839 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 47, 839676, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t~\x02\x00\x01\x06\x00\x00\x08\x08\xb0\x00\x17O\x00\x05\x15'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:47.841 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t~\x02\x00\x01\x06\x00\x00\x08\x08\xb0\x00\x17O\x00\x05\x15'
homeassistant  | 2024-01-15 17:25:47.841 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=126, command_id=2, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:47.842 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:set_data_response(param=Command(status=0, tsn=1, command_id=6, function=0, data=[8, 8, 176, 0, 23, 79, 0, 5, 21]))
homeassistant  | 2024-01-15 17:25:47.843 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x02 (TSN 126): set_data_response(param=Command(status=0, tsn=1, command_id=6, function=0, data=[8, 8, 176, 0, 23, 79, 0, 5, 21]))
homeassistant  | 2024-01-15 17:25:47.844 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=126, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:47.845 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
homeassistant  | 2024-01-15 17:25:47.846 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 47, 846267, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=126, profile_id=260, cluster_id=61184, data=Serialized[b'\x18~\x0b\x02\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:47.847 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 62, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 61184, 'src_ep': 1, 'asdu': b'\x18~\x0b\x02\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=244)
homeassistant  | 2024-01-15 17:25:47.847 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12f4001b0014003e00024b9001040100ef010500187e0b02000600
homeassistant  | 2024-01-15 17:25:47.858 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12f40009000200223e
homeassistant  | 2024-01-15 17:25:47.859 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 62} (seq 244)
homeassistant  | 2024-01-15 17:25:47.866 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ef5000700a600
homeassistant  | 2024-01-15 17:25:47.867 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 245)
homeassistant  | 2024-01-15 17:25:47.869 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=245)
homeassistant  | 2024-01-15 17:25:47.869 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04f50007000000
homeassistant  | 2024-01-15 17:25:47.873 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04f50013000c00223e024b9001010000000000
homeassistant  | 2024-01-15 17:25:47.874 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 62, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 245)
homeassistant  | 2024-01-15 17:25:47.918 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF480](lumi.weather): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:47.918 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF480](lumi.weather): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:47.975 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ef6000700aa00
homeassistant  | 2024-01-15 17:25:47.976 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 246)
homeassistant  | 2024-01-15 17:25:47.977 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=246)
homeassistant  | 2024-01-15 17:25:47.978 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17f6000800010001
homeassistant  | 2024-01-15 17:25:47.980 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17f6002b0024002202000001024b9001040100ef0d00097f02000201020004000077b400afff8a231200cd
homeassistant  | 2024-01-15 17:25:47.981 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 43, 'payload_length': 36, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t\x7f\x02\x00\x02\x01\x02\x00\x04\x00\x00w\xb4', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 246)
homeassistant  | 2024-01-15 17:25:47.982 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 47, 982809, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x7f\x02\x00\x02\x01\x02\x00\x04\x00\x00w\xb4'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:47.983 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t\x7f\x02\x00\x02\x01\x02\x00\x04\x00\x00w\xb4'
homeassistant  | 2024-01-15 17:25:47.984 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=127, command_id=2, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:47.985 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:set_data_response(param=Command(status=0, tsn=2, command_id=513, function=0, data=[4, 0, 0, 119, 180]))
homeassistant  | 2024-01-15 17:25:47.986 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x02 (TSN 127): set_data_response(param=Command(status=0, tsn=2, command_id=513, function=0, data=[4, 0, 0, 119, 180]))
homeassistant  | 2024-01-15 17:25:47.987 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=127, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:47.988 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
homeassistant  | 2024-01-15 17:25:47.989 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 47, 989121, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=127, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x7f\x0b\x02\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:47.989 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 63, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 61184, 'src_ep': 1, 'asdu': b'\x18\x7f\x0b\x02\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=247)
homeassistant  | 2024-01-15 17:25:47.990 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12f7001b0014003f00024b9001040100ef010500187f0b02000600
homeassistant  | 2024-01-15 17:25:47.992 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x8E93](lumi.plug.maeu01): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:47.993 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x8E93](lumi.plug.maeu01): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:47.997 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x5E59](lumi.light.aqcn02): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:47.997 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x5E59](lumi.light.aqcn02): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:48.001 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12f70009000200223f
homeassistant  | 2024-01-15 17:25:48.002 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 63} (seq 247)
homeassistant  | 2024-01-15 17:25:48.007 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ef8000700a600
homeassistant  | 2024-01-15 17:25:48.007 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 248)
homeassistant  | 2024-01-15 17:25:48.008 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=248)
homeassistant  | 2024-01-15 17:25:48.008 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04f80007000000
homeassistant  | 2024-01-15 17:25:48.009 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04f80013000c00223f024b9001010000000000
homeassistant  | 2024-01-15 17:25:48.010 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 63, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 248)
homeassistant  | 2024-01-15 17:25:48.089 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0ef9000700aa00
homeassistant  | 2024-01-15 17:25:48.090 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 249)
homeassistant  | 2024-01-15 17:25:48.091 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=249)
homeassistant  | 2024-01-15 17:25:48.092 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17f9000800010001
homeassistant  | 2024-01-15 17:25:48.095 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17f9002f0028002202000001024b9001040100ef110009800200030300000818011801000002a300afff8a231200ce
homeassistant  | 2024-01-15 17:25:48.096 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 47, 'payload_length': 40, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t\x80\x02\x00\x03\x03\x00\x00\x08\x18\x01\x18\x01\x00\x00\x02\xa3', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -50} (seq 249)
homeassistant  | 2024-01-15 17:25:48.097 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 48, 97091, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x80\x02\x00\x03\x03\x00\x00\x08\x18\x01\x18\x01\x00\x00\x02\xa3'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-50)
homeassistant  | 2024-01-15 17:25:48.098 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t\x80\x02\x00\x03\x03\x00\x00\x08\x18\x01\x18\x01\x00\x00\x02\xa3'
homeassistant  | 2024-01-15 17:25:48.099 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=128, command_id=2, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:48.101 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:set_data_response(param=Command(status=0, tsn=3, command_id=3, function=0, data=[8, 24, 1, 24, 1, 0, 0, 2, 163]))
homeassistant  | 2024-01-15 17:25:48.101 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x02 (TSN 128): set_data_response(param=Command(status=0, tsn=3, command_id=3, function=0, data=[8, 24, 1, 24, 1, 0, 0, 2, 163]))
homeassistant  | 2024-01-15 17:25:48.103 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=128, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:48.104 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
homeassistant  | 2024-01-15 17:25:48.104 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 48, 104607, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=128, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x80\x0b\x02\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:48.105 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 64, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 61184, 'src_ep': 1, 'asdu': b'\x18\x80\x0b\x02\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=250)
homeassistant  | 2024-01-15 17:25:48.105 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12fa001b0014004000024b9001040100ef01050018800b02000600
homeassistant  | 2024-01-15 17:25:48.116 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12fa00090002002240
homeassistant  | 2024-01-15 17:25:48.117 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 64} (seq 250)
homeassistant  | 2024-01-15 17:25:48.123 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0efb000700a600
homeassistant  | 2024-01-15 17:25:48.123 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 251)
homeassistant  | 2024-01-15 17:25:48.125 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=251)
homeassistant  | 2024-01-15 17:25:48.125 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04fb0007000000
homeassistant  | 2024-01-15 17:25:48.127 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04fb0013000c002240024b9001010000000000
homeassistant  | 2024-01-15 17:25:48.128 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 64, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 251)
homeassistant  | 2024-01-15 17:25:48.237 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0efc000700aa00
homeassistant  | 2024-01-15 17:25:48.238 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 252)
homeassistant  | 2024-01-15 17:25:48.240 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=252)
homeassistant  | 2024-01-15 17:25:48.240 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17fc000800010001
homeassistant  | 2024-01-15 17:25:48.243 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17fc002f0028002202000001024b9001040100ef1100098102000404000008010f010f000002a300afff8a231200ce
homeassistant  | 2024-01-15 17:25:48.244 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 47, 'payload_length': 40, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t\x81\x02\x00\x04\x04\x00\x00\x08\x01\x0f\x01\x0f\x00\x00\x02\xa3', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -50} (seq 252)
homeassistant  | 2024-01-15 17:25:48.245 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 48, 245354, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x81\x02\x00\x04\x04\x00\x00\x08\x01\x0f\x01\x0f\x00\x00\x02\xa3'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-50)
homeassistant  | 2024-01-15 17:25:48.246 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t\x81\x02\x00\x04\x04\x00\x00\x08\x01\x0f\x01\x0f\x00\x00\x02\xa3'
homeassistant  | 2024-01-15 17:25:48.246 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=129, command_id=2, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:48.247 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:set_data_response(param=Command(status=0, tsn=4, command_id=4, function=0, data=[8, 1, 15, 1, 15, 0, 0, 2, 163]))
homeassistant  | 2024-01-15 17:25:48.248 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x02 (TSN 129): set_data_response(param=Command(status=0, tsn=4, command_id=4, function=0, data=[8, 1, 15, 1, 15, 0, 0, 2, 163]))
homeassistant  | 2024-01-15 17:25:48.249 DEBUG (MainThread) [zigpy_deconz.utils] Endless task <function Deconz._data_poller at 0x7f898aeac0> failed, restarting...
homeassistant  |   File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/utils.py", line 17, in replacement
homeassistant  |   File "/usr/local/lib/python3.11/site-packages/zigpy_deconz/api.py", line 738, in _data_poller
homeassistant  |   File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 1024, in packet_received
homeassistant  |   File "/usr/local/lib/python3.11/site-packages/zigpy/device.py", line 472, in packet_received
homeassistant  |   File "/usr/local/lib/python3.11/site-packages/zigpy/endpoint.py", line 235, in handle_message
homeassistant  |   File "/usr/local/lib/python3.11/site-packages/zigpy/zcl/__init__.py", line 426, in handle_message
homeassistant  |   File "/usr/local/lib/python3.11/site-packages/zhaquirks/tuya/__init__.py", line 493, in handle_cluster_request
homeassistant  |   File "/usr/local/lib/python3.11/site-packages/zigpy/types/basic.py", line 94, in __new__
homeassistant  | 2024-01-15 17:25:48.268 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=129, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:48.268 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
homeassistant  | 2024-01-15 17:25:48.269 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 48, 269497, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=129, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x81\x0b\x02\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:48.270 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 65, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 61184, 'src_ep': 1, 'asdu': b'\x18\x81\x0b\x02\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=253)
homeassistant  | 2024-01-15 17:25:48.270 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12fd001b0014004100024b9001040100ef01050018810b02000600
homeassistant  | 2024-01-15 17:25:48.280 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12fd00090002002241
homeassistant  | 2024-01-15 17:25:48.280 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 65} (seq 253)
homeassistant  | 2024-01-15 17:25:48.301 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0efe000700a600
homeassistant  | 2024-01-15 17:25:48.302 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 254)
homeassistant  | 2024-01-15 17:25:48.375 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0eff000700ae00
homeassistant  | 2024-01-15 17:25:48.376 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 43>), 'reserved': 0} (seq 255)
homeassistant  | 2024-01-15 17:25:48.576 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e00000700ae00
homeassistant  | 2024-01-15 17:25:48.577 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 43>), 'reserved': 0} (seq 0)
homeassistant  | 2024-01-15 17:25:48.777 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e01000700ae00
homeassistant  | 2024-01-15 17:25:48.778 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 43>), 'reserved': 0} (seq 1)
homeassistant  | 2024-01-15 17:25:49.018 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xA8E6](lumi.sen_ill.mgl01): Device seen - marking the device available and resetting counter
homeassistant  | 2024-01-15 17:25:49.018 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xA8E6](lumi.sen_ill.mgl01): Update device availability -  device available: True - new availability: True - changed: False
homeassistant  | 2024-01-15 17:25:49.268 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=254)
homeassistant  | 2024-01-15 17:25:49.269 DEBUG (MainThread) [zigpy_deconz.uart] Send: 17fe000800010001
homeassistant  | 2024-01-15 17:25:49.272 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17fe00290022002e02000001024b9001040100ef0b0009820200050b000002010000afff8a231200ce
homeassistant  | 2024-01-15 17:25:49.274 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 41, 'payload_length': 34, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 11>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t\x82\x02\x00\x05\x0b\x00\x00\x02\x01\x00', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -50} (seq 254)
homeassistant  | 2024-01-15 17:25:49.276 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 49, 276270, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x82\x02\x00\x05\x0b\x00\x00\x02\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-50)
homeassistant  | 2024-01-15 17:25:49.278 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t\x82\x02\x00\x05\x0b\x00\x00\x02\x01\x00'
homeassistant  | 2024-01-15 17:25:49.279 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=130, command_id=2, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:49.286 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:set_data_response(param=Command(status=0, tsn=5, command_id=11, function=0, data=[2, 1, 0]))
homeassistant  | 2024-01-15 17:25:49.287 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x02 (TSN 130): set_data_response(param=Command(status=0, tsn=5, command_id=11, function=0, data=[2, 1, 0]))
homeassistant  | 2024-01-15 17:25:49.290 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=255)
homeassistant  | 2024-01-15 17:25:49.290 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04ff0007000000
homeassistant  | 2024-01-15 17:25:49.293 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=130, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:49.295 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
homeassistant  | 2024-01-15 17:25:49.298 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 49, 298611, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=130, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x82\x0b\x02\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:49.305 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04ff0013000c002a41024b9001010000000000
homeassistant  | 2024-01-15 17:25:49.307 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 10>), 'request_id': 65, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 255)
homeassistant  | 2024-01-15 17:25:49.312 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 66, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 61184, 'src_ep': 1, 'asdu': b'\x18\x82\x0b\x02\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=1)
homeassistant  | 2024-01-15 17:25:49.313 DEBUG (MainThread) [zigpy_deconz.uart] Send: 1201001b0014004200024b9001040100ef01050018820b02000600
homeassistant  | 2024-01-15 17:25:49.323 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x120100090002002a42
homeassistant  | 2024-01-15 17:25:49.326 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 10>), 'request_id': 66} (seq 1)
homeassistant  | 2024-01-15 17:25:49.327 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=2)
homeassistant  | 2024-01-15 17:25:49.328 DEBUG (MainThread) [zigpy_deconz.uart] Send: 1702000800010001
homeassistant  | 2024-01-15 17:25:49.331 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x170200290022002a02000001024b9001040100ef0b0009820200050b000002010000afff8a231200cd
homeassistant  | 2024-01-15 17:25:49.334 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 41, 'payload_length': 34, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 10>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t\x82\x02\x00\x05\x0b\x00\x00\x02\x01\x00', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 2)
homeassistant  | 2024-01-15 17:25:49.335 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 49, 335900, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x82\x02\x00\x05\x0b\x00\x00\x02\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:49.337 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t\x82\x02\x00\x05\x0b\x00\x00\x02\x01\x00'
homeassistant  | 2024-01-15 17:25:49.339 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=130, command_id=2, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:49.341 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:set_data_response(param=Command(status=0, tsn=5, command_id=11, function=0, data=[2, 1, 0]))
homeassistant  | 2024-01-15 17:25:49.342 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x02 (TSN 130): set_data_response(param=Command(status=0, tsn=5, command_id=11, function=0, data=[2, 1, 0]))
homeassistant  | 2024-01-15 17:25:49.344 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=3)
homeassistant  | 2024-01-15 17:25:49.344 DEBUG (MainThread) [zigpy_deconz.uart] Send: 1703000800010001
homeassistant  | 2024-01-15 17:25:49.348 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=130, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:49.350 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
homeassistant  | 2024-01-15 17:25:49.353 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 49, 353358, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=130, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x82\x0b\x02\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:49.356 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e03000700ae00
homeassistant  | 2024-01-15 17:25:49.357 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 43>), 'reserved': 0} (seq 3)
homeassistant  | 2024-01-15 17:25:49.357 DEBUG (MainThread) [zigpy_deconz.api] Mismatched response, triggering error in 0.50s
homeassistant  | 2024-01-15 17:25:49.358 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e04000700ae00
homeassistant  | 2024-01-15 17:25:49.359 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 43>), 'reserved': 0} (seq 4)
homeassistant  | 2024-01-15 17:25:49.360 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x170300290022002e02000001024b9001040100ef0b0009820200050b000002010000afff8a231200ce
homeassistant  | 2024-01-15 17:25:49.361 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 41, 'payload_length': 34, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 11>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t\x82\x02\x00\x05\x0b\x00\x00\x02\x01\x00', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -50} (seq 3)
homeassistant  | 2024-01-15 17:25:49.362 DEBUG (MainThread) [zigpy_deconz.api] Clearing existing mismatched response timer
homeassistant  | 2024-01-15 17:25:49.365 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 49, 365610, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x82\x02\x00\x05\x0b\x00\x00\x02\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-50)
homeassistant  | 2024-01-15 17:25:49.368 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t\x82\x02\x00\x05\x0b\x00\x00\x02\x01\x00'
homeassistant  | 2024-01-15 17:25:49.369 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=130, command_id=2, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:49.373 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:set_data_response(param=Command(status=0, tsn=5, command_id=11, function=0, data=[2, 1, 0]))
homeassistant  | 2024-01-15 17:25:49.374 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x02 (TSN 130): set_data_response(param=Command(status=0, tsn=5, command_id=11, function=0, data=[2, 1, 0]))
homeassistant  | 2024-01-15 17:25:49.379 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 67, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 61184, 'src_ep': 1, 'asdu': b'\x18\x82\x0b\x02\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=4)
homeassistant  | 2024-01-15 17:25:49.380 DEBUG (MainThread) [zigpy_deconz.uart] Send: 1204001b0014004300024b9001040100ef01050018820b02000600
homeassistant  | 2024-01-15 17:25:49.382 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=130, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:49.385 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
homeassistant  | 2024-01-15 17:25:49.386 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 49, 386147, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=130, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x82\x0b\x02\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:49.393 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x120400090002002e43
homeassistant  | 2024-01-15 17:25:49.394 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 11>), 'request_id': 67} (seq 4)
homeassistant  | 2024-01-15 17:25:49.394 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=5)
homeassistant  | 2024-01-15 17:25:49.395 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04050007000000
homeassistant  | 2024-01-15 17:25:49.398 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e05000700ae00
homeassistant  | 2024-01-15 17:25:49.399 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 43>), 'reserved': 0} (seq 5)
homeassistant  | 2024-01-15 17:25:49.399 DEBUG (MainThread) [zigpy_deconz.api] Mismatched response, triggering error in 0.50s
homeassistant  | 2024-01-15 17:25:49.400 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04050013000c002e42024b9001010000000000
homeassistant  | 2024-01-15 17:25:49.400 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 11>), 'request_id': 66, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 5)
homeassistant  | 2024-01-15 17:25:49.401 DEBUG (MainThread) [zigpy_deconz.api] Clearing existing mismatched response timer
homeassistant  | 2024-01-15 17:25:49.401 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 68, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 61184, 'src_ep': 1, 'asdu': b'\x18\x82\x0b\x02\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=6)
homeassistant  | 2024-01-15 17:25:49.402 DEBUG (MainThread) [zigpy_deconz.uart] Send: 1206001b0014004400024b9001040100ef01050018820b02000600
homeassistant  | 2024-01-15 17:25:49.413 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x120600090002002e44
homeassistant  | 2024-01-15 17:25:49.414 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 11>), 'request_id': 68} (seq 6)
homeassistant  | 2024-01-15 17:25:49.414 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=7)
homeassistant  | 2024-01-15 17:25:49.415 DEBUG (MainThread) [zigpy_deconz.uart] Send: 1707000800010001
homeassistant  | 2024-01-15 17:25:49.496 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e07000700ae00
homeassistant  | 2024-01-15 17:25:49.496 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 43>), 'reserved': 0} (seq 7)
homeassistant  | 2024-01-15 17:25:49.496 DEBUG (MainThread) [zigpy_deconz.api] Mismatched response, triggering error in 0.50s
homeassistant  | 2024-01-15 17:25:49.497 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17070064005d002602000001024eb9010401c0fc46001c5f11c70af700413d64100003280e9839000000009539a9d60d43963900800945973900000000052104009a20000821160107270000000000000000092105100b20009b100100afff8a231200cb
homeassistant  | 2024-01-15 17:25:49.497 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 100, 'payload_length': 93, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 9>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0xB94E), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 64704, 'asdu': b"\x1c_\x11\xc7\n\xf7\x00A=d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xa9\xd6\rC\x969\x00\x80\tE\x979\x00\x00\x00\x00\x05!\x04\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x05\x10\x0b \x00\x9b\x10\x01", 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -53} (seq 7)
homeassistant  | 2024-01-15 17:25:49.498 DEBUG (MainThread) [zigpy_deconz.api] Clearing existing mismatched response timer
homeassistant  | 2024-01-15 17:25:49.498 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e08000700ae00
homeassistant  | 2024-01-15 17:25:49.498 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 43>), 'reserved': 0} (seq 8)
homeassistant  | 2024-01-15 17:25:49.499 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 49, 499747, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB94E), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=64704, data=Serialized[b"\x1c_\x11\xc7\n\xf7\x00A=d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xa9\xd6\rC\x969\x00\x80\tE\x979\x00\x00\x00\x00\x05!\x04\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x05\x10\x0b \x00\x9b\x10\x01"], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-53)
homeassistant  | 2024-01-15 17:25:49.501 DEBUG (MainThread) [zigpy.zcl] [0xB94E:1:0xfcc0] Received ZCL frame: b"\x1c_\x11\xc7\n\xf7\x00A=d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xa9\xd6\rC\x969\x00\x80\tE\x979\x00\x00\x00\x00\x05!\x04\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x05\x10\x0b \x00\x9b\x10\x01"
homeassistant  | 2024-01-15 17:25:49.502 DEBUG (MainThread) [zigpy.zcl] [0xB94E:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=True, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), manufacturer=4447, tsn=199, command_id=10, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:49.503 DEBUG (MainThread) [zigpy.zcl] [0xB94E:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b"d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xa9\xd6\rC\x969\x00\x80\tE\x979\x00\x00\x00\x00\x05!\x04\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x05\x10\x0b \x00\x9b\x10\x01"))])
homeassistant  | 2024-01-15 17:25:49.503 DEBUG (MainThread) [zigpy.zcl] [0xB94E:1:0xfcc0] Received command 0x0A (TSN 199): Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b"d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xa9\xd6\rC\x969\x00\x80\tE\x979\x00\x00\x00\x00\x05!\x04\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x05\x10\x0b \x00\x9b\x10\x01"))])
homeassistant  | 2024-01-15 17:25:49.504 DEBUG (MainThread) [zigpy.zcl] [0xB94E:1:0xfcc0] Attribute report received: 0x00F7=b"d\x10\x00\x03(\x0e\x989\x00\x00\x00\x00\x959\xa9\xd6\rC\x969\x00\x80\tE\x979\x00\x00\x00\x00\x05!\x04\x00\x9a \x00\x08!\x16\x01\x07'\x00\x00\x00\x00\x00\x00\x00\x00\t!\x05\x10\x0b \x00\x9b\x10\x01"
homeassistant  | 2024-01-15 17:25:49.507 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=8)
homeassistant  | 2024-01-15 17:25:49.507 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04080007000000
homeassistant  | 2024-01-15 17:25:49.511 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04080013000c002e43024b9001010000000000
homeassistant  | 2024-01-15 17:25:49.512 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 11>), 'request_id': 67, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 8)
homeassistant  | 2024-01-15 17:25:49.514 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=9)
homeassistant  | 2024-01-15 17:25:49.515 DEBUG (MainThread) [zigpy_deconz.uart] Send: 1709000800010001
homeassistant  | 2024-01-15 17:25:49.516 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17090034002d002602000001024b9001040100ef16000983020007100100010112030008323332333537383800afff8a231200ce
homeassistant  | 2024-01-15 17:25:49.517 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 52, 'payload_length': 45, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 9>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 61184, 'asdu': b'\t\x83\x02\x00\x07\x10\x01\x00\x01\x01\x12\x03\x00\x0823235788', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -50} (seq 9)
homeassistant  | 2024-01-15 17:25:49.518 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 49, 518435, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x83\x02\x00\x07\x10\x01\x00\x01\x01\x12\x03\x00\x0823235788'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-50)
homeassistant  | 2024-01-15 17:25:49.519 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received ZCL frame: b'\t\x83\x02\x00\x07\x10\x01\x00\x01\x01\x12\x03\x00\x0823235788'
homeassistant  | 2024-01-15 17:25:49.519 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=131, command_id=2, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:49.520 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Decoded ZCL frame: TuyaManufClusterDinPower:set_data_response(param=Command(status=0, tsn=7, command_id=272, function=0, data=[1, 1, 18, 3, 0, 8, 50, 51, 50, 51, 53, 55, 56, 56]))
homeassistant  | 2024-01-15 17:25:49.521 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Received command 0x02 (TSN 131): set_data_response(param=Command(status=0, tsn=7, command_id=272, function=0, data=[1, 1, 18, 3, 0, 8, 50, 51, 50, 51, 53, 55, 56, 56]))
homeassistant  | 2024-01-15 17:25:49.522 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=10)
homeassistant  | 2024-01-15 17:25:49.522 DEBUG (MainThread) [zigpy_deconz.uart] Send: 040a0007000000
homeassistant  | 2024-01-15 17:25:49.523 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=131, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:49.524 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
homeassistant  | 2024-01-15 17:25:49.525 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 49, 525187, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=131, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x83\x0b\x02\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:49.528 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x040a0013000c002244024b9001010000000000
homeassistant  | 2024-01-15 17:25:49.529 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 68, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 10)
homeassistant  | 2024-01-15 17:25:49.532 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 69, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 61184, 'src_ep': 1, 'asdu': b'\x18\x83\x0b\x02\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=11)
homeassistant  | 2024-01-15 17:25:49.532 DEBUG (MainThread) [zigpy_deconz.uart] Send: 120b001b0014004500024b9001040100ef01050018830b02000600
homeassistant  | 2024-01-15 17:25:49.542 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x120b00090002002245
homeassistant  | 2024-01-15 17:25:49.543 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 69} (seq 11)
homeassistant  | 2024-01-15 17:25:49.553 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e0c000700a600
homeassistant  | 2024-01-15 17:25:49.554 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 12)
homeassistant  | 2024-01-15 17:25:49.555 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=12)
homeassistant  | 2024-01-15 17:25:49.556 DEBUG (MainThread) [zigpy_deconz.uart] Send: 040c0007000000
homeassistant  | 2024-01-15 17:25:49.559 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x040c0013000c002245024b9001010000000000
homeassistant  | 2024-01-15 17:25:49.560 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 69, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 12)
homeassistant  | 2024-01-15 17:25:52.690 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e0d000700aa00
homeassistant  | 2024-01-15 17:25:52.691 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 13)
homeassistant  | 2024-01-15 17:25:52.692 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=13)
homeassistant  | 2024-01-15 17:25:52.693 DEBUG (MainThread) [zigpy_deconz.uart] Send: 170d000800010001
homeassistant  | 2024-01-15 17:25:52.698 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x170d002d0026002202000001024b9001040100000f0008840a0100204ae2ff2038e4ff200000afff8a231200cd
homeassistant  | 2024-01-15 17:25:52.699 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 45, 'payload_length': 38, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 0, 'asdu': b'\x08\x84\n\x01\x00 J\xe2\xff 8\xe4\xff \x00', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 138, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 13)
homeassistant  | 2024-01-15 17:25:52.700 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 52, 700731, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=0, data=Serialized[b'\x08\x84\n\x01\x00 J\xe2\xff 8\xe4\xff \x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:52.702 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Received ZCL frame: b'\x08\x84\n\x01\x00 J\xe2\xff 8\xe4\xff \x00'
homeassistant  | 2024-01-15 17:25:52.702 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=132, command_id=10, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:52.703 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Decoded ZCL frame: Basic:Report_Attributes(attribute_reports=[Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=74)), Attribute(attrid=0xFFE2, value=TypeValue(type=uint8_t, value=56)), Attribute(attrid=0xFFE4, value=TypeValue(type=uint8_t, value=0))])
homeassistant  | 2024-01-15 17:25:52.704 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Received command 0x0A (TSN 132): Report_Attributes(attribute_reports=[Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=74)), Attribute(attrid=0xFFE2, value=TypeValue(type=uint8_t, value=56)), Attribute(attrid=0xFFE4, value=TypeValue(type=uint8_t, value=0))])
homeassistant  | 2024-01-15 17:25:52.705 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Attribute report received: app_version=74, 0xFFE2=56, 0xFFE4=0
homeassistant  | 2024-01-15 17:25:52.707 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=132, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:52.708 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Sending reply: Default_Response(command_id=10, status=<Status.SUCCESS: 0>)
homeassistant  | 2024-01-15 17:25:52.708 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 52, 708799, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=132, profile_id=260, cluster_id=0, data=Serialized[b'\x18\x84\x0b\n\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:52.709 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 70, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 0, 'src_ep': 1, 'asdu': b'\x18\x84\x0b\n\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=14)
homeassistant  | 2024-01-15 17:25:52.709 DEBUG (MainThread) [zigpy_deconz.uart] Send: 120e001b0014004600024b90010401000001050018840b0a000600
homeassistant  | 2024-01-15 17:25:52.721 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x120e00090002002246
homeassistant  | 2024-01-15 17:25:52.722 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 70} (seq 14)
homeassistant  | 2024-01-15 17:25:52.727 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e0f000700a600
homeassistant  | 2024-01-15 17:25:52.728 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 15)
homeassistant  | 2024-01-15 17:25:52.730 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=15)
homeassistant  | 2024-01-15 17:25:52.730 DEBUG (MainThread) [zigpy_deconz.uart] Send: 040f0007000000
homeassistant  | 2024-01-15 17:25:52.733 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x040f0013000c002246024b9001010000000000
homeassistant  | 2024-01-15 17:25:52.734 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 70, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 15)
homeassistant  | 2024-01-15 17:25:52.918 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e10000700aa00
homeassistant  | 2024-01-15 17:25:52.918 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 16)
homeassistant  | 2024-01-15 17:25:52.920 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=16)
homeassistant  | 2024-01-15 17:25:52.920 DEBUG (MainThread) [zigpy_deconz.uart] Send: 1710000800010001
homeassistant  | 2024-01-15 17:25:52.927 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17100034002d002202000001024b900104010000160008850adfff420f6325382d130d27382d650e27382d1200afff90231200cd
homeassistant  | 2024-01-15 17:25:52.928 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 52, 'payload_length': 45, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x904B), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 0, 'asdu': b"\x08\x85\n\xdf\xffB\x0fc%8-\x13\r'8-e\x0e'8-\x12", 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 144, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -51} (seq 16)
homeassistant  | 2024-01-15 17:25:52.929 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 52, 929654, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=0, data=Serialized[b"\x08\x85\n\xdf\xffB\x0fc%8-\x13\r'8-e\x0e'8-\x12"], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-51)
homeassistant  | 2024-01-15 17:25:52.931 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Received ZCL frame: b"\x08\x85\n\xdf\xffB\x0fc%8-\x13\r'8-e\x0e'8-\x12"
homeassistant  | 2024-01-15 17:25:52.931 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=133, command_id=10, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:52.932 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Decoded ZCL frame: Basic:Report_Attributes(attribute_reports=[Attribute(attrid=0xFFDF, value=TypeValue(type=CharacterString, value="c%8-\x13\r'8-e\x0e'8-\x12"))])
homeassistant  | 2024-01-15 17:25:52.933 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Received command 0x0A (TSN 133): Report_Attributes(attribute_reports=[Attribute(attrid=0xFFDF, value=TypeValue(type=CharacterString, value="c%8-\x13\r'8-e\x0e'8-\x12"))])
homeassistant  | 2024-01-15 17:25:52.933 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Attribute report received: 0xFFDF="c%8-\x13\r'8-e\x0e'8-\x12"
homeassistant  | 2024-01-15 17:25:52.934 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=133, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:52.935 DEBUG (MainThread) [zigpy.zcl] [0x904B:1:0x0000] Sending reply: Default_Response(command_id=10, status=<Status.SUCCESS: 0>)
homeassistant  | 2024-01-15 17:25:52.935 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 52, 935957, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x904B), dst_ep=1, source_route=None, extended_timeout=False, tsn=133, profile_id=260, cluster_id=0, data=Serialized[b'\x18\x85\x0b\n\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:52.936 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 71, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'profile_id': 260, 'cluster_id': 0, 'src_ep': 1, 'asdu': b'\x18\x85\x0b\n\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY|USE_APS_ACKS: 6>, 'radius': 0, 'relays': None} (seq=17)
homeassistant  | 2024-01-15 17:25:52.937 DEBUG (MainThread) [zigpy_deconz.uart] Send: 1211001b0014004700024b90010401000001050018850b0a000600
homeassistant  | 2024-01-15 17:25:52.947 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x121100090002002247
homeassistant  | 2024-01-15 17:25:52.948 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_request{'status': <Status.SUCCESS: 0>, 'frame_length': 9, 'payload_length': 2, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 71} (seq 17)
homeassistant  | 2024-01-15 17:25:52.952 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e12000700a600
homeassistant  | 2024-01-15 17:25:52.953 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_CONFIRM|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 41>), 'reserved': 0} (seq 18)
homeassistant  | 2024-01-15 17:25:52.954 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_confirm{} (seq=18)
homeassistant  | 2024-01-15 17:25:52.955 DEBUG (MainThread) [zigpy_deconz.uart] Send: 04120007000000
homeassistant  | 2024-01-15 17:25:52.957 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04120013000c002247024b9001010000000000
homeassistant  | 2024-01-15 17:25:52.958 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_confirm{'status': <Status.SUCCESS: 0>, 'frame_length': 19, 'payload_length': 12, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'request_id': 71, 'dst_addr': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0x904B, endpoint=1), 'src_ep': 1, 'confirm_status': <TXStatus.SUCCESS: 0>, 'reserved1': 0, 'reserved2': 0, 'reserved3': 0, 'reserved4': 0} (seq 18)
homeassistant  | 2024-01-15 17:25:56.566 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e13000700aa00
homeassistant  | 2024-01-15 17:25:56.567 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.device_state_changed{'status': <Status.SUCCESS: 0>, 'frame_length': 7, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_INDICATION|APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE|32: 42>), 'reserved': 0} (seq 19)
homeassistant  | 2024-01-15 17:25:56.570 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_indication{'flags': <DataIndicationFlags.Always_Use_NWK_Source_Addr: 1>} (seq=19)
homeassistant  | 2024-01-15 17:25:56.571 DEBUG (MainThread) [zigpy_deconz.uart] Send: 1713000800010001
homeassistant  | 2024-01-15 17:25:56.578 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1713003f003800220200000102f515010401c0fc21001c5f11680af700411864100003280e052101009a2000082116010a21a7fc0b200000afffaf231200cf
homeassistant  | 2024-01-15 17:25:56.580 DEBUG (MainThread) [zigpy_deconz.api] Received command CommandId.aps_data_indication{'status': <Status.SUCCESS: 0>, 'frame_length': 63, 'payload_length': 56, 'device_state': DeviceState(network_state=<NetworkState2.CONNECTED: 2>, device_state=<DeviceStateFlags.APSDE_DATA_REQUEST_FREE_SLOTS_AVAILABLE: 8>), 'dst_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x0000), 'dst_ep': 1, 'src_addr': DeconzAddress(address_mode=<AddressMode.NWK: 2>, address=0x15F5), 'src_ep': 1, 'profile_id': 260, 'cluster_id': 64704, 'asdu': b'\x1c_\x11h\n\xf7\x00A\x18d\x10\x00\x03(\x0e\x05!\x01\x00\x9a \x00\x08!\x16\x01\n!\xa7\xfc\x0b \x00', 'reserved1': 0, 'reserved2': 175, 'lqi': 255, 'reserved3': 175, 'reserved4': 35, 'reserved5': 18, 'reserved6': 0, 'rssi': -49} (seq 19)
homeassistant  | 2024-01-15 17:25:56.583 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 56, 583282, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x15F5), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=None, profile_id=260, cluster_id=64704, data=Serialized[b'\x1c_\x11h\n\xf7\x00A\x18d\x10\x00\x03(\x0e\x05!\x01\x00\x9a \x00\x08!\x16\x01\n!\xa7\xfc\x0b \x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-49)
homeassistant  | 2024-01-15 17:25:56.586 DEBUG (MainThread) [zigpy.zcl] [0x15F5:1:0xfcc0] Received ZCL frame: b'\x1c_\x11h\n\xf7\x00A\x18d\x10\x00\x03(\x0e\x05!\x01\x00\x9a \x00\x08!\x16\x01\n!\xa7\xfc\x0b \x00'
homeassistant  | 2024-01-15 17:25:56.588 DEBUG (MainThread) [zigpy.zcl] [0x15F5:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=True, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), manufacturer=4447, tsn=104, command_id=10, *direction=<Direction.Client_to_Server: 1>)
homeassistant  | 2024-01-15 17:25:56.590 DEBUG (MainThread) [zigpy.zcl] [0x15F5:1:0xfcc0] Decoded ZCL frame: ManufacturerSpecificCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'd\x10\x00\x03(\x0e\x05!\x01\x00\x9a \x00\x08!\x16\x01\n!\xa7\xfc\x0b \x00'))])
homeassistant  | 2024-01-15 17:25:56.592 DEBUG (MainThread) [zigpy.zcl] [0x15F5:1:0xfcc0] Received command 0x0A (TSN 104): Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'd\x10\x00\x03(\x0e\x05!\x01\x00\x9a \x00\x08!\x16\x01\n!\xa7\xfc\x0b \x00'))])
homeassistant  | 2024-01-15 17:25:56.593 DEBUG (MainThread) [zigpy.zcl] [0x15F5:1:0xfcc0] Attribute report received: 0x00F7=b'd\x10\x00\x03(\x0e\x05!\x01\x00\x9a \x00\x08!\x16\x01\n!\xa7\xfc\x0b \x00'
^[[1;2Chomeassistant  | 2024-01-15 17:25:14.368 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending packet: ZigbeePacket(timestamp=datetime.datetime(2024, 1, 15, 15, 25, 14, 368488, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.Broadcast: 15>, address=<BroadcastAddress.ALL_ROUTERS_AND_COORDINATOR: 65532>), dst_ep=0, source_route=None, extended_timeout=False, tsn=51, profile_id=0, cluster_id=<ZDOCmd.Mgmt_Permit_Joining_req: 0x0036>, data=Serialized[b'3\xfe\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
homeassistant  | 2024-01-15 17:25:14.371 DEBUG (MainThread) [zigpy_deconz.api] Sending CommandId.aps_data_request{'request_id': 52, 'flags': <DeconzSendDataFlags.NONE: 0>, 'dst': DeconzAddressEndpoint(address_mode=<AddressMode.NWK: 2>, address=0xFFFC, endpoint=0), 'profile_id': 0, 'cluster_id': <ZDOCmd.Mgmt_Permit_Joining_req: 0x0036>, 'src_ep': 0, 'asdu': b'3\xfe\x00', 'tx_options': <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 'radius': 0, 'relays': None} (seq=202)
homeassistant  | 2024-01-15 17:25:14.372 DEBUG (MainThread) [zigpy_deconz.uart] Send: 12ca0019001200340002fcff000000360000030033fe000200

@ankostis
Copy link

Ok, @manyos-robert your gist above eventually worked.
Thank you all in here.

Q: why nobody has filed a pull-request yet?

@andrea-aj
Copy link

The quirk of @manyos-robert worked for me today. Thank you for your efforts.
Using ZHA I can read Current (A), Power (W), Summation delivered (kWh), Voltage (V).
I hope you or somebody could add Power Factor and possibly other futures of this device.
Andrea M.

@dcweng
Copy link

dcweng commented Apr 8, 2024

Thank you for all the efforts. I'm using the Wamarin version of the DAC2161C from Amazon. The meter information are working on my HA except the Power Factor. The relay control still not working, but I can't figure out how to make it work.
I know for sure the relay can be controlled via the Smart Life. Anyone still working on the relay control?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
custom quirk available A custom quirk is available to solve the issue, but it's not merged in the repo yet Tuya Request/PR regarding a Tuya device
Projects
None yet
Development

No branches or pull requests