plugin-ZIGBEE Beta

Tuya Switch sans neutre (gère le va et vient)

la notice ICI

{
    "ieee": "84:71:27:ff:fe:a4:8e:aa",
    "nwk": 31117,
    "status": 2,
    "lqi": "255",
    "rssi": "-36",
    "last_seen": "1615222594.2329814",
    "node_descriptor": "02:40:80:02:10:52:52:00:00:2c:52:00:00",
    "endpoints": [
        {
            "id": 1,
            "status": 1,
            "device_type": 256,
            "profile_id": 260,
            "manufacturer": "_TZ3000_pmvbt5hh",
            "model": "TS0011",
            "output_clusters": [
                {
                    "id": 25,
                    "name": "Ota",
                    "attributes": []
                },
                {
                    "id": 10,
                    "name": "Time",
                    "attributes": []
                }
            ],
            "input_clusters": [
                {
                    "id": 0,
                    "name": "Basic",
                    "attributes": [
                        {
                            "id": 0,
                            "name": "zcl_version",
                            "value": 3
                        },
                        {
                            "id": 1,
                            "name": "app_version",
                            "value": 66
                        },
                        {
                            "id": 2,
                            "name": "stack_version",
                            "value": 0
                        },
                        {
                            "id": 3,
                            "name": "hw_version",
                            "value": 1
                        },
                        {
                            "id": 4,
                            "name": "manufacturer",
                            "value": "_TZ3000_pmvbt5hh"
                        },
                        {
                            "id": 5,
                            "name": "model",
                            "value": "TS0011"
                        },
                        {
                            "id": 6,
                            "name": "date_code",
                            "value": ""
                        },
                        {
                            "id": 7,
                            "name": "power_source",
                            "value": 3
                        }
                    ]
                },
                {
                    "id": 4,
                    "name": "Groups",
                    "attributes": []
                },
                {
                    "id": 5,
                    "name": "Scenes",
                    "attributes": []
                },
                {
                    "id": 6,
                    "name": "On\/Off",
                    "attributes": [
                        {
                            "id": 0,
                            "name": "on_off",
                            "value": 0
                        },
                        {
                            "id": 16385,
                            "name": "on_time",
                            "value": 0
                        },
                        {
                            "id": 16386,
                            "name": "off_wait_time",
                            "value": 0
                        }
                    ]
                }
            ]
        }
    ],
    "signature": {
        "manufacturer": "_TZ3000_pmvbt5hh",
        "model": "TS0011",
        "node_desc": {
            "byte1": 2,
            "byte2": 64,
            "mac_capability_flags": 128,
            "manufacturer_code": 4098,
            "maximum_buffer_size": 82,
            "maximum_incoming_transfer_size": 82,
            "server_mask": 11264,
            "maximum_outgoing_transfer_size": 82,
            "descriptor_capability_field": 0
        },
        "endpoints": {
            "1": {
                "profile_id": 260,
                "device_type": 256,
                "input_clusters": [
                    0,
                    4,
                    5,
                    6
                ],
                "output_clusters": [
                    25,
                    10
                ]
            }
        }
    },
    "class": "zigpy.device"
}

on/off

[2021-03-08 17:04:25][INFO] : [84:71:27:ff:fe:a4:8e:aa][listener.general_command] Cluster: <zigpy.zcl.clusters.general.OnOff object at 0x74878f70> ClusterId: 0x0006 command_id: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=14 command_id=Command.Report_Attributes> args: ([[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.true>)]],)
[2021-03-08 17:04:25][INFO] : [84:71:27:ff:fe:a4:8e:aa][listener.attribute_updated] Received an attribute update 0=Bool.true on cluster 6
[2021-03-08 17:04:25][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x75204820>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (84:71:27:ff:fe:a4:8e:aa, 1, 6, 0, <Bool.true: 1>))
[2021-03-08 17:04:26][DEBUG] : Send to jeedom : {'devices': {'84:71:27:ff:fe:a4:8e:aa': {'1': {'6': {'0': {'value': 'Bool.true', 'cluster_name': 'On/Off'}}}}}}


[2021-03-08 17:04:32][INFO] : [84:71:27:ff:fe:a4:8e:aa][listener.general_command] Cluster: <zigpy.zcl.clusters.general.OnOff object at 0x74878f70> ClusterId: 0x0006 command_id: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=15 command_id=Command.Report_Attributes> args: ([[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.false>)]],)
[2021-03-08 17:04:32][INFO] : [84:71:27:ff:fe:a4:8e:aa][listener.attribute_updated] Received an attribute update 0=Bool.false on cluster 6
[2021-03-08 17:04:32][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x75204820>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (84:71:27:ff:fe:a4:8e:aa, 1, 6, 0, <Bool.false: 0>))
[2021-03-08 17:04:32][DEBUG] : Send to jeedom : {'devices': {'84:71:27:ff:fe:a4:8e:aa': {'1': {'6': {'0': {'value': 'Bool.false', 'cluster_name': 'On/Off'}}}}}}