Skip to content
Snippets Groups Projects
Commit ad3f2020 authored by void's avatar void
Browse files
parents 0c9d3b40 6b87ad32
No related branches found
No related tags found
No related merge requests found
...@@ -177,6 +177,36 @@ automation ansible: ...@@ -177,6 +177,36 @@ automation ansible:
data: {} data: {}
mode: restart mode: restart
# send zonenstatus once on change to MQTT
- alias: ANSIBLE_zonenstatus_send_once_MQTT
description: Sendet den Zonenstatus EINMALIG (on change) per MQTT
trigger:
- platform: state
entity_id:
- input_select.zonenstatus
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_select.zonenstatus
state: open
sequence:
- service: mqtt.publish
data:
topic: warpzone/door/status_once
payload: OPEN
- conditions:
- condition: state
entity_id: input_select.zonenstatus
state: closed
sequence:
- service: mqtt.publish
data:
topic: warpzone/door/status_once
payload: CLOSED
mode: restart
# send zonenstatus to telegram # send zonenstatus to telegram
- alias: ANSIBLE_zonenstatus_send_telegram - alias: ANSIBLE_zonenstatus_send_telegram
description: Sendet den Zonenstatus per Telegram-Bot description: Sendet den Zonenstatus per Telegram-Bot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment