Skip to content
Snippets Groups Projects
Commit 5cd924fd authored by matt's avatar matt
Browse files

added door/status_once automation

parent 2d8c371c
No related branches found
No related tags found
1 merge request!18added door/status_once automation
...@@ -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