Bonjour,
puis-je vous embêter aussi autour de ce plugin Beta?
J’aimerais vous faire part de mes essais sur votre nouveau plugin en cours de développement.
Jusqu’à présent j’utilisais le Zigbee2Mqtt, mais dès que j’ai appris la volonté de Jeedom de partir sur le développement de leur propre plugin, il a fallu que je teste.
Je suis reparti de zéro car j’ai observé des problèmes de port qui se mélangaient entre la Conbee II et la Z2M, quand on redémarre le RPI4 de temps en temps l’un est en ttyACM0 ou 1 et inversement. j’ai passé beaucoup de temps a trouver le problème et ai fait tellement de manip, que j’ai préférer partir de Zéro.
donc pour les base j’ai un RPI4 de 8Go avec SSD sur usb3.
Installation Debian 10 Buster complète avec interface graphique
Installation en ligne de commande :
# wget https://raw.githubusercontent.com/jeedom/core/master/install/install.sh
# chmod +x install.sh
# ./install.sh
L’installation de Jeedom V4 est OK.
après j’installe des truc perso genre dongle Enocean, server mqtt, et mDNS
je passe donc
Installation du plugin Zigbee
Recherche du port ls -l /dev/serial/by-id
Donc impec je repère le port ttyACM0
le Démon est maintenant mis à jour et lancé je vais donc tester l’appairage d’une ampoule Philips HUE White model « 806 lumen a60 9w »
acheté https://www.amazon.fr/Philips-Démarrage-Blanc-avec-inclus/dp/B016H0R7SE
N’ayant pas trouvé le bon model dans Jeedom je l’ai donc mis en LWB010
surement à tord
{
"ieee": "00:17:88:01:04:ba:7d:29",
"nwk": 48928,
"status": 2,
"lqi": "255",
"rssi": "-49",
"last_seen": "1604051695.7337463",
"node_descriptor": "01:40:8e:0b:10:47:2d:00:00:00:2d:00:00",
"endpoints": [
{
"id": 11,
"status": 1,
"device_type": 256,
"profile_id": 49246,
"output_clusters": [
{
"id": 25,
"name": "Ota",
"attributes": []
}
],
"input_clusters": [
{
"id": 0,
"name": "Basic",
"attributes": [
{
"id": 4,
"name": "manufacturer",
"value": "Philips"
},
{
"id": 5,
"name": "model",
"value": "LWB010"
}
]
},
{
"id": 3,
"name": "Identify",
"attributes": []
},
{
"id": 4,
"name": "Groups",
"attributes": []
},
{
"id": 5,
"name": "Scenes",
"attributes": []
},
{
"id": 6,
"name": "On\/Off",
"attributes": []
},
{
"id": 8,
"name": "Level control",
"attributes": []
},
{
"id": 4096,
"name": "LightLink",
"attributes": []
}
]
},
{
"id": 242,
"status": 1,
"device_type": 97,
"profile_id": 41440,
"output_clusters": [
{
"id": 33,
"name": "GreenPowerProxy",
"attributes": []
}
],
"input_clusters": [
{
"id": 33,
"name": "GreenPowerProxy",
"attributes": []
}
]
}
]
}
j’essai de suivre le mod-op avec les balises
voici les infos du Démon zigbee après avoir joué avec l’ampoule
[2020-10-30 11:28:49][DEBUG] : http://127.0.0.1:8484/device/command type : PUT
[2020-10-30 11:28:52][DEBUG] : http://127.0.0.1:8484/device/command type : PUT
[2020-10-30 11:28:59][DEBUG] : http://127.0.0.1:8484/device/command type : PUT
[2020-10-30 11:29:02][DEBUG] : http://127.0.0.1:8484/device/command type : PUT
[2020-10-30 11:29:05][DEBUG] : http://127.0.0.1:8484/device/command type : PUT
[2020-10-30 11:29:07][DEBUG] : http://127.0.0.1:8484/device/command type : PUT
Toutes les commandes se passent bien par contre je n’ai aucun retour d’état de l’ampoule
allumage ampoule
[2020-10-30 11:33:32][DEBUG] : [DeviceHandler.prepare] Json arg : {'ieee': '00:17:88:01:04:ba:7d:29', 'cmd': [{'endpoint': 11, 'cluster': 'on_off', 'command': 'on', 'await': 1}], 'allowQueue': False}
[2020-10-30 11:33:32][DEBUG] : Sending Zigbee request with tsn 36 under 37 request id, data: b'012401'
[2020-10-30 11:33:32][DEBUG] : Command Command.aps_data_request (18, 37, 0, <DeconzAddressEndpoint address_mode=2 address=0xBF20 endpoint=11>, 260, 6, 1, b'\x01$\x01', 2, 0)
[2020-10-30 11:33:32][DEBUG] : Send: 0x124c001900120025000220bf0b040106000103000124010200
[2020-10-30 11:33:32][DEBUG] : Frame received: 0x124c00090002002225
[2020-10-30 11:33:32][DEBUG] : APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 37]
[2020-10-30 11:33:32][DEBUG] : Frame received: 0x0e4d000700a600
[2020-10-30 11:33:32][DEBUG] : Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
[2020-10-30 11:33:32][DEBUG] : Command Command.aps_data_confirm (0,)
[2020-10-30 11:33:32][DEBUG] : Send: 0x044d0007000000
[2020-10-30 11:33:32][DEBUG] : Frame received: 0x044d0013000c0022250220bf0b010000000000
[2020-10-30 11:33:32][DEBUG] : APS data confirm response for request with id 37: 00
[2020-10-30 11:33:32][DEBUG] : Request id: 0x25 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0xbf20 endpoint=11>, status: 0x00
[2020-10-30 11:33:32][DEBUG] : Frame received: 0x0e4e000700aa00
[2020-10-30 11:33:32][DEBUG] : Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
[2020-10-30 11:33:32][DEBUG] : Command Command.aps_data_indication (1, 1)
[2020-10-30 11:33:32][DEBUG] : Send: 0x174e000800010001
[2020-10-30 11:33:32][DEBUG] : Frame received: 0x174e0023001c0022020000010220bf0b04010600050018240b010000afff6bb2ffffcf
[2020-10-30 11:33:32][DEBUG] : APS data indication response: [28, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xbf20>, 11, 260, 6, b'\x18$\x0b\x01\x00', 0, 175, 255, 107, 178, 255, 255, -49]
[2020-10-30 11:33:32][DEBUG] : [0xbf20:11:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=36 command_id=Command.Default_Response>
[2020-10-30 11:33:32][DEBUG] : 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xbf20>, ep: 11, profile: 0x0104, cluster_id: 0x0006, data: b'18240b0100'
[2020-10-30 11:33:32][INFO] : 200 PUT /device/command (127.0.0.1) 26.68ms
règlage luminosité
[2020-10-30 11:34:59][DEBUG] : [DeviceHandler.prepare] Json arg : {'ieee': '00:17:88:01:04:ba:7d:29', 'cmd': [{'endpoint': 11, 'cluster': 'level', 'command': 'move_to_level', 'await': 1, 'args': ['133', '0']}], 'allowQueue': False}
[2020-10-30 11:34:59][DEBUG] : Sending Zigbee request with tsn 38 under 39 request id, data: b'012600850000'
[2020-10-30 11:34:59][DEBUG] : Command Command.aps_data_request (21, 39, 0, <DeconzAddressEndpoint address_mode=2 address=0xBF20 endpoint=11>, 260, 8, 1, b'\x01&\x00\x85\x00\x00', 2, 0)
[2020-10-30 11:34:59][DEBUG] : Send: 0x124f001c00150027000220bf0b040108000106000126008500000200
[2020-10-30 11:34:59][DEBUG] : Frame received: 0x124f00090002002227
[2020-10-30 11:34:59][DEBUG] : APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 39]
[2020-10-30 11:34:59][DEBUG] : Frame received: 0x0e50000700a600
[2020-10-30 11:34:59][DEBUG] : Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
[2020-10-30 11:34:59][DEBUG] : Command Command.aps_data_confirm (0,)
[2020-10-30 11:34:59][DEBUG] : Send: 0x04500007000000
[2020-10-30 11:34:59][DEBUG] : Frame received: 0x04500013000c0022270220bf0b010000000000
[2020-10-30 11:34:59][DEBUG] : APS data confirm response for request with id 39: 00
[2020-10-30 11:34:59][DEBUG] : Request id: 0x27 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0xbf20 endpoint=11>, status: 0x00
[2020-10-30 11:34:59][DEBUG] : Frame received: 0x0e51000700aa00
[2020-10-30 11:34:59][DEBUG] : Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
[2020-10-30 11:34:59][DEBUG] : Command Command.aps_data_indication (1, 1)
[2020-10-30 11:34:59][DEBUG] : Send: 0x1751000800010001
[2020-10-30 11:34:59][DEBUG] : Frame received: 0x17510023001c0022020000010220bf0b04010800050018260b000000afff72b2ffffd2
[2020-10-30 11:34:59][DEBUG] : APS data indication response: [28, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xbf20>, 11, 260, 8, b'\x18&\x0b\x00\x00', 0, 175, 255, 114, 178, 255, 255, -46]
[2020-10-30 11:34:59][DEBUG] : [0xbf20:11:0x0008] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=38 command_id=Command.Default_Response>
[2020-10-30 11:34:59][DEBUG] : 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xbf20>, ep: 11, profile: 0x0104, cluster_id: 0x0008, data: b'18260b0000'
[2020-10-30 11:34:59][INFO] : 200 PUT /device/command (127.0.0.1) 35.37ms
et extinction
[2020-10-30 11:36:25][DEBUG] : [DeviceHandler.prepare] Json arg : {'ieee': '00:17:88:01:04:ba:7d:29', 'cmd': [{'endpoint': 11, 'cluster': 'on_off', 'command': 'off', 'await': 1}], 'allowQueue': False}
[2020-10-30 11:36:25][DEBUG] : Sending Zigbee request with tsn 42 under 43 request id, data: b'012a00'
[2020-10-30 11:36:25][DEBUG] : Command Command.aps_data_request (18, 43, 0, <DeconzAddressEndpoint address_mode=2 address=0xBF20 endpoint=11>, 260, 6, 1, b'\x01*\x00', 2, 0)
[2020-10-30 11:36:25][DEBUG] : Send: 0x125500190012002b000220bf0b04010600010300012a000200
[2020-10-30 11:36:25][DEBUG] : Frame received: 0x12550009000200222b
[2020-10-30 11:36:25][DEBUG] : APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 43]
[2020-10-30 11:36:25][DEBUG] : Frame received: 0x0e56000700a600
[2020-10-30 11:36:25][DEBUG] : Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
[2020-10-30 11:36:25][DEBUG] : Command Command.aps_data_confirm (0,)
[2020-10-30 11:36:25][DEBUG] : Send: 0x04560007000000
[2020-10-30 11:36:25][DEBUG] : Frame received: 0x04560013000c00222b0220bf0b010000000000
[2020-10-30 11:36:25][DEBUG] : APS data confirm response for request with id 43: 00
[2020-10-30 11:36:25][DEBUG] : Request id: 0x2b 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0xbf20 endpoint=11>, status: 0x00
[2020-10-30 11:36:25][DEBUG] : Frame received: 0x0e57000700aa00
[2020-10-30 11:36:25][DEBUG] : Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
[2020-10-30 11:36:25][DEBUG] : Command Command.aps_data_indication (1, 1)
[2020-10-30 11:36:25][DEBUG] : Send: 0x1757000800010001
[2020-10-30 11:36:25][DEBUG] : Frame received: 0x17570023001c0022020000010220bf0b040106000500182a0b000000afff79b2ffffd0
[2020-10-30 11:36:25][DEBUG] : APS data indication response: [28, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xbf20>, 11, 260, 6, b'\x18*\x0b\x00\x00', 0, 175, 255, 121, 178, 255, 255, -48]
[2020-10-30 11:36:25][DEBUG] : [0xbf20:11:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=42 command_id=Command.Default_Response>
[2020-10-30 11:36:25][DEBUG] : 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xbf20>, ep: 11, profile: 0x0104, cluster_id: 0x0006, data: b'182a0b0000'
[2020-10-30 11:36:25][INFO] : 200 PUT /device/command (127.0.0.1) 26.39ms
En espérant avoir bien suivi le protocole d’extraction des données.
Merci d’avance