diff --git a/intern/docker_homeassistant/templates/config/configuration.yaml b/intern/docker_homeassistant/templates/config/configuration.yaml index 54780ce1bed70edbd7c10744d93baa56e82650a9..28c1218559d5d53b201ebb0e94e7fd2ed3525d2b 100644 --- a/intern/docker_homeassistant/templates/config/configuration.yaml +++ b/intern/docker_homeassistant/templates/config/configuration.yaml @@ -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