Mapping Zigbee2MQTT → Gladys pour la sirène Heiman HS2WD-E

Bonjour,

Suite à la discussion sur le mapping Zigbee2MQTT → Gladys pour les alarmes, je crée un sujet spécifique pour la sirène intérieure Heiman HS2WD-E.

J’utilise cette sirène avec Zigbee2MQTT. Elle est bien reconnue et remonte dans Gladys, mais certaines fonctionnalités exposées par Zigbee2MQTT ne semblent pas actuellement mappées vers des fonctionnalités Gladys.

L’objectif serait de pouvoir exploiter directement dans Gladys les différentes fonctions de la sirène, notamment depuis les scènes, sans devoir envoyer manuellement des commandes MQTT.

Matériel :

  • Marque : Heiman
  • Modèle : HS2WD-E
  • Type : sirène intérieure
  • Intégration : Zigbee2MQTT

Documentation Zigbee2MQTT :

Sujet d’origine :

doc zigbee:

Model HS2WD-E
Vendor Heiman
Description Smart siren
Exposes battery, max_duration, warning
Picture Heiman HS2WD-E

Triggering the alarm

The alarm can be trigged by publishing to zigbee2mqtt/FRIENDLY_NAME/set message

{"warning": {"duration": 10, "mode": "emergency", "strobe": false}}.

Where:

  • duration: the number of seconds the alarm will be on (max is 1800 seconds)
  • mode: stop or emergency
  • strobe: true or false will let the strobe flash once during the alarm

Exposes

Battery (numeric)

Remaining battery in %, can take up to 24 hours before reported.

Value can be found in the published state on the battery property.

It’s not possible to read (/get) or write (/set) this value.

The minimal value is 0 and the maximum value is 100.

The unit of this value is %.

Max duration (numeric)

Max duration of Siren.

Value can be found in the published state on the max_duration property.

To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"max_duration": ""}.

To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"max_duration": NEW_VALUE}.

The minimal value is 0 and the maximum value is 600.

The unit of this value is s.

Warning (composite)

Can be set by publishing to zigbee2mqtt/FRIENDLY_NAME/set with payload {"warning": {"strobe": VALUE, "strobe_duty_cycle": VALUE, "duration": VALUE, "mode": VALUE}}

  • strobe (binary): Turn on/off the strobe (light) during warning allowed values: true or false
  • strobe_duty_cycle (numeric): Length of the flash cycle max value is 10
  • duration (numeric): Duration in seconds of the alarm unit is s
  • mode (enum): Mode of the warning (sound effect) allowed values: stop, emergency

Merci :slightly_smiling_face: