Last active
April 29, 2022 02:41
-
-
Save kiat-huang/6d2147a5a7165be0361e14f4a4310ba4 to your computer and use it in GitHub Desktop.
Method to create a switch for a Siren for Home Assistant and Zigbee2mqtt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################# | |
## SIRENS | |
################################################################# | |
# Hall | |
- platform: mqtt | |
# https://www.zigbee2mqtt.io/devices/HS2WD-E.html | |
name: "Siren Hall" | |
unique_id: siren_hall | |
state_topic: "zigbee2mqtt/Siren Hall" | |
command_topic: "zigbee2mqtt/Siren Hall/set" | |
# | |
# mode (enum): Mode of the warning (sound effect). Allowed values: stop, burglar, fire, emergency, police_panic, fire_panic, emergency_panic | |
# level (enum): Sound level. Allowed values: low, medium, high, very_high | |
# strobe_level (enum): Intensity of the strobe. Allowed values: low, medium, high, very_high | |
# strobe (binary): Turn on/off the strobe (light) during warning. Allowed values: true or false | |
# strobe_duty_cycle (numeric): Length of the flash cycle. | |
# duration (numeric): Duration in seconds of the alarm. | |
# | |
payload_on: '{"warning": {"mode": "fire", "strobe": true, "duration": 1, "strobe_level": "low" }}' | |
payload_off: '{"warning": {"mode": "stop"}}' | |
state_on: "ON" | |
state_off: "OFF" | |
availability_topic: "zigbee2mqtt/Siren Hall/availability" | |
payload_available: "online" | |
payload_not_available: "offline" | |
optimistic: true | |
icon: mdi:alarm-light | |
qos: 1 | |
retain: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment