Plugin Beta Zigbee, Ruban LED OSRAM

Suite du sujet plugin-ZIGBEE Beta :

Bonjour à tous,

Quelqu’un saurait m’aider concernant l’inclusion du ruban LED Osram RGBW avec le plugin Zigbee ?
Le plugin ne remonte pas le manufacturer du coup pas moyen d’interagir avec …

@Loic @SCore16

Bonjour,
Dans ce cas il te suffit de prendre un autre équipement RGB et d’appliquer sa configuration.

J’ai sélectionné l’ampoule Lidl RGB mais impossible de lui envoyer un ON ou OFF …

Log :

[2021-02-10 09:19:50][DEBUG] : [DeviceHandler.prepare] Json arg : {'ieee': '7c:b0:3e:aa:0a:00:79:ad', 'cmd': [{'endpoint': 1, 'cluster': 'on_off', 'command': 'on', 'await': 1}], 'allowQueue': False}
[2021-02-10 09:19:50][DEBUG] : Traceback (most recent call last):
  File "/var/www/html/plugins/zigbee/resources/zigbeed/restServer.py", line 237, in put
    await zdevices.command(self.json_args)
  File "/var/www/html/plugins/zigbee/resources/zigbeed/zdevices.py", line 38, in command
    raise Exception("Endpoint not found : "+str(cmd['endpoint']))
Exception: Endpoint not found : 1

[2021-02-10 09:19:50][INFO] : 200 PUT /device/command (127.0.0.1) 0.69ms
[2021-02-10 09:19:58][DEBUG] : Frame received: <UnpiFrame command_type=CommandType.AREQ subsystem=Subsystem.ZDO command_id=196 data=b'\xb7\xba\x00' length=3 fcs=143>
[2021-02-10 09:19:58][DEBUG] : <-- AREQ ZDO srcRtgInd tsn: None {'dstaddr': 0xBAB7, 'relaycount': 0, 'relaylist': []}
[2021-02-10 09:19:59][DEBUG] : Frame received: <UnpiFrame command_type=CommandType.AREQ subsystem=Subsystem.AF command_id=129 data=b'\x00\x00\x00\x00\xb7\xba\x01\x01\x00\x00\x00\xbb\x98\x8c\x00\x00\x07\x18I
\x01\x00 P\xb7\xba\x1d' length=27 fcs=65>
[2021-02-10 09:19:59][DEBUG] : <-- AREQ AF incomingMsg tsn: None {'groupid': 0, 'clusterid': 0, 'srcaddr': 0xBAB7, 'srcendpoint': 1, 'dstendpoint': 1, 'wasbroadcast': 0, 'linkquality': 0, 'securityuse': 0, 'timestamp': 9214139, 'transseqnumber': 0, 'len': 7, 'data': b'\x18I
\x01\x00 P'}
[2021-02-10 09:19:59][INFO] : handle_message incomingMsg
[2021-02-10 09:19:59][DEBUG] : [0xbab7:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=73 command_id=Command.Report_Attributes>
[2021-02-10 09:19:59][DEBUG] : [0xbab7:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=80>)]]
[2021-02-10 09:19:59][INFO] : [58:8e:81:ff:fe:e7:5c:5c][listener.general_command] Cluster: <zigpy.zcl.clusters.general.Basic object at 0x7f1ecfe9ecf8> ClusterId: 0x0000 command_id: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=True> manufacturer=None tsn=73 command_id=Command.Report_Attributes> args: ([[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=80>)]],)
[2021-02-10 09:19:59][DEBUG] : [0xbab7:1:0x0000] Attribute report received: app_version=80
[2021-02-10 09:19:59][INFO] : [58:8e:81:ff:fe:e7:5c:5c][listener.attribute_updated] Received an attribute update 1=80 on cluster 0
[2021-02-10 09:19:59][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7f1ecfe901f0>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (58:8e:81:ff:fe:e7:5c:5c, 1, 0, 1, 80))
[2021-02-10 09:19:59][DEBUG] : returning <sqlite3.Cursor object at 0x7f1ecdd4b110>
[2021-02-10 09:19:59][DEBUG] : executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7f1ecfe901f0>)
[2021-02-10 09:19:59][DEBUG] : returning None
[2021-02-10 09:19:59][DEBUG] : Send to jeedom : {'devices': {'58:8e:81:ff:fe:e7:5c:5c': {'1': {'0': {'1': {'value': '80', 'cluster_name': 'Basic'}}}}}}
[2021-02-10 09:19:59][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2021-02-10 09:19:59][DEBUG] : http://127.0.0.1:80 "POST /plugins/zigbee/core/php/jeeZigbee.php?apikey=VNSWnH9x5Csqf3KlPrakQiKwwyZSt4Qd HTTP/1.1" 200 0

Faut changer dans la liste des commandes les 1:: par 3:: dans ton cas.

Pas mieux :thinking:

[2021-02-10 09:46:55][DEBUG] : [DeviceHandler.prepare] Json arg : {'ieee': '7c:b0:3e:aa:0a:00:79:ad', 'cmd': [{'endpoint': 3, 'cluster': 'on_off', 'command': 'on', 'await': 1}], 'allowQueue': False}
[2021-02-10 09:46:55][DEBUG] : request (0x59E8, 260, 6, 3, 3, 145, b'\x01\x91\x01', True, False)
[2021-02-10 09:46:55][DEBUG] : --> SREQ AF dataRequest tsn: 145 {'dstaddr': 23016, 'destendpoint': 3, 'srcendpoint': 3, 'clusterid': 6, 'transid': 145, 'options': 0, 'radius': 30, 'len': 3, 'data': b'\x01\x91\x01'}
[2021-02-10 09:46:55][DEBUG] : Send: b'\xfe
$\x01\xe8Y\x03\x03\x06\x00\x91\x00\x1e\x03\x01\x91\x01\x82'
[2021-02-10 09:46:55][DEBUG] : Frame received: <UnpiFrame command_type=CommandType.SRSP subsystem=Subsystem.AF command_id=1 data=b'\x00' length=1 fcs=100>
[2021-02-10 09:46:55][DEBUG] : <-- SRSP AF dataRequest tsn: None {'status': 0}
[2021-02-10 09:46:56][DEBUG] : Frame received: <UnpiFrame command_type=CommandType.AREQ subsystem=Subsystem.AF command_id=128 data=b'\x00\x03\x91' length=3 fcs=85>
[2021-02-10 09:46:56][DEBUG] : <-- AREQ AF dataConfirm tsn: None {'status': 0, 'endpoint': 3, 'transid': 145}
[2021-02-10 09:47:00][DEBUG] : Traceback (most recent call last):
File "/var/www/html/plugins/zigbee/resources/zigbeed/restServer.py", line 237, in put
await zdevices.command(self.json_args)
File "/var/www/html/plugins/zigbee/resources/zigbeed/zdevices.py", line 62, in command
await command()
File "/usr/local/lib/python3.7/dist-packages/zigpy/device.py", line 223, in request
result = await asyncio.wait_for(req.result, timeout)
File "/usr/lib/python3.7/asyncio/tasks.py", line 423, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
[2021-02-10 09:47:00][INFO] : 200 PUT /device/command (127.0.0.1) 5019.44ms

La je sais pas la commande est bien envoyé mais l’ampoule en veux pas.

Bonjour @Loic,

J’ai un CC2531 comme coordinateur donc dans la liste j’ai sélectionné CC.
J’avais pas de soucis pour mes autres module hormis mon ruban LED Osram …
J’ai sélectionné ZNP qui normalement est réservé au Z-Stack 3.X et là miracle le démon redémarre, je réinclus mes modules et mon ruban LED Osram fonctionne désormais ….
Je sais pas si le Ruban LED Osram est manquant dans la library Zigpy CC mais en tout cas cela fonctionne avec le ZNP.

Bonjour,
Merci pour le retour je ne connais malheureusement ni l’un ni l’autre officiellement on ne test que sur deconz et eszp

Bonjour @Loic,

J’ai migrer toute mon installation sur le nouveau coordinateur CC2652RB (ZNP).
Pas de soucis pour associer mes devices, par contre j’ai de nouveau quelques soucis avec mon ruban LED Osram (7c:b0:3e:aa:0a:00:79:ad) . Je ne récupère pas les états (ON/OFF, Luminosité, température, couleur …
Tu aurais une idée ?

Log zigbee :


[2021-02-16 23:15:22][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:15:22][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"on_off","command":"on","await":1}],"allowQueue":false}
[2021-02-16 23:15:25][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:15:25][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"on_off","command":"off","await":1}],"allowQueue":false}
[2021-02-16 23:17:00][DEBUG] : {"devices":{"60:a4:23:ff:fe:04:e4:04":{"11":[{"1":{"value":"66","cluster_name":"Basic"}}]}}}
[2021-02-16 23:17:00][DEBUG] : Search attribut for 60:a4:23:ff:fe:04:e4:04 logicalId : 11::0::1 => 66
[2021-02-16 23:17:09][DEBUG] : {"devices":{"60:a4:23:ff:fe:07:d5:c8":{"11":{"6":[{"value":"Bool.true","cluster_name":"On\/Off"}]}}}}
[2021-02-16 23:17:09][DEBUG] : Search attribut for 60:a4:23:ff:fe:07:d5:c8 logicalId : 11::6::0 => Bool.true
[2021-02-16 23:17:24][DEBUG] : {"devices":{"60:a4:23:ff:fe:07:d5:c8":{"11":[{"1":{"value":"66","cluster_name":"Basic"}}]}}}
[2021-02-16 23:17:24][DEBUG] : Search attribut for 60:a4:23:ff:fe:07:d5:c8 logicalId : 11::0::1 => 66
[2021-02-16 23:17:31][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:17:31][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"on_off","command":"on","await":1}],"allowQueue":false}
[2021-02-16 23:17:34][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:17:34][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"on_off","command":"on","await":1}],"allowQueue":false}
[2021-02-16 23:17:38][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:17:38][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"light_color","command":"move_to_color_temp","await":1,"args":["6500","0"]}],"allowQueue":false}
[2021-02-16 23:17:41][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:17:41][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"on_off","command":"on","await":1}],"allowQueue":false}
[2021-02-16 23:17:44][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:17:44][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"on_off","command":"on","await":1}],"allowQueue":false}
[2021-02-16 23:17:54][DEBUG] : {"devices":{"00:15:8d:00:02:73:13:26":{"1":{"1026":[{"value":"2014","cluster_name":"Temperature Measurement"}],"1029":[{"value":"4616","cluster_name":"Relative Humidity Measurement"}],"1027":[{"value":"1005","cluster_name":"Pressure Measurement"}]}}}}
[2021-02-16 23:17:54][DEBUG] : Search attribut for 00:15:8d:00:02:73:13:26 logicalId : 1::1026::0 => 2014
[2021-02-16 23:17:54][DEBUG] : Search attribut for 00:15:8d:00:02:73:13:26 logicalId : 1::1029::0 => 4616
[2021-02-16 23:17:54][DEBUG] : Search attribut for 00:15:8d:00:02:73:13:26 logicalId : 1::1027::0 => 1005
[2021-02-16 23:19:14][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:19:14][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"level","command":"move_to_level","await":1,"args":["78","0"]}],"allowQueue":false}
[2021-02-16 23:19:17][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:19:17][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"light_color","command":"move_to_color_temp","await":1,"args":["4185","0"]}],"allowQueue":false}
[2021-02-16 23:19:18][DEBUG] : {"devices":{"00:15:8d:00:02:f3:7c:22":{"1":[{"65281":{"value":"b'\x01!\xdb\x0b\x03(\x17\x04!\xa8\x13\x05!&\x00\x06$\x01\x00\x00\x00\x00
!*v\x08!\x04\x10d \x01\x96#\x00\x00\x00\x00'","cluster_name":"BasicCluster"}},{"32":{"value":"30","cluster_name":"Power Configuration"},"33":{"value":"154","cluster_name":"Power Configuration"}}]}}}
[2021-02-16 23:19:18][DEBUG] : Search attribut for 00:15:8d:00:02:f3:7c:22 logicalId : 1::0::65281 => b'\x01!\xdb\x0b\x03(\x17\x04!\xa8\x13\x05!&\x00\x06$\x01\x00\x00\x00\x00
!*v\x08!\x04\x10d \x01\x96#\x00\x00\x00\x00'
[2021-02-16 23:19:22][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:19:22][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"light_color","command":"move_to_color","await":1,"args":["21151","21563","0"]}],"allowQueue":false}
[2021-02-16 23:19:25][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:19:25][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"level","command":"move_to_level","await":1,"args":["101","0"]}],"allowQueue":false}
[2021-02-16 23:19:27][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:19:27][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"light_color","command":"move_to_color_temp","await":1,"args":["2663","0"]}],"allowQueue":false}
[2021-02-16 23:19:32][DEBUG] : {"devices":{"60:a4:23:ff:fe:04:e4:04":{"11":[{"1":{"value":"66","cluster_name":"Basic"}}]}}}
[2021-02-16 23:19:32][DEBUG] : Search attribut for 60:a4:23:ff:fe:04:e4:04 logicalId : 11::0::1 => 66
[2021-02-16 23:19:52][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:19:52][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"level","command":"move_to_level","await":1,"args":["127","0"]}],"allowQueue":false}
[2021-02-16 23:19:55][DEBUG] : {"devices":{"60:a4:23:ff:fe:07:d5:c8":{"11":[{"1":{"value":"66","cluster_name":"Basic"}}]}}}
[2021-02-16 23:19:55][DEBUG] : Search attribut for 60:a4:23:ff:fe:07:d5:c8 logicalId : 11::0::1 => 66
[2021-02-16 23:20:02][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:20:02][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"light_color","command":"move_to_color","await":1,"args":["30296","32850","0"]}],"allowQueue":false}
[2021-02-16 23:20:06][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:20:06][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"light_color","command":"move_to_color","await":1,"args":["30296","32850","0"]}],"allowQueue":false}
[2021-02-16 23:20:15][DEBUG] : http://127.0.0.1:8089/device/command type : PUT
[2021-02-16 23:20:15][DEBUG] : {"ieee":"7c:b0:3e:aa:0a:00:79:ad","cmd":[{"endpoint":3,"cluster":"light_color","command":"move_to_color_temp","await":1,"args":["2150","0"]}],"allowQueue":false}

Bonjour,
Sans le json du module je ne peux repondre

Oups le voici:

{
    "ieee": "7c:b0:3e:aa:0a:00:79:ad",
    "nwk": 9971,
    "status": 2,
    "lqi": "54",
    "rssi": "None",
    "last_seen": "1613608459.0488045",
    "node_descriptor": "01:40:8e:aa:bb:40:00:00:00:00:00:00:03",
    "endpoints": [
        {
            "id": 3,
            "status": 1,
            "device_type": 528,
            "profile_id": 49246,
            "manufacturer": "OSRAM",
            "model": "LIGHTIFY Indoor Flex RGBW",
            "output_clusters": [
                {
                    "id": 25,
                    "name": "Ota",
                    "attributes": []
                }
            ],
            "input_clusters": [
                {
                    "id": 4096,
                    "name": "LightLink",
                    "attributes": []
                },
                {
                    "id": 0,
                    "name": "Basic",
                    "attributes": [
                        {
                            "id": 0,
                            "name": "zcl_version",
                            "value": 1
                        },
                        {
                            "id": 1,
                            "name": "app_version",
                            "value": 1
                        },
                        {
                            "id": 2,
                            "name": "stack_version",
                            "value": 2
                        },
                        {
                            "id": 3,
                            "name": "hw_version",
                            "value": 1
                        },
                        {
                            "id": 4,
                            "name": "manufacturer",
                            "value": "OSRAM"
                        },
                        {
                            "id": 5,
                            "name": "model",
                            "value": "LIGHTIFY Indoor Flex RGBW"
                        },
                        {
                            "id": 6,
                            "name": "date_code",
                            "value": "20140331CNWT****"
                        },
                        {
                            "id": 7,
                            "name": "power_source",
                            "value": 1
                        },
                        {
                            "id": 16384,
                            "name": "sw_build_id",
                            "value": "V1.05.10"
                        }
                    ]
                },
                {
                    "id": 3,
                    "name": "Identify",
                    "attributes": []
                },
                {
                    "id": 4,
                    "name": "Groups",
                    "attributes": []
                },
                {
                    "id": 5,
                    "name": "Scenes",
                    "attributes": []
                },
                {
                    "id": 6,
                    "name": "On\/Off",
                    "attributes": [
                        {
                            "id": 0,
                            "name": "on_off",
                            "value": 1
                        }
                    ]
                },
                {
                    "id": 8,
                    "name": "Level control",
                    "attributes": [
                        {
                            "id": 0,
                            "name": "current_level",
                            "value": 127
                        }
                    ]
                },
                {
                    "id": 768,
                    "name": "Color Control",
                    "attributes": [
                        {
                            "id": 3,
                            "name": "current_x",
                            "value": 30296
                        },
                        {
                            "id": 4,
                            "name": "current_y",
                            "value": 31823
                        },
                        {
                            "id": 7,
                            "name": "color_temperature",
                            "value": 666
                        }
                    ]
                },
                {
                    "id": 64527,
                    "name": "Manufacturer Specific",
                    "attributes": []
                }
            ]
        }
    ],
    "signature": {
        "manufacturer": "OSRAM",
        "model": "LIGHTIFY Indoor Flex RGBW",
        "node_desc": {
            "byte1": 1,
            "byte2": 64,
            "mac_capability_flags": 142,
            "manufacturer_code": 48042,
            "maximum_buffer_size": 64,
            "maximum_incoming_transfer_size": 0,
            "server_mask": 0,
            "maximum_outgoing_transfer_size": 0,
            "descriptor_capability_field": 3
        },
        "endpoints": {
            "3": {
                "profile_id": 49246,
                "device_type": 528,
                "input_clusters": [
                    4096,
                    0,
                    3,
                    4,
                    5,
                    6,
                    8,
                    768,
                    64527
                ],
                "output_clusters": [
                    25
                ]
            }
        }
    },
    "class": "zigpy.device"
}

Ok c’est du ZLL il n’y a donc pas de retour d’état automatique du module (c’est l’ancêtre du zigbee zha). J’ai rajouté dans la conf la commande refresh il faudra juste supprimer l’équipement de jeedom et refaire une synchronisation tu auras un bouton refresh pour avoir l’état reel de la lampe.

Se sera dans l’update de demain ?
Encore un grand merci pour ta disponibilité :grinning:

Oui comme toute modification c’est le lendemain

Après synchronisation cela fonctionne parfaitement. Un grand merci @Loic

Salut,

j’ai le même ruban que toi, mais impossible de faire fonctionner la température de blanc.
le ruban reste bloqué un un blanc très chaud et faible. As-tu eu le soucis toi ?

Bonjour,
Ca doit etre a cause des bornes min/max chaque fabricant mets ses propre limites…

Bonjour Loic,

Merci de ta réponse (éclair!).

Je dois donc jouer là dessus ?

Sur le min/max comme dit dans mon message precedent…

J’ai déjà essayé de jouer là dessus, en mettant les valeurs du constructeur (2700-6500), le soucis c’est que peu importe comment je bouge le slider, le ruban ne change pas du tout de température de blanc.

D’ailleurs si je rafraichi mon dashboard, le curseur se remet en position initiale systématiquement :
image