zha-device-handlers icon indicating copy to clipboard operation
zha-device-handlers copied to clipboard

_TZE200_fm5yck8a TS0601

Open nekdo4 opened this issue 1 year ago • 14 comments

Hello, I am experiencing problems regarding below mentioned item. https://www.aliexpress.com/item/1005004242288793.html?spm=a2g0o.order_detail.0.0.3d66f19cdtUBsi

I can add the device to ZHA but no entities are visible. I have tried custom quirks with no result. I am new it this area.

In case someone else has experienced a similar problem, I would like to know how to solve it.

TY for Help

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=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0051",
      "in_clusters": [
        "0x0000",
        "0x0004",
        "0x0005",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZE200_fm5yck8a",
  "model": "TS0601",
  "class": "zigpy.device.Device"
}
Diagnostic information
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.9.6",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.5",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Prague",
    "os_name": "Linux",
    "os_version": "5.15.67",
    "supervisor": "2022.09.1",
    "host_os": "Home Assistant OS 9.0",
    "docker_version": "20.10.17",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "xiaomi_miot": {
      "version": "0.6.12",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.6",
        "micloud>=0.3"
      ]
    },
    "zha_toolkit": {
      "version": "v0.8.16",
      "requirements": []
    },
    "localtuya": {
      "version": "4.1.0",
      "requirements": []
    },
    "xiaomi_cloud_map_extractor": {
      "version": "v2.2.0",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "hacs": {
      "version": "1.27.2",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "mikrotik_router": {
      "version": "0.0.0",
      "requirements": [
        "librouteros>=3.2.0",
        "mac-vendor-lookup>=0.1.12"
      ]
    },
    "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.79",
      "zigpy-deconz==0.18.1",
      "zigpy==0.50.3",
      "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": "1A86",
        "pid": "55D4",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus v2"
        ]
      },
      {
        "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*"
      }
    ],
    "dependencies": [
      "file_upload"
    ],
    "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": 58173,
    "manufacturer": "_TZE200_fm5yck8a",
    "model": "TS0601",
    "name": "_TZE200_fm5yck8a TS0601",
    "quirk_applied": false,
    "quirk_class": "zigpy.device.Device",
    "manufacturer_code": 4098,
    "power_source": "Mains",
    "lqi": 212,
    "rssi": -47,
    "last_seen": "2022-09-25T15:44:45",
    "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=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
      "endpoints": {
        "1": {
          "profile_id": 260,
          "device_type": "0x0051",
          "in_clusters": [
            "0x0000",
            "0x0004",
            "0x0005",
            "0xef00"
          ],
          "out_clusters": [
            "0x000a",
            "0x0019"
          ]
        }
      }
    },
    "active_coordinator": false,
    "entities": [],
    "neighbors": [],
    "endpoint_names": [
      {
        "name": "SMART_PLUG"
      }
    ],
    "user_given_name": null,
    "device_reg_id": "9242c4f0d24171d2ab3debfda7f5b0d3",
    "area_id": null,
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "SMART_PLUG",
          "id": 81
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {
              "0x0004": {
                "attribute_name": "manufacturer",
                "value": "_TZE200_fm5yck8a"
              },
              "0x0005": {
                "attribute_name": "model",
                "value": "TS0601"
              }
            },
            "unsupported_attributes": {}
          },
          "0x0004": {
            "endpoint_attribute": "groups",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0005": {
            "endpoint_attribute": "scenes",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0xef00": {
            "endpoint_attribute": null,
            "attributes": {},
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x000a": {
            "endpoint_attribute": "time",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      }
    }
  }
}
Additional logs

obrazek 2022-09-25

nekdo4 avatar Sep 25 '22 14:09 nekdo4

This is a curious device. I think the normal switches (4 left) should be controlled by the TuyaQuadrupleSwitchTO quirk. You can enable the local quirks and copy the current ts0601_switch.py file:

  • https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts0601_switch.py

Then update the TuyaQuadrupleSwitchTO class like this:

class TuyaQuadrupleSwitchTO(TuyaSwitch):
    """Tuya quadruple channel switch time on out cluster device."""

    signature = {
        MODELS_INFO: [
            ("_TZE200_aqnazj70", "TS0601"),
            ("_TZE200_1ozguk6x", "TS0601"),
            ("_TZE200_fm5yck8a", "TS0601"),
            ("_TZE200_k6jhsr0q", "TS0601"),
        ],
        ENDPOINTS: {
            .../...

Repair the device after enable the local quirk.

You will need to enable the debug logs to know what is reporting the other 2 switches (2 right):

  • https://www.home-assistant.io/integrations/zha/#debug-logging

Once we get that info we can see what can be done.

javicalle avatar Sep 26 '22 18:09 javicalle

Thank you for your reply, I did as you advised but the left four normal switches on the device do not react and the other two (right) can only turn off first two light switches in home assistant. I am sending diagnostic data and thank you again for your help

Diagnostic Data
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.9.6",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.5",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Prague",
    "os_name": "Linux",
    "os_version": "5.15.67",
    "supervisor": "2022.09.1",
    "host_os": "Home Assistant OS 9.0",
    "docker_version": "20.10.17",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "xiaomi_miot": {
      "version": "0.6.12",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.6",
        "micloud>=0.3"
      ]
    },
    "zha_toolkit": {
      "version": "v0.8.16",
      "requirements": []
    },
    "localtuya": {
      "version": "4.1.0",
      "requirements": []
    },
    "xiaomi_cloud_map_extractor": {
      "version": "v2.2.0",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "hacs": {
      "version": "1.27.2",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "mikrotik_router": {
      "version": "0.0.0",
      "requirements": [
        "librouteros>=3.2.0",
        "mac-vendor-lookup>=0.1.12"
      ]
    },
    "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.79",
      "zigpy-deconz==0.18.1",
      "zigpy==0.50.3",
      "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": "1A86",
        "pid": "55D4",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus v2"
        ]
      },
      {
        "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*"
      }
    ],
    "dependencies": [
      "file_upload"
    ],
    "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": 5270,
    "manufacturer": "_TZE200_fm5yck8a",
    "model": "TS0601",
    "name": "_TZE200_fm5yck8a TS0601",
    "quirk_applied": true,
    "quirk_class": "ts0601_switch.TuyaQuadrupleSwitchTO",
    "manufacturer_code": 4098,
    "power_source": "Mains",
    "lqi": 216,
    "rssi": -46,
    "last_seen": "2022-09-26T21:57:02",
    "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=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
      "endpoints": {
        "1": {
          "profile_id": 260,
          "device_type": "0x0100",
          "in_clusters": [
            "0x0000",
            "0x0004",
            "0x0005",
            "0x0006",
            "0xef00"
          ],
          "out_clusters": [
            "0x000a",
            "0x0019"
          ]
        },
        "2": {
          "profile_id": 260,
          "device_type": "0x0100",
          "in_clusters": [
            "0x0006"
          ],
          "out_clusters": []
        },
        "3": {
          "profile_id": 260,
          "device_type": "0x0100",
          "in_clusters": [
            "0x0006"
          ],
          "out_clusters": []
        },
        "4": {
          "profile_id": 260,
          "device_type": "0x0100",
          "in_clusters": [
            "0x0006"
          ],
          "out_clusters": []
        }
      }
    },
    "active_coordinator": false,
    "entities": [
      {
        "entity_id": "light.tze200_fm5yck8a_ts0601_light",
        "name": "_TZE200_fm5yck8a TS0601"
      },
      {
        "entity_id": "light.tze200_fm5yck8a_ts0601_light_2",
        "name": "_TZE200_fm5yck8a TS0601"
      },
      {
        "entity_id": "light.tze200_fm5yck8a_ts0601_light_3",
        "name": "_TZE200_fm5yck8a TS0601"
      },
      {
        "entity_id": "light.tze200_fm5yck8a_ts0601_light_4",
        "name": "_TZE200_fm5yck8a TS0601"
      }
    ],
    "neighbors": [],
    "endpoint_names": [
      {
        "name": "ON_OFF_LIGHT"
      },
      {
        "name": "ON_OFF_LIGHT"
      },
      {
        "name": "ON_OFF_LIGHT"
      },
      {
        "name": "ON_OFF_LIGHT"
      }
    ],
    "user_given_name": null,
    "device_reg_id": "9242c4f0d24171d2ab3debfda7f5b0d3",
    "area_id": "kuchyn",
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "ON_OFF_LIGHT",
          "id": 256
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0004": {
            "endpoint_attribute": "groups",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0005": {
            "endpoint_attribute": "scenes",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0xef00": {
            "endpoint_attribute": "tuya_manufacturer",
            "attributes": {
              "0xef00": {
                "attribute_name": "mcu_version",
                "value": "1.0.0"
              }
            },
            "unsupported_attributes": {}
          },
          "0x0006": {
            "endpoint_attribute": "on_off",
            "attributes": {
              "0x0000": {
                "attribute_name": "on_off",
                "value": 0
              }
            },
            "unsupported_attributes": {
              "0x0000": {
                "attribute_name": "on_off"
              },
              "0x4003": {
                "attribute_name": "start_up_on_off"
              }
            }
          }
        },
        "out_clusters": {
          "0x000a": {
            "endpoint_attribute": "time",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      },
      "2": {
        "device_type": {
          "name": "ON_OFF_LIGHT",
          "id": 256
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0006": {
            "endpoint_attribute": "on_off",
            "attributes": {
              "0x0000": {
                "attribute_name": "on_off",
                "value": 0
              }
            },
            "unsupported_attributes": {
              "0x0000": {
                "attribute_name": "on_off"
              },
              "0x4003": {
                "attribute_name": "start_up_on_off"
              }
            }
          }
        },
        "out_clusters": {}
      },
      "3": {
        "device_type": {
          "name": "ON_OFF_LIGHT",
          "id": 256
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0006": {
            "endpoint_attribute": "on_off",
            "attributes": {},
            "unsupported_attributes": {
              "0x0000": {
                "attribute_name": "on_off"
              },
              "0x4003": {
                "attribute_name": "start_up_on_off"
              }
            }
          }
        },
        "out_clusters": {}
      },
      "4": {
        "device_type": {
          "name": "ON_OFF_LIGHT",
          "id": 256
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0006": {
            "endpoint_attribute": "on_off",
            "attributes": {},
            "unsupported_attributes": {
              "0x0000": {
                "attribute_name": "on_off"
              },
              "0x4003": {
                "attribute_name": "start_up_on_off"
              }
            }
          }
        },
        "out_clusters": {}
      }
    }
  }
}

2022-09-26

nekdo4 avatar Sep 26 '22 20:09 nekdo4

Look at the logs for any info from your device (check the Nwk value for your device in the "Zigbee info" option).

javicalle avatar Sep 26 '22 20:09 javicalle

Hello, I followed your advice but I do not know how to continue. I am sending you the log and very grateful for your help.

LOG ``` 2022-09-27 21:16:29.316 DEBUG (MainThread) [zigpy.appdb] [0x1496:1:0x0000] Attribute id: 4 value: _TZE200_fm5yck8a 2022-09-27 21:16:29.316 DEBUG (MainThread) [zigpy.appdb] [0x1496:1:0x0000] Attribute id: 5 value: TS0601 2022-09-27 21:16:29.929 DEBUG (MainThread) [zigpy.appdb] [0x1496:1:0x0000] Attribute id: 4 value: _TZE200_fm5yck8a 2022-09-27 21:16:29.929 DEBUG (MainThread) [zigpy.appdb] [0x1496:1:0x0000] Attribute id: 5 value: TS0601 2022-09-27 21:16:29.929 DEBUG (MainThread) [zigpy.appdb] [0x1496:1:0xef00] Attribute id: 61184 value: 1.0.0 2022-09-27 21:16:29.929 DEBUG (MainThread) [zigpy.appdb] [0x1496:2:0x0006] Attribute id: 0 value: 0 2022-09-27 21:16:29.930 DEBUG (MainThread) [zigpy.appdb] [0x1496:1:0x0006] Attribute id: 0 value: 0 2022-09-27 21:16:41.763 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] [0x1496](_TZE200_fm5yck8a TS0601) restored as 'available', last seen: 0:03:11 ago, consider_unavailable_time: 7200 seconds 2022-09-27 21:16:41.873 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1496](TS0601): started initialization 2022-09-27 21:16:41.873 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:ZDO](TS0601): 'async_initialize' stage succeeded 2022-09-27 21:16:42.294 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: initializing channel: from_cache: True 2022-09-27 21:16:42.294 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: initializing cached channel attributes: ['start_up_on_off'] 2022-09-27 21:16:42.294 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: Reading attributes in chunks: ['start_up_on_off'] 2022-09-27 21:16:42.295 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True] 2022-09-27 21:16:42.295 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: Reading attributes in chunks: ['on_off'] 2022-09-27 21:16:42.295 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: finished channel initialization 2022-09-27 21:16:42.296 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0000]: initializing channel: from_cache: True 2022-09-27 21:16:42.296 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0000]: finished channel initialization 2022-09-27 21:16:42.297 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0019]: initializing channel: from_cache: True 2022-09-27 21:16:42.297 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0019]: finished channel initialization 2022-09-27 21:16:42.306 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: initializing channel: from_cache: True 2022-09-27 21:16:42.307 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: initializing cached channel attributes: ['start_up_on_off'] 2022-09-27 21:16:42.307 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: Reading attributes in chunks: ['start_up_on_off'] 2022-09-27 21:16:42.307 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True] 2022-09-27 21:16:42.308 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: Reading attributes in chunks: ['on_off'] 2022-09-27 21:16:42.308 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: finished channel initialization 2022-09-27 21:16:42.308 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: initializing channel: from_cache: True 2022-09-27 21:16:42.309 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: initializing cached channel attributes: ['start_up_on_off'] 2022-09-27 21:16:42.309 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: Reading attributes in chunks: ['start_up_on_off'] 2022-09-27 21:16:42.309 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True] 2022-09-27 21:16:42.310 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: Reading attributes in chunks: ['on_off'] 2022-09-27 21:16:42.310 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: finished channel initialization 2022-09-27 21:16:42.310 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: initializing channel: from_cache: True 2022-09-27 21:16:42.311 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: initializing cached channel attributes: ['start_up_on_off'] 2022-09-27 21:16:42.311 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: Reading attributes in chunks: ['start_up_on_off'] 2022-09-27 21:16:42.311 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True] 2022-09-27 21:16:42.312 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: Reading attributes in chunks: ['on_off'] 2022-09-27 21:16:42.312 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: finished channel initialization 2022-09-27 21:16:42.487 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: 'async_initialize' stage succeeded 2022-09-27 21:16:42.488 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0000]: 'async_initialize' stage succeeded 2022-09-27 21:16:42.488 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0019]: 'async_initialize' stage succeeded 2022-09-27 21:16:42.489 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: 'async_initialize' stage succeeded 2022-09-27 21:16:42.489 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: 'async_initialize' stage succeeded 2022-09-27 21:16:42.490 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: 'async_initialize' stage succeeded 2022-09-27 21:16:42.604 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1496](TS0601): power source: Mains 2022-09-27 21:16:42.604 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1496](TS0601): completed initialization 2022-09-27 21:16:43.042 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1496](TS0601): started initialization 2022-09-27 21:16:43.043 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:ZDO](TS0601): 'async_initialize' stage succeeded 2022-09-27 21:16:44.144 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: initializing channel: from_cache: False 2022-09-27 21:16:44.144 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: initializing cached channel attributes: ['start_up_on_off'] 2022-09-27 21:16:44.145 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: Reading attributes in chunks: ['start_up_on_off'] 2022-09-27 21:16:44.155 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False] 2022-09-27 21:16:44.155 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: Reading attributes in chunks: ['on_off'] 2022-09-27 21:16:44.156 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: finished channel initialization 2022-09-27 21:16:44.157 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0000]: initializing channel: from_cache: False 2022-09-27 21:16:44.157 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0000]: finished channel initialization 2022-09-27 21:16:44.158 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0019]: initializing channel: from_cache: False 2022-09-27 21:16:44.158 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0019]: finished channel initialization 2022-09-27 21:16:44.159 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: initializing channel: from_cache: False 2022-09-27 21:16:44.159 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: initializing cached channel attributes: ['start_up_on_off'] 2022-09-27 21:16:44.159 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: Reading attributes in chunks: ['start_up_on_off'] 2022-09-27 21:16:44.169 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False] 2022-09-27 21:16:44.169 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: Reading attributes in chunks: ['on_off'] 2022-09-27 21:16:44.170 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: finished channel initialization 2022-09-27 21:16:44.171 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: initializing channel: from_cache: False 2022-09-27 21:16:44.171 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: initializing cached channel attributes: ['start_up_on_off'] 2022-09-27 21:16:44.171 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: Reading attributes in chunks: ['start_up_on_off'] 2022-09-27 21:16:44.172 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False] 2022-09-27 21:16:44.172 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: Reading attributes in chunks: ['on_off'] 2022-09-27 21:16:44.173 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: finished channel initialization 2022-09-27 21:16:44.174 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: initializing channel: from_cache: False 2022-09-27 21:16:44.174 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: initializing cached channel attributes: ['start_up_on_off'] 2022-09-27 21:16:44.175 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: Reading attributes in chunks: ['start_up_on_off'] 2022-09-27 21:16:44.185 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False] 2022-09-27 21:16:44.185 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: Reading attributes in chunks: ['on_off'] 2022-09-27 21:16:44.186 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: finished channel initialization 2022-09-27 21:16:44.286 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: 'async_initialize' stage succeeded 2022-09-27 21:16:44.286 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0000]: 'async_initialize' stage succeeded 2022-09-27 21:16:44.287 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0019]: 'async_initialize' stage succeeded 2022-09-27 21:16:44.287 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: 'async_initialize' stage succeeded 2022-09-27 21:16:44.287 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: 'async_initialize' stage succeeded 2022-09-27 21:16:44.288 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: 'async_initialize' stage succeeded 2022-09-27 21:16:44.398 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1496](TS0601): power source: Mains 2022-09-27 21:16:44.399 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1496](TS0601): completed initialization 2022-09-27 21:17:56.728 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1496](TS0601): Device seen - marking the device available and resetting counter 2022-09-27 21:17:56.729 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1496](TS0601): Update device availability - device available: True - new availability: True - changed: False 2022-09-27 21:18:02.889 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=129), 208, -48, 0x1496, 255, 255, b'\t\x1e\x01\x00+\x13\x01\x00\x01\x01'] 2022-09-27 21:18:02.891 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\t\x1e\x01\x00+\x13\x01\x00\x01\x01' 2022-09-27 21:18:02.892 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=30, command_id=1, *direction=, *is_reply=True) 2022-09-27 21:18:02.893 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=43, dp=19, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:02.894 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received command 0x01 (TSN 30): get_data(data=TuyaCommand(status=0, tsn=43, dp=19, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:02.895 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=43, dp=19, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=)) 2022-09-27 21:18:02.896 WARNING (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=43, dp=19, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:02.921 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=30, command_id=, *direction=, *is_reply=True) 2022-09-27 21:18:02.922 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply: Default_Response(command_id=1, status=) 2022-09-27 21:18:02.927 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=30), 108, b'\x18\x1e\x0b\x01\x81') 2022-09-27 21:18:03.839 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=130), 208, -48, 0x1496, 255, 255, b'\t\x1f\x01\x00+\x15\x01\x00\x01\x01'] 2022-09-27 21:18:03.841 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\t\x1f\x01\x00+\x15\x01\x00\x01\x01' 2022-09-27 21:18:03.842 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=31, command_id=1, *direction=, *is_reply=True) 2022-09-27 21:18:03.843 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=43, dp=21, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:03.845 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received command 0x01 (TSN 31): get_data(data=TuyaCommand(status=0, tsn=43, dp=21, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:03.846 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=43, dp=21, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=)) 2022-09-27 21:18:03.846 WARNING (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=43, dp=21, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:03.850 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=31, command_id=, *direction=, *is_reply=True) 2022-09-27 21:18:03.851 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply: Default_Response(command_id=1, status=) 2022-09-27 21:18:03.854 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=31), 109, b'\x18\x1f\x0b\x01\x81') 2022-09-27 21:18:04.785 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=131), 212, -47, 0x1496, 255, 255, b'\t \x01\x00+\x16\x01\x00\x01\x01'] 2022-09-27 21:18:04.786 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\t \x01\x00+\x16\x01\x00\x01\x01' 2022-09-27 21:18:04.787 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=32, command_id=1, *direction=, *is_reply=True) 2022-09-27 21:18:04.789 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=43, dp=22, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:04.790 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received command 0x01 (TSN 32): get_data(data=TuyaCommand(status=0, tsn=43, dp=22, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:04.790 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=43, dp=22, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=)) 2022-09-27 21:18:04.791 WARNING (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=43, dp=22, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:04.796 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=32, command_id=, *direction=, *is_reply=True) 2022-09-27 21:18:04.797 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply: Default_Response(command_id=1, status=) 2022-09-27 21:18:04.800 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=32), 110, b'\x18 \x0b\x01\x81') 2022-09-27 21:18:05.677 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=132), 208, -48, 0x1496, 255, 255, b'\t!\x01\x00+\x14\x01\x00\x01\x01'] 2022-09-27 21:18:05.679 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\t!\x01\x00+\x14\x01\x00\x01\x01' 2022-09-27 21:18:05.680 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=33, command_id=1, *direction=, *is_reply=True) 2022-09-27 21:18:05.681 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=43, dp=20, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:05.682 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received command 0x01 (TSN 33): get_data(data=TuyaCommand(status=0, tsn=43, dp=20, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:05.683 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=43, dp=20, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=)) 2022-09-27 21:18:05.684 WARNING (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=43, dp=20, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:05.689 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=33, command_id=, *direction=, *is_reply=True) 2022-09-27 21:18:05.690 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply: Default_Response(command_id=1, status=) 2022-09-27 21:18:05.694 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=33), 111, b'\x18!\x0b\x01\x81') 2022-09-27 21:18:06.651 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=133), 204, -49, 0x1496, 255, 255, b'\t"\x01\x00+\x01\x04\x00\x01\x00'] 2022-09-27 21:18:06.653 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\t"\x01\x00+\x01\x04\x00\x01\x00' 2022-09-27 21:18:06.667 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=34, command_id=1, *direction=, *is_reply=True) 2022-09-27 21:18:06.669 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=43, dp=1, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:06.670 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received command 0x01 (TSN 34): get_data(data=TuyaCommand(status=0, tsn=43, dp=1, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:06.674 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=34, command_id=, *direction=, *is_reply=True) 2022-09-27 21:18:06.675 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply: Default_Response(command_id=1, status=) 2022-09-27 21:18:06.684 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=34), 112, b'\x18"\x0b\x01\x00') 2022-09-27 21:18:07.578 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=134), 216, -46, 0x1496, 255, 255, b'\t#\x01\x00+\x02\x04\x00\x01\x00'] 2022-09-27 21:18:07.579 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\t#\x01\x00+\x02\x04\x00\x01\x00' 2022-09-27 21:18:07.580 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=35, command_id=1, *direction=, *is_reply=True) 2022-09-27 21:18:07.589 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=43, dp=2, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:07.590 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received command 0x01 (TSN 35): get_data(data=TuyaCommand(status=0, tsn=43, dp=2, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:07.600 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=35, command_id=, *direction=, *is_reply=True) 2022-09-27 21:18:07.601 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply: Default_Response(command_id=1, status=) 2022-09-27 21:18:07.620 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=35), 113, b'\x18#\x0b\x01\x00') 2022-09-27 21:18:13.161 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0x0006] Sending Tuya Cluster Command... Cluster Command is 1, Arguments are () 2022-09-27 21:18:13.162 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=1, cluster_attr='on_off', attr_value=1, expect_reply=True) 2022-09-27 21:18:13.162 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] get_dp_mapping --> found DP: 1 2022-09-27 21:18:13.162 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] from_cluster_data: 1, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=, converter=None, dp_converter=None, endpoint_id=None) 2022-09-27 21:18:13.163 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] ztype: Bool.true 2022-09-27 21:18:13.163 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] from_value: [1, 1] 2022-09-27 21:18:13.164 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] raw: b'\x01' 2022-09-27 21:18:13.164 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=114, dp=1, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=)) 2022-09-27 21:18:13.165 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=115, command_id=0, *direction=, *is_reply=False) 2022-09-27 21:18:13.166 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=114, dp=1, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:13.168 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:1:0x0006]: executed 'on' command with args: '()' kwargs: '{}' result: Default_Response(command_id=1, status=) 2022-09-27 21:18:13.171 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=115), 116, b'\x05\x02\x10s\x00\x00r\x01\x01\x00\x01\x01') 2022-09-27 21:18:13.295 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=135), 212, -47, 0x1496, 255, 255, b'\x0c\x02\x10s\x0b\x00\x00'] 2022-09-27 21:18:13.298 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\x0c\x02\x10s\x0b\x00\x00' 2022-09-27 21:18:13.299 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=115, command_id=11, *direction=, *is_reply=True) 2022-09-27 21:18:13.304 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:Default_Response(command_id=0, status=) 2022-09-27 21:18:13.804 DEBUG (MainThread) [zigpy.zcl] [0x1496:2:0x0006] Sending Tuya Cluster Command... Cluster Command is 1, Arguments are () 2022-09-27 21:18:13.804 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=2, cluster_attr='on_off', attr_value=1, expect_reply=True) 2022-09-27 21:18:13.805 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] get_dp_mapping --> found DP: 2 2022-09-27 21:18:13.805 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] from_cluster_data: 2, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=, converter=None, dp_converter=None, endpoint_id=2) 2022-09-27 21:18:13.806 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] ztype: Bool.true 2022-09-27 21:18:13.806 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] from_value: [1, 1] 2022-09-27 21:18:13.806 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] raw: b'\x01' 2022-09-27 21:18:13.806 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=117, dp=2, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=)) 2022-09-27 21:18:13.808 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=118, command_id=0, *direction=, *is_reply=False) 2022-09-27 21:18:13.809 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=117, dp=2, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:13.811 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:2:0x0006]: executed 'on' command with args: '()' kwargs: '{}' result: Default_Response(command_id=1, status=) 2022-09-27 21:18:13.815 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=118), 119, b'\x05\x02\x10v\x00\x00u\x02\x01\x00\x01\x01') 2022-09-27 21:18:13.935 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=136), 208, -48, 0x1496, 255, 255, b'\x0c\x02\x10v\x0b\x00\x00'] 2022-09-27 21:18:13.938 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\x0c\x02\x10v\x0b\x00\x00' 2022-09-27 21:18:13.947 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=118, command_id=11, *direction=, *is_reply=True) 2022-09-27 21:18:13.949 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:Default_Response(command_id=0, status=) 2022-09-27 21:18:14.572 DEBUG (MainThread) [zigpy.zcl] [0x1496:3:0x0006] Sending Tuya Cluster Command... Cluster Command is 1, Arguments are () 2022-09-27 21:18:14.573 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=3, cluster_attr='on_off', attr_value=1, expect_reply=True) 2022-09-27 21:18:14.574 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] get_dp_mapping --> found DP: 3 2022-09-27 21:18:14.575 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] from_cluster_data: 3, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=, converter=None, dp_converter=None, endpoint_id=3) 2022-09-27 21:18:14.576 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] ztype: Bool.true 2022-09-27 21:18:14.577 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] from_value: [1, 1] 2022-09-27 21:18:14.577 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] raw: b'\x01' 2022-09-27 21:18:14.578 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=120, dp=3, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=)) 2022-09-27 21:18:14.584 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=121, command_id=0, *direction=, *is_reply=False) 2022-09-27 21:18:14.595 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=120, dp=3, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:14.597 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:3:0x0006]: executed 'on' command with args: '()' kwargs: '{}' result: Default_Response(command_id=1, status=) 2022-09-27 21:18:14.601 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=121), 122, b'\x05\x02\x10y\x00\x00x\x03\x01\x00\x01\x01') 2022-09-27 21:18:14.728 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=137), 208, -48, 0x1496, 255, 255, b'\x0c\x02\x10y\x0b\x00\x00'] 2022-09-27 21:18:14.729 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\x0c\x02\x10y\x0b\x00\x00' 2022-09-27 21:18:14.730 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=121, command_id=11, *direction=, *is_reply=True) 2022-09-27 21:18:14.733 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:Default_Response(command_id=0, status=) 2022-09-27 21:18:15.420 DEBUG (MainThread) [zigpy.zcl] [0x1496:4:0x0006] Sending Tuya Cluster Command... Cluster Command is 1, Arguments are () 2022-09-27 21:18:15.421 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=4, cluster_attr='on_off', attr_value=1, expect_reply=True) 2022-09-27 21:18:15.421 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] get_dp_mapping --> found DP: 4 2022-09-27 21:18:15.421 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] from_cluster_data: 4, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=, converter=None, dp_converter=None, endpoint_id=4) 2022-09-27 21:18:15.422 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] ztype: Bool.true 2022-09-27 21:18:15.422 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] from_value: [1, 1] 2022-09-27 21:18:15.423 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] raw: b'\x01' 2022-09-27 21:18:15.423 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=127, dp=4, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=)) 2022-09-27 21:18:15.424 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=128, command_id=0, *direction=, *is_reply=False) 2022-09-27 21:18:15.426 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=127, dp=4, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-09-27 21:18:15.427 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1496:4:0x0006]: executed 'on' command with args: '()' kwargs: '{}' result: Default_Response(command_id=1, status=) 2022-09-27 21:18:15.552 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=128), 129, b'\x05\x02\x10\x80\x00\x00\x7f\x04\x01\x00\x01\x01') 2022-09-27 21:18:15.678 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=138), 208, -48, 0x1496, 255, 255, b'\x0c\x02\x10\x80\x0b\x00\x00'] 2022-09-27 21:18:15.680 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\x80\x0b\x00\x00' 2022-09-27 21:18:15.681 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=128, command_id=11, *direction=, *is_reply=True) 2022-09-27 21:18:15.689 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:Default_Response(command_id=0, status=) 2022-09-27 21:18:17.354 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=139), 208, -48, 0x1496, 255, 255, b'\t$\x01\x00\x7f\x15\x01\x00\x01\x00'] 2022-09-27 21:18:17.356 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\t$\x01\x00\x7f\x15\x01\x00\x01\x00' 2022-09-27 21:18:17.356 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=36, command_id=1, *direction=, *is_reply=True) 2022-09-27 21:18:17.358 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=127, dp=21, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:17.368 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received command 0x01 (TSN 36): get_data(data=TuyaCommand(status=0, tsn=127, dp=21, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:17.368 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=127, dp=21, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=)) 2022-09-27 21:18:17.369 WARNING (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=127, dp=21, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:17.412 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=36, command_id=, *direction=, *is_reply=True) 2022-09-27 21:18:17.413 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply: Default_Response(command_id=1, status=) 2022-09-27 21:18:17.415 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=36), 132, b'\x18$\x0b\x01\x81') 2022-09-27 21:18:18.269 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=140), 204, -49, 0x1496, 255, 255, b'\t%\x01\x00\x7f\x13\x01\x00\x01\x00'] 2022-09-27 21:18:18.271 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\t%\x01\x00\x7f\x13\x01\x00\x01\x00' 2022-09-27 21:18:18.272 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=37, command_id=1, *direction=, *is_reply=True) 2022-09-27 21:18:18.273 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=127, dp=19, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:18.275 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received command 0x01 (TSN 37): get_data(data=TuyaCommand(status=0, tsn=127, dp=19, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:18.276 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=127, dp=19, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=)) 2022-09-27 21:18:18.277 WARNING (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=127, dp=19, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:18.281 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=37, command_id=, *direction=, *is_reply=True) 2022-09-27 21:18:18.282 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply: Default_Response(command_id=1, status=) 2022-09-27 21:18:18.285 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=37), 133, b'\x18%\x0b\x01\x81') 2022-09-27 21:18:19.042 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=141), 212, -47, 0x1496, 255, 255, b'\t&\x01\x00\x7f\x16\x01\x00\x01\x00'] 2022-09-27 21:18:19.044 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b'\t&\x01\x00\x7f\x16\x01\x00\x01\x00' 2022-09-27 21:18:19.045 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=38, command_id=1, *direction=, *is_reply=True) 2022-09-27 21:18:19.050 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=127, dp=22, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:19.050 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received command 0x01 (TSN 38): get_data(data=TuyaCommand(status=0, tsn=127, dp=22, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:19.051 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=127, dp=22, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=)) 2022-09-27 21:18:19.052 WARNING (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=127, dp=22, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:19.057 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=38, command_id=, *direction=, *is_reply=True) 2022-09-27 21:18:19.058 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply: Default_Response(command_id=1, status=) 2022-09-27 21:18:19.061 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x1496, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=38), 134, b'\x18&\x0b\x01\x81') 2022-09-27 21:18:19.776 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=142), 208, -48, 0x1496, 255, 255, b"\t'\x01\x00\x7f\x14\x01\x00\x01\x00"] 2022-09-27 21:18:19.777 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received ZCL frame: b"\t'\x01\x00\x7f\x14\x01\x00\x01\x00" 2022-09-27 21:18:19.778 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=39, command_id=1, *direction=, *is_reply=True) 2022-09-27 21:18:19.781 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Decoded ZCL frame: MoesSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=127, dp=20, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:19.783 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Received command 0x01 (TSN 39): get_data(data=TuyaCommand(status=0, tsn=127, dp=20, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:19.784 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=127, dp=20, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=)) 2022-09-27 21:18:19.785 WARNING (MainThread) [zigpy.zcl] [0x1496:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=127, dp=20, data=TuyaData(dp_type=, function=0, raw=b'\x00', *payload=))) 2022-09-27 21:18:19.798 DEBUG (MainThread) [zigpy.zcl] [0x1496:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=

nekdo4 avatar Sep 27 '22 19:09 nekdo4

Keep the breaklines:

<details>
<summary>LOG</summary>

```
2022-09-27 21:16:29.316 DEBUG (MainThread) [zigpy.appdb] [0x1496:1:0x0000] Attribute id: 4 value: _TZE200_fm5yck8a 2022-09-27 21:16:29.316 DEBUG (MainThread) [zigpy.appdb] [0x1496:1:0x0000] Attribute id: 5 value: TS0601 2022-09-27 21:16:29.929 DEBUG (MainThread) [zigpy.appdb] [0x1496:1:0x0000] Attribute id: 4 value: _TZE200_fm5yck8a 2022-09-27 21:16:29.929 DEBUG (MainThread) [zigpy.appdb] [0x1496:1:0x0000] Attribute id: 5 value: TS0601 2022-09-27 21:16:29.929
```

</details>

javicalle avatar Sep 27 '22 19:09 javicalle

Quick and dirty alternative:

  1. restore the file version (or remove the _TZE200_fm5yck8a line)
  2. add at the end of the ts0601_switch.py file this classes:
AtlanticSwitchManufCluster
class AtlanticSwitchManufCluster(MoesSwitchManufCluster):
    """On/Off Tuya cluster with extra device attributes."""

    dp_to_attribute: Dict[
        int, DPToAttributeMapping
    ] = MoesSwitchManufCluster.dp_to_attribute.copy()
    dp_to_attribute.update(
        {
            19: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=19,
            ),
        }
    )
    dp_to_attribute.update(
        {
            20: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=20,
            ),
        }
    )
    dp_to_attribute.update(
        {
            21: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=21,
            ),
        }
    )
    dp_to_attribute.update(
        {
            22: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=22,
            ),
        }
    )

    data_point_handlers = MoesSwitchManufCluster.data_point_handlers.copy()
    data_point_handlers.update({19: "_dp_2_attr_update"})
    data_point_handlers.update({20: "_dp_2_attr_update"})
    data_point_handlers.update({21: "_dp_2_attr_update"})
    data_point_handlers.update({22: "_dp_2_attr_update"})


class AtlanticSwitch(TuyaSwitch):
    """Tuya quadruple channel switch time on out cluster device."""

    signature = {
        MODELS_INFO: [
            ("_TZE200_fm5yck8a", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    AtlanticSwitchManufCluster,
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            19: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            20: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            21: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            22: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
        }
    }
  1. delete any __pycache__ folder
  2. restart HA
  3. repair the device

It must show 6 lights. Lights 3-6 would reflect the 4 left gangs. Lights 1-2 will react somehow to the 2 right gangs. Is not intended to be implemented this way, just for testing pusposes. Backlight could be controlled with the backlight_mode attribute from cluster AtlanticSwitchManufCluster. Maybe also the power_on_state.

Logs of any incorrect behavior are welcomed and necessary to analyze the behavior (and possible solution).

javicalle avatar Sep 27 '22 21:09 javicalle

Thank you for your advice, here is the result. There was immediately an error Dict not defined so I added from typing import Dict to the beginning of the file, and after that the error was DPToAttributeMapping not defined, so I added from zhaquirks.tuya.mcu import

DPToAttributeMapping,
EnchantedDevice,
TuyaDPType,
TuyaMCUCluster,
TuyaPowerConfigurationCluster,

I do not know if this is everything needed, I copied it from a different file. After these modifications 4 switches function without problems, however 2 right switches again can only turn off the lights but not on. As they are designed for scenes would it be possible to set them for events instead of entities? And I would also like to ask how could backlight_mode be used. Thank you in advance

LOG
2022-09-28 12:15:36.611 DEBUG (MainThread) [zigpy.appdb] [0x327a:1:0x0000] Attribute id: 4 value: _TZE200_fm5yck8a
2022-09-28 12:15:36.611 DEBUG (MainThread) [zigpy.appdb] [0x327a:1:0x0000] Attribute id: 5 value: TS0601
2022-09-28 12:15:38.444 DEBUG (MainThread) [zigpy.appdb] [0x327a:1:0x0000] Attribute id: 4 value: _TZE200_fm5yck8a
2022-09-28 12:15:38.444 DEBUG (MainThread) [zigpy.appdb] [0x327a:1:0x0000] Attribute id: 5 value: TS0601
2022-09-28 12:15:38.444 DEBUG (MainThread) [zigpy.appdb] [0x327a:19:0x0006] Attribute id: 0 value: 1
2022-09-28 12:15:38.444 DEBUG (MainThread) [zigpy.appdb] [0x327a:20:0x0006] Attribute id: 0 value: 1
2022-09-28 12:15:38.445 DEBUG (MainThread) [zigpy.appdb] [0x327a:21:0x0006] Attribute id: 0 value: 1
2022-09-28 12:15:38.445 DEBUG (MainThread) [zigpy.appdb] [0x327a:22:0x0006] Attribute id: 0 value: 1
2022-09-28 12:15:38.445 DEBUG (MainThread) [zigpy.appdb] [0x327a:1:0xef00] Attribute id: 61184 value: 1.0.0
2022-09-28 12:15:38.445 DEBUG (MainThread) [zigpy.appdb] [0x327a:2:0x0006] Attribute id: 0 value: 0
2022-09-28 12:15:38.445 DEBUG (MainThread) [zigpy.appdb] [0x327a:1:0x0006] Attribute id: 0 value: 0
2022-09-28 12:15:48.502 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] [0x327A](_TZE200_fm5yck8a TS0601) restored as 'available', last seen: 0:44:39 ago, consider_unavailable_time: 7200 seconds
2022-09-28 12:15:48.544 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): started initialization
2022-09-28 12:15:48.545 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:ZDO](TS0601): 'async_initialize' stage succeeded
2022-09-28 12:15:48.663 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: initializing channel: from_cache: True
2022-09-28 12:15:48.663 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:48.663 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:48.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True]
2022-09-28 12:15:48.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:48.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: finished channel initialization
2022-09-28 12:15:48.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0000]: initializing channel: from_cache: True
2022-09-28 12:15:48.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0000]: finished channel initialization
2022-09-28 12:15:48.665 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0019]: initializing channel: from_cache: True
2022-09-28 12:15:48.665 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0019]: finished channel initialization
2022-09-28 12:15:48.665 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: initializing channel: from_cache: True
2022-09-28 12:15:48.665 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:48.665 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:48.665 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True]
2022-09-28 12:15:48.665 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:48.666 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: finished channel initialization
2022-09-28 12:15:48.666 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: initializing channel: from_cache: True
2022-09-28 12:15:48.666 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:48.666 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:48.666 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True]
2022-09-28 12:15:48.666 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:48.667 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: finished channel initialization
2022-09-28 12:15:48.667 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: initializing channel: from_cache: True
2022-09-28 12:15:48.667 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:48.667 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:48.667 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True]
2022-09-28 12:15:48.667 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:48.668 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: finished channel initialization
2022-09-28 12:15:48.668 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: initializing channel: from_cache: True
2022-09-28 12:15:48.668 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:48.668 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:48.669 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True]
2022-09-28 12:15:48.669 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:48.669 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: finished channel initialization
2022-09-28 12:15:48.669 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: initializing channel: from_cache: True
2022-09-28 12:15:48.669 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:48.669 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:48.670 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True]
2022-09-28 12:15:48.670 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:48.670 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: finished channel initialization
2022-09-28 12:15:48.723 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:48.723 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0000]: 'async_initialize' stage succeeded
2022-09-28 12:15:48.723 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0019]: 'async_initialize' stage succeeded
2022-09-28 12:15:48.723 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:48.723 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:48.723 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:48.724 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:48.724 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:48.744 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): power source: Mains
2022-09-28 12:15:48.744 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): completed initialization
2022-09-28 12:15:48.784 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): started initialization
2022-09-28 12:15:48.784 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:ZDO](TS0601): 'async_initialize' stage succeeded
2022-09-28 12:15:49.101 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: initializing channel: from_cache: False
2022-09-28 12:15:49.101 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:49.101 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:49.102 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-28 12:15:49.102 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:49.103 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: finished channel initialization
2022-09-28 12:15:49.103 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0000]: initializing channel: from_cache: False
2022-09-28 12:15:49.103 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0000]: finished channel initialization
2022-09-28 12:15:49.104 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0019]: initializing channel: from_cache: False
2022-09-28 12:15:49.104 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0019]: finished channel initialization
2022-09-28 12:15:49.104 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: initializing channel: from_cache: False
2022-09-28 12:15:49.104 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:49.104 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:49.105 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-28 12:15:49.106 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:49.106 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: finished channel initialization
2022-09-28 12:15:49.107 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: initializing channel: from_cache: False
2022-09-28 12:15:49.107 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:49.107 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:49.108 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-28 12:15:49.108 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:49.108 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: finished channel initialization
2022-09-28 12:15:49.109 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: initializing channel: from_cache: False
2022-09-28 12:15:49.109 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:49.109 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:49.110 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-28 12:15:49.110 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:49.111 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: finished channel initialization
2022-09-28 12:15:49.112 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: initializing channel: from_cache: False
2022-09-28 12:15:49.112 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:49.112 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:49.113 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-28 12:15:49.113 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:49.113 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: finished channel initialization
2022-09-28 12:15:49.114 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: initializing channel: from_cache: False
2022-09-28 12:15:49.114 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-28 12:15:49.114 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-28 12:15:49.115 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-28 12:15:49.115 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-28 12:15:49.116 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: finished channel initialization
2022-09-28 12:15:49.140 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:49.141 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0000]: 'async_initialize' stage succeeded
2022-09-28 12:15:49.141 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:1:0x0019]: 'async_initialize' stage succeeded
2022-09-28 12:15:49.141 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:2:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:49.141 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:19:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:49.142 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:20:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:49.142 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:21:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:49.142 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x327A:22:0x0006]: 'async_initialize' stage succeeded
2022-09-28 12:15:49.172 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): power source: Mains
2022-09-28 12:15:49.173 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): completed initialization
2022-09-28 12:16:53.829 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), 196, -51, 0x327a, 255, 255, b'\tN\x01\x00\x1a\x14\x01\x00\x01\x01']
2022-09-28 12:16:53.830 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received ZCL frame: b'\tN\x01\x00\x1a\x14\x01\x00\x01\x01'
2022-09-28 12:16:53.832 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=78, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:53.833 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=26, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-28 12:16:53.834 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received command 0x01 (TSN 78): get_data(data=TuyaCommand(status=0, tsn=26, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-28 12:16:53.837 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=78, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:53.838 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-28 12:16:53.852 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x327A, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=78), 151, b'\x18N\x0b\x01\x00')
2022-09-28 12:16:55.095 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), 188, -53, 0x327a, 255, 255, b'\tO\x01\x00\x1a\x13\x01\x00\x01\x01']
2022-09-28 12:16:55.096 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received ZCL frame: b'\tO\x01\x00\x1a\x13\x01\x00\x01\x01'
2022-09-28 12:16:55.097 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=79, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:55.103 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=26, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-28 12:16:55.104 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received command 0x01 (TSN 79): get_data(data=TuyaCommand(status=0, tsn=26, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-28 12:16:55.106 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=79, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:55.113 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-28 12:16:55.132 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x327A, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=79), 152, b'\x18O\x0b\x01\x00')
2022-09-28 12:16:55.777 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), 188, -53, 0x327a, 255, 255, b'\tP\x01\x00\x1a\x14\x01\x00\x01\x00']
2022-09-28 12:16:55.778 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received ZCL frame: b'\tP\x01\x00\x1a\x14\x01\x00\x01\x00'
2022-09-28 12:16:55.779 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=80, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:55.781 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=26, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-28 12:16:55.782 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received command 0x01 (TSN 80): get_data(data=TuyaCommand(status=0, tsn=26, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-28 12:16:55.830 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=80, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:55.831 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-28 12:16:55.855 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x327A, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=80), 153, b'\x18P\x0b\x01\x00')
2022-09-28 12:16:55.943 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), 192, -52, 0x327a, 255, 255, b'\tP\x01\x00\x1a\x14\x01\x00\x01\x00']
2022-09-28 12:16:55.945 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received ZCL frame: b'\tP\x01\x00\x1a\x14\x01\x00\x01\x00'
2022-09-28 12:16:55.947 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=80, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:55.948 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=26, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-28 12:16:57.966 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), 196, -51, 0x327a, 255, 255, b'\tQ\x01\x00\x1a\x13\x01\x00\x01\x00']
2022-09-28 12:16:57.967 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received ZCL frame: b'\tQ\x01\x00\x1a\x13\x01\x00\x01\x00'
2022-09-28 12:16:57.968 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=81, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:57.975 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=26, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-28 12:16:57.976 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received command 0x01 (TSN 81): get_data(data=TuyaCommand(status=0, tsn=26, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-28 12:16:57.979 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=81, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:57.983 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-28 12:16:57.995 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x327A, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=81), 156, b'\x18Q\x0b\x01\x00')
2022-09-28 12:16:58.487 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:16:58.488 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:16:59.399 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, 0x327a, 255, 255, b'\tR\x01\x00\x1a\x16\x01\x00\x01\x00']
2022-09-28 12:16:59.400 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received ZCL frame: b'\tR\x01\x00\x1a\x16\x01\x00\x01\x00'
2022-09-28 12:16:59.401 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=82, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:59.415 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=26, dp=22, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-28 12:16:59.416 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received command 0x01 (TSN 82): get_data(data=TuyaCommand(status=0, tsn=26, dp=22, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-28 12:16:59.460 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=82, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:59.461 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-28 12:16:59.487 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x327A, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=82), 159, b'\x18R\x0b\x01\x00')
2022-09-28 12:16:59.614 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), 184, -54, 0x327a, 255, 255, b'\tR\x01\x00\x1a\x16\x01\x00\x01\x00']
2022-09-28 12:16:59.615 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received ZCL frame: b'\tR\x01\x00\x1a\x16\x01\x00\x01\x00'
2022-09-28 12:16:59.616 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=82, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:16:59.625 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=26, dp=22, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-28 12:17:00.070 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), 188, -53, 0x327a, 255, 255, b'\tS\x01\x00\x1a\x15\x01\x00\x01\x00']
2022-09-28 12:17:00.072 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received ZCL frame: b'\tS\x01\x00\x1a\x15\x01\x00\x01\x00'
2022-09-28 12:17:00.073 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=83, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:17:00.106 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=26, dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-28 12:17:00.106 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received command 0x01 (TSN 83): get_data(data=TuyaCommand(status=0, tsn=26, dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-28 12:17:00.109 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=83, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:17:00.110 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-28 12:17:00.172 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x327A, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=83), 160, b'\x18S\x0b\x01\x00')
2022-09-28 12:17:00.268 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), 192, -52, 0x327a, 255, 255, b'\tS\x01\x00\x1a\x15\x01\x00\x01\x00']
2022-09-28 12:17:00.272 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received ZCL frame: b'\tS\x01\x00\x1a\x15\x01\x00\x01\x00'
2022-09-28 12:17:00.294 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=83, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:17:00.296 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=26, dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-28 12:18:08.495 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:18:08.495 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:19:18.496 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:19:18.496 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:20:28.497 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:20:28.497 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:21:38.505 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:21:38.505 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:22:48.507 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:22:48.507 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:23:58.508 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:23:58.508 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:25:08.510 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:25:08.511 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:26:18.510 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:26:18.511 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:27:28.512 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:27:28.512 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:28:38.512 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:28:38.513 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:29:48.528 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:29:48.528 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:30:58.528 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:30:58.529 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:31:24.537 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=62), 212, -47, 0x327a, 255, 255, b'\x19T$\x00\x12']
2022-09-28 12:31:24.540 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received ZCL frame: b'\x19T$\x00\x12'
2022-09-28 12:31:24.541 DEBUG (MainThread) [zigpy.zcl] [0x327A: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=1, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=84, command_id=36, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:31:24.559 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:set_time_request(data=[0, 18])
2022-09-28 12:31:24.562 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0xef00] Received command 0x24 (TSN 84): set_time_request(data=[0, 18])
2022-09-28 12:32:08.529 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:32:08.530 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:32:10.150 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=63), 212, -47, 0x327a, 255, 255, b'\x00U\x00\x07\x00']
2022-09-28 12:32:10.151 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0x000a] Received ZCL frame: b'\x00U\x00\x07\x00'
2022-09-28 12:32:10.152 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=False), tsn=85, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-28 12:32:10.153 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0x000a] Decoded ZCL frame: Time:Read_Attributes(attribute_ids=[7])
2022-09-28 12:32:10.154 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0x000a] Received command 0x00 (TSN 85): Read_Attributes(attribute_ids=[7])
2022-09-28 12:32:10.155 DEBUG (MainThread) [zigpy.zcl] [0x327A: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, *is_reply=True), tsn=85, command_id=<GeneralCommand.Read_Attributes_rsp: 1>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-28 12:32:10.156 DEBUG (MainThread) [zigpy.zcl] [0x327A:1:0x000a] Sending reply: Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0007, status=<Status.SUCCESS: 0>, value=TypeValue(type=LocalTime, value=717683530))])
2022-09-28 12:32:10.159 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x327A, EmberApsFrame(profileId=260, clusterId=10, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=85), 107, b'\x18U\x01\x07\x00\x00#J\xfb\xc6*')
2022-09-28 12:33:18.530 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:33:18.530 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:34:28.531 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:34:28.531 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:35:38.532 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:35:38.532 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:36:48.533 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:36:48.534 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:37:58.534 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:37:58.534 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:39:08.535 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:39:08.536 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:40:18.535 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:40:18.536 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:41:28.537 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:41:28.537 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:42:38.537 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:42:38.537 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:43:48.538 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:43:48.539 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:44:58.539 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:44:58.540 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:46:08.540 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:46:08.541 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:47:18.541 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:47:18.542 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:48:28.542 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:48:28.543 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:49:38.543 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:49:38.544 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:50:48.544 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:50:48.544 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:51:58.547 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:51:58.548 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:53:08.548 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:53:08.549 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:54:18.549 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:54:18.550 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:55:28.550 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:55:28.551 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-28 12:56:38.551 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Device seen - marking the device available and resetting counter
2022-09-28 12:56:38.551 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x327A](TS0601): Update device availability - device available: True - new availability: True - changed: False

nekdo4 avatar Sep 28 '22 11:09 nekdo4

As they are designed for scenes would it be possible to set them for events instead of entities?

Yes, that is the intention. I'll come back with some update.

And I would also like to ask how could backlight_mode be used.

That must be done from the 'Manage clusters' option from the device view. From the AtlanticSwitchManufCluster, select the backlight_mode attribute. You can 'get zigbee attribute' to see the current value (if any), and then try to set a new value: image

You can try with 0-2 values or even greather ones, it depends on device. For example there are:

class MoesBacklight(t.enum8):
    """MOES switch backlight mode enum."""

    off = 0x00
    light_when_on = 0x01
    light_when_off = 0x02
    freeze = 0x03

javicalle avatar Sep 29 '22 06:09 javicalle

Good evening, thank you for your explanation, however backlight is still not functioning.. I cannot change it even in the original aplication tuya (I still have tuya gateway so I could test it). So it might be possible that with this switch backlight cannot be set. If you find it interesting or helpful I am sending the log again.

LOG
2022-09-29 20:28:12.542 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0xb4e7, 80:4b:50:ff:fe:44:69:9a, <EmberDeviceUpdate.STANDARD_SECURITY_UNSECURED_JOIN: 1>, <EmberJoinDecision.USE_PRECONFIGURED_KEY: 0>, 0x246c]
2022-09-29 20:28:12.543 INFO (MainThread) [zigpy.application] New device 0xb4e7 (80:4b:50:ff:fe:44:69:9a) joined the network
2022-09-29 20:28:12.544 DEBUG (MainThread) [zigpy.device] [0xb4e7] Scheduling initialization
2022-09-29 20:28:12.552 INFO (MainThread) [zigpy.device] [0xb4e7] Requesting 'Node Descriptor'
2022-09-29 20:28:12.556 DEBUG (MainThread) [zigpy.device] [0xb4e7] Extending timeout for 0x2c request
2022-09-29 20:28:12.558 DEBUG (MainThread) [bellows.zigbee.application] Extending timeout for 80:4b:50:ff:fe:44:69:9a/0xb4e7
2022-09-29 20:28:12.619 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_SOURCE_EUI64: 1024>, groupId=0, sequence=114), 144, -64, 0xb4e7, 255, 255, b'\x85\xe7\xb4\x9aiD\xfe\xffPK\x80\x8e']
2022-09-29 20:28:12.620 INFO (MainThread) [bellows.zigbee.application] ZDO Device announce: 0xb4e7, 80:4b:50:ff:fe:44:69:9a
2022-09-29 20:28:12.621 INFO (MainThread) [zigpy.application] Device 0xb4e7 (80:4b:50:ff:fe:44:69:9a) joined the network
2022-09-29 20:28:12.622 DEBUG (MainThread) [zigpy.device] [0xb4e7] Scheduling initialization
2022-09-29 20:28:12.622 DEBUG (MainThread) [zigpy.device] [0xb4e7] Canceling old initialize call
2022-09-29 20:28:12.632 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0xB4E7 ieee=80:4b:50:ff:fe:44:69:9a is_initialized=False> from ep 0 to ep 0, cluster 19: b'\x85\xe7\xb4\x9aiD\xfe\xffPK\x80\x8e'
2022-09-29 20:28:12.633 DEBUG (MainThread) [zigpy.zdo] [0xb4e7:zdo] ZDO request ZDOCmd.Device_annce: [0xB4E7, 80:4b:50:ff:fe:44:69:9a, 142]
2022-09-29 20:28:12.649 INFO (MainThread) [zigpy.device] [0xb4e7] Requesting 'Node Descriptor'
2022-09-29 20:28:12.650 DEBUG (MainThread) [zigpy.device] [0xb4e7] Extending timeout for 0x2e request
2022-09-29 20:28:12.659 DEBUG (MainThread) [bellows.zigbee.application] Extending timeout for 80:4b:50:ff:fe:44:69:9a/0xb4e7
2022-09-29 20:28:12.796 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=46), 47, b'.\xe7\xb4')
2022-09-29 20:28:13.163 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_RETRY: 64>, groupId=0, sequence=115), 192, -52, 0xb4e7, 255, 255, b'.\x00\xe7\xb4\x01@\x8e\x02\x10RR\x00\x00,R\x00\x00']
2022-09-29 20:28:13.164 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0xB4E7 ieee=80:4b:50:ff:fe:44:69:9a is_initialized=False> from ep 0 to ep 0, cluster 32770: b'.\x00\xe7\xb4\x01@\x8e\x02\x10RR\x00\x00,R\x00\x00'
2022-09-29 20:28:13.172 INFO (MainThread) [zigpy.device] [0xb4e7] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)
2022-09-29 20:28:13.175 INFO (MainThread) [zigpy.device] [0xb4e7] Discovering endpoints
2022-09-29 20:28:13.178 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=48), 49, b'0\xe7\xb4')
2022-09-29 20:28:13.340 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=116), 228, -43, 0xb4e7, 255, 255, b'0\x00\xe7\xb4\x01\x01']
2022-09-29 20:28:13.342 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0xB4E7 ieee=80:4b:50:ff:fe:44:69:9a is_initialized=False> from ep 0 to ep 0, cluster 32773: b'0\x00\xe7\xb4\x01\x01'
2022-09-29 20:28:13.379 INFO (MainThread) [zigpy.device] [0xb4e7] Discovered endpoints: [1]
2022-09-29 20:28:13.381 INFO (MainThread) [zigpy.device] [0xb4e7] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>]
2022-09-29 20:28:13.382 INFO (MainThread) [zigpy.endpoint] [0xb4e7:1] Discovering endpoint information
2022-09-29 20:28:13.400 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=50), 51, b'2\xe7\xb4\x01')
2022-09-29 20:28:13.544 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=117), 220, -45, 0xb4e7, 255, 255, b'2\x00\xe7\xb4\x14\x01\x04\x01Q\x00\x01\x04\x00\x00\x04\x00\x05\x00\x00\xef\x02\x19\x00\n\x00']
2022-09-29 20:28:13.545 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0xB4E7 ieee=80:4b:50:ff:fe:44:69:9a is_initialized=False> from ep 0 to ep 0, cluster 32772: b'2\x00\xe7\xb4\x14\x01\x04\x01Q\x00\x01\x04\x00\x00\x04\x00\x05\x00\x00\xef\x02\x19\x00\n\x00'
2022-09-29 20:28:13.567 INFO (MainThread) [zigpy.endpoint] [0xb4e7:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=81, device_version=1, input_clusters=[0, 4, 5, 61184], output_clusters=[25, 10])
2022-09-29 20:28:13.572 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=False), tsn=52, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:28:13.575 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5])
2022-09-29 20:28:13.578 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=52), 53, b'\x004\x00\x04\x00\x05\x00')
2022-09-29 20:28:13.727 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=118), 224, -44, 0xb4e7, 255, 255, b'\x184\x01\x04\x00\x00B\x10_TZE200_fm5yck8a\x05\x00\x00B\x06TS0601']
2022-09-29 20:28:13.729 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x0000] Received ZCL frame: b'\x184\x01\x04\x00\x00B\x10_TZE200_fm5yck8a\x05\x00\x00B\x06TS0601'
2022-09-29 20:28:13.730 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=52, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:13.738 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='_TZE200_fm5yck8a')), ReadAttributeRecord(attrid=0x0005, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='TS0601'))])
2022-09-29 20:28:13.744 INFO (MainThread) [zigpy.device] [0xb4e7] Read model 'TS0601' and manufacturer '_TZE200_fm5yck8a' from <Endpoint id=1 in=[basic:0x0000, groups:0x0004, scenes:0x0005, None:0xEF00] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>
2022-09-29 20:28:13.745 INFO (MainThread) [zigpy.device] [0xb4e7] Discovered basic device information for <Device model='TS0601' manuf='_TZE200_fm5yck8a' nwk=0xB4E7 ieee=80:4b:50:ff:fe:44:69:9a is_initialized=True>
2022-09-29 20:28:13.746 DEBUG (MainThread) [zigpy.application] Device is initialized <Device model='TS0601' manuf='_TZE200_fm5yck8a' nwk=0xB4E7 ieee=80:4b:50:ff:fe:44:69:9a is_initialized=True>
2022-09-29 20:28:13.800 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0xB4E7:80:4b:50:ff:fe:44:69:9a entering async_device_initialized - is_new_join: True
2022-09-29 20:28:13.801 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0xB4E7:80:4b:50:ff:fe:44:69:9a has joined the ZHA zigbee network
2022-09-29 20:28:13.804 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): started configuration
2022-09-29 20:28:13.805 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:ZDO](TS0601): 'async_configure' stage succeeded
2022-09-29 20:28:13.823 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: Performing cluster binding
2022-09-29 20:28:13.825 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-09-29 20:28:13.825 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: Configuring cluster attribute reporting
2022-09-29 20:28:13.827 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-09-29 20:28:13.828 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: finished channel configuration
2022-09-29 20:28:13.829 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0000]: Configuring cluster attribute reporting
2022-09-29 20:28:13.830 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0000]: finished channel configuration
2022-09-29 20:28:13.831 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0019]: finished channel configuration
2022-09-29 20:28:13.831 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: Performing cluster binding
2022-09-29 20:28:13.832 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-09-29 20:28:13.833 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: Configuring cluster attribute reporting
2022-09-29 20:28:13.836 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-09-29 20:28:13.838 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: finished channel configuration
2022-09-29 20:28:13.840 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: Performing cluster binding
2022-09-29 20:28:13.841 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-09-29 20:28:13.842 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: Configuring cluster attribute reporting
2022-09-29 20:28:13.844 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-09-29 20:28:13.846 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: finished channel configuration
2022-09-29 20:28:13.848 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: Performing cluster binding
2022-09-29 20:28:13.850 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-09-29 20:28:13.851 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: Configuring cluster attribute reporting
2022-09-29 20:28:13.853 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-09-29 20:28:13.853 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: finished channel configuration
2022-09-29 20:28:13.854 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: Performing cluster binding
2022-09-29 20:28:13.858 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-09-29 20:28:13.860 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: Configuring cluster attribute reporting
2022-09-29 20:28:13.863 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-09-29 20:28:13.865 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: finished channel configuration
2022-09-29 20:28:13.867 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: Performing cluster binding
2022-09-29 20:28:13.869 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-09-29 20:28:13.870 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: Configuring cluster attribute reporting
2022-09-29 20:28:13.872 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-09-29 20:28:13.874 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: finished channel configuration
2022-09-29 20:28:13.885 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: 'async_configure' stage succeeded
2022-09-29 20:28:13.886 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0000]: 'async_configure' stage succeeded
2022-09-29 20:28:13.888 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0019]: 'async_configure' stage succeeded
2022-09-29 20:28:13.889 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: 'async_configure' stage succeeded
2022-09-29 20:28:13.890 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: 'async_configure' stage succeeded
2022-09-29 20:28:13.891 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: 'async_configure' stage succeeded
2022-09-29 20:28:13.892 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: 'async_configure' stage succeeded
2022-09-29 20:28:13.893 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: 'async_configure' stage succeeded
2022-09-29 20:28:13.939 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): completed configuration
2022-09-29 20:28:13.940 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): started initialization
2022-09-29 20:28:13.941 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:ZDO](TS0601): 'async_initialize' stage succeeded
2022-09-29 20:28:13.946 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: initializing channel: from_cache: False
2022-09-29 20:28:13.946 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-29 20:28:13.947 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-29 20:28:13.949 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-29 20:28:13.950 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-29 20:28:13.952 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: finished channel initialization
2022-09-29 20:28:13.953 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0000]: initializing channel: from_cache: False
2022-09-29 20:28:13.954 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0000]: finished channel initialization
2022-09-29 20:28:13.955 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0019]: initializing channel: from_cache: False
2022-09-29 20:28:13.956 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0019]: finished channel initialization
2022-09-29 20:28:13.956 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: initializing channel: from_cache: False
2022-09-29 20:28:13.957 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-29 20:28:13.958 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-29 20:28:13.959 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-29 20:28:13.960 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-29 20:28:13.961 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: finished channel initialization
2022-09-29 20:28:13.962 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: initializing channel: from_cache: False
2022-09-29 20:28:13.963 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-29 20:28:13.964 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-29 20:28:13.965 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-29 20:28:13.968 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-29 20:28:13.969 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: finished channel initialization
2022-09-29 20:28:13.970 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: initializing channel: from_cache: False
2022-09-29 20:28:13.971 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-29 20:28:13.971 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-29 20:28:13.972 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-29 20:28:13.973 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-29 20:28:13.976 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: finished channel initialization
2022-09-29 20:28:13.977 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: initializing channel: from_cache: False
2022-09-29 20:28:13.977 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-29 20:28:13.978 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-29 20:28:13.979 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-29 20:28:13.980 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-29 20:28:13.984 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: finished channel initialization
2022-09-29 20:28:13.985 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: initializing channel: from_cache: False
2022-09-29 20:28:13.986 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-09-29 20:28:13.987 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-09-29 20:28:13.988 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-09-29 20:28:13.989 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: Reading attributes in chunks: ['on_off']
2022-09-29 20:28:13.990 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: finished channel initialization
2022-09-29 20:28:13.999 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: 'async_initialize' stage succeeded
2022-09-29 20:28:14.000 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0000]: 'async_initialize' stage succeeded
2022-09-29 20:28:14.001 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0019]: 'async_initialize' stage succeeded
2022-09-29 20:28:14.001 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: 'async_initialize' stage succeeded
2022-09-29 20:28:14.002 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: 'async_initialize' stage succeeded
2022-09-29 20:28:14.003 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: 'async_initialize' stage succeeded
2022-09-29 20:28:14.003 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:21:0x0006]: 'async_initialize' stage succeeded
2022-09-29 20:28:14.004 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:22:0x0006]: 'async_initialize' stage succeeded
2022-09-29 20:28:14.009 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): power source: Mains
2022-09-29 20:28:14.011 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): completed initialization
2022-09-29 20:28:16.475 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=119), 232, -42, 0xb4e7, 255, 255, b'\x86\x00\x00']
2022-09-29 20:28:16.477 DEBUG (MainThread) [zigpy.zdo] [0xb4e7:zdo] ZDO request ZDOCmd.Node_Desc_req: [0x0000]
2022-09-29 20:28:16.478 DEBUG (MainThread) [zigpy.zdo] [0xb4e7:zdo] No handler for ZDO request:ZDOCmd.Node_Desc_req([0x0000])
2022-09-29 20:28:18.251 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=122), 216, -46, 0xb4e7, 255, 255, b'\x00:\x00\x07\x00']
2022-09-29 20:28:18.254 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x000a] Received ZCL frame: b'\x00:\x00\x07\x00'
2022-09-29 20:28:18.268 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=False), tsn=58, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:28:18.271 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x000a] Decoded ZCL frame: Time:Read_Attributes(attribute_ids=[7])
2022-09-29 20:28:18.272 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x000a] Received command 0x00 (TSN 58): Read_Attributes(attribute_ids=[7])
2022-09-29 20:28:18.277 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=58, command_id=<GeneralCommand.Read_Attributes_rsp: 1>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:18.280 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x000a] Sending reply: Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0007, status=<Status.SUCCESS: 0>, value=TypeValue(type=LocalTime, value=717798498))])
2022-09-29 20:28:18.284 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=10, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=58), 60, b'\x18:\x01\x07\x00\x00#b\xbc\xc8*')
2022-09-29 20:28:20.997 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=123), 224, -44, 0xb4e7, 255, 255, b'\t;\x01\x007\x13\x01\x00\x01\x01']
2022-09-29 20:28:20.999 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t;\x01\x007\x13\x01\x00\x01\x01'
2022-09-29 20:28:21.000 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=59, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:21.010 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=55, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:28:21.011 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 59): get_data(data=TuyaCommand(status=0, tsn=55, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:28:21.016 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=59, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:21.018 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:21.047 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=59), 61, b'\x18;\x0b\x01\x00')
2022-09-29 20:28:21.210 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=124), 224, -44, 0xb4e7, 255, 255, b'\t<\x01\x008\x14\x01\x00\x01\x00']
2022-09-29 20:28:21.212 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t<\x01\x008\x14\x01\x00\x01\x00'
2022-09-29 20:28:21.213 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=60, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:21.216 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=56, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:21.218 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 60): get_data(data=TuyaCommand(status=0, tsn=56, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:21.221 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=60, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:21.224 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:21.231 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=60), 62, b'\x18<\x0b\x01\x00')
2022-09-29 20:28:21.422 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=125), 224, -44, 0xb4e7, 255, 255, b'\t=\x01\x009\x15\x01\x00\x01\x00']
2022-09-29 20:28:21.423 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t=\x01\x009\x15\x01\x00\x01\x00'
2022-09-29 20:28:21.425 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=61, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:21.439 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=57, dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:21.440 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 61): get_data(data=TuyaCommand(status=0, tsn=57, dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:21.446 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=61, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:21.448 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:21.453 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=61), 63, b'\x18=\x0b\x01\x00')
2022-09-29 20:28:21.594 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=126), 216, -46, 0xb4e7, 255, 255, b'\t=\x01\x009\x15\x01\x00\x01\x00']
2022-09-29 20:28:21.596 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t=\x01\x009\x15\x01\x00\x01\x00'
2022-09-29 20:28:21.598 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=61, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:21.601 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=57, dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:21.738 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=127), 216, -46, 0xb4e7, 255, 255, b'\t>\x01\x00:\x16\x01\x00\x01\x00']
2022-09-29 20:28:21.750 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t>\x01\x00:\x16\x01\x00\x01\x00'
2022-09-29 20:28:21.751 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=62, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:21.754 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=58, dp=22, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:21.757 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 62): get_data(data=TuyaCommand(status=0, tsn=58, dp=22, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:21.765 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=62, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:21.767 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:21.813 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=62), 64, b'\x18>\x0b\x01\x00')
2022-09-29 20:28:21.978 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=128), 216, -46, 0xb4e7, 255, 255, b'\t>\x01\x00:\x16\x01\x00\x01\x00']
2022-09-29 20:28:21.980 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t>\x01\x00:\x16\x01\x00\x01\x00'
2022-09-29 20:28:21.982 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=62, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:21.984 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=58, dp=22, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:22.089 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=129), 212, -47, 0xb4e7, 255, 255, b'\t?\x01\x00;\x19\x02\x00\x04\x00\x00\x00\x00']
2022-09-29 20:28:22.093 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t?\x01\x00;\x19\x02\x00\x04\x00\x00\x00\x00'
2022-09-29 20:28:22.096 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=63, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:22.120 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=59, dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:22.122 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 63): get_data(data=TuyaCommand(status=0, tsn=59, dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:22.128 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=59, dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))
2022-09-29 20:28:22.129 WARNING (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=59, dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:22.208 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=63, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:22.210 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
2022-09-29 20:28:22.247 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=63), 65, b'\x18?\x0b\x01\x81')
2022-09-29 20:28:22.257 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=130), 220, -45, 0xb4e7, 255, 255, b'\t?\x01\x00;\x19\x02\x00\x04\x00\x00\x00\x00']
2022-09-29 20:28:22.259 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t?\x01\x00;\x19\x02\x00\x04\x00\x00\x00\x00'
2022-09-29 20:28:22.270 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=63, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:22.274 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=59, dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:22.438 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=131), 220, -45, 0xb4e7, 255, 255, b'\t@\x01\x00<\x1a\x02\x00\x04\x00\x00\x00\x00']
2022-09-29 20:28:22.440 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t@\x01\x00<\x1a\x02\x00\x04\x00\x00\x00\x00'
2022-09-29 20:28:22.441 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=64, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:22.455 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=60, dp=26, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:22.457 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 64): get_data(data=TuyaCommand(status=0, tsn=60, dp=26, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:22.458 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=60, dp=26, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))
2022-09-29 20:28:22.460 WARNING (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=60, dp=26, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:22.564 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=64, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:22.565 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
2022-09-29 20:28:22.569 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=64), 66, b'\x18@\x0b\x01\x81')
2022-09-29 20:28:22.621 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=132), 224, -44, 0xb4e7, 255, 255, b'\t@\x01\x00<\x1a\x02\x00\x04\x00\x00\x00\x00']
2022-09-29 20:28:22.622 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t@\x01\x00<\x1a\x02\x00\x04\x00\x00\x00\x00'
2022-09-29 20:28:22.627 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=64, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:22.629 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=60, dp=26, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:22.765 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=133), 224, -44, 0xb4e7, 255, 255, b'\tA\x01\x00=\x1b\x02\x00\x04\x00\x00\x00\x00']
2022-09-29 20:28:22.767 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tA\x01\x00=\x1b\x02\x00\x04\x00\x00\x00\x00'
2022-09-29 20:28:22.768 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=65, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:22.782 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=61, dp=27, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:22.785 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 65): get_data(data=TuyaCommand(status=0, tsn=61, dp=27, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:22.792 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=61, dp=27, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))
2022-09-29 20:28:22.811 WARNING (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=61, dp=27, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:22.877 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=65, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:22.881 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
2022-09-29 20:28:22.947 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=65), 67, b'\x18A\x0b\x01\x81')
2022-09-29 20:28:22.964 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=134), 224, -44, 0xb4e7, 255, 255, b'\tA\x01\x00=\x1b\x02\x00\x04\x00\x00\x00\x00']
2022-09-29 20:28:22.965 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tA\x01\x00=\x1b\x02\x00\x04\x00\x00\x00\x00'
2022-09-29 20:28:22.966 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=65, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:22.969 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=61, dp=27, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:23.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=135), 228, -43, 0xb4e7, 255, 255, b'\tB\x01\x00>\x1c\x02\x00\x04\x00\x00\x00\x00']
2022-09-29 20:28:23.130 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tB\x01\x00>\x1c\x02\x00\x04\x00\x00\x00\x00'
2022-09-29 20:28:23.131 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=66, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:23.134 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=62, dp=28, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:23.138 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 66): get_data(data=TuyaCommand(status=0, tsn=62, dp=28, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:23.143 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=62, dp=28, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))
2022-09-29 20:28:23.146 WARNING (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No 'handle_get_data' tuya handler found for get_data(data=TuyaCommand(status=0, tsn=62, dp=28, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:23.174 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=66, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:23.180 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
2022-09-29 20:28:23.189 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=66), 68, b'\x18B\x0b\x01\x81')
2022-09-29 20:28:23.352 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=136), 224, -44, 0xb4e7, 255, 255, b'\tB\x01\x00>\x1c\x02\x00\x04\x00\x00\x00\x00']
2022-09-29 20:28:23.358 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tB\x01\x00>\x1c\x02\x00\x04\x00\x00\x00\x00'
2022-09-29 20:28:23.360 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=66, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:23.372 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=62, dp=28, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0)))
2022-09-29 20:28:23.381 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=137), 224, -44, 0xb4e7, 255, 255, b'\x19C$\x007']
2022-09-29 20:28:23.382 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x19C$\x007'
2022-09-29 20:28:23.384 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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=1, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=67, command_id=36, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:23.389 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:set_time_request(data=[0, 55])
2022-09-29 20:28:23.390 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x24 (TSN 67): set_time_request(data=[0, 55])
2022-09-29 20:28:43.145 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=138), 212, -47, 0xb4e7, 255, 255, b'\tD\x11\x008@']
2022-09-29 20:28:43.147 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tD\x11\x008@'
2022-09-29 20:28:43.148 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=68, command_id=17, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:43.150 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:mcu_version_response(version=MCUVersion(status=0, tsn=56, version_raw=64, *version='1.0.0'))
2022-09-29 20:28:43.151 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x11 (TSN 68): mcu_version_response(version=MCUVersion(status=0, tsn=56, version_raw=64, *version='1.0.0'))
2022-09-29 20:28:43.152 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] MCU version: 1.0.0
2022-09-29 20:28:43.153 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=68, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:43.154 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=17, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:43.157 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=68), 73, b'\x18D\x0b\x11\x00')
2022-09-29 20:28:51.423 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:19:0x0006] Sending Tuya Cluster Command... Cluster Command is 0, Arguments are ()
2022-09-29 20:28:51.423 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=19, cluster_attr='on_off', attr_value=0, expect_reply=True)
2022-09-29 20:28:51.424 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 19
2022-09-29 20:28:51.424 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 19, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=19)
2022-09-29 20:28:51.425 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: Bool.false
2022-09-29 20:28:51.426 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 0]
2022-09-29 20:28:51.426 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x00'
2022-09-29 20:28:51.426 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=80, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))
2022-09-29 20:28:51.428 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=81, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:28:51.429 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=80, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:51.446 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: executed 'off' command with args: '()' kwargs: '{}' result: Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:51.473 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=81), 82, b'\x05\x02\x10Q\x00\x00P\x13\x01\x00\x01\x00')
2022-09-29 20:28:51.641 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=139), 216, -46, 0xb4e7, 255, 255, b'\x0c\x02\x10Q\x0b\x00\x00']
2022-09-29 20:28:51.659 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10Q\x0b\x00\x00'
2022-09-29 20:28:51.661 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=81, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:51.681 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:51.736 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=140), 220, -45, 0xb4e7, 255, 255, b'\tE\x01\x00P\x13\x01\x00\x01\x00']
2022-09-29 20:28:51.764 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tE\x01\x00P\x13\x01\x00\x01\x00'
2022-09-29 20:28:51.766 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=69, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:51.774 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=80, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:51.775 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 69): get_data(data=TuyaCommand(status=0, tsn=80, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:51.778 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=69, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:51.779 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:51.809 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=69), 83, b'\x18E\x0b\x01\x00')
2022-09-29 20:28:51.904 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=141), 220, -45, 0xb4e7, 255, 255, b'\tE\x01\x00P\x13\x01\x00\x01\x00']
2022-09-29 20:28:51.906 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tE\x01\x00P\x13\x01\x00\x01\x00'
2022-09-29 20:28:51.934 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=69, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:51.936 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=80, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:52.698 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:19:0x0006] Sending Tuya Cluster Command... Cluster Command is 1, Arguments are ()
2022-09-29 20:28:52.699 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=19, cluster_attr='on_off', attr_value=1, expect_reply=True)
2022-09-29 20:28:52.699 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 19
2022-09-29 20:28:52.699 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 19, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=19)
2022-09-29 20:28:52.700 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: Bool.true
2022-09-29 20:28:52.700 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 1]
2022-09-29 20:28:52.701 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x01'
2022-09-29 20:28:52.701 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=84, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>))
2022-09-29 20:28:52.708 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=85, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:28:52.709 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=84, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:28:52.711 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: executed 'on' command with args: '()' kwargs: '{}' result: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:52.715 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=85), 86, b'\x05\x02\x10U\x00\x00T\x13\x01\x00\x01\x01')
2022-09-29 20:28:52.852 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=142), 220, -45, 0xb4e7, 255, 255, b'\x0c\x02\x10U\x0b\x00\x00']
2022-09-29 20:28:52.854 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10U\x0b\x00\x00'
2022-09-29 20:28:52.855 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=85, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:52.856 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:52.922 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=143), 216, -46, 0xb4e7, 255, 255, b'\tF\x01\x00T\x13\x01\x00\x01\x01']
2022-09-29 20:28:52.925 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tF\x01\x00T\x13\x01\x00\x01\x01'
2022-09-29 20:28:52.926 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=70, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:52.932 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=84, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:28:52.933 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 70): get_data(data=TuyaCommand(status=0, tsn=84, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:28:52.935 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=70, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:52.936 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:52.947 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=70), 87, b'\x18F\x0b\x01\x00')
2022-09-29 20:28:53.859 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:19:0x0006] Sending Tuya Cluster Command... Cluster Command is 0, Arguments are ()
2022-09-29 20:28:53.859 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=19, cluster_attr='on_off', attr_value=0, expect_reply=True)
2022-09-29 20:28:53.860 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 19
2022-09-29 20:28:53.860 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 19, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=19)
2022-09-29 20:28:53.861 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: Bool.false
2022-09-29 20:28:53.861 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 0]
2022-09-29 20:28:53.861 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x00'
2022-09-29 20:28:53.862 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=88, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))
2022-09-29 20:28:53.863 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=89, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:28:53.866 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=88, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:53.868 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: executed 'off' command with args: '()' kwargs: '{}' result: Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:53.879 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=89), 90, b'\x05\x02\x10Y\x00\x00X\x13\x01\x00\x01\x00')
2022-09-29 20:28:54.037 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=144), 220, -45, 0xb4e7, 255, 255, b'\x0c\x02\x10Y\x0b\x00\x00']
2022-09-29 20:28:54.039 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10Y\x0b\x00\x00'
2022-09-29 20:28:54.040 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=89, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:54.042 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:54.101 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=145), 224, -44, 0xb4e7, 255, 255, b'\tG\x01\x00X\x13\x01\x00\x01\x00']
2022-09-29 20:28:54.103 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tG\x01\x00X\x13\x01\x00\x01\x00'
2022-09-29 20:28:54.104 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=71, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:54.109 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=88, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:54.111 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 71): get_data(data=TuyaCommand(status=0, tsn=88, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:28:54.124 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=71, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:54.125 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:54.149 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=71), 91, b'\x18G\x0b\x01\x00')
2022-09-29 20:28:54.689 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:19:0x0006] Sending Tuya Cluster Command... Cluster Command is 1, Arguments are ()
2022-09-29 20:28:54.693 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=19, cluster_attr='on_off', attr_value=1, expect_reply=True)
2022-09-29 20:28:54.694 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 19
2022-09-29 20:28:54.694 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 19, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=19)
2022-09-29 20:28:54.696 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: Bool.true
2022-09-29 20:28:54.696 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 1]
2022-09-29 20:28:54.696 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x01'
2022-09-29 20:28:54.697 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=92, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>))
2022-09-29 20:28:54.699 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=93, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:28:54.700 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=92, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:28:54.702 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: executed 'on' command with args: '()' kwargs: '{}' result: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:54.718 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=93), 94, b'\x05\x02\x10]\x00\x00\\\x13\x01\x00\x01\x01')
2022-09-29 20:28:54.901 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=146), 224, -44, 0xb4e7, 255, 255, b'\x0c\x02\x10]\x0b\x00\x00']
2022-09-29 20:28:54.902 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10]\x0b\x00\x00'
2022-09-29 20:28:54.903 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=93, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:54.905 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:54.932 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=147), 220, -45, 0xb4e7, 255, 255, b'\tH\x01\x00\\\x13\x01\x00\x01\x01']
2022-09-29 20:28:54.933 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tH\x01\x00\\\x13\x01\x00\x01\x01'
2022-09-29 20:28:54.934 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=72, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:54.946 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=92, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:28:54.947 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 72): get_data(data=TuyaCommand(status=0, tsn=92, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:28:54.950 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=72, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:54.962 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:28:54.966 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=72), 95, b'\x18H\x0b\x01\x00')
2022-09-29 20:28:55.163 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=148), 220, -45, 0xb4e7, 255, 255, b'\tH\x01\x00\\\x13\x01\x00\x01\x01']
2022-09-29 20:28:55.165 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tH\x01\x00\\\x13\x01\x00\x01\x01'
2022-09-29 20:28:55.167 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=72, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:28:55.171 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=92, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:29:01.919 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:19:0x0006] Sending Tuya Cluster Command... Cluster Command is 0, Arguments are ()
2022-09-29 20:29:01.920 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=19, cluster_attr='on_off', attr_value=0, expect_reply=True)
2022-09-29 20:29:01.932 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 19
2022-09-29 20:29:01.932 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 19, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=19)
2022-09-29 20:29:01.933 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: Bool.false
2022-09-29 20:29:01.933 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 0]
2022-09-29 20:29:01.934 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x00'
2022-09-29 20:29:01.934 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=96, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))
2022-09-29 20:29:01.936 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=97, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:29:01.937 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=96, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:29:01.939 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: executed 'off' command with args: '()' kwargs: '{}' result: Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:29:01.945 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=97), 98, b'\x05\x02\x10a\x00\x00`\x13\x01\x00\x01\x00')
2022-09-29 20:29:02.118 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=149), 216, -46, 0xb4e7, 255, 255, b'\x0c\x02\x10a\x0b\x00\x00']
2022-09-29 20:29:02.120 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10a\x0b\x00\x00'
2022-09-29 20:29:02.121 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=97, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:29:02.124 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:29:02.189 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=150), 216, -46, 0xb4e7, 255, 255, b'\tI\x01\x00`\x13\x01\x00\x01\x00']
2022-09-29 20:29:02.191 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tI\x01\x00`\x13\x01\x00\x01\x00'
2022-09-29 20:29:02.192 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=73, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:29:02.225 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=96, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:29:02.226 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 73): get_data(data=TuyaCommand(status=0, tsn=96, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:29:02.235 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=73, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:29:02.236 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:29:02.298 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=73), 99, b'\x18I\x0b\x01\x00')
2022-09-29 20:29:02.459 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=151), 216, -46, 0xb4e7, 255, 255, b'\tI\x01\x00`\x13\x01\x00\x01\x00']
2022-09-29 20:29:02.478 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tI\x01\x00`\x13\x01\x00\x01\x00'
2022-09-29 20:29:02.480 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=73, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:29:02.482 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=96, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:29:16.768 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Device seen - marking the device available and resetting counter
2022-09-29 20:29:16.768 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-29 20:29:51.954 ERROR (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Failed to convert attribute 0x8001 from (<class 'str'>) to type <enum 'MoesBacklight'>: invalid literal for int() with base 10: ''
2022-09-29 20:29:52.062 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:30:02.145 ERROR (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Failed to convert attribute 0x8001 from 120420420420 (<class 'str'>) to type <enum 'MoesBacklight'>: 120420420420 is not an unsigned 8 bit integer
2022-09-29 20:30:02.160 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: 120420420420 for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:30:05.953 ERROR (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Failed to convert attribute 0x8001 from 120420420420 (<class 'str'>) to type <enum 'MoesBacklight'>: 120420420420 is not an unsigned 8 bit integer
2022-09-29 20:30:06.118 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: 120420420420 for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:30:10.362 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=152), 196, -51, 0xb4e7, 255, 255, b'\tJ\x01\x00`\x14\x01\x00\x01\x01']
2022-09-29 20:30:10.363 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tJ\x01\x00`\x14\x01\x00\x01\x01'
2022-09-29 20:30:10.365 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=74, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:30:10.373 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=96, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:30:10.374 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 74): get_data(data=TuyaCommand(status=0, tsn=96, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:30:10.377 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=74, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:30:10.378 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:30:10.412 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=74), 116, b'\x18J\x0b\x01\x00')
2022-09-29 20:30:12.721 ERROR (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Failed to convert attribute 0x8001 from 120420420420 (<class 'str'>) to type <enum 'MoesBacklight'>: 120420420420 is not an unsigned 8 bit integer
2022-09-29 20:30:12.727 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: 120420420420 for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:30:19.768 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Device seen - marking the device available and resetting counter
2022-09-29 20:30:19.768 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-29 20:30:22.122 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] write_attributes --> record: Attribute(attrid=0x8001, value=TypeValue(type=MoesBacklight, value=<MoesBacklight.freeze: 3>))
2022-09-29 20:30:22.123 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=1, cluster_attr='backlight_mode', attr_value=<MoesBacklight.freeze: 3>, expect_reply=False, manufacturer=1)
2022-09-29 20:30:22.124 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 15
2022-09-29 20:30:22.145 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 15, DPToAttributeMapping(ep_attribute='tuya_manufacturer', attribute_name='backlight_mode', dp_type=<TuyaDPType.ENUM: 4>, converter=<function MoesSwitchManufCluster.<lambda> at 0x7fbe51940280>, dp_converter=None, endpoint_id=None)
2022-09-29 20:30:22.146 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: enum8.undefined_0x03
2022-09-29 20:30:22.146 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 3]
2022-09-29 20:30:22.146 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x03'
2022-09-29 20:30:22.147 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=123, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x03', *payload=<enum8.undefined_0x03: 3>))
2022-09-29 20:30:22.148 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=1, tsn=124, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:30:22.150 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=123, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x03', *payload=<enum8.undefined_0x03: 3>)))
2022-09-29 20:30:22.152 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: 3 for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:30:22.177 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=124), 125, b'\x05\x01\x00|\x00\x00{\x0f\x04\x00\x01\x03')
2022-09-29 20:30:22.301 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=153), 208, -48, 0xb4e7, 255, 255, b'\x0c\x01\x00|\x0b\x00\x00']
2022-09-29 20:30:22.303 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x01\x00|\x0b\x00\x00'
2022-09-29 20:30:22.304 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=1, tsn=124, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:30:22.306 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:30:25.776 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] write_attributes --> record: Attribute(attrid=0x8001, value=TypeValue(type=MoesBacklight, value=<MoesBacklight.freeze: 3>))
2022-09-29 20:30:25.777 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=1, cluster_attr='backlight_mode', attr_value=<MoesBacklight.freeze: 3>, expect_reply=False, manufacturer=3)
2022-09-29 20:30:25.778 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 15
2022-09-29 20:30:25.778 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 15, DPToAttributeMapping(ep_attribute='tuya_manufacturer', attribute_name='backlight_mode', dp_type=<TuyaDPType.ENUM: 4>, converter=<function MoesSwitchManufCluster.<lambda> at 0x7fbe51940280>, dp_converter=None, endpoint_id=None)
2022-09-29 20:30:25.779 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: enum8.undefined_0x03
2022-09-29 20:30:25.779 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 3]
2022-09-29 20:30:25.780 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x03'
2022-09-29 20:30:25.780 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=126, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x03', *payload=<enum8.undefined_0x03: 3>))
2022-09-29 20:30:25.784 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=3, tsn=127, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:30:25.785 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=126, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x03', *payload=<enum8.undefined_0x03: 3>)))
2022-09-29 20:30:25.788 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: 3 for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:30:25.814 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=127), 128, b'\x05\x03\x00\x7f\x00\x00~\x0f\x04\x00\x01\x03')
2022-09-29 20:30:26.011 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=154), 208, -48, 0xb4e7, 255, 255, b'\x0c\x03\x00\x7f\x0b\x00\x00']
2022-09-29 20:30:26.022 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x03\x00\x7f\x0b\x00\x00'
2022-09-29 20:30:26.024 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=3, tsn=127, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:30:26.037 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:31:09.653 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] write_attributes --> record: Attribute(attrid=0x8001, value=TypeValue(type=MoesBacklight, value=<MoesBacklight.freeze: 3>))
2022-09-29 20:31:09.654 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=1, cluster_attr='backlight_mode', attr_value=<MoesBacklight.freeze: 3>, expect_reply=False)
2022-09-29 20:31:09.655 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 15
2022-09-29 20:31:09.655 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 15, DPToAttributeMapping(ep_attribute='tuya_manufacturer', attribute_name='backlight_mode', dp_type=<TuyaDPType.ENUM: 4>, converter=<function MoesSwitchManufCluster.<lambda> at 0x7fbe51940280>, dp_converter=None, endpoint_id=None)
2022-09-29 20:31:09.656 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: enum8.undefined_0x03
2022-09-29 20:31:09.657 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 3]
2022-09-29 20:31:09.657 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x03'
2022-09-29 20:31:09.657 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=135, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x03', *payload=<enum8.undefined_0x03: 3>))
2022-09-29 20:31:09.659 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=136, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:31:09.661 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=135, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x03', *payload=<enum8.undefined_0x03: 3>)))
2022-09-29 20:31:09.663 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: 3 for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:31:09.668 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=136), 137, b'\x05\x02\x10\x88\x00\x00\x87\x0f\x04\x00\x01\x03')
2022-09-29 20:31:09.819 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=155), 208, -48, 0xb4e7, 255, 255, b'\x0c\x02\x10\x88\x0b\x00\x00']
2022-09-29 20:31:09.821 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\x88\x0b\x00\x00'
2022-09-29 20:31:09.822 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=136, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:31:09.829 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:31:22.770 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Device seen - marking the device available and resetting counter
2022-09-29 20:31:22.771 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-29 20:31:30.179 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] write_attributes --> record: Attribute(attrid=0x8001, value=TypeValue(type=MoesBacklight, value=<MoesBacklight.freeze: 3>))
2022-09-29 20:31:30.180 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=1, cluster_attr='backlight_mode', attr_value=<MoesBacklight.freeze: 3>, expect_reply=False)
2022-09-29 20:31:30.180 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 15
2022-09-29 20:31:30.180 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 15, DPToAttributeMapping(ep_attribute='tuya_manufacturer', attribute_name='backlight_mode', dp_type=<TuyaDPType.ENUM: 4>, converter=<function MoesSwitchManufCluster.<lambda> at 0x7fbe51940280>, dp_converter=None, endpoint_id=None)
2022-09-29 20:31:30.181 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: enum8.undefined_0x03
2022-09-29 20:31:30.195 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 3]
2022-09-29 20:31:30.196 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x03'
2022-09-29 20:31:30.197 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=150, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x03', *payload=<enum8.undefined_0x03: 3>))
2022-09-29 20:31:30.200 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=151, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:31:30.201 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=150, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x03', *payload=<enum8.undefined_0x03: 3>)))
2022-09-29 20:31:30.237 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: 0x03 for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:31:30.271 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=151), 152, b'\x05\x02\x10\x97\x00\x00\x96\x0f\x04\x00\x01\x03')
2022-09-29 20:31:30.471 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=156), 208, -48, 0xb4e7, 255, 255, b'\x0c\x02\x10\x97\x0b\x00\x00']
2022-09-29 20:31:30.476 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\x97\x0b\x00\x00'
2022-09-29 20:31:30.477 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=151, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:31:30.478 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:31:34.467 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] write_attributes --> record: Attribute(attrid=0x8001, value=TypeValue(type=MoesBacklight, value=<MoesBacklight.freeze: 3>))
2022-09-29 20:31:34.468 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=1, cluster_attr='backlight_mode', attr_value=<MoesBacklight.freeze: 3>, expect_reply=False, manufacturer=0)
2022-09-29 20:31:34.468 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 15
2022-09-29 20:31:34.469 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 15, DPToAttributeMapping(ep_attribute='tuya_manufacturer', attribute_name='backlight_mode', dp_type=<TuyaDPType.ENUM: 4>, converter=<function MoesSwitchManufCluster.<lambda> at 0x7fbe51940280>, dp_converter=None, endpoint_id=None)
2022-09-29 20:31:34.469 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: enum8.undefined_0x03
2022-09-29 20:31:34.470 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 3]
2022-09-29 20:31:34.470 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x03'
2022-09-29 20:31:34.485 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=153, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x03', *payload=<enum8.undefined_0x03: 3>))
2022-09-29 20:31:34.487 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=0, tsn=154, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:31:34.488 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=153, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x03', *payload=<enum8.undefined_0x03: 3>)))
2022-09-29 20:31:34.490 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: 0x03 for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:31:34.506 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=154), 155, b'\x05\x00\x00\x9a\x00\x00\x99\x0f\x04\x00\x01\x03')
2022-09-29 20:31:34.660 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=157), 216, -46, 0xb4e7, 255, 255, b'\x0c\x00\x00\x9a\x0b\x00\x00']
2022-09-29 20:31:34.662 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x00\x00\x9a\x0b\x00\x00'
2022-09-29 20:31:34.664 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=0, tsn=154, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:31:34.665 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:32:25.776 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Device seen - marking the device available and resetting counter
2022-09-29 20:32:25.777 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-29 20:33:28.777 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Device seen - marking the device available and resetting counter
2022-09-29 20:33:28.777 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-29 20:34:10.543 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:20:0x0006] Sending Tuya Cluster Command... Cluster Command is 0, Arguments are ()
2022-09-29 20:34:10.544 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=20, cluster_attr='on_off', attr_value=0, expect_reply=True)
2022-09-29 20:34:10.544 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 20
2022-09-29 20:34:10.544 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 20, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=20)
2022-09-29 20:34:10.570 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: Bool.false
2022-09-29 20:34:10.571 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 0]
2022-09-29 20:34:10.571 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x00'
2022-09-29 20:34:10.571 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=187, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))
2022-09-29 20:34:10.573 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=188, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:34:10.574 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=187, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:34:10.591 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: executed 'off' command with args: '()' kwargs: '{}' result: Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:10.595 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=188), 189, b'\x05\x02\x10\xbc\x00\x00\xbb\x14\x01\x00\x01\x00')
2022-09-29 20:34:10.809 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=158), 212, -47, 0xb4e7, 255, 255, b'\x0c\x02\x10\xbc\x0b\x00\x00']
2022-09-29 20:34:10.811 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\xbc\x0b\x00\x00'
2022-09-29 20:34:10.819 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=188, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:10.821 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:10.826 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=159), 208, -48, 0xb4e7, 255, 255, b'\tK\x01\x00\xbb\x14\x01\x00\x01\x00']
2022-09-29 20:34:10.843 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tK\x01\x00\xbb\x14\x01\x00\x01\x00'
2022-09-29 20:34:10.845 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=75, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:10.848 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=187, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:34:10.849 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 75): get_data(data=TuyaCommand(status=0, tsn=187, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:34:10.867 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=75, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:10.869 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:10.902 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=75), 190, b'\x18K\x0b\x01\x00')
2022-09-29 20:34:11.068 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=160), 212, -47, 0xb4e7, 255, 255, b'\tK\x01\x00\xbb\x14\x01\x00\x01\x00']
2022-09-29 20:34:11.069 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tK\x01\x00\xbb\x14\x01\x00\x01\x00'
2022-09-29 20:34:11.083 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=75, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:11.084 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=187, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:34:11.692 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x0006] Sending Tuya Cluster Command... Cluster Command is 1, Arguments are ()
2022-09-29 20:34:11.692 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=1, cluster_attr='on_off', attr_value=1, expect_reply=True)
2022-09-29 20:34:11.693 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 1
2022-09-29 20:34:11.694 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 1, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=None)
2022-09-29 20:34:11.716 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: Bool.true
2022-09-29 20:34:11.717 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 1]
2022-09-29 20:34:11.717 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x01'
2022-09-29 20:34:11.717 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=191, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>))
2022-09-29 20:34:11.720 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=192, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:34:11.745 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=191, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:34:11.751 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:1:0x0006]: executed 'on' command with args: '()' kwargs: '{}' result: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:11.794 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=192), 193, b'\x05\x02\x10\xc0\x00\x00\xbf\x01\x01\x00\x01\x01')
2022-09-29 20:34:11.903 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=161), 212, -47, 0xb4e7, 255, 255, b'\x0c\x02\x10\xc0\x0b\x00\x00']
2022-09-29 20:34:11.904 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\xc0\x0b\x00\x00'
2022-09-29 20:34:11.905 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=192, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:11.993 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:13.516 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:2:0x0006] Sending Tuya Cluster Command... Cluster Command is 1, Arguments are ()
2022-09-29 20:34:13.517 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=2, cluster_attr='on_off', attr_value=1, expect_reply=True)
2022-09-29 20:34:13.517 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 2
2022-09-29 20:34:13.518 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 2, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=2)
2022-09-29 20:34:13.518 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: Bool.true
2022-09-29 20:34:13.519 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 1]
2022-09-29 20:34:13.519 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x01'
2022-09-29 20:34:13.519 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=194, dp=2, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>))
2022-09-29 20:34:13.525 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=195, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:34:13.526 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=194, dp=2, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:34:13.528 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:2:0x0006]: executed 'on' command with args: '()' kwargs: '{}' result: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:13.545 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=195), 196, b'\x05\x02\x10\xc3\x00\x00\xc2\x02\x01\x00\x01\x01')
2022-09-29 20:34:13.686 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=162), 212, -47, 0xb4e7, 255, 255, b'\x0c\x02\x10\xc3\x0b\x00\x00']
2022-09-29 20:34:13.687 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\xc3\x0b\x00\x00'
2022-09-29 20:34:13.688 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=195, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:13.692 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:15.277 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:19:0x0006] Sending Tuya Cluster Command... Cluster Command is 1, Arguments are ()
2022-09-29 20:34:15.278 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=19, cluster_attr='on_off', attr_value=1, expect_reply=True)
2022-09-29 20:34:15.278 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 19
2022-09-29 20:34:15.279 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 19, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=19)
2022-09-29 20:34:15.303 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: Bool.true
2022-09-29 20:34:15.303 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 1]
2022-09-29 20:34:15.303 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x01'
2022-09-29 20:34:15.304 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=197, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>))
2022-09-29 20:34:15.305 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=198, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:34:15.306 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=197, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:34:15.308 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:19:0x0006]: executed 'on' command with args: '()' kwargs: '{}' result: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:15.319 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=198), 199, b'\x05\x02\x10\xc6\x00\x00\xc5\x13\x01\x00\x01\x01')
2022-09-29 20:34:15.497 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=163), 212, -47, 0xb4e7, 255, 255, b'\x0c\x02\x10\xc6\x0b\x00\x00']
2022-09-29 20:34:15.499 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\xc6\x0b\x00\x00'
2022-09-29 20:34:15.500 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=198, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:15.501 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:15.577 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=164), 208, -48, 0xb4e7, 255, 255, b'\tL\x01\x00\xc5\x13\x01\x00\x01\x01']
2022-09-29 20:34:15.579 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tL\x01\x00\xc5\x13\x01\x00\x01\x01'
2022-09-29 20:34:15.580 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=76, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:15.583 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=197, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:34:15.584 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 76): get_data(data=TuyaCommand(status=0, tsn=197, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:34:15.586 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=76, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:15.587 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:15.647 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=76), 200, b'\x18L\x0b\x01\x00')
2022-09-29 20:34:15.735 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=165), 208, -48, 0xb4e7, 255, 255, b'\tL\x01\x00\xc5\x13\x01\x00\x01\x01']
2022-09-29 20:34:15.740 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tL\x01\x00\xc5\x13\x01\x00\x01\x01'
2022-09-29 20:34:15.741 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=76, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:15.743 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=197, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:34:18.344 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:20:0x0006] Sending Tuya Cluster Command... Cluster Command is 1, Arguments are ()
2022-09-29 20:34:18.345 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=20, cluster_attr='on_off', attr_value=1, expect_reply=True)
2022-09-29 20:34:18.345 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 20
2022-09-29 20:34:18.346 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 20, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=20)
2022-09-29 20:34:18.347 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: Bool.true
2022-09-29 20:34:18.347 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 1]
2022-09-29 20:34:18.347 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x01'
2022-09-29 20:34:18.348 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=207, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>))
2022-09-29 20:34:18.353 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=208, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:34:18.354 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=207, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:34:18.362 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xB4E7:20:0x0006]: executed 'on' command with args: '()' kwargs: '{}' result: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:18.366 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=208), 209, b'\x05\x02\x10\xd0\x00\x00\xcf\x14\x01\x00\x01\x01')
2022-09-29 20:34:18.543 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=166), 208, -48, 0xb4e7, 255, 255, b'\x0c\x02\x10\xd0\x0b\x00\x00']
2022-09-29 20:34:18.544 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\xd0\x0b\x00\x00'
2022-09-29 20:34:18.546 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=208, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:18.553 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:18.604 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=167), 200, -50, 0xb4e7, 255, 255, b'\tM\x01\x00\xcf\x14\x01\x00\x01\x01']
2022-09-29 20:34:18.605 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tM\x01\x00\xcf\x14\x01\x00\x01\x01'
2022-09-29 20:34:18.606 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=77, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:18.610 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=207, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:34:18.611 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 77): get_data(data=TuyaCommand(status=0, tsn=207, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-09-29 20:34:18.613 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=77, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:18.614 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:34:18.617 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=77), 210, b'\x18M\x0b\x01\x00')
2022-09-29 20:34:31.779 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Device seen - marking the device available and resetting counter
2022-09-29 20:34:31.779 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-29 20:34:58.920 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] write_attributes --> record: Attribute(attrid=0x8001, value=TypeValue(type=MoesBacklight, value=<MoesBacklight.light_when_off: 2>))
2022-09-29 20:34:58.921 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=1, cluster_attr='backlight_mode', attr_value=<MoesBacklight.light_when_off: 2>, expect_reply=False)
2022-09-29 20:34:58.922 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 15
2022-09-29 20:34:58.922 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 15, DPToAttributeMapping(ep_attribute='tuya_manufacturer', attribute_name='backlight_mode', dp_type=<TuyaDPType.ENUM: 4>, converter=<function MoesSwitchManufCluster.<lambda> at 0x7fbe51940280>, dp_converter=None, endpoint_id=None)
2022-09-29 20:34:58.923 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: enum8.undefined_0x02
2022-09-29 20:34:58.924 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 2]
2022-09-29 20:34:58.924 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x02'
2022-09-29 20:34:58.924 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=218, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x02', *payload=<enum8.undefined_0x02: 2>))
2022-09-29 20:34:58.928 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=219, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:34:58.938 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=218, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x02', *payload=<enum8.undefined_0x02: 2>)))
2022-09-29 20:34:58.940 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: 0x02 for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:34:58.941 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=219), 220, b'\x05\x02\x10\xdb\x00\x00\xda\x0f\x04\x00\x01\x02')
2022-09-29 20:34:59.074 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=168), 208, -48, 0xb4e7, 255, 255, b'\x0c\x02\x10\xdb\x0b\x00\x00']
2022-09-29 20:34:59.076 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\xdb\x0b\x00\x00'
2022-09-29 20:34:59.077 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=219, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:34:59.081 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:35:28.885 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] read_attributes --> attrs: [32769]
2022-09-29 20:35:29.988 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] read_attributes --> attrs: [32769]
2022-09-29 20:35:34.783 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Device seen - marking the device available and resetting counter
2022-09-29 20:35:34.783 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-29 20:35:35.502 ERROR (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Failed to convert attribute 0x8001 from None (<class 'str'>) to type <enum 'MoesBacklight'>: invalid literal for int() with base 10: 'None'
2022-09-29 20:35:35.541 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: None for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:35:40.835 ERROR (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Failed to convert attribute 0x8001 from None (<class 'str'>) to type <enum 'MoesBacklight'>: invalid literal for int() with base 10: 'None'
2022-09-29 20:35:40.971 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: None for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:36:24.020 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] write_attributes --> record: Attribute(attrid=0x8001, value=TypeValue(type=MoesBacklight, value=<MoesBacklight.off: 0>))
2022-09-29 20:36:24.021 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=1, cluster_attr='backlight_mode', attr_value=<MoesBacklight.off: 0>, expect_reply=False, manufacturer=2)
2022-09-29 20:36:24.022 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] get_dp_mapping --> found DP: 15
2022-09-29 20:36:24.022 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_cluster_data: 15, DPToAttributeMapping(ep_attribute='tuya_manufacturer', attribute_name='backlight_mode', dp_type=<TuyaDPType.ENUM: 4>, converter=<function MoesSwitchManufCluster.<lambda> at 0x7fbe51940280>, dp_converter=None, endpoint_id=None)
2022-09-29 20:36:24.023 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] ztype: enum8.undefined_0x00
2022-09-29 20:36:24.023 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] from_value: [1, 0]
2022-09-29 20:36:24.023 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] raw: b'\x00'
2022-09-29 20:36:24.024 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=241, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-09-29 20:36:24.030 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=2, tsn=242, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-09-29 20:36:24.031 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=241, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)))
2022-09-29 20:36:24.032 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): set: False for attr: 32769 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-09-29 20:36:24.034 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=242), 243, b'\x05\x02\x00\xf2\x00\x00\xf1\x0f\x04\x00\x01\x00')
2022-09-29 20:36:24.166 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|APS_OPTION_RETRY: 320>, groupId=0, sequence=169), 212, -47, 0xb4e7, 255, 255, b'\x0c\x02\x00\xf2\x0b\x00\x00']
2022-09-29 20:36:24.168 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x00\xf2\x0b\x00\x00'
2022-09-29 20:36:24.168 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=2, tsn=242, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:36:24.170 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-09-29 20:36:37.784 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Device seen - marking the device available and resetting counter
2022-09-29 20:36:37.784 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-09-29 20:37:14.344 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=170), 184, -54, 0xb4e7, 255, 255, b'\tN\x01\x00\xf1\x01\x04\x00\x01\x00']
2022-09-29 20:37:14.346 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tN\x01\x00\xf1\x01\x04\x00\x01\x00'
2022-09-29 20:37:14.347 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=78, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:14.350 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=241, dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)))
2022-09-29 20:37:14.352 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 78): get_data(data=TuyaCommand(status=0, tsn=241, dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)))
2022-09-29 20:37:14.356 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=78, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:14.356 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:37:14.384 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=78), 252, b'\x18N\x0b\x01\x00')
2022-09-29 20:37:17.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=171), 184, -54, 0xb4e7, 255, 255, b'\tO\x01\x00\xf1\x01\x04\x00\x01\x00']
2022-09-29 20:37:17.041 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tO\x01\x00\xf1\x01\x04\x00\x01\x00'
2022-09-29 20:37:17.046 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=79, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:17.048 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=241, dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)))
2022-09-29 20:37:17.050 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 79): get_data(data=TuyaCommand(status=0, tsn=241, dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)))
2022-09-29 20:37:17.060 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=79, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:17.061 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:37:17.064 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=79), 255, b'\x18O\x0b\x01\x00')
2022-09-29 20:37:17.190 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=172), 180, -55, 0xb4e7, 255, 255, b'\tO\x01\x00\xf1\x01\x04\x00\x01\x00']
2022-09-29 20:37:17.198 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tO\x01\x00\xf1\x01\x04\x00\x01\x00'
2022-09-29 20:37:17.200 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=79, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:17.215 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=241, dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)))
2022-09-29 20:37:19.732 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=173), 192, -52, 0xb4e7, 255, 255, b'\tP\x01\x00\xf1\x01\x04\x00\x01\x00']
2022-09-29 20:37:19.734 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tP\x01\x00\xf1\x01\x04\x00\x01\x00'
2022-09-29 20:37:19.735 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=80, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:19.740 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=241, dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)))
2022-09-29 20:37:19.741 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 80): get_data(data=TuyaCommand(status=0, tsn=241, dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)))
2022-09-29 20:37:19.743 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=80, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:19.744 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:37:19.748 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=80), 4, b'\x18P\x0b\x01\x00')
2022-09-29 20:37:21.492 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=174), 176, -56, 0xb4e7, 255, 255, b'\tQ\x01\x00\xf1\x02\x04\x00\x01\x00']
2022-09-29 20:37:21.494 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tQ\x01\x00\xf1\x02\x04\x00\x01\x00'
2022-09-29 20:37:21.494 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=81, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:21.499 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=241, dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)))
2022-09-29 20:37:21.501 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 81): get_data(data=TuyaCommand(status=0, tsn=241, dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)))
2022-09-29 20:37:21.505 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=81, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:21.506 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:37:21.653 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=81), 5, b'\x18Q\x0b\x01\x00')
2022-09-29 20:37:21.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=175), 172, -57, 0xb4e7, 255, 255, b'\tQ\x01\x00\xf1\x02\x04\x00\x01\x00']
2022-09-29 20:37:21.771 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tQ\x01\x00\xf1\x02\x04\x00\x01\x00'
2022-09-29 20:37:21.777 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=81, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:21.778 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=241, dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)))
2022-09-29 20:37:24.404 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=176), 208, -48, 0xb4e7, 255, 255, b'\tR\x01\x00\xf1\x14\x01\x00\x01\x00']
2022-09-29 20:37:24.406 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tR\x01\x00\xf1\x14\x01\x00\x01\x00'
2022-09-29 20:37:24.407 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=82, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:24.412 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=241, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:37:24.414 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 82): get_data(data=TuyaCommand(status=0, tsn=241, dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:37:24.417 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=82, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:24.418 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:37:24.427 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=82), 6, b'\x18R\x0b\x01\x00')
2022-09-29 20:37:26.480 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=177), 152, -62, 0xb4e7, 255, 255, b'\tS\x01\x00\xf1\x13\x01\x00\x01\x00']
2022-09-29 20:37:26.482 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tS\x01\x00\xf1\x13\x01\x00\x01\x00'
2022-09-29 20:37:26.483 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=83, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:26.549 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=241, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:37:26.551 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 83): get_data(data=TuyaCommand(status=0, tsn=241, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:37:26.554 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=83, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:26.555 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-09-29 20:37:26.604 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xB4E7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=83), 7, b'\x18S\x0b\x01\x00')
2022-09-29 20:37:26.658 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=178), 160, -60, 0xb4e7, 255, 255, b'\tS\x01\x00\xf1\x13\x01\x00\x01\x00']
2022-09-29 20:37:26.659 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tS\x01\x00\xf1\x13\x01\x00\x01\x00'
2022-09-29 20:37:26.660 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=83, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-09-29 20:37:26.678 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=241, dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-09-29 20:37:40.793 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Device seen - marking the device available and resetting counter
2022-09-29 20:37:40.793 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Update device availability - device available: True - new availability: True - changed: False

nekdo4 avatar Sep 29 '22 19:09 nekdo4

From your logs I can see that HA tries to write the attribute and the device respond with a success:

2022-09-29 20:31:09.653 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] write_attributes --> record: Attribute(attrid=0x8001, value=TypeValue(type=MoesBacklight, value=<MoesBacklight.freeze: 3>))

2022-09-29 20:31:09.659 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=136, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)

2022-09-29 20:31:09.661 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=135, dp=15, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x03', *payload=<enum8.undefined_0x03: 3>)))

2022-09-29 20:31:09.821 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\x88\x0b\x00\x00'

2022-09-29 20:31:09.829 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)

So, probably device don't support the function. If Tuya app can't set it either will be very probable. One last test that you can do will be (keeping the debug logs activated) power off and power on the device and listen to the logs. Usually device will report all its attributes and maybe there are some information there.

javicalle avatar Sep 29 '22 19:09 javicalle

Good evening, so I tried to do pretty much everything which came to my mind, the log is too long so I had to convert it to a text file. I do not know if it is helpful, but I hope there are all options. If there is something I forgot to test or something I should change, I will do it again. Thank you for your help

LOG_TZE200_fm5yck8a.txt

nekdo4 avatar Oct 03 '22 19:10 nekdo4

I do not see any reports from the device apart from those already known (1, 2, 19, 20, 21, 22). Assuming that it is not possible to control the state of the backlight my quirk proposal would be:

AtlanticSwitch
class AtlanticSwitchManufCluster(TuyaOnOffManufCluster):
    """On/Off Tuya cluster with extra device attributes."""

    dp_to_attribute: Dict[
        int, DPToAttributeMapping
    ] = TuyaOnOffManufCluster.dp_to_attribute.copy()
    dp_to_attribute.update(
        {
            19: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=19,
            ),
        }
    )
    dp_to_attribute.update(
        {
            20: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=20,
            ),
        }
    )
    dp_to_attribute.update(
        {
            21: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=21,
            ),
        }
    )
    dp_to_attribute.update(
        {
            22: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=22,
            ),
        }
    )

    data_point_handlers = TuyaOnOffManufCluster.data_point_handlers.copy()
    data_point_handlers.update({19: "_dp_2_attr_update"})
    data_point_handlers.update({20: "_dp_2_attr_update"})
    data_point_handlers.update({21: "_dp_2_attr_update"})
    data_point_handlers.update({22: "_dp_2_attr_update"})


class AtlanticSwitch(TuyaSwitch):
    """Tuya quadruple channel switch time on out cluster device."""

    signature = {
        MODELS_INFO: [
            ("_TZE200_fm5yck8a", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_SWITCH,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    AtlanticSwitchManufCluster,
                ],
                OUTPUT_CLUSTERS: [TuyaSmartRemoteOnOffCluster, Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_SWITCH,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [TuyaSmartRemoteOnOffCluster],
            },
            19: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            20: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            21: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            22: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
        }
    }

    device_automation_triggers = {
        (SHORT_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: SHORT_PRESS},
        (LONG_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: LONG_PRESS},
        (DOUBLE_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: DOUBLE_PRESS},
        (SHORT_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: SHORT_PRESS},
        (LONG_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: LONG_PRESS},
        (DOUBLE_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: DOUBLE_PRESS},
    }

With this quirk only 4 buttons will apear in HA. The other 2 buttons have to be handled through events. short, long and double events have been implemented, but it is not certain that they will work. Try different keystrokes and look at the logs to see what information they give us. It is also possible to listen to zha_event events from the developer view. You may also be able to obtain information about the events generated by the device there.

javicalle avatar Oct 08 '22 19:10 javicalle

Good evening, so I changed it, filled in the imports and I would say in the log that the "scenes" is reacting to the switches, however in reality it does nothing as for the automatisation. Furthermore there is new switch, which does not react and if I try to turn it on, it automatically turns off. Thank you very much for your help. Unfortunately I am not able to understand very well what is going on in the log.

LOG
2022-10-12 21:05:14.753 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=231), 216, -46, 0xb4e7, 255, 255, b'\t_\x01\x00\t\x01\x04\x00\x01\x00']
2022-10-12 21:05:14.754 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=231, profile_id=260, cluster_id=61184, data=Serialized[b'\t_\x01\x00\t\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
2022-10-12 21:05:14.755 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t_\x01\x00\t\x01\x04\x00\x01\x00'
2022-10-12 21:05:14.756 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=95, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:05:14.757 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:05:14.758 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 95): get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:05:14.775 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=95, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:05:14.776 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-10-12 21:05:14.777 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), dst_ep=1, source_route=None, extended_timeout=False, tsn=95, profile_id=260, cluster_id=61184, data=Serialized[b'\x18_\x0b\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-10-12 21:05:14.779 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xb4e7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=95), 19, b'\x18_\x0b\x01\x00')
2022-10-12 21:05:14.922 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=232), 216, -46, 0xb4e7, 255, 255, b'\t_\x01\x00\t\x01\x04\x00\x01\x00']
2022-10-12 21:05:14.923 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=232, profile_id=260, cluster_id=61184, data=Serialized[b'\t_\x01\x00\t\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
2022-10-12 21:05:14.924 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\t_\x01\x00\t\x01\x04\x00\x01\x00'
2022-10-12 21:05:14.925 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=95, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:05:14.927 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:05:26.336 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=233), 208, -48, 0xb4e7, 255, 255, b'\x08`\n\x01\x00 G\xe2\xff \x1f\xe4\xff \x00']
2022-10-12 21:05:26.338 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=233, profile_id=260, cluster_id=0, data=Serialized[b'\x08`\n\x01\x00 G\xe2\xff \x1f\xe4\xff \x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=208, rssi=-48)
2022-10-12 21:05:26.343 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x0000] Received ZCL frame: b'\x08`\n\x01\x00 G\xe2\xff \x1f\xe4\xff \x00'
2022-10-12 21:05:26.345 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=96, command_id=10, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:05:26.346 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x0000] Decoded ZCL frame: Basic:Report_Attributes(attribute_reports=[Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=71)), Attribute(attrid=0xFFE2, value=TypeValue(type=uint8_t, value=31)), Attribute(attrid=0xFFE4, value=TypeValue(type=uint8_t, value=0))])
2022-10-12 21:05:26.365 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x0000] Received command 0x0A (TSN 96): Report_Attributes(attribute_reports=[Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=71)), Attribute(attrid=0xFFE2, value=TypeValue(type=uint8_t, value=31)), Attribute(attrid=0xFFE4, value=TypeValue(type=uint8_t, value=0))])
2022-10-12 21:05:26.366 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x0000] Attribute report received: app_version=71, 0xFFE2=31, 0xFFE4=0
2022-10-12 21:05:26.371 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=96, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:05:26.372 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0x0000] Sending reply: Default_Response(command_id=10, status=<Status.SUCCESS: 0>)
2022-10-12 21:05:26.373 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), dst_ep=1, source_route=None, extended_timeout=False, tsn=96, profile_id=260, cluster_id=0, data=Serialized[b'\x18`\x0b\n\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-10-12 21:05:26.376 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xb4e7, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=96), 21, b'\x18`\x0b\n\x00')
2022-10-12 21:05:28.811 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Device seen - marking the device available and resetting counter
2022-10-12 21:05:28.811 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-10-12 21:06:52.812 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Device seen - marking the device available and resetting counter
2022-10-12 21:06:52.812 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xB4E7](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-10-12 21:06:58.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=234), 196, -51, 0xb4e7, 255, 255, b'\ta\x01\x00\t\x01\x04\x00\x01\x00']
2022-10-12 21:06:58.625 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=234, profile_id=260, cluster_id=61184, data=Serialized[b'\ta\x01\x00\t\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=196, rssi=-51)
2022-10-12 21:06:58.626 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\ta\x01\x00\t\x01\x04\x00\x01\x00'
2022-10-12 21:06:58.627 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=97, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:06:58.649 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:06:58.650 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 97): get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:06:58.679 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=97, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:06:58.680 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-10-12 21:06:58.681 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), dst_ep=1, source_route=None, extended_timeout=False, tsn=97, profile_id=260, cluster_id=61184, data=Serialized[b'\x18a\x0b\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-10-12 21:06:58.682 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xb4e7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=97), 41, b'\x18a\x0b\x01\x00')
2022-10-12 21:06:58.822 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=235), 204, -49, 0xb4e7, 255, 255, b'\ta\x01\x00\t\x01\x04\x00\x01\x00']
2022-10-12 21:06:58.856 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=235, profile_id=260, cluster_id=61184, data=Serialized[b'\ta\x01\x00\t\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=204, rssi=-49)
2022-10-12 21:06:58.857 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\ta\x01\x00\t\x01\x04\x00\x01\x00'
2022-10-12 21:06:58.857 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=97, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:06:58.859 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:01.390 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=236), 200, -50, 0xb4e7, 255, 255, b'\tb\x01\x00\t\x01\x04\x00\x01\x00']
2022-10-12 21:07:01.391 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=236, profile_id=260, cluster_id=61184, data=Serialized[b'\tb\x01\x00\t\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=200, rssi=-50)
2022-10-12 21:07:01.393 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tb\x01\x00\t\x01\x04\x00\x01\x00'
2022-10-12 21:07:01.394 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=98, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:01.401 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:01.402 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 98): get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:01.406 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=98, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:01.407 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-10-12 21:07:01.408 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), dst_ep=1, source_route=None, extended_timeout=False, tsn=98, profile_id=260, cluster_id=61184, data=Serialized[b'\x18b\x0b\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-10-12 21:07:01.409 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xb4e7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=98), 42, b'\x18b\x0b\x01\x00')
2022-10-12 21:07:01.612 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=237), 208, -48, 0xb4e7, 255, 255, b'\tc\x01\x00\t\x01\x04\x00\x01\x00']
2022-10-12 21:07:01.613 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=237, profile_id=260, cluster_id=61184, data=Serialized[b'\tc\x01\x00\t\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=208, rssi=-48)
2022-10-12 21:07:01.614 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tc\x01\x00\t\x01\x04\x00\x01\x00'
2022-10-12 21:07:01.615 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=99, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:01.621 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:01.622 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 99): get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:01.630 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=99, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:01.631 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-10-12 21:07:01.632 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), dst_ep=1, source_route=None, extended_timeout=False, tsn=99, profile_id=260, cluster_id=61184, data=Serialized[b'\x18c\x0b\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-10-12 21:07:01.634 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xb4e7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=99), 43, b'\x18c\x0b\x01\x00')
2022-10-12 21:07:04.804 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=238), 188, -53, 0xb4e7, 255, 255, b'\td\x01\x00\t\x01\x04\x00\x01\x00']
2022-10-12 21:07:04.805 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=238, profile_id=260, cluster_id=61184, data=Serialized[b'\td\x01\x00\t\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=188, rssi=-53)
2022-10-12 21:07:04.807 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\td\x01\x00\t\x01\x04\x00\x01\x00'
2022-10-12 21:07:04.821 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=100, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:04.822 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:04.823 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 100): get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:04.826 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=100, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:04.827 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-10-12 21:07:04.828 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), dst_ep=1, source_route=None, extended_timeout=False, tsn=100, profile_id=260, cluster_id=61184, data=Serialized[b'\x18d\x0b\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-10-12 21:07:04.829 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xb4e7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=100), 44, b'\x18d\x0b\x01\x00')
2022-10-12 21:07:09.852 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=239), 200, -50, 0xb4e7, 255, 255, b'\te\x01\x00\t\x02\x04\x00\x01\x00']
2022-10-12 21:07:09.853 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=239, profile_id=260, cluster_id=61184, data=Serialized[b'\te\x01\x00\t\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=200, rssi=-50)
2022-10-12 21:07:09.854 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\te\x01\x00\t\x02\x04\x00\x01\x00'
2022-10-12 21:07:09.855 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=101, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:09.860 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:09.861 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 101): get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:09.862 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-10-12 21:07:09.864 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=101, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:09.865 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-10-12 21:07:09.866 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), dst_ep=1, source_route=None, extended_timeout=False, tsn=101, profile_id=260, cluster_id=61184, data=Serialized[b'\x18e\x0b\x01\x86'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-10-12 21:07:09.869 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xb4e7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=101), 51, b'\x18e\x0b\x01\x86')
2022-10-12 21:07:12.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=240), 192, -52, 0xb4e7, 255, 255, b'\tf\x01\x00\t\x02\x04\x00\x01\x00']
2022-10-12 21:07:12.634 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=240, profile_id=260, cluster_id=61184, data=Serialized[b'\tf\x01\x00\t\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=192, rssi=-52)
2022-10-12 21:07:12.635 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tf\x01\x00\t\x02\x04\x00\x01\x00'
2022-10-12 21:07:12.636 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=102, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:12.637 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:12.642 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 102): get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:12.643 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-10-12 21:07:12.646 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=102, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:12.647 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-10-12 21:07:12.648 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), dst_ep=1, source_route=None, extended_timeout=False, tsn=102, profile_id=260, cluster_id=61184, data=Serialized[b'\x18f\x0b\x01\x86'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-10-12 21:07:12.649 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xb4e7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=102), 52, b'\x18f\x0b\x01\x86')
2022-10-12 21:07:12.859 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=241), 196, -51, 0xb4e7, 255, 255, b'\tg\x01\x00\t\x02\x04\x00\x01\x00']
2022-10-12 21:07:12.860 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=241, profile_id=260, cluster_id=61184, data=Serialized[b'\tg\x01\x00\t\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=196, rssi=-51)
2022-10-12 21:07:12.861 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\tg\x01\x00\t\x02\x04\x00\x01\x00'
2022-10-12 21:07:12.862 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=103, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:12.869 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:12.870 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 103): get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:12.871 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-10-12 21:07:12.888 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=103, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:12.889 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-10-12 21:07:12.890 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), dst_ep=1, source_route=None, extended_timeout=False, tsn=103, profile_id=260, cluster_id=61184, data=Serialized[b'\x18g\x0b\x01\x86'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-10-12 21:07:12.892 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xb4e7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=103), 53, b'\x18g\x0b\x01\x86')
2022-10-12 21:07:15.616 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=242), 192, -52, 0xb4e7, 255, 255, b'\th\x01\x00\t\x02\x04\x00\x01\x00']
2022-10-12 21:07:15.617 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=242, profile_id=260, cluster_id=61184, data=Serialized[b'\th\x01\x00\t\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=192, rssi=-52)
2022-10-12 21:07:15.618 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received ZCL frame: b'\th\x01\x00\t\x02\x04\x00\x01\x00'
2022-10-12 21:07:15.619 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=104, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:15.626 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:15.627 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Received command 0x01 (TSN 104): get_data(data=TuyaCommand(status=0, tsn=9, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-10-12 21:07:15.628 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-10-12 21:07:15.630 DEBUG (MainThread) [zigpy.zcl] [0xB4E7: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, *is_reply=True), tsn=104, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-12 21:07:15.631 DEBUG (MainThread) [zigpy.zcl] [0xB4E7:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-10-12 21:07:15.632 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xB4E7), dst_ep=1, source_route=None, extended_timeout=False, tsn=104, profile_id=260, cluster_id=61184, data=Serialized[b'\x18h\x0b\x01\x86'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-10-12 21:07:15.633 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xb4e7, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=104), 54, b'\x18h\x0b\x01\x86')

obrazek

nekdo4 avatar Oct 12 '22 19:10 nekdo4

there is new switch, which does not react and if I try to turn it on, it automatically turns off.

My fault. Fixed in the code. Just remove the TuyaOnOff, in the replacement part that is not needed.

Also, the escene keys DP1 and DP2 are getting an ENUM type (that don't match the actual type) and don't like it. Before trying to fix anything, can you try making different keystrokes (short/long/double) from the physical device and try to identify the values in the logs? I hope you will find logs with this content but with different values in raw:

TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))

I am interested in relating the keystrokes with that values. You can also try with diferents keystrokes to see if there are more values (triple? quadruple? release event?)

javicalle avatar Oct 16 '22 09:10 javicalle

Hello, I am sorry for the late reply, but I had a lot of work with testing and not enough time for anything else. So:

Scene 1 switch 1-click TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)) 2-click TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)) LongClick TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))

Scene 2 switch 1-click TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)) 2-click TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>)) LongClick TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))

I do not see any difference regardless of the way I click, when 2-click it just repeats the same, as if I clicked twice. But I think this is normal because in the tuya aplication you cannot use anything else than 1-click, everything else does the same.

As usual thank you for your advice and here is the whole log:

LOG
2022-11-13 23:40:59.211 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): power source: Mains
2022-11-13 23:40:59.211 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): completed initialization
2022-11-13 23:41:42.280 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x4996, Relays=[])
2022-11-13 23:41:42.332 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x4996, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=76, SecurityUse=<Bool.false: 0>, TimeStamp=141219, TSN=0, Data=b'\x09\x4B\x01\x00\x18\x01\x04\x00\x01\x00', MacSrcAddr=0x4996, MsgResultRadius=29)
2022-11-13 23:41:42.336 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tK\x01\x00\x18\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=76, rssi=None)
2022-11-13 23:41:42.337 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received ZCL frame: b'\tK\x01\x00\x18\x01\x04\x00\x01\x00'
2022-11-13 23:41:42.337 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=75, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:41:42.337 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:41:42.337 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 75): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:41:42.338 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-13 23:41:42.338 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=75, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:41:42.338 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-13 23:41:42.338 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), dst_ep=1, source_route=None, extended_timeout=False, tsn=75, profile_id=260, cluster_id=61184, data=Serialized[b'\x18K\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-13 23:41:42.339 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4996), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=75, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x4B\x0B\x01\x86')
2022-11-13 23:42:16.537 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x4996, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=34, SecurityUse=<Bool.false: 0>, TimeStamp=248115, TSN=0, Data=b'\x09\x4C\x01\x00\x18\x01\x04\x00\x01\x00', MacSrcAddr=0x4996, MsgResultRadius=29)
2022-11-13 23:42:16.537 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tL\x01\x00\x18\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=34, rssi=None)
2022-11-13 23:42:16.537 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received ZCL frame: b'\tL\x01\x00\x18\x01\x04\x00\x01\x00'
2022-11-13 23:42:16.537 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=76, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:42:16.538 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:42:16.538 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 76): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:42:16.538 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-13 23:42:16.539 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=76, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:42:16.539 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-13 23:42:16.539 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), dst_ep=1, source_route=None, extended_timeout=False, tsn=76, profile_id=260, cluster_id=61184, data=Serialized[b'\x18L\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-13 23:42:16.539 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4996), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=76, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x4C\x0B\x01\x86')
2022-11-13 23:42:18.176 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x4996, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=68, SecurityUse=<Bool.false: 0>, TimeStamp=253231, TSN=0, Data=b'\x09\x4D\x01\x00\x18\x19\x02\x00\x04\x00\x00\x01\x8B', MacSrcAddr=0x4996, MsgResultRadius=29)
2022-11-13 23:42:18.177 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tM\x01\x00\x18\x19\x02\x00\x04\x00\x00\x01\x8b'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=68, rssi=None)
2022-11-13 23:42:18.177 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received ZCL frame: b'\tM\x01\x00\x18\x19\x02\x00\x04\x00\x00\x01\x8b'
2022-11-13 23:42:18.178 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=77, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:42:18.179 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x8b\x01\x00\x00', *payload=395))]))
2022-11-13 23:42:18.179 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 77): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x8b\x01\x00\x00', *payload=395))]))
2022-11-13 23:42:18.180 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x8b\x01\x00\x00', *payload=395))
2022-11-13 23:42:18.180 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=77, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:42:18.180 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-13 23:42:18.180 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), dst_ep=1, source_route=None, extended_timeout=False, tsn=77, profile_id=260, cluster_id=61184, data=Serialized[b'\x18M\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-13 23:42:18.181 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4996), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=77, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x4D\x0B\x01\x86')
2022-11-13 23:42:23.162 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Device seen - marking the device available and resetting counter
2022-11-13 23:42:23.163 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-11-13 23:43:47.164 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Device seen - marking the device available and resetting counter
2022-11-13 23:43:47.164 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-11-13 23:44:03.606 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x4996, Relays=[])
2022-11-13 23:44:03.657 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x4996, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=70, SecurityUse=<Bool.false: 0>, TimeStamp=582868, TSN=0, Data=b'\x09\x4E\x01\x00\x18\x01\x04\x00\x01\x00', MacSrcAddr=0x4996, MsgResultRadius=29)
2022-11-13 23:44:03.659 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tN\x01\x00\x18\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=70, rssi=None)
2022-11-13 23:44:03.659 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received ZCL frame: b'\tN\x01\x00\x18\x01\x04\x00\x01\x00'
2022-11-13 23:44:03.660 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=78, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:44:03.662 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:44:03.662 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 78): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:44:03.663 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-13 23:44:03.666 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=78, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:44:03.667 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-13 23:44:03.668 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), dst_ep=1, source_route=None, extended_timeout=False, tsn=78, profile_id=260, cluster_id=61184, data=Serialized[b'\x18N\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-13 23:44:03.670 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4996), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=78, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x4E\x0B\x01\x86')
2022-11-13 23:45:11.168 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Device seen - marking the device available and resetting counter
2022-11-13 23:45:11.168 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-11-13 23:46:35.169 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Device seen - marking the device available and resetting counter
2022-11-13 23:46:35.170 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-11-13 23:47:59.175 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Device seen - marking the device available and resetting counter
2022-11-13 23:47:59.176 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-11-13 23:48:03.603 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x4996, Relays=[])
2022-11-13 23:48:03.653 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x4996, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=94, SecurityUse=<Bool.false: 0>, TimeStamp=1332881, TSN=0, Data=b'\x09\x4F\x01\x00\x18\x01\x04\x00\x01\x00', MacSrcAddr=0x4996, MsgResultRadius=29)
2022-11-13 23:48:03.653 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tO\x01\x00\x18\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=94, rssi=None)
2022-11-13 23:48:03.654 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received ZCL frame: b'\tO\x01\x00\x18\x01\x04\x00\x01\x00'
2022-11-13 23:48:03.654 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=79, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:48:03.654 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:48:03.654 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 79): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:48:03.654 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-13 23:48:03.655 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=79, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:48:03.655 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-13 23:48:03.655 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), dst_ep=1, source_route=None, extended_timeout=False, tsn=79, profile_id=260, cluster_id=61184, data=Serialized[b'\x18O\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-13 23:48:03.655 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4996), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=79, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x4F\x0B\x01\x86')
2022-11-13 23:49:23.175 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Device seen - marking the device available and resetting counter
2022-11-13 23:49:23.176 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-11-13 23:49:43.970 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x4996, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=84, SecurityUse=<Bool.false: 0>, TimeStamp=1646387, TSN=0, Data=b'\x09\x50\x01\x00\x18\x01\x04\x00\x01\x00', MacSrcAddr=0x4996, MsgResultRadius=29)
2022-11-13 23:49:43.971 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tP\x01\x00\x18\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=84, rssi=None)
2022-11-13 23:49:43.972 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received ZCL frame: b'\tP\x01\x00\x18\x01\x04\x00\x01\x00'
2022-11-13 23:49:43.973 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=80, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:49:43.975 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:49:43.975 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 80): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:49:43.975 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-13 23:49:43.975 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=80, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:49:43.975 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-13 23:49:43.976 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), dst_ep=1, source_route=None, extended_timeout=False, tsn=80, profile_id=260, cluster_id=61184, data=Serialized[b'\x18P\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-13 23:49:43.976 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4996), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=80, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x50\x0B\x01\x86')
2022-11-13 23:49:44.369 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x4996, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=84, SecurityUse=<Bool.false: 0>, TimeStamp=1647639, TSN=0, Data=b'\x09\x51\x01\x00\x18\x01\x04\x00\x01\x00', MacSrcAddr=0x4996, MsgResultRadius=29)
2022-11-13 23:49:44.370 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tQ\x01\x00\x18\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=84, rssi=None)
2022-11-13 23:49:44.370 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received ZCL frame: b'\tQ\x01\x00\x18\x01\x04\x00\x01\x00'
2022-11-13 23:49:44.370 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=81, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:49:44.370 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:49:44.370 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 81): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:49:44.370 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-13 23:49:44.371 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=81, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:49:44.371 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-13 23:49:44.371 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), dst_ep=1, source_route=None, extended_timeout=False, tsn=81, profile_id=260, cluster_id=61184, data=Serialized[b'\x18Q\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-13 23:49:44.371 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4996), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=81, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x51\x0B\x01\x86')
2022-11-13 23:50:47.180 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Device seen - marking the device available and resetting counter
2022-11-13 23:50:47.180 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-11-13 23:51:17.165 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x4996, Relays=[])
2022-11-13 23:51:17.214 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x4996, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=94, SecurityUse=<Bool.false: 0>, TimeStamp=1937780, TSN=0, Data=b'\x09\x52\x01\x00\x18\x02\x04\x00\x01\x00', MacSrcAddr=0x4996, MsgResultRadius=29)
2022-11-13 23:51:17.215 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tR\x01\x00\x18\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=94, rssi=None)
2022-11-13 23:51:17.215 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received ZCL frame: b'\tR\x01\x00\x18\x02\x04\x00\x01\x00'
2022-11-13 23:51:17.215 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=82, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:51:17.215 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:51:17.216 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 82): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:51:17.216 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-13 23:51:17.216 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=82, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:51:17.216 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-13 23:51:17.216 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), dst_ep=1, source_route=None, extended_timeout=False, tsn=82, profile_id=260, cluster_id=61184, data=Serialized[b'\x18R\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-13 23:51:17.217 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4996), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=82, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x52\x0B\x01\x86')
2022-11-13 23:52:11.184 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Device seen - marking the device available and resetting counter
2022-11-13 23:52:11.185 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-11-13 23:52:55.910 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x4996, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=99, SecurityUse=<Bool.false: 0>, TimeStamp=2246218, TSN=0, Data=b'\x09\x53\x01\x00\x18\x02\x04\x00\x01\x00', MacSrcAddr=0x4996, MsgResultRadius=29)
2022-11-13 23:52:55.911 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tS\x01\x00\x18\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=99, rssi=None)
2022-11-13 23:52:55.911 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received ZCL frame: b'\tS\x01\x00\x18\x02\x04\x00\x01\x00'
2022-11-13 23:52:55.911 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=83, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:52:55.911 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:52:55.911 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 83): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:52:55.912 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-13 23:52:55.912 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=83, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:52:55.912 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-13 23:52:55.912 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), dst_ep=1, source_route=None, extended_timeout=False, tsn=83, profile_id=260, cluster_id=61184, data=Serialized[b'\x18S\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-13 23:52:55.912 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4996), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=83, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x53\x0B\x01\x86')
2022-11-13 23:52:56.353 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x4996, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=97, SecurityUse=<Bool.false: 0>, TimeStamp=2247601, TSN=0, Data=b'\x09\x54\x01\x00\x18\x02\x04\x00\x01\x00', MacSrcAddr=0x4996, MsgResultRadius=29)
2022-11-13 23:52:56.354 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tT\x01\x00\x18\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=97, rssi=None)
2022-11-13 23:52:56.354 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received ZCL frame: b'\tT\x01\x00\x18\x02\x04\x00\x01\x00'
2022-11-13 23:52:56.354 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=84, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:52:56.354 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:52:56.355 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 84): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:52:56.355 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-13 23:52:56.355 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=84, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:52:56.355 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-13 23:52:56.356 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), dst_ep=1, source_route=None, extended_timeout=False, tsn=84, profile_id=260, cluster_id=61184, data=Serialized[b'\x18T\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-13 23:52:56.356 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4996), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=84, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x54\x0B\x01\x86')
2022-11-13 23:53:35.188 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Device seen - marking the device available and resetting counter
2022-11-13 23:53:35.189 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x4996](TS0601): Update device availability - device available: True - new availability: True - changed: False
2022-11-13 23:54:31.865 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x4996, Relays=[])
2022-11-13 23:54:31.915 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x4996, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=94, SecurityUse=<Bool.false: 0>, TimeStamp=2546233, TSN=0, Data=b'\x09\x55\x01\x00\x18\x02\x04\x00\x01\x00', MacSrcAddr=0x4996, MsgResultRadius=29)
2022-11-13 23:54:31.917 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tU\x01\x00\x18\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=94, rssi=None)
2022-11-13 23:54:31.917 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received ZCL frame: b'\tU\x01\x00\x18\x02\x04\x00\x01\x00'
2022-11-13 23:54:31.918 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=85, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:54:31.920 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:54:31.921 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 85): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:54:31.922 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-13 23:54:31.925 DEBUG (MainThread) [zigpy.zcl] [0x4996: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, *is_reply=True), tsn=85, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-13 23:54:31.926 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-13 23:54:31.926 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4996), dst_ep=1, source_route=None, extended_timeout=False, tsn=85, profile_id=260, cluster_id=61184, data=Serialized[b'\x18U\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-13 23:54:31.928 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4996), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=85, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x55\x0B\x01\x86')

nekdo4 avatar Nov 13 '22 23:11 nekdo4

Sorry for the late reply.

In the logs I can see that quirk complins about DP1 and DP2:

2022-11-13 23:49:44.370 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 81): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:49:44.370 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
.../...
2022-11-13 23:51:17.215 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:51:17.216 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] Received command 0x01 (TSN 82): get_data(data=TuyaCommand(status=0, tsn=24, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-13 23:51:17.216 DEBUG (MainThread) [zigpy.zcl] [0x4996:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))

There is also a DP25 with a value 395. No idea what it can be.

Can you post your current quirk? Please, can you also refresh me the current state? What is working and what not?

javicalle avatar Nov 29 '22 20:11 javicalle

Hello, so DP=25 I do not know, what this is, it appears always after the first testing of switch 1 - click, long click, double click and then dp=25, not before this regardless of whatever I do. It is now on a separate testing set where I have only coordinator and the switch and nothing else. So I really have no idea what this could be. As of this time, all 4 light switches are functioning, but the switches themself do nothing except showing something in the log, it is not reacting in the automatization.

here is the current log:

Quirk
"""Tuya DP based switches."""
from typing import Dict

from zigpy.profiles import zha
from zigpy.zcl.clusters.general import Basic, GreenPowerProxy, Groups, Ota, Scenes, Time

from zhaquirks.const import (
    BUTTON,
    BUTTON_1,
    BUTTON_2,
    BUTTON_3,
    BUTTON_4,
    CLUSTER_ID,
    COMMAND,
    COMMAND_MOVE,
    COMMAND_MOVE_SATURATION,
    COMMAND_OFF,
    COMMAND_ON,
    COMMAND_STEP,
    COMMAND_STOP,
    COMMAND_STOP_MOVE_STEP,
    COMMAND_TOGGLE,
    DEVICE_TYPE,
    DIM_DOWN,
    DIM_UP,
    DOUBLE_PRESS,
    ENDPOINT_ID,
    ENDPOINTS,
    INPUT_CLUSTERS,
    LEFT,
    LONG_PRESS,
    LONG_RELEASE,
    MODEL,
    MODELS_INFO,
    OUTPUT_CLUSTERS,
    PARAMS,
    PROFILE_ID,
    RIGHT,
    ROTATED,
    ROTATED_FAST,
    ROTATED_SLOW,
    SHORT_PRESS,
    TURN_OFF,
    TURN_ON,
)

from zhaquirks.tuya import (
    TuyaSwitch,
    TuyaSmartRemoteOnOffCluster,
    TuyaZBE000Cluster,
)

from zhaquirks.tuya.mcu import (
    DPToAttributeMapping,
    EnchantedDevice,
    TuyaDPType,
    TuyaMCUCluster,
    TuyaPowerConfigurationCluster,
    MoesSwitchManufCluster,
    TuyaOnOff,
    TuyaOnOffManufCluster,
    TuyaOnOffNM,
)


class TuyaSingleSwitchTI(TuyaSwitch):
    """Tuya single channel switch time on in cluster 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,0x000a, 0xef00]
        # output_clusters=[0x0019]
        # <SimpleDescriptor endpoint=1 profile=260 device_type=81 device_version=1 input_clusters=[0, 4, 5, 10, 61184] output_clusters=[25]>
        MODELS_INFO: [("_TZE200_7tdtqgwv", "TS0601")],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    Time.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Time.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    MoesSwitchManufCluster,
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [Ota.cluster_id],
            }
        }
    }


class TuyaSingleSwitchTO(TuyaSwitch):
    """Tuya single channel switch time on out cluster 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]
        # <SimpleDescriptor endpoint=1 profile=260 device_type=51 device_version=1 input_clusters=[0, 4, 5, 61184] output_clusters=[10, 25]>
        MODELS_INFO: [
            ("_TZE200_amp6tsvy", "TS0601"),
            ("_TZE200_oisqyl4o", "TS0601"),
            ("_TZE200_vhy3iakz", "TS0601"),  # ¿1 or 4 gangs?
            ("_TZ3000_uim07oem", "TS0601"),  # ¿1 or 4 gangs?
            ("_TZE200_wfxuhoea", "TS0601"),
            ("_TZE200_tviaymwx", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    MoesSwitchManufCluster,
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        }
    }


class TuyaSingleSwitch_GP(TuyaSwitch):
    """Tuya single channel switch with GreenPowerProxy cluster device."""

    signature = {
        MODELS_INFO: [
            ("YYYYYYYYYYYY", "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,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
            # input_clusters=[]
            # output_clusters=[33]
            242: {
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    MoesSwitchManufCluster,
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            242: {
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        }
    }


class TuyaDoubleSwitchTO(TuyaSwitch):
    """Tuya double channel switch time on out cluster 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]
        # <SimpleDescriptor endpoint=1 profile=260 device_type=51 device_version=1 input_clusters=[0, 4, 5, 61184] output_clusters=[10, 25]>
        MODELS_INFO: [
            ("_TZE200_g1ib5ldv", "TS0601"),
            ("_TZE200_wunufsil", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    MoesSwitchManufCluster,
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
        }
    }


class TuyaDoubleSwitch_GP(TuyaSwitch):
    """Tuya double channel switch with GreenPowerProxy cluster device."""

    signature = {
        MODELS_INFO: [
            ("_TZE200_7deq70b8", "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,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
            # input_clusters=[]
            # output_clusters=[33]
            242: {
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    MoesSwitchManufCluster,
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            242: {
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        }
    }


class TuyaTripleSwitchTO(TuyaSwitch):
    """Tuya triple channel switch time on out cluster device."""

    signature = {
        MODELS_INFO: [
            # ("_TZE200_kyfqmmyl", "TS0601"),  ## candidate reported in #716
            ("_TZE200_tz32mtza", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    MoesSwitchManufCluster,
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            3: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
        }
    }


class TuyaTripleSwitch_GP(TuyaSwitch):
    """Tuya triple channel switch with GreenPowerProxy cluster device."""

    signature = {
        MODELS_INFO: [
            ("_TZE200_2hf7x9n3", "TS0601"),  # reported #1597
        ],
        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,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
            # input_clusters=[]
            # output_clusters=[33]
            242: {
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    MoesSwitchManufCluster,
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            3: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            242: {
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        }
    }


class TuyaQuadrupleSwitchTO(TuyaSwitch):
    """Tuya quadruple channel switch time on out cluster device."""

    signature = {
        MODELS_INFO: [
            ("_TZE200_aqnazj70", "TS0601"),
            ("_TZE200_1ozguk6x", "TS0601"),
            ("_TZE200_k6jhsr0q", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    MoesSwitchManufCluster,
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            3: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            4: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
        }
    }


class TuyaQuadrupleSwitch_GP(TuyaSwitch):
    """Tuya quadruple channel switch with GreenPowerProxy cluster device."""

    signature = {
        MODELS_INFO: [
            ("XXX", "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,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
            # input_clusters=[]
            # output_clusters=[33]
            242: {
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    MoesSwitchManufCluster,
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            3: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            4: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            242: {
                PROFILE_ID: 41440,
                DEVICE_TYPE: 97,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        }
    }


class TuyaSextupleSwitchTO(TuyaSwitch):
    """Tuya sextuple channel switch time on out cluster device."""

    signature = {
        # <SimpleDescriptor endpoint=1 profile=260 device_type=81
        # input_clusters=[0x0000,0x0004,0x0005,0xEF00]
        # output_clusters=[0x000A,0x0019]>
        MODELS_INFO: [
            ("_TZE200_9mahtqtg", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster,
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            3: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            4: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            5: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            6: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
        }
    }


class TuyaSextupleSwitchTO_GP(TuyaSwitch):
    """Tuya sextuple channel switch time on out cluster device with GreenPowerProxy cluster device."""

    signature = {
        MODELS_INFO: [
            ("_TZE200_9mahtqtg", "TS0601"),
        ],
        ENDPOINTS: {
            # <SimpleDescriptor endpoint=1 profile=260 device_type=81
            # input_clusters=[0x0000,0x0004,0x0005,0xEF00]
            # output_clusters=[0x000A,0x0019]>
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
            # input_clusters=[]
            # output_clusters=[33]
            242: {
                PROFILE_ID: 0xA1E0,
                DEVICE_TYPE: 0x0061,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster,
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            3: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            4: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            5: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            6: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOffNM,
                ],
                OUTPUT_CLUSTERS: [],
            },
            242: {
                PROFILE_ID: 0xA1E0,
                DEVICE_TYPE: 0x0061,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
            },
        }
    }

class AtlanticSwitchManufCluster(TuyaOnOffManufCluster):
    """On/Off Tuya cluster with extra device attributes."""

    dp_to_attribute: Dict[
        int, DPToAttributeMapping
    ] = TuyaOnOffManufCluster.dp_to_attribute.copy()
    dp_to_attribute.update(
        {
            19: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=19,
            ),
        }
    )
    dp_to_attribute.update(
        {
            20: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=20,
            ),
        }
    )
    dp_to_attribute.update(
        {
            21: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=21,
            ),
        }
    )
    dp_to_attribute.update(
        {
            22: DPToAttributeMapping(
                TuyaOnOff.ep_attribute,
                "on_off",
                dp_type=TuyaDPType.BOOL,
                endpoint_id=22,
            ),
        }
    )

    data_point_handlers = TuyaOnOffManufCluster.data_point_handlers.copy()
    data_point_handlers.update({19: "_dp_2_attr_update"})
    data_point_handlers.update({20: "_dp_2_attr_update"})
    data_point_handlers.update({21: "_dp_2_attr_update"})
    data_point_handlers.update({22: "_dp_2_attr_update"})


class AtlanticSwitch(TuyaSwitch):
    """Tuya quadruple channel switch time on out cluster device."""

    signature = {
        MODELS_INFO: [
            ("_TZE200_fm5yck8a", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_SWITCH,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    AtlanticSwitchManufCluster,
                ],
                OUTPUT_CLUSTERS: [TuyaSmartRemoteOnOffCluster, Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_SWITCH,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [TuyaSmartRemoteOnOffCluster],
            },
            19: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            20: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            21: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            22: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
        }
    }

    device_automation_triggers = {
        (SHORT_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: SHORT_PRESS},
        (LONG_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: LONG_PRESS},
        (DOUBLE_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: DOUBLE_PRESS},
        (SHORT_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: SHORT_PRESS},
        (LONG_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: LONG_PRESS},
        (DOUBLE_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: DOUBLE_PRESS},
    }

As always thank you a lot for your help. Regards

nekdo4 avatar Nov 30 '22 20:11 nekdo4

Just to be sure:

  • can you control from HA the 4 buttons on the left?
  • is HA updating the status for the 4 buttons on the left when you operate them from the physical device?

The 2 buttons in the right just trigger commands. And I believe that they are not sending events to HA, right?

Replace the data_point_handlers in the class AtlanticSwitchManufCluster(TuyaOnOffManufCluster): like that:

    data_point_handlers = {
        1: "_dp_2_attr_update",
        2: "_dp_2_attr_update",
        3: "_dp_2_attr_update",
        4: "_dp_2_attr_update",
        5: "_dp_2_attr_update",
        6: "_dp_2_attr_update",
        19: "_dp_2_attr_update",
        20: "_dp_2_attr_update",
        21: "_dp_2_attr_update",
        22: "_dp_2_attr_update",
    }

Save changes, delete any __pycache__ folder, restart HA and repair your device.

javicalle avatar Nov 30 '22 20:11 javicalle

Please also can try to modify class AtlanticSwitch(TuyaSwitch): the ENDPOINT 2 in the replacement part like that:

            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_SWITCH,
                INPUT_CLUSTERS: [TuyaSmartRemoteOnOffCluster],
                OUTPUT_CLUSTERS: [],
            },

Attach logs from operation.

javicalle avatar Nov 30 '22 21:11 javicalle

So I tested it and cannot see a visible change, see the log below:

LOG
2022-11-30 23:51:52.899 DEBUG (MainThread) [zigpy.appdb] [0xc5ed:1:0x0000] Attribute id: 4 value: _TZE200_fm5yck8a
2022-11-30 23:51:52.899 DEBUG (MainThread) [zigpy.appdb] [0xc5ed:1:0x0000] Attribute id: 5 value: TS0601
2022-11-30 23:51:52.903 DEBUG (MainThread) [zigpy.appdb] [0xc5ed:1:0x0000] Attribute id: 4 value: _TZE200_fm5yck8a
2022-11-30 23:51:52.903 DEBUG (MainThread) [zigpy.appdb] [0xc5ed:1:0x0000] Attribute id: 5 value: TS0601
2022-11-30 23:51:52.903 DEBUG (MainThread) [zigpy.appdb] [0xc5ed:19:0x0006] Attribute id: 0 value: 1
2022-11-30 23:51:52.903 DEBUG (MainThread) [zigpy.appdb] [0xc5ed:20:0x0006] Attribute id: 0 value: 1
2022-11-30 23:51:52.903 DEBUG (MainThread) [zigpy.appdb] [0xc5ed:21:0x0006] Attribute id: 0 value: 1
2022-11-30 23:51:52.903 DEBUG (MainThread) [zigpy.appdb] [0xc5ed:22:0x0006] Attribute id: 0 value: 1
2022-11-30 23:51:52.903 DEBUG (MainThread) [zigpy.appdb] [0xc5ed:1:0xef00] Attribute id: 61184 value: 1.0.0
2022-11-30 23:51:55.545 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] [0xC5ED](_TZE200_fm5yck8a TS0601) restored as 'available', last seen: 0:02:10 ago, consider_unavailable_time: 7200 seconds
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xC5ED](TS0601): started initialization
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:ZDO](TS0601): 'async_initialize' stage succeeded
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0000]: initializing channel: from_cache: True
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0000]: finished channel initialization
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0xef00]: initializing channel: from_cache: True
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0xef00]: finished channel initialization
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0006]: initializing channel: from_cache: True
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0006]: finished channel initialization
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0019]: initializing channel: from_cache: True
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0019]: finished channel initialization
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: initializing channel: from_cache: True
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-11-30 23:51:55.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True]
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: Reading attributes in chunks: ['on_off']
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: finished channel initialization
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: initializing channel: from_cache: True
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True]
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: Reading attributes in chunks: ['on_off']
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: finished channel initialization
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: initializing channel: from_cache: True
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True]
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: Reading attributes in chunks: ['on_off']
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: finished channel initialization
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: initializing channel: from_cache: True
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True]
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: Reading attributes in chunks: ['on_off']
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: finished channel initialization
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0000]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0xef00]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0006]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0019]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.553 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xC5ED](TS0601): power source: Mains
2022-11-30 23:51:55.553 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xC5ED](TS0601): completed initialization
2022-11-30 23:51:55.554 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xC5ED](TS0601): started initialization
2022-11-30 23:51:55.554 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:ZDO](TS0601): 'async_initialize' stage succeeded
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0000]: initializing channel: from_cache: False
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0000]: finished channel initialization
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0xef00]: initializing channel: from_cache: False
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0xef00]: finished channel initialization
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0006]: initializing channel: from_cache: False
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0006]: finished channel initialization
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0019]: initializing channel: from_cache: False
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0019]: finished channel initialization
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: initializing channel: from_cache: False
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: Reading attributes in chunks: ['on_off']
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: finished channel initialization
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: initializing channel: from_cache: False
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-11-30 23:51:55.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: Reading attributes in chunks: ['on_off']
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: finished channel initialization
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: initializing channel: from_cache: False
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: Reading attributes in chunks: ['on_off']
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: finished channel initialization
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: initializing channel: from_cache: False
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: Reading attributes in chunks: ['on_off']
2022-11-30 23:51:55.568 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: finished channel initialization
2022-11-30 23:51:55.585 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0000]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.585 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0xef00]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.585 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0006]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.585 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:1:0x0019]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.585 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:19:0x0006]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.585 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:20:0x0006]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.585 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:21:0x0006]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.585 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xC5ED:22:0x0006]: 'async_initialize' stage succeeded
2022-11-30 23:51:55.602 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xC5ED](TS0601): power source: Mains
2022-11-30 23:51:55.602 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xC5ED](TS0601): completed initialization
2022-11-30 23:52:18.198 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0xC5ED, Relays=[])
2022-11-30 23:52:18.248 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0xC5ED, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=128, SecurityUse=<Bool.false: 0>, TimeStamp=76468, TSN=0, Data=b'\x09\x29\x01\x00\x08\x02\x04\x00\x01\x00', MacSrcAddr=0xC5ED, MsgResultRadius=29)
2022-11-30 23:52:18.249 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xC5ED), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t)\x01\x00\x08\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=128, rssi=None)
2022-11-30 23:52:18.249 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Received ZCL frame: b'\t)\x01\x00\x08\x02\x04\x00\x01\x00'
2022-11-30 23:52:18.249 DEBUG (MainThread) [zigpy.zcl] [0xC5ED: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, *is_reply=True), tsn=41, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-30 23:52:18.250 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=8, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-30 23:52:18.250 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Received command 0x01 (TSN 41): get_data(data=TuyaCommand(status=0, tsn=8, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-30 23:52:18.250 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-30 23:52:18.251 DEBUG (MainThread) [zigpy.zcl] [0xC5ED: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, *is_reply=True), tsn=41, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-30 23:52:18.251 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-30 23:52:18.251 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xC5ED), dst_ep=1, source_route=None, extended_timeout=False, tsn=41, profile_id=260, cluster_id=61184, data=Serialized[b'\x18)\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-30 23:52:18.252 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0xC5ED), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=41, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x29\x0B\x01\x86')
2022-11-30 23:52:35.872 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0xC5ED, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=128, SecurityUse=<Bool.false: 0>, TimeStamp=131546, TSN=0, Data=b'\x09\x2A\x01\x00\x08\x02\x04\x00\x01\x00', MacSrcAddr=0xC5ED, MsgResultRadius=29)
2022-11-30 23:52:35.873 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xC5ED), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t*\x01\x00\x08\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=128, rssi=None)
2022-11-30 23:52:35.874 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Received ZCL frame: b'\t*\x01\x00\x08\x02\x04\x00\x01\x00'
2022-11-30 23:52:35.875 DEBUG (MainThread) [zigpy.zcl] [0xC5ED: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, *is_reply=True), tsn=42, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-30 23:52:35.876 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=8, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-30 23:52:35.877 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Received command 0x01 (TSN 42): get_data(data=TuyaCommand(status=0, tsn=8, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-30 23:52:35.877 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-30 23:52:35.877 DEBUG (MainThread) [zigpy.zcl] [0xC5ED: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, *is_reply=True), tsn=42, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-30 23:52:35.877 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-30 23:52:35.877 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xC5ED), dst_ep=1, source_route=None, extended_timeout=False, tsn=42, profile_id=260, cluster_id=61184, data=Serialized[b'\x18*\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-30 23:52:35.878 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0xC5ED), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=42, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x2A\x0B\x01\x86')
2022-11-30 23:52:36.386 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0xC5ED, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=128, SecurityUse=<Bool.false: 0>, TimeStamp=133151, TSN=0, Data=b'\x09\x2B\x01\x00\x08\x02\x04\x00\x01\x00', MacSrcAddr=0xC5ED, MsgResultRadius=29)
2022-11-30 23:52:36.387 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xC5ED), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t+\x01\x00\x08\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=128, rssi=None)
2022-11-30 23:52:36.388 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Received ZCL frame: b'\t+\x01\x00\x08\x02\x04\x00\x01\x00'
2022-11-30 23:52:36.388 DEBUG (MainThread) [zigpy.zcl] [0xC5ED: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, *is_reply=True), tsn=43, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-30 23:52:36.390 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=8, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-30 23:52:36.391 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Received command 0x01 (TSN 43): get_data(data=TuyaCommand(status=0, tsn=8, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-30 23:52:36.391 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-30 23:52:36.391 DEBUG (MainThread) [zigpy.zcl] [0xC5ED: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, *is_reply=True), tsn=43, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-30 23:52:36.391 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-30 23:52:36.391 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xC5ED), dst_ep=1, source_route=None, extended_timeout=False, tsn=43, profile_id=260, cluster_id=61184, data=Serialized[b'\x18+\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-30 23:52:36.392 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0xC5ED), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=43, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x2B\x0B\x01\x86')
2022-11-30 23:52:39.301 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0xC5ED, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=126, SecurityUse=<Bool.false: 0>, TimeStamp=142260, TSN=0, Data=b'\x09\x2C\x01\x00\x08\x02\x04\x00\x01\x00', MacSrcAddr=0xC5ED, MsgResultRadius=29)
2022-11-30 23:52:39.302 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xC5ED), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t,\x01\x00\x08\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=126, rssi=None)
2022-11-30 23:52:39.302 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Received ZCL frame: b'\t,\x01\x00\x08\x02\x04\x00\x01\x00'
2022-11-30 23:52:39.304 DEBUG (MainThread) [zigpy.zcl] [0xC5ED: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, *is_reply=True), tsn=44, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-30 23:52:39.305 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=8, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-30 23:52:39.305 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Received command 0x01 (TSN 44): get_data(data=TuyaCommand(status=0, tsn=8, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-11-30 23:52:39.305 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-11-30 23:52:39.305 DEBUG (MainThread) [zigpy.zcl] [0xC5ED: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, *is_reply=True), tsn=44, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-11-30 23:52:39.305 DEBUG (MainThread) [zigpy.zcl] [0xC5ED:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-11-30 23:52:39.306 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xC5ED), dst_ep=1, source_route=None, extended_timeout=False, tsn=44, profile_id=260, cluster_id=61184, data=Serialized[b'\x18,\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-11-30 23:52:39.306 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0xC5ED), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=44, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x2C\x0B\x01\x86')

nekdo4 avatar Nov 30 '22 22:11 nekdo4

I caught it...

This version (just the changed classes) would trigger the scene buttons events:

ts0601_switch.py
class AtlanticSwitchManufCluster(TuyaOnOffManufCluster):
    """On/Off Tuya cluster with extra device attributes."""

    dp_to_attribute: Dict[int, DPToAttributeMapping] = {
        1: DPToAttributeMapping(
            TuyaSmartRemoteOnOffCluster.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
        ),
        2: DPToAttributeMapping(
            TuyaSmartRemoteOnOffCluster.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=2,
        ),
        19: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=19,
        ),
        20: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=20,
        ),
        21: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=21,
        ),
        22: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=22,
        ),
    }

    data_point_handlers = {
        1: "_dp_2_attr_update",
        2: "_dp_2_attr_update",
        3: "_dp_2_attr_update",
        4: "_dp_2_attr_update",
        5: "_dp_2_attr_update",
        6: "_dp_2_attr_update",
        19: "_dp_2_attr_update",
        20: "_dp_2_attr_update",
        21: "_dp_2_attr_update",
        22: "_dp_2_attr_update",
    }


class AtlanticSwitch(TuyaSwitch):
    """Tuya quadruple channel switch time on out cluster device."""

    signature = {
        MODELS_INFO: [
            ("_TZE200_fm5yck8a", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_SWITCH,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    AtlanticSwitchManufCluster,
                ],
                OUTPUT_CLUSTERS: [TuyaSmartRemoteOnOffCluster, Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_SWITCH,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [TuyaSmartRemoteOnOffCluster],
            },
            19: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            20: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            21: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            22: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
        }
    }

    device_automation_triggers = {
        (SHORT_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: SHORT_PRESS},
        (LONG_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: LONG_PRESS},
        (DOUBLE_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: DOUBLE_PRESS},
        (SHORT_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: SHORT_PRESS},
        (LONG_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: LONG_PRESS},
        (DOUBLE_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: DOUBLE_PRESS},
    }

Can you confirm if the 'normal' switches (the 4 on the left) are working as expected?

javicalle avatar Dec 01 '22 19:12 javicalle

Thank you, but nothing has changed., 4 switches for lights are working OK and both switches for the automatisation of the scenes do not run.

LOG
2022-12-01 21:08:40.255 DEBUG (MainThread) [zigpy.appdb] [0x6a9b:1:0x0000] Attribute id: 4 value: _TZE200_fm5yck8a
2022-12-01 21:08:40.255 DEBUG (MainThread) [zigpy.appdb] [0x6a9b:1:0x0000] Attribute id: 5 value: TS0601
2022-12-01 21:08:40.259 DEBUG (MainThread) [zigpy.appdb] [0x6a9b:1:0x0000] Attribute id: 4 value: _TZE200_fm5yck8a
2022-12-01 21:08:40.260 DEBUG (MainThread) [zigpy.appdb] [0x6a9b:1:0x0000] Attribute id: 5 value: TS0601
2022-12-01 21:08:40.260 DEBUG (MainThread) [zigpy.appdb] [0x6a9b:19:0x0006] Attribute id: 0 value: 0
2022-12-01 21:08:40.260 DEBUG (MainThread) [zigpy.appdb] [0x6a9b:20:0x0006] Attribute id: 0 value: 0
2022-12-01 21:08:40.260 DEBUG (MainThread) [zigpy.appdb] [0x6a9b:21:0x0006] Attribute id: 0 value: 0
2022-12-01 21:08:40.260 DEBUG (MainThread) [zigpy.appdb] [0x6a9b:22:0x0006] Attribute id: 0 value: 0
2022-12-01 21:08:40.260 DEBUG (MainThread) [zigpy.appdb] [0x6a9b:1:0xef00] Attribute id: 61184 value: 1.0.0
2022-12-01 21:08:44.288 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] [0x6A9B](_TZE200_fm5yck8a TS0601) restored as 'available', last seen: 0:00:25 ago, consider_unavailable_time: 7200 seconds
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x6A9B](TS0601): started initialization
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:ZDO](TS0601): 'async_initialize' stage succeeded
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:1:0x0000]: initializing channel: from_cache: True
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:1:0x0000]: finished channel initialization
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:1:0xef00]: initializing channel: from_cache: True
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:1:0xef00]: finished channel initialization
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:1:0x0006]: initializing channel: from_cache: True
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:1:0x0006]: finished channel initialization
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:1:0x0019]: initializing channel: from_cache: True
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:1:0x0019]: finished channel initialization
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:2:0x0006]: initializing channel: from_cache: True
2022-12-01 21:08:44.290 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:2:0x0006]: finished channel initialization
2022-12-01 21:08:44.291 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:19:0x0006]: initializing channel: from_cache: True
2022-12-01 21:08:44.291 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:19:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-12-01 21:08:44.291 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:19:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-12-01 21:08:44.291 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:19:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[True]
2022-12-01 21:08:44.291 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:19:0x0006]: Reading attributes in chunks: ['on_off']
2022-12-01 21:08:44.291 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:19:0x0006]: finished channel initialization
2022-12-01 21:08:44.291 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x6A9B:20:0x0006]: initializing channel: from_cache: True
20

nekdo4 avatar Dec 01 '22 23:12 nekdo4

😓 This is turning out to be more difficult than expected.

Next proposal:

ts0601_switch.py
class OnOffEventsCluster(EventableCluster, TuyaOnOff):
    """OnOffEventsCluster: fire events corresponding to press type."""


class AtlanticSwitchManufCluster(TuyaOnOffManufCluster):
    """On/Off Tuya cluster with extra device attributes."""

    dp_to_attribute: Dict[int, DPToAttributeMapping] = {
        1: DPToAttributeMapping(
            OnOffEventsCluster.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
        ),
        2: DPToAttributeMapping(
            OnOffEventsCluster.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=2,
        ),
        19: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=19,
        ),
        20: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=20,
        ),
        21: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=21,
        ),
        22: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=22,
        ),
    }

    data_point_handlers = {
        1: "_dp_2_attr_update",
        2: "_dp_2_attr_update",
        3: "_dp_2_attr_update",
        4: "_dp_2_attr_update",
        5: "_dp_2_attr_update",
        6: "_dp_2_attr_update",
        19: "_dp_2_attr_update",
        20: "_dp_2_attr_update",
        21: "_dp_2_attr_update",
        22: "_dp_2_attr_update",
    }


class AtlanticSwitch(TuyaSwitch):
    """Tuya quadruple channel switch time on out cluster device."""

    signature = {
        MODELS_INFO: [
            ("_TZE200_fm5yck8a", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_SWITCH,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    AtlanticSwitchManufCluster,
                ],
                OUTPUT_CLUSTERS: [OnOffEventsCluster, Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_SWITCH,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [OnOffEventsCluster],
            },
            19: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            20: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            21: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            22: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
        }
    }

    device_automation_triggers = {
        (SHORT_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: SHORT_PRESS},
        (LONG_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: LONG_PRESS},
        (DOUBLE_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: DOUBLE_PRESS},
        (SHORT_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: SHORT_PRESS},
        (LONG_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: LONG_PRESS},
        (DOUBLE_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: DOUBLE_PRESS},
    }

You need to add a new import statement in the beggining of file:

from zhaquirks import EventableCluster

There is a new OnOffEventsCluster to fire the button events. Not sure if device_automation_triggers must be adjusted. The new class replaces the TuyaSmartRemoteOnOffCluster class.

Save changes, delete __pycache__ folder, restart HA and pair the device again.

javicalle avatar Dec 02 '22 15:12 javicalle

Hello, thank you a lot, it seems I have bought something extra special :D Well, scenes are still not functioning, log seems to be a bit longer. Below is a part describing one click on one and other switch. Unfortunately it does not run the automatization.

LOG
2022-12-03 20:25:39.029 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x469D, Relays=[])
2022-12-03 20:25:39.077 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x469D, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=102, SecurityUse=<Bool.false: 0>, TimeStamp=85548, TSN=0, Data=b'\x09\x0A\x01\x00\x33\x01\x04\x00\x01\x00', MacSrcAddr=0x469D, MsgResultRadius=29)
2022-12-03 20:25:39.078 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x469D), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\n\x01\x003\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=102, rssi=None)
2022-12-03 20:25:39.078 DEBUG (MainThread) [zigpy.zcl] [0x469D:1:0xef00] Received ZCL frame: b'\t\n\x01\x003\x01\x04\x00\x01\x00'
2022-12-03 20:25:39.078 DEBUG (MainThread) [zigpy.zcl] [0x469D: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, *is_reply=True), tsn=10, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-03 20:25:39.079 DEBUG (MainThread) [zigpy.zcl] [0x469D:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=51, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-12-03 20:25:39.079 DEBUG (MainThread) [zigpy.zcl] [0x469D:1:0xef00] Received command 0x01 (TSN 10): get_data(data=TuyaCommand(status=0, tsn=51, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-12-03 20:25:39.079 DEBUG (MainThread) [zigpy.zcl] [0x469D:1:0xef00] No datapoint handler for TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-12-03 20:25:39.079 DEBUG (MainThread) [zigpy.zcl] [0x469D: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, *is_reply=True), tsn=10, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-03 20:25:39.080 DEBUG (MainThread) [zigpy.zcl] [0x469D:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-12-03 20:25:39.080 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x469D), dst_ep=1, source_route=None, extended_timeout=False, tsn=10, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\n\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-03 20:25:39.080 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x469D), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=10, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x0A\x0B\x01\x86')
2022-12-03 20:25:58.334 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x469D, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=94, SecurityUse=<Bool.false: 0>, TimeStamp=145730, TSN=0, Data=b'\x09\x0B\x01\x00\x33\x02\x04\x00\x01\x00', MacSrcAddr=0x469D, MsgResultRadius=29)
2022-12-03 20:25:58.334 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x469D), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x0b\x01\x003\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=94, rssi=None)
2022-12-03 20:25:58.335 DEBUG (MainThread) [zigpy.zcl] [0x469D:1:0xef00] Received ZCL frame: b'\t\x0b\x01\x003\x02\x04\x00\x01\x00'
2022-12-03 20:25:58.335 DEBUG (MainThread) [zigpy.zcl] [0x469D: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, *is_reply=True), tsn=11, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-03 20:25:58.335 DEBUG (MainThread) [zigpy.zcl] [0x469D:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=51, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-12-03 20:25:58.335 DEBUG (MainThread) [zigpy.zcl] [0x469D:1:0xef00] Received command 0x01 (TSN 11): get_data(data=TuyaCommand(status=0, tsn=51, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-12-03 20:25:58.335 DEBUG (MainThread) [zigpy.zcl] [0x469D:1:0xef00] No datapoint handler for TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))
2022-12-03 20:25:58.336 DEBUG (MainThread) [zigpy.zcl] [0x469D: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, *is_reply=True), tsn=11, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-03 20:25:58.336 DEBUG (MainThread) [zigpy.zcl] [0x469D:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-12-03 20:25:58.336 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x469D), dst_ep=1, source_route=None, extended_timeout=False, tsn=11, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x0b\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-03 20:25:58.336 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x469D), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=11, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x0B\x0B\x01\x86')

nekdo4 avatar Dec 03 '22 22:12 nekdo4

The device still complains about the DP1 and DP2...

Can you double check that __pycache__ folder has been deleted and the quirk is the one from https://github.com/zigpy/zha-device-handlers/issues/1785#issuecomment-1335450597?

If checks are fine, add the OnOffEventsCluster also in the INPUT_CLUSTERS part (in any order) and check again.

javicalle avatar Dec 03 '22 23:12 javicalle

Hello, unless I have made a mistake, everything was OK. After adding OnOffEventsCluster to INPUT_CLUSTERS there were some changes: 1. new switches appeared which do not react to anything, secondly the events will not run automatizations for scene run. However in the right side with the device records something changed, see below. I am sending the log and also the quirk. In the quirk I left only this switch and all the imports which had been there the whole time, maybe this is the problem

ts0601_switch.py
"""Tuya DP based switches."""
from typing import Dict

from zigpy.profiles import zha
from zigpy.zcl.clusters.general import Basic, GreenPowerProxy, Groups, Ota, Scenes, Time

from zhaquirks.const import (
    BUTTON,
    BUTTON_1,
    BUTTON_2,
    BUTTON_3,
    BUTTON_4,
    CLUSTER_ID,
    COMMAND,
    COMMAND_MOVE,
    COMMAND_MOVE_SATURATION,
    COMMAND_OFF,
    COMMAND_ON,
    COMMAND_STEP,
    COMMAND_STOP,
    COMMAND_STOP_MOVE_STEP,
    COMMAND_TOGGLE,
    DEVICE_TYPE,
    DIM_DOWN,
    DIM_UP,
    DOUBLE_PRESS,
    ENDPOINT_ID,
    ENDPOINTS,
    INPUT_CLUSTERS,
    LEFT,
    LONG_PRESS,
    LONG_RELEASE,
    MODEL,
    MODELS_INFO,
    OUTPUT_CLUSTERS,
    PARAMS,
    PROFILE_ID,
    RIGHT,
    ROTATED,
    ROTATED_FAST,
    ROTATED_SLOW,
    SHORT_PRESS,
    TURN_OFF,
    TURN_ON,
)

from zhaquirks import EventableCluster

from zhaquirks.tuya import (
    TuyaSwitch,
    TuyaSmartRemoteOnOffCluster,
    TuyaZBE000Cluster,
)

from zhaquirks.tuya.mcu import (
    DPToAttributeMapping,
    EnchantedDevice,
    TuyaDPType,
    TuyaMCUCluster,
    TuyaPowerConfigurationCluster,
    MoesSwitchManufCluster,
    TuyaOnOff,
    TuyaOnOffManufCluster,
    TuyaOnOffNM,
)



class OnOffEventsCluster(EventableCluster, TuyaOnOff):
    """OnOffEventsCluster: fire events corresponding to press type."""


class AtlanticSwitchManufCluster(TuyaOnOffManufCluster):
    """On/Off Tuya cluster with extra device attributes."""

    dp_to_attribute: Dict[int, DPToAttributeMapping] = {
        1: DPToAttributeMapping(
            OnOffEventsCluster.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
        ),
        2: DPToAttributeMapping(
            OnOffEventsCluster.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=2,
        ),
        19: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=19,
        ),
        20: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=20,
        ),
        21: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=21,
        ),
        22: DPToAttributeMapping(
            TuyaOnOff.ep_attribute,
            "on_off",
            dp_type=TuyaDPType.BOOL,
            endpoint_id=22,
        ),
    }

    data_point_handlers = {
        1: "_dp_2_attr_update",
        2: "_dp_2_attr_update",
        3: "_dp_2_attr_update",
        4: "_dp_2_attr_update",
        5: "_dp_2_attr_update",
        6: "_dp_2_attr_update",
        19: "_dp_2_attr_update",
        20: "_dp_2_attr_update",
        21: "_dp_2_attr_update",
        22: "_dp_2_attr_update",
    }


class AtlanticSwitch(TuyaSwitch):
    """Tuya quadruple channel switch time on out cluster device."""

    signature = {
        MODELS_INFO: [
            ("_TZE200_fm5yck8a", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaOnOffManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                DEVICE_TYPE: zha.DeviceType.ON_OFF_SWITCH,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    AtlanticSwitchManufCluster,
                    OnOffEventsCluster,
                ],
                OUTPUT_CLUSTERS: [OnOffEventsCluster, Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_SWITCH,
                INPUT_CLUSTERS: [OnOffEventsCluster],
                OUTPUT_CLUSTERS: [OnOffEventsCluster],
            },
            19: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            20: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            21: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
            22: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
                INPUT_CLUSTERS: [
                    TuyaOnOff,
                ],
                OUTPUT_CLUSTERS: [],
            },
        }
    }

    device_automation_triggers = {
        (SHORT_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: SHORT_PRESS},
        (LONG_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: LONG_PRESS},
        (DOUBLE_PRESS, BUTTON_1): {ENDPOINT_ID: 1, COMMAND: DOUBLE_PRESS},
        (SHORT_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: SHORT_PRESS},
        (LONG_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: LONG_PRESS},
        (DOUBLE_PRESS, BUTTON_2): {ENDPOINT_ID: 2, COMMAND: DOUBLE_PRESS},
    }

LOG

2022-12-06 22:57:05.728 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.TCDevInd.Callback(SrcNwk=0x52CD, SrcIEEE=80:4b:50:ff:fe:44:69:9a, ParentNwk=0x0000)
2022-12-06 22:57:05.730 INFO (MainThread) [zigpy_znp.zigbee.application] TC device join: ZDO.TCDevInd.Callback(SrcNwk=0x52CD, SrcIEEE=80:4b:50:ff:fe:44:69:9a, ParentNwk=0x0000)
2022-12-06 22:57:05.761 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.EndDeviceAnnceInd.Callback(Src=0x52CD, NWK=0x52CD, IEEE=80:4b:50:ff:fe:44:69:9a, Capabilities=<MACCapabilities.AllocateShortAddrDuringAssocNeeded|RXWhenIdle|MainsPowered|Router: 142>)
2022-12-06 22:57:05.762 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.MsgCbIncoming.Callback(Src=0x52CD, IsBroadcast=<Bool.true: 1>, ClusterId=19, SecurityUse=0, TSN=135, MacDst=0xFFFF, Data=b'\xCD\x52\x9A\x69\x44\xFE\xFF\x50\x4B\x80\x8E')
2022-12-06 22:57:05.762 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), 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=135, profile_id=0, cluster_id=19, data=Serialized[b'\x87\xcdR\x9aiD\xfe\xffPK\x80\x8e'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:05.762 INFO (MainThread) [zigpy.application] New device 0x52cd (80:4b:50:ff:fe:44:69:9a) joined the network
2022-12-06 22:57:05.762 DEBUG (MainThread) [zigpy.device] [0x52cd] Scheduling initialization
2022-12-06 22:57:05.763 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x52CD ieee=80:4b:50:ff:fe:44:69:9a is_initialized=False> from ep 0 to ep 0, cluster 19: b'\x87\xcdR\x9aiD\xfe\xffPK\x80\x8e'
2022-12-06 22:57:05.763 DEBUG (MainThread) [zigpy.zdo] [0x52cd:zdo] ZDO request ZDOCmd.Device_annce: [0x52CD, 80:4b:50:ff:fe:44:69:9a, 142]
2022-12-06 22:57:05.764 INFO (MainThread) [zigpy.device] [0x52cd] Requesting 'Node Descriptor'
2022-12-06 22:57:05.764 DEBUG (MainThread) [zigpy.device] [0x52cd] Extending timeout for 0x07 request
2022-12-06 22:57:05.764 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=0, source_route=None, extended_timeout=True, tsn=7, profile_id=0, cluster_id=<ZDOCmd.Node_Desc_req: 0x0002>, data=Serialized[b'\x07\xcdR'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:05.764 DEBUG (MainThread) [zigpy_znp.api] Sending request: ZDO.ExtRouteChk.Req(Dst=0x52CD, RtStatus=<RouteStatus.ACTIVE: 1>, Options=<RouteOptions.NO_ROUTE_CACHE|MTO_ROUTE: 3>)
2022-12-06 22:57:05.772 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=0, DstPanId=0x0000, SrcEndpoint=0, ClusterId=2, TSN=7, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x07\xCD\x52')
2022-12-06 22:57:05.796 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x52CD, Relays=[])
2022-12-06 22:57:06.357 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.NodeDescRsp.Callback(Src=0x52CD, Status=<Status.SUCCESS: 0>, NWK=0x52CD, NodeDescriptor=NullableNodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False))
2022-12-06 22:57:06.359 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.MsgCbIncoming.Callback(Src=0x52CD, IsBroadcast=<Bool.false: 0>, ClusterId=32770, SecurityUse=0, TSN=7, MacDst=0x0000, Data=b'\x00\xCD\x52\x01\x40\x8E\x02\x10\x52\x52\x00\x00\x2C\x52\x00\x00')
2022-12-06 22:57:06.360 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=7, profile_id=0, cluster_id=32770, data=Serialized[b'\x07\x00\xcdR\x01@\x8e\x02\x10RR\x00\x00,R\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:06.362 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x52CD ieee=80:4b:50:ff:fe:44:69:9a is_initialized=False> from ep 0 to ep 0, cluster 32770: b'\x07\x00\xcdR\x01@\x8e\x02\x10RR\x00\x00,R\x00\x00'
2022-12-06 22:57:06.363 INFO (MainThread) [zigpy.device] [0x52cd] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)
2022-12-06 22:57:06.363 INFO (MainThread) [zigpy.device] [0x52cd] Discovering endpoints
2022-12-06 22:57:06.363 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=0, source_route=None, extended_timeout=False, tsn=8, profile_id=0, cluster_id=<ZDOCmd.Active_EP_req: 0x0005>, data=Serialized[b'\x08\xcdR'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:06.363 DEBUG (MainThread) [zigpy_znp.api] Sending request: ZDO.ExtRouteChk.Req(Dst=0x52CD, RtStatus=<RouteStatus.ACTIVE: 1>, Options=<RouteOptions.NO_ROUTE_CACHE|MTO_ROUTE: 3>)
2022-12-06 22:57:06.368 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=0, DstPanId=0x0000, SrcEndpoint=0, ClusterId=5, TSN=8, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x08\xCD\x52')
2022-12-06 22:57:06.394 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x52CD, Relays=[])
2022-12-06 22:57:06.443 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.ActiveEpRsp.Callback(Src=0x52CD, Status=<Status.SUCCESS: 0>, NWK=0x52CD, ActiveEndpoints=[1])
2022-12-06 22:57:06.444 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.MsgCbIncoming.Callback(Src=0x52CD, IsBroadcast=<Bool.false: 0>, ClusterId=32773, SecurityUse=0, TSN=8, MacDst=0x0000, Data=b'\x00\xCD\x52\x01\x01')
2022-12-06 22:57:06.445 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=8, profile_id=0, cluster_id=32773, data=Serialized[b'\x08\x00\xcdR\x01\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:06.446 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x52CD ieee=80:4b:50:ff:fe:44:69:9a is_initialized=False> from ep 0 to ep 0, cluster 32773: b'\x08\x00\xcdR\x01\x01'
2022-12-06 22:57:06.448 INFO (MainThread) [zigpy.device] [0x52cd] Discovered endpoints: [1]
2022-12-06 22:57:06.448 INFO (MainThread) [zigpy.device] [0x52cd] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>]
2022-12-06 22:57:06.448 INFO (MainThread) [zigpy.endpoint] [0x52cd:1] Discovering endpoint information
2022-12-06 22:57:06.449 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=0, source_route=None, extended_timeout=False, tsn=9, profile_id=0, cluster_id=<ZDOCmd.Simple_Desc_req: 0x0004>, data=Serialized[b'\t\xcdR\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:06.449 DEBUG (MainThread) [zigpy_znp.api] Sending request: ZDO.ExtRouteChk.Req(Dst=0x52CD, RtStatus=<RouteStatus.ACTIVE: 1>, Options=<RouteOptions.NO_ROUTE_CACHE|MTO_ROUTE: 3>)
2022-12-06 22:57:06.456 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=0, DstPanId=0x0000, SrcEndpoint=0, ClusterId=4, TSN=9, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x09\xCD\x52\x01')
2022-12-06 22:57:06.479 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x52CD, Relays=[])
2022-12-06 22:57:06.531 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SimpleDescRsp.Callback(Src=0x52CD, Status=<Status.SUCCESS: 0>, NWK=0x52CD, SimpleDescriptor=SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=81, device_version=1, input_clusters=[0, 4, 5, 61184], output_clusters=[25, 10]))
2022-12-06 22:57:06.532 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.MsgCbIncoming.Callback(Src=0x52CD, IsBroadcast=<Bool.false: 0>, ClusterId=32772, SecurityUse=0, TSN=9, MacDst=0x0000, Data=b'\x00\xCD\x52\x14\x01\x04\x01\x51\x00\x01\x04\x00\x00\x04\x00\x05\x00\x00\xEF\x02\x19\x00\x0A\x00')
2022-12-06 22:57:06.532 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=9, profile_id=0, cluster_id=32772, data=Serialized[b'\t\x00\xcdR\x14\x01\x04\x01Q\x00\x01\x04\x00\x00\x04\x00\x05\x00\x00\xef\x02\x19\x00\n\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:06.533 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x52CD ieee=80:4b:50:ff:fe:44:69:9a is_initialized=False> from ep 0 to ep 0, cluster 32772: b'\t\x00\xcdR\x14\x01\x04\x01Q\x00\x01\x04\x00\x00\x04\x00\x05\x00\x00\xef\x02\x19\x00\n\x00'
2022-12-06 22:57:06.533 INFO (MainThread) [zigpy.endpoint] [0x52cd:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=81, device_version=1, input_clusters=[0, 4, 5, 61184], output_clusters=[25, 10])
2022-12-06 22:57:06.534 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=False), tsn=10, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-12-06 22:57:06.534 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5])
2022-12-06 22:57:06.535 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=10, profile_id=260, cluster_id=0, data=Serialized[b'\x00\n\x00\x04\x00\x05\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:06.535 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=0, TSN=10, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x00\x0A\x00\x04\x00\x05\x00')
2022-12-06 22:57:06.560 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x52CD, Relays=[])
2022-12-06 22:57:06.612 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=0, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=97, SecurityUse=<Bool.false: 0>, TimeStamp=368122, TSN=0, Data=b'\x18\x0A\x01\x04\x00\x00\x42\x10\x5F\x54\x5A\x45\x32\x30\x30\x5F\x66\x6D\x35\x79\x63\x6B\x38\x61\x05\x00\x00\x42\x06\x54\x53\x30\x36\x30\x31', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:06.615 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=0, data=Serialized[b'\x18\n\x01\x04\x00\x00B\x10_TZE200_fm5yck8a\x05\x00\x00B\x06TS0601'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=97, rssi=None)
2022-12-06 22:57:06.616 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0x0000] Received ZCL frame: b'\x18\n\x01\x04\x00\x00B\x10_TZE200_fm5yck8a\x05\x00\x00B\x06TS0601'
2022-12-06 22:57:06.617 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=10, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:06.619 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='_TZE200_fm5yck8a')), ReadAttributeRecord(attrid=0x0005, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='TS0601'))])
2022-12-06 22:57:06.626 INFO (MainThread) [zigpy.device] [0x52cd] Read model 'TS0601' and manufacturer '_TZE200_fm5yck8a' from <Endpoint id=1 in=[basic:0x0000, groups:0x0004, scenes:0x0005, None:0xEF00] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>
2022-12-06 22:57:06.626 INFO (MainThread) [zigpy.device] [0x52cd] Discovered basic device information for <Device model='TS0601' manuf='_TZE200_fm5yck8a' nwk=0x52CD ieee=80:4b:50:ff:fe:44:69:9a is_initialized=True>
2022-12-06 22:57:06.627 DEBUG (MainThread) [zigpy.application] Device is initialized <Device model='TS0601' manuf='_TZE200_fm5yck8a' nwk=0x52CD ieee=80:4b:50:ff:fe:44:69:9a is_initialized=True>
2022-12-06 22:57:06.640 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x52CD:80:4b:50:ff:fe:44:69:9a entering async_device_initialized - is_new_join: True
2022-12-06 22:57:06.642 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x52CD:80:4b:50:ff:fe:44:69:9a has joined the ZHA zigbee network
2022-12-06 22:57:06.642 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x52CD](TS0601): started configuration
2022-12-06 22:57:06.643 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:ZDO](TS0601): 'async_configure' stage succeeded
2022-12-06 22:57:06.646 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0000]: Configuring cluster attribute reporting
2022-12-06 22:57:06.646 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0000]: finished channel configuration
2022-12-06 22:57:06.646 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0xef00]: Performing cluster binding
2022-12-06 22:57:06.646 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0xef00]: bound 'tuya_manufacturer' cluster: Status.SUCCESS
2022-12-06 22:57:06.646 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0xef00]: Configuring cluster attribute reporting
2022-12-06 22:57:06.647 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0xef00]: finished channel configuration
2022-12-06 22:57:06.647 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: Performing cluster binding
2022-12-06 22:57:06.647 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-12-06 22:57:06.647 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: Configuring cluster attribute reporting
2022-12-06 22:57:06.647 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-12-06 22:57:06.647 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: finished channel configuration
2022-12-06 22:57:06.647 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: Performing cluster binding
2022-12-06 22:57:06.647 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-12-06 22:57:06.647 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: finished channel configuration
2022-12-06 22:57:06.647 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0019]: finished channel configuration
2022-12-06 22:57:06.648 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: Performing cluster binding
2022-12-06 22:57:06.648 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-12-06 22:57:06.648 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: Configuring cluster attribute reporting
2022-12-06 22:57:06.648 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-12-06 22:57:06.648 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: finished channel configuration
2022-12-06 22:57:06.648 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: Performing cluster binding
2022-12-06 22:57:06.648 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-12-06 22:57:06.648 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: finished channel configuration
2022-12-06 22:57:06.648 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: Performing cluster binding
2022-12-06 22:57:06.648 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-12-06 22:57:06.648 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: Configuring cluster attribute reporting
2022-12-06 22:57:06.649 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-12-06 22:57:06.649 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: finished channel configuration
2022-12-06 22:57:06.649 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: Performing cluster binding
2022-12-06 22:57:06.649 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-12-06 22:57:06.649 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: Configuring cluster attribute reporting
2022-12-06 22:57:06.649 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-12-06 22:57:06.650 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: finished channel configuration
2022-12-06 22:57:06.650 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: Performing cluster binding
2022-12-06 22:57:06.650 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-12-06 22:57:06.650 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: Configuring cluster attribute reporting
2022-12-06 22:57:06.650 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-12-06 22:57:06.650 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: finished channel configuration
2022-12-06 22:57:06.650 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: Performing cluster binding
2022-12-06 22:57:06.650 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: bound 'on_off' cluster: Status.SUCCESS
2022-12-06 22:57:06.650 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: Configuring cluster attribute reporting
2022-12-06 22:57:06.650 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: Successfully configured reporting for '{'on_off': (0, 900, 1)}' on 'on_off' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2022-12-06 22:57:06.651 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: finished channel configuration
2022-12-06 22:57:06.652 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0000]: 'async_configure' stage succeeded
2022-12-06 22:57:06.653 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0xef00]: 'async_configure' stage succeeded
2022-12-06 22:57:06.653 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: 'async_configure' stage succeeded
2022-12-06 22:57:06.653 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: 'async_configure' stage succeeded
2022-12-06 22:57:06.653 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0019]: 'async_configure' stage succeeded
2022-12-06 22:57:06.653 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: 'async_configure' stage succeeded
2022-12-06 22:57:06.653 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: 'async_configure' stage succeeded
2022-12-06 22:57:06.653 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: 'async_configure' stage succeeded
2022-12-06 22:57:06.653 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: 'async_configure' stage succeeded
2022-12-06 22:57:06.653 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: 'async_configure' stage succeeded
2022-12-06 22:57:06.653 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: 'async_configure' stage succeeded
2022-12-06 22:57:06.656 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x52CD](TS0601): completed configuration
2022-12-06 22:57:06.656 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x52CD](TS0601): started initialization
2022-12-06 22:57:06.656 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:ZDO](TS0601): 'async_initialize' stage succeeded
2022-12-06 22:57:06.657 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0000]: initializing channel: from_cache: False
2022-12-06 22:57:06.657 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0000]: finished channel initialization
2022-12-06 22:57:06.657 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0xef00]: initializing channel: from_cache: False
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0xef00]: finished channel initialization
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: initializing channel: from_cache: False
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: Reading attributes in chunks: ['on_off']
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: finished channel initialization
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: initializing channel: from_cache: False
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: finished channel initialization
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0019]: initializing channel: from_cache: False
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0019]: finished channel initialization
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: initializing channel: from_cache: False
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-12-06 22:57:06.658 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: Reading attributes in chunks: ['on_off']
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: finished channel initialization
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: initializing channel: from_cache: False
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: finished channel initialization
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: initializing channel: from_cache: False
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: Reading attributes in chunks: ['on_off']
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: finished channel initialization
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: initializing channel: from_cache: False
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-12-06 22:57:06.659 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: Reading attributes in chunks: ['on_off']
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: finished channel initialization
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: initializing channel: from_cache: False
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: Reading attributes in chunks: ['on_off']
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: finished channel initialization
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: initializing channel: from_cache: False
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: initializing cached channel attributes: ['start_up_on_off']
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: Reading attributes in chunks: ['start_up_on_off']
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: initializing uncached channel attributes: ['on_off'] - from cache[False]
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: Reading attributes in chunks: ['on_off']
2022-12-06 22:57:06.660 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: finished channel initialization
2022-12-06 22:57:06.663 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0000]: 'async_initialize' stage succeeded
2022-12-06 22:57:06.663 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0xef00]: 'async_initialize' stage succeeded
2022-12-06 22:57:06.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: 'async_initialize' stage succeeded
2022-12-06 22:57:06.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0006]: 'async_initialize' stage succeeded
2022-12-06 22:57:06.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:1:0x0019]: 'async_initialize' stage succeeded
2022-12-06 22:57:06.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: 'async_initialize' stage succeeded
2022-12-06 22:57:06.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:2:0x0006]: 'async_initialize' stage succeeded
2022-12-06 22:57:06.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: 'async_initialize' stage succeeded
2022-12-06 22:57:06.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:20:0x0006]: 'async_initialize' stage succeeded
2022-12-06 22:57:06.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: 'async_initialize' stage succeeded
2022-12-06 22:57:06.664 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:22:0x0006]: 'async_initialize' stage succeeded
2022-12-06 22:57:06.665 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x52CD](TS0601): power source: Mains
2022-12-06 22:57:06.665 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x52CD](TS0601): completed initialization
2022-12-06 22:57:08.178 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x52CD, Relays=[])
2022-12-06 22:57:11.395 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x52CD, Relays=[])
2022-12-06 22:57:11.445 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=10, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=102, SecurityUse=<Bool.false: 0>, TimeStamp=383231, TSN=0, Data=b'\x00\x03\x00\x07\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:11.446 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=10, data=Serialized[b'\x00\x03\x00\x07\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=102, rssi=None)
2022-12-06 22:57:11.446 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0x000a] Received ZCL frame: b'\x00\x03\x00\x07\x00'
2022-12-06 22:57:11.447 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=False), tsn=3, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-12-06 22:57:11.449 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0x000a] Decoded ZCL frame: Time:Read_Attributes(attribute_ids=[7])
2022-12-06 22:57:11.449 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0x000a] Received command 0x00 (TSN 3): Read_Attributes(attribute_ids=[7])
2022-12-06 22:57:11.450 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=3, command_id=<GeneralCommand.Read_Attributes_rsp: 1>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:11.450 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0x000a] Sending reply: Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0007, status=<Status.SUCCESS: 0>, value=TypeValue(type=LocalTime, value=723682631))])
2022-12-06 22:57:11.450 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=3, profile_id=260, cluster_id=10, data=Serialized[b'\x18\x03\x01\x07\x00\x00#G\x85"+'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:11.452 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=10, TSN=3, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x03\x01\x07\x00\x00\x23\x47\x85\x22\x2B')
2022-12-06 22:57:14.106 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=102, SecurityUse=<Bool.false: 0>, TimeStamp=391547, TSN=0, Data=b'\x09\x04\x01\x00\x3A\x13\x01\x00\x01\x01', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:14.107 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x04\x01\x00:\x13\x01\x00\x01\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=102, rssi=None)
2022-12-06 22:57:14.108 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\x04\x01\x00:\x13\x01\x00\x01\x01'
2022-12-06 22:57:14.108 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=4, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.110 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=58, datapoints=[TuyaDatapointData(dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>))]))
2022-12-06 22:57:14.111 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 4): get_data(data=TuyaCommand(status=0, tsn=58, datapoints=[TuyaDatapointData(dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>))]))
2022-12-06 22:57:14.121 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=4, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.123 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:14.123 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=4, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x04\x0b\x01\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:14.125 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=4, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x04\x0B\x01\x00')
2022-12-06 22:57:14.166 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=99, SecurityUse=<Bool.false: 0>, TimeStamp=391740, TSN=0, Data=b'\x09\x05\x01\x00\x3B\x14\x01\x00\x01\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:14.167 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x05\x01\x00;\x14\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=99, rssi=None)
2022-12-06 22:57:14.167 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\x05\x01\x00;\x14\x01\x00\x01\x00'
2022-12-06 22:57:14.168 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=5, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.168 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=59, datapoints=[TuyaDatapointData(dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))]))
2022-12-06 22:57:14.169 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 5): get_data(data=TuyaCommand(status=0, tsn=59, datapoints=[TuyaDatapointData(dp=20, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))]))
2022-12-06 22:57:14.170 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=5, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.171 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:14.171 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=5, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x05\x0b\x01\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:14.175 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=5, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x05\x0B\x01\x00')
2022-12-06 22:57:14.211 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=99, SecurityUse=<Bool.false: 0>, TimeStamp=391880, TSN=0, Data=b'\x09\x06\x01\x00\x3C\x15\x01\x00\x01\x01', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:14.211 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x06\x01\x00<\x15\x01\x00\x01\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=99, rssi=None)
2022-12-06 22:57:14.211 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\x06\x01\x00<\x15\x01\x00\x01\x01'
2022-12-06 22:57:14.212 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=6, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.212 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=60, datapoints=[TuyaDatapointData(dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>))]))
2022-12-06 22:57:14.213 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 6): get_data(data=TuyaCommand(status=0, tsn=60, datapoints=[TuyaDatapointData(dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>))]))
2022-12-06 22:57:14.213 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=6, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.214 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:14.214 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=6, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x06\x0b\x01\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:14.215 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=6, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x06\x0B\x01\x00')
2022-12-06 22:57:14.253 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=99, SecurityUse=<Bool.false: 0>, TimeStamp=392011, TSN=0, Data=b'\x09\x07\x01\x00\x3D\x16\x01\x00\x01\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:14.253 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x07\x01\x00=\x16\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=99, rssi=None)
2022-12-06 22:57:14.253 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\x07\x01\x00=\x16\x01\x00\x01\x00'
2022-12-06 22:57:14.253 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=7, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.254 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=61, datapoints=[TuyaDatapointData(dp=22, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))]))
2022-12-06 22:57:14.254 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 7): get_data(data=TuyaCommand(status=0, tsn=61, datapoints=[TuyaDatapointData(dp=22, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))]))
2022-12-06 22:57:14.255 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=7, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.255 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:14.255 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=7, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x07\x0b\x01\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:14.257 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=7, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x07\x0B\x01\x00')
2022-12-06 22:57:14.294 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=99, SecurityUse=<Bool.false: 0>, TimeStamp=392138, TSN=0, Data=b'\x09\x08\x01\x00\x3E\x19\x02\x00\x04\x00\x00\x00\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:14.294 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x08\x01\x00>\x19\x02\x00\x04\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=99, rssi=None)
2022-12-06 22:57:14.294 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\x08\x01\x00>\x19\x02\x00\x04\x00\x00\x00\x00'
2022-12-06 22:57:14.294 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=8, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.295 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=62, datapoints=[TuyaDatapointData(dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))]))
2022-12-06 22:57:14.295 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 8): get_data(data=TuyaCommand(status=0, tsn=62, datapoints=[TuyaDatapointData(dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))]))
2022-12-06 22:57:14.295 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] No datapoint handler for TuyaDatapointData(dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))
2022-12-06 22:57:14.296 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=8, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.296 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-12-06 22:57:14.296 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=8, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x08\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:14.298 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=8, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x08\x0B\x01\x86')
2022-12-06 22:57:14.334 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=99, SecurityUse=<Bool.false: 0>, TimeStamp=392264, TSN=0, Data=b'\x09\x09\x01\x00\x3F\x1A\x02\x00\x04\x00\x00\x00\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:14.334 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\t\x01\x00?\x1a\x02\x00\x04\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=99, rssi=None)
2022-12-06 22:57:14.334 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\t\x01\x00?\x1a\x02\x00\x04\x00\x00\x00\x00'
2022-12-06 22:57:14.335 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=9, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.335 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=63, datapoints=[TuyaDatapointData(dp=26, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))]))
2022-12-06 22:57:14.335 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 9): get_data(data=TuyaCommand(status=0, tsn=63, datapoints=[TuyaDatapointData(dp=26, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))]))
2022-12-06 22:57:14.335 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] No datapoint handler for TuyaDatapointData(dp=26, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))
2022-12-06 22:57:14.336 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=9, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.336 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-12-06 22:57:14.336 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=9, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\t\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:14.337 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=9, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x09\x0B\x01\x86')
2022-12-06 22:57:14.375 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=99, SecurityUse=<Bool.false: 0>, TimeStamp=392392, TSN=0, Data=b'\x09\x0A\x01\x00\x40\x1B\x02\x00\x04\x00\x00\x00\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:14.375 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\n\x01\x00@\x1b\x02\x00\x04\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=99, rssi=None)
2022-12-06 22:57:14.375 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\n\x01\x00@\x1b\x02\x00\x04\x00\x00\x00\x00'
2022-12-06 22:57:14.375 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=10, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.376 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=64, datapoints=[TuyaDatapointData(dp=27, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))]))
2022-12-06 22:57:14.376 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 10): get_data(data=TuyaCommand(status=0, tsn=64, datapoints=[TuyaDatapointData(dp=27, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))]))
2022-12-06 22:57:14.376 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] No datapoint handler for TuyaDatapointData(dp=27, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))
2022-12-06 22:57:14.377 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=10, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.377 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-12-06 22:57:14.377 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=10, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\n\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:14.379 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=10, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x0A\x0B\x01\x86')
2022-12-06 22:57:14.416 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=99, SecurityUse=<Bool.false: 0>, TimeStamp=392521, TSN=0, Data=b'\x09\x0B\x01\x00\x41\x1C\x02\x00\x04\x00\x00\x00\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:14.416 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x0b\x01\x00A\x1c\x02\x00\x04\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=99, rssi=None)
2022-12-06 22:57:14.417 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\x0b\x01\x00A\x1c\x02\x00\x04\x00\x00\x00\x00'
2022-12-06 22:57:14.417 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=11, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.417 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=65, datapoints=[TuyaDatapointData(dp=28, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))]))
2022-12-06 22:57:14.417 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 11): get_data(data=TuyaCommand(status=0, tsn=65, datapoints=[TuyaDatapointData(dp=28, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))]))
2022-12-06 22:57:14.418 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] No datapoint handler for TuyaDatapointData(dp=28, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))
2022-12-06 22:57:14.418 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=11, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:14.418 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)
2022-12-06 22:57:14.419 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=11, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x0b\x0b\x01\x86'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:14.420 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=11, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x0B\x0B\x01\x86')
2022-12-06 22:57:16.050 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=105, SecurityUse=<Bool.false: 0>, TimeStamp=397627, TSN=0, Data=b'\x19\x0C\x24\x00\x3A', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:16.050 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\x19\x0c$\x00:'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=105, rssi=None)
2022-12-06 22:57:16.050 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\x19\x0c$\x00:'
2022-12-06 22:57:16.050 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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=1, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=12, command_id=36, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:16.051 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:set_time_request(data=[0, 58])
2022-12-06 22:57:16.051 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x24 (TSN 12): set_time_request(data=[0, 58])
2022-12-06 22:57:16.051 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=11, command_id=36, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-12-06 22:57:16.051 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending request: set_time(time=[99, 143, 186, 188, 99, 143, 200, 204])
2022-12-06 22:57:16.051 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=11, profile_id=260, cluster_id=61184, data=Serialized[b'\x05\x02\x10\x0b$\x00\x08c\x8f\xba\xbcc\x8f\xc8\xcc'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:16.052 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=11, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x05\x02\x10\x0B\x24\x00\x08\x63\x8F\xBA\xBC\x63\x8F\xC8\xCC')
2022-12-06 22:57:16.093 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=105, SecurityUse=<Bool.false: 0>, TimeStamp=397720, TSN=0, Data=b'\x0C\x02\x10\x0B\x0B\x24\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:16.093 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\x0c\x02\x10\x0b\x0b$\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=105, rssi=None)
2022-12-06 22:57:16.093 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\x0b\x0b$\x00'
2022-12-06 22:57:16.093 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=11, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:16.093 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=36, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:16.093 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x0B (TSN 11): Default_Response(command_id=36, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:23.206 DEBUG (MainThread) [zigpy.zcl] [0x52CD:19:0x0006] Sending Tuya Cluster Command... Cluster Command is 0, Arguments are ()
2022-12-06 22:57:23.206 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=19, cluster_attr='on_off', attr_value=0, expect_reply=True)
2022-12-06 22:57:23.206 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] get_dp_mapping --> found DP: 19
2022-12-06 22:57:23.206 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] from_cluster_data: 19, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=19)
2022-12-06 22:57:23.206 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] ztype: Bool.false
2022-12-06 22:57:23.206 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] from_value: [1, 0]
2022-12-06 22:57:23.206 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] raw: b'\x00'
2022-12-06 22:57:23.206 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=12, datapoints=[TuyaDatapointData(dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))])
2022-12-06 22:57:23.206 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:19:0x0006]: executed 'off' command with args: '()' kwargs: '{}' result: Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:23.207 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=13, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-12-06 22:57:23.207 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=12, datapoints=[TuyaDatapointData(dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))]))
2022-12-06 22:57:23.207 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=13, profile_id=260, cluster_id=61184, data=Serialized[b'\x05\x02\x10\r\x00\x00\x0c\x13\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:23.211 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=13, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x05\x02\x10\x0D\x00\x00\x0C\x13\x01\x00\x01\x00')
2022-12-06 22:57:23.471 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=102, SecurityUse=<Bool.false: 0>, TimeStamp=420799, TSN=0, Data=b'\x0C\x02\x10\x0D\x0B\x00\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:23.471 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\x0c\x02\x10\r\x0b\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=102, rssi=None)
2022-12-06 22:57:23.471 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\r\x0b\x00\x00'
2022-12-06 22:57:23.472 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=13, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:23.472 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:23.528 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=113, SecurityUse=<Bool.false: 0>, TimeStamp=420997, TSN=0, Data=b'\x09\x0D\x01\x00\x0C\x13\x01\x00\x01\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:23.528 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\r\x01\x00\x0c\x13\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=113, rssi=None)
2022-12-06 22:57:23.528 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\r\x01\x00\x0c\x13\x01\x00\x01\x00'
2022-12-06 22:57:23.528 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=13, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:23.529 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=12, datapoints=[TuyaDatapointData(dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))]))
2022-12-06 22:57:23.529 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 13): get_data(data=TuyaCommand(status=0, tsn=12, datapoints=[TuyaDatapointData(dp=19, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))]))
2022-12-06 22:57:23.529 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=13, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:23.529 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:23.530 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=13, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\r\x0b\x01\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:23.530 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=13, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x0D\x0B\x01\x00')
2022-12-06 22:57:23.759 DEBUG (MainThread) [zigpy.zcl] [0x52CD:21:0x0006] Sending Tuya Cluster Command... Cluster Command is 0, Arguments are ()
2022-12-06 22:57:23.760 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=21, cluster_attr='on_off', attr_value=0, expect_reply=True)
2022-12-06 22:57:23.760 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] get_dp_mapping --> found DP: 21
2022-12-06 22:57:23.760 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] from_cluster_data: 21, DPToAttributeMapping(ep_attribute='on_off', attribute_name='on_off', dp_type=<TuyaDPType.BOOL: 1>, converter=None, dp_converter=None, endpoint_id=21)
2022-12-06 22:57:23.760 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] ztype: Bool.false
2022-12-06 22:57:23.760 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] from_value: [1, 0]
2022-12-06 22:57:23.760 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] raw: b'\x00'
2022-12-06 22:57:23.760 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=14, datapoints=[TuyaDatapointData(dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))])
2022-12-06 22:57:23.760 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x52CD:21:0x0006]: executed 'off' command with args: '()' kwargs: '{}' result: Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:23.761 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), manufacturer=4098, tsn=15, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-12-06 22:57:23.761 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=14, datapoints=[TuyaDatapointData(dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))]))
2022-12-06 22:57:23.761 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=15, profile_id=260, cluster_id=61184, data=Serialized[b'\x05\x02\x10\x0f\x00\x00\x0e\x15\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:23.764 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=15, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x05\x02\x10\x0F\x00\x00\x0E\x15\x01\x00\x01\x00')
2022-12-06 22:57:23.798 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=110, SecurityUse=<Bool.false: 0>, TimeStamp=421823, TSN=0, Data=b'\x0C\x02\x10\x0F\x0B\x00\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:23.798 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\x0c\x02\x10\x0f\x0b\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=110, rssi=None)
2022-12-06 22:57:23.798 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\x0c\x02\x10\x0f\x0b\x00\x00'
2022-12-06 22:57:23.798 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] 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=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4098, tsn=15, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:23.798 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:23.855 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=113, SecurityUse=<Bool.false: 0>, TimeStamp=422019, TSN=0, Data=b'\x09\x0E\x01\x00\x0E\x15\x01\x00\x01\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:23.856 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x0e\x01\x00\x0e\x15\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=113, rssi=None)
2022-12-06 22:57:23.856 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\x0e\x01\x00\x0e\x15\x01\x00\x01\x00'
2022-12-06 22:57:23.856 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=14, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:23.856 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=14, datapoints=[TuyaDatapointData(dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))]))
2022-12-06 22:57:23.857 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 14): get_data(data=TuyaCommand(status=0, tsn=14, datapoints=[TuyaDatapointData(dp=21, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>))]))
2022-12-06 22:57:23.857 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=14, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:23.857 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:23.858 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=14, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x0e\x0b\x01\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:23.858 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=14, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x0E\x0B\x01\x00')
2022-12-06 22:57:36.255 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=110, SecurityUse=<Bool.false: 0>, TimeStamp=460772, TSN=0, Data=b'\x09\x0F\x11\x00\x3D\x40', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:57:36.255 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x0f\x11\x00=@'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=110, rssi=None)
2022-12-06 22:57:36.255 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\x0f\x11\x00=@'
2022-12-06 22:57:36.255 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=15, command_id=17, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:36.256 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:mcu_version_response(version=MCUVersion(status=0, tsn=61, version_raw=64, *version='1.0.0'))
2022-12-06 22:57:36.256 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x11 (TSN 15): mcu_version_response(version=MCUVersion(status=0, tsn=61, version_raw=64, *version='1.0.0'))
2022-12-06 22:57:36.256 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] MCU version: 1.0.0
2022-12-06 22:57:36.256 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=15, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:57:36.256 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=17, status=<Status.SUCCESS: 0>)
2022-12-06 22:57:36.256 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=15, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x0f\x0b\x11\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:57:36.257 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=15, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x0F\x0B\x11\x00')
2022-12-06 22:58:13.579 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=115, SecurityUse=<Bool.false: 0>, TimeStamp=577408, TSN=0, Data=b'\x09\x10\x01\x00\x0E\x01\x04\x00\x01\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:58:13.580 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x10\x01\x00\x0e\x01\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=115, rssi=None)
2022-12-06 22:58:13.581 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\x10\x01\x00\x0e\x01\x04\x00\x01\x00'
2022-12-06 22:58:13.581 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=16, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:58:13.582 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=14, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-12-06 22:58:13.583 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 16): get_data(data=TuyaCommand(status=0, tsn=14, datapoints=[TuyaDatapointData(dp=1, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-12-06 22:58:13.585 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=16, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:58:13.585 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-12-06 22:58:13.586 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=16, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x10\x0b\x01\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:58:13.586 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=16, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x10\x0B\x01\x00')
2022-12-06 22:58:16.271 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x52CD, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=102, SecurityUse=<Bool.false: 0>, TimeStamp=585826, TSN=0, Data=b'\x09\x11\x01\x00\x0E\x02\x04\x00\x01\x00', MacSrcAddr=0x52CD, MsgResultRadius=29)
2022-12-06 22:58:16.272 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x11\x01\x00\x0e\x02\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=102, rssi=None)
2022-12-06 22:58:16.272 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received ZCL frame: b'\t\x11\x01\x00\x0e\x02\x04\x00\x01\x00'
2022-12-06 22:58:16.272 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=17, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:58:16.272 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Decoded ZCL frame: AtlanticSwitchManufCluster:get_data(data=TuyaCommand(status=0, tsn=14, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-12-06 22:58:16.273 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Received command 0x01 (TSN 17): get_data(data=TuyaCommand(status=0, tsn=14, datapoints=[TuyaDatapointData(dp=2, data=TuyaData(dp_type=<TuyaDPType.ENUM: 4>, function=0, raw=b'\x00', *payload=<enum8.undefined_0x00: 0>))]))
2022-12-06 22:58:16.274 DEBUG (MainThread) [zigpy.zcl] [0x52CD: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, *is_reply=True), tsn=17, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-06 22:58:16.274 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2022-12-06 22:58:16.274 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x52CD), dst_ep=1, source_route=None, extended_timeout=False, tsn=17, profile_id=260, cluster_id=61184, data=Serialized[b'\x18\x11\x0b\x01\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-12-06 22:58:16.275 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x52CD), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=17, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x11\x0B\x01\x00')

scr

nekdo4 avatar Dec 06 '22 22:12 nekdo4

No the imports would not be a problem.

And now we have new neighbours in the block...

2022-12-06 22:57:14.295 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] No datapoint handler for TuyaDatapointData(dp=25, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))
2022-12-06 22:57:14.335 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] No datapoint handler for TuyaDatapointData(dp=26, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))
2022-12-06 22:57:14.376 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] No datapoint handler for TuyaDatapointData(dp=27, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))
2022-12-06 22:57:14.418 DEBUG (MainThread) [zigpy.zcl] [0x52CD:1:0xef00] No datapoint handler for TuyaDatapointData(dp=28, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x00\x00', *payload=0))

DP25-DP28 with value=0 They can be a dim level, some kind of metering or nothing at all. But they came in a sequence after all the DP19-DP22 buttons press. Any idea what they can be?

It seems that quirk is reading the scene buttons. Aren't they updating in HA if you press the phisycal device buttons? Can you attach any logs from the scene physical buttons?

Can you also check in the developers view if the device trigger any event, listening to the zha_event? The OnOffEventsCluster would at least trigger the events.

The truth is that I'm a bit lost here. I would try to change the device type for DP1 and DP2 as:

            1: {
                DEVICE_TYPE: zha.DeviceType.REMOTE_CONTROL,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    AtlanticSwitchManufCluster,
                ],
                OUTPUT_CLUSTERS: [OnOffEventsCluster, Time.cluster_id, Ota.cluster_id],
            },
            2: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.REMOTE_CONTROL,
                INPUT_CLUSTERS: [],
                OUTPUT_CLUSTERS: [OnOffEventsCluster],
            },

The logs from the physical device would be helpfull here.

javicalle avatar Dec 07 '22 18:12 javicalle

Hello, so DP25-DP28 does not know what it is, it sometimes appears but not every time.

In developer tools - events - during zha_event and during * there is no reaction to scenes switch, and the light switch during * does this:

Events *

event_type: state_changed
data:
  entity_id: light.tze200_fm5yck8a_ts0601_light_2
  old_state:
    entity_id: light.tze200_fm5yck8a_ts0601_light_2
    state: "on"
    attributes:
      supported_color_modes:
        - onoff
      color_mode: onoff
      off_with_transition: false
      off_brightness: null
      friendly_name: _TZE200_fm5yck8a TS0601 Light
      supported_features: 0
    last_changed: "2022-12-13T20:15:25.870934+00:00"
    last_updated: "2022-12-13T20:15:25.870934+00:00"
    context:
      id: 01GM6J1DNE6GT9ZVBZGA3ZMCPM
      parent_id: null
      user_id: null
  new_state:
    entity_id: light.tze200_fm5yck8a_ts0601_light_2
    state: "off"
    attributes:
      supported_color_modes:
        - onoff
      off_with_transition: false
      off_brightness: null
      friendly_name: _TZE200_fm5yck8a TS0601 Light
      supported_features: 0
    last_changed: "2022-12-13T20:15:26.597627+00:00"
    last_updated: "2022-12-13T20:15:26.597627+00:00"
    context:
      id: 01GM6J1EC52DZ9B9SJZRCAEH4W
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2022-12-13T20:15:26.597627+00:00"
context:
  id: 01GM6J1EC52DZ9B9SJZRCAEH4W
  parent_id: null
  user_id: null

Even on the picture below you can see only reaction to light.

I am sending the complete log below.

log.txt

obrazek

nekdo4 avatar Dec 13 '22 20:12 nekdo4

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 03 '23 05:07 github-actions[bot]