Bonjour,
J’ai quelques problème avec un bouton zigbee IKEA E1743 à 3 positions.
0/1/repos
Le journal z2m voit bien les différents evenements :
brightness_move_down
brightness_move_up
brightness_stop
off
on
brightness_up
brightness_down
info 2024-11-17 20:52:27z2m:mqtt: MQTT publish: topic 'z2m/z2m_Btn01_ONOFF_sdb_derogation_arret_ventil', payload '{"action":"off","battery":20,"click":"off","linkquality":175,"update":{"installed_version":604241926,"latest_version":604241926,"state":"idle"},"update_available":false}'
info 2024-11-17 20:52:27z2m:mqtt: MQTT publish: topic 'z2m/z2m_Btn01_ONOFF_sdb_derogation_arret_ventil', payload '{"action":"","battery":20,"click":null,"linkquality":175,"update":{"installed_version":604241926,"latest_version":604241926,"state":"idle"},"update_available":false}'
info 2024-11-17 20:52:27z2m:mqtt: MQTT publish: topic 'z2m/z2m_Btn01_ONOFF_sdb_derogation_arret_ventil', payload '{"action":null,"battery":20,"click":"","linkquality":175,"update":{"installed_version":604241926,"latest_version":604241926,"state":"idle"},"update_available":false}'
info 2024-11-17 20:52:27z2m:mqtt: MQTT publish: topic 'z2m/z2m_Btn01_ONOFF_sdb_derogation_arret_ventil/action', payload 'off'
info 2024-11-17 20:52:27z2m:mqtt: MQTT publish: topic 'z2m/z2m_Btn01_ONOFF_sdb_derogation_arret_ventil/click', payload 'off'
info 2024-11-17 20:52:28z2m:mqtt: MQTT publish: topic 'z2m/z2m_Btn01_ONOFF_sdb_derogation_arret_ventil', payload '{"action":"on","battery":20,"click":"on","linkquality":255,"update":{"installed_version":604241926,"latest_version":604241926,"state":"idle"},"update_available":false}'
info 2024-11-17 20:52:28z2m:mqtt: MQTT publish: topic 'z2m/z2m_Btn01_ONOFF_sdb_derogation_arret_ventil', payload '{"action":"","battery":20,"click":null,"linkquality":255,"update":{"installed_version":604241926,"latest_version":604241926,"state":"idle"},"update_available":false}'
info 2024-11-17 20:52:28z2m:mqtt: MQTT publish: topic 'z2m/z2m_Btn01_ONOFF_sdb_derogation_arret_ventil', payload '{"action":null,"battery":20,"click":"","linkquality":255,"update":{"installed_version":604241926,"latest_version":604241926,"state":"idle"},"update_available":false}'
info 2024-11-17 20:52:28z2m:mqtt: MQTT publish: topic 'z2m/z2m_Btn01_ONOFF_sdb_derogation_arret_ventil/action', payload 'on'
info 2024-11-17 20:52:28z2m:mqtt: MQTT publish: topic 'z2m/z2m_Btn01_ONOFF_sdb_derogation_arret_ventil/click', payload 'on'
L’entité HA aussi mais ne m’affiche pas de libellé.
L’automatisation ne régi pas non plus avec ça :
alias: BTN01 - Nouvelle automatisation
description: Créer une notification persistante lorsque le bouton est activé
trigger:
- platform: event
event_type: z2m_event
event_data:
device_id: sensor.z2m_btn01_onoff_sdb_derogation_arret_ventil_click
action:
- choose:
- conditions:
- condition: template
value_template: "{{ trigger.event.data.command == 'off' }}"
sequence:
- data:
title: Bouton Ventilation
message: Appui court sur OFF (0)
action: persistent_notification.create
- conditions:
- condition: template
value_template: "{{ trigger.event.data.command == 'on' }}"
sequence:
- data:
title: Bouton Ventilation
message: Appui court sur ON (1)
action: persistent_notification.create
- conditions:
- condition: template
value_template: "{{ trigger.event.data.command == 'brightness_move_down' }}"
sequence:
- data:
title: Bouton Ventilation
message: Appui long vers OFF (0)
action: persistent_notification.create
- conditions:
- condition: template
value_template: "{{ trigger.event.data.command == 'brightness_move_up' }}"
sequence:
- data:
title: Bouton Ventilation
message: Appui long vers ON (1)
action: persistent_notification.create
- conditions:
- condition: template
value_template: "{{ trigger.event.data.command == 'brightness_stop' }}"
sequence:
- data:
title: Bouton Ventilation
message: Bouton en repos
action: persistent_notification.create
mode: single
Dans nodered, un debug sur un event state ne m’affiche rien non plus (trop rapide ?)
Quelqu’un a une idée car je sèche sur ce probleme ?
Merci