Created
November 23, 2025 19:23
-
-
Save AndrewAubury/0b75203fae3c9885622d5347f90fb6f6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| blueprint: | |
| name: Sonoff SNZB-01 Wireless Switch via MQTT | |
| description: Handle an SNZB-01's various inputs | |
| domain: automation | |
| input: | |
| mqtt_channel: | |
| name: MQTT Topic | |
| description: "MQTT Topic to subscribe to" | |
| default: "" | |
| selector: | |
| text: | |
| action_button_short: | |
| name: (Optional) Button short press | |
| description: Action to run on short button press. | |
| default: [] | |
| selector: | |
| action: {} | |
| action_button_long: | |
| name: (Optional) Button long press | |
| description: Action to run on long button press. | |
| default: [] | |
| selector: | |
| action: {} | |
| action_button_double: | |
| name: (Optional) Button double press | |
| description: Action to run on double button press. | |
| default: [] | |
| selector: | |
| action: {} | |
| triggers: | |
| - trigger: mqtt | |
| topic: !input mqtt_channel | |
| actions: | |
| - choose: | |
| - conditions: | |
| - condition: template | |
| value_template: "{{trigger.payload == 'single'}}" | |
| sequence: !input action_button_short | |
| - conditions: | |
| - condition: template | |
| value_template: "{{trigger.payload == 'long'}}" | |
| sequence: !input action_button_long | |
| - conditions: | |
| - condition: template | |
| value_template: "{{trigger.payload == 'double'}}" | |
| sequence: !input action_button_double |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment