Bonjour,
je mets à jour ce topic
je suis maintenant passé sur Home assistant OS via Proxmox
Je tente l’intégration d’un détecteur de mouvement de marque Easyfit, de modèle EOSCA. En Enocean.
Préalablement, en ayant regarder des réponses de Bubule sur certain topic. J’ai mis mon dongle USB300 sur DolphinView et j’ai regardé ce qui passait. Ca m’a permis de vérifier l’ID de mon appareil.
Ensuite je suis passé sur HA, j’ai configuré le Dongle sur la VM et l’intégration Enocean avec le port usb.
en utilisant le journal de debug voici ce que j’obtiens :
2023-01-29 11:52:26.711 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-29 11:52:59.352 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Z-Wave JS' for zwave_js integration not ready yet: None; Retrying in background
2023-01-29 11:54:00.403 ERROR (MainThread) [homeassistant.components.hassio.handler] /ingress/validate_session return code 401
2023-01-29 11:54:00.410 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /ingress/validate_session -
2023-01-29 11:54:00.422 ERROR (MainThread) [homeassistant.components.hassio.handler] /ingress/validate_session return code 401
2023-01-29 11:54:00.425 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /ingress/validate_session -
2023-01-29 11:56:33.195 DEBUG (Thread-8) [homeassistant.components.enocean.dongle] Received radio packet: 05:8F:61:F8->FF:FF:FF:FF (-71 dBm): 0x01 ['0xa5', '0xa5', '0x0', '0xff', '0x9', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x47', '0x0'] OrderedDict()
2023-01-29 11:56:33.202 DEBUG (Thread-8) [enocean.communicators.SerialCommunicator] 05:8F:61:F8->FF:FF:FF:FF (-71 dBm): 0x01 ['0xa5', '0xa5', '0x0', '0xff', '0x9', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x47', '0x0'] OrderedDict()
2023-01-29 11:56:34.442 DEBUG (Thread-7) [enocean.protocol.packet] learn received, EEP detected, RORG: 0xA5, FUNC: 0x07, TYPE: 0x01, Manufacturer: 0x0B
2023-01-29 11:56:34.443 DEBUG (Thread-7) [homeassistant.components.enocean.dongle] Received radio packet: 05:8F:61:F8->FF:FF:FF:FF (-70 dBm): 0x01 ['0xa5', '0x1c', '0x8', '0xb', '0x80', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x46', '0x0'] OrderedDict()
2023-01-29 11:56:34.448 DEBUG (Thread-7) [enocean.communicators.SerialCommunicator] 05:8F:61:F8->FF:FF:FF:FF (-70 dBm): 0x01 ['0xa5', '0x1c', '0x8', '0xb', '0x80', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x46', '0x0'] OrderedDict()
2023-01-29 11:56:35.658 DEBUG (Thread-8) [enocean.protocol.packet] learn received, EEP detected, RORG: 0xA5, FUNC: 0x07, TYPE: 0x01, Manufacturer: 0x0B
2023-01-29 11:56:35.658 DEBUG (Thread-8) [homeassistant.components.enocean.dongle] Received radio packet: 05:8F:61:F8->FF:FF:FF:FF (-73 dBm): 0x01 ['0xa5', '0x1c', '0x8', '0xb', '0x80', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x49', '0x0'] OrderedDict()
2023-01-29 11:56:35.658 DEBUG (Thread-8) [enocean.communicators.SerialCommunicator] 05:8F:61:F8->FF:FF:FF:FF (-73 dBm): 0x01 ['0xa5', '0x1c', '0x8', '0xb', '0x80', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x49', '0x0'] OrderedDict()
2023-01-29 11:56:36.425 DEBUG (Thread-8) [homeassistant.components.enocean.dongle] Received radio packet: 05:8F:61:F8->FF:FF:FF:FF (-71 dBm): 0x01 ['0xa5', '0xa4', '0x0', '0xff', '0x9', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x47', '0x0'] OrderedDict()
2023-01-29 11:56:36.426 DEBUG (Thread-8) [enocean.communicators.SerialCommunicator] 05:8F:61:F8->FF:FF:FF:FF (-71 dBm): 0x01 ['0xa5', '0xa4', '0x0', '0xff', '0x9', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x47', '0x0'] OrderedDict()
2023-01-29 11:56:38.229 ERROR (Thread-7) [enocean.communicators.SerialCommunicator] Serial port exception! (device disconnected or multiple access on port?)
2023-01-29 11:56:38.235 INFO (Thread-7) [enocean.communicators.SerialCommunicator] SerialCommunicator stopped
2023-01-29 11:56:38.328 DEBUG (Thread-8) [homeassistant.components.enocean.dongle] Received radio packet: 05:8F:61:F8->FF:FF:FF:FF (-73 dBm): 0x01 ['0xa5', '0xa5', '0x0', '0xff', '0x9', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x49', '0x0'] OrderedDict()
2023-01-29 11:56:38.329 DEBUG (Thread-8) [enocean.communicators.SerialCommunicator] 05:8F:61:F8->FF:FF:FF:FF (-73 dBm): 0x01 ['0xa5', '0xa5', '0x0', '0xff', '0x9', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x49', '0x0'] OrderedDict()
2023-01-29 11:56:39.464 DEBUG (Thread-8) [enocean.protocol.packet] learn received, EEP detected, RORG: 0xA5, FUNC: 0x07, TYPE: 0x01, Manufacturer: 0x0B
2023-01-29 11:56:39.464 DEBUG (Thread-8) [homeassistant.components.enocean.dongle] Received radio packet: 05:8F:61:F8->FF:FF:FF:FF (-74 dBm): 0x01 ['0xa5', '0x1c', '0x8', '0xb', '0x80', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x4a', '0x0'] OrderedDict()
2023-01-29 11:56:39.465 DEBUG (Thread-8) [enocean.communicators.SerialCommunicator] 05:8F:61:F8->FF:FF:FF:FF (-74 dBm): 0x01 ['0xa5', '0x1c', '0x8', '0xb', '0x80', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x4a', '0x0'] OrderedDict()
2023-01-29 12:06:16.596 DEBUG (Thread-8) [homeassistant.components.enocean.dongle] Received radio packet: 05:8F:61:F8->FF:FF:FF:FF (-83 dBm): 0x01 ['0xa5', '0xa5', '0x0', '0xff', '0x9', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x53', '0x0'] OrderedDict()
2023-01-29 12:06:16.596 DEBUG (Thread-8) [enocean.communicators.SerialCommunicator] 05:8F:61:F8->FF:FF:FF:FF (-83 dBm): 0x01 ['0xa5', '0xa5', '0x0', '0xff', '0x9', '0x5', '0x8f', '0x61', '0xf8', '0x0'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x53', '0x0'] OrderedDict()
Quelques errors aux départ. Mais à la fin on peut voir la trame Enocean passer avec l’ID que je retrouve ici « 05:8F:61:F8 »
donc j’ai configurer le YAML de cette manière :
binary_sensor:
- platform: enocean
id: [0x05,0x8F,0x61,0xF8]
name: presence
Il a pour l’instant uniquement ça dans le .YAML. (Il me semble pas que l’on doit rappeler le dongle dans le yaml)
Je me sers de l’onglet « entités » pour regarder ce que me dit mon binary_sensor Enocean. Et il me répond « inconnu »…
DEUXIEME SOLUTION
J’essaye avec node-red et la palette « node-red-node-serialport »
Et le debug renvoi :
29/01/2023 13:15:36node: debug 1
msg.payload : Object
object
Time: "Sun Jan 29 2023 13:15:37 GMT+0100 (Central European Standard Time)"
OriginatorID: "00000000"
EEP: "RPS"
Data1: "00"
Data4: "00000000"
SubTelNum: ""
dBm: ""
A chaque envoi de trame, j’ai quelque chose qui s’affiche. Mais quelque chose avec que des 0… Pas simple pour identifier et discriminer le matériel.
L’objectif final est de pouvoir lire des informations EnOcean avec précision (quel appareil et que dit-il) et de pouvoir contrôler des appareils comme un relais Enocean d’éclairage.
Si il est plus simple de passer par Home Assistant pour le faire alors on le fait avec HA, Sinon Node-red…
Merci pour vos réponses