Skip to content
Snippets Groups Projects
Commit 6b87ad32 authored by 3d's avatar 3d
Browse files

Merge branch 'matt-master-patch-50853' into 'master'

added door/status_once automation

See merge request !18
parents 0127cf5f 5cd924fd
No related branches found
No related tags found
1 merge request!18added door/status_once automation
......@@ -177,6 +177,36 @@ automation ansible:
data: {}
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
- alias: ANSIBLE_zonenstatus_send_telegram
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