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

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

improved automations

See merge request !16
parents 99c61ba1 36fa379c
No related branches found
No related tags found
1 merge request!16improved automations
...@@ -59,7 +59,7 @@ binary_sensor: ...@@ -59,7 +59,7 @@ binary_sensor:
host: TL-SG3452X host: TL-SG3452X
name: "Switch02" name: "Switch02"
count: 3 count: 3
scan_interval: 5 scan_interval: 20
# https://www.home-assistant.io/integrations/rest_command/ # https://www.home-assistant.io/integrations/rest_command/
rest_command: rest_command:
...@@ -96,7 +96,7 @@ input_select: ...@@ -96,7 +96,7 @@ input_select:
- closed - closed
icon: mdi:door-open icon: mdi:door-open
# current time for # current time for zonenstatus telegram
sensor: sensor:
- platform: time_date - platform: time_date
display_options: display_options:
...@@ -142,7 +142,7 @@ automation ansible: ...@@ -142,7 +142,7 @@ automation ansible:
option: closed option: closed
target: target:
entity_id: input_select.zonenstatus entity_id: input_select.zonenstatus
mode: single mode: restart
# send zonenstatus to MQTT, REST # send zonenstatus to MQTT, REST
- alias: ANSIBLE_zonenstatus_send_MQTT_REST - alias: ANSIBLE_zonenstatus_send_MQTT_REST
...@@ -175,7 +175,7 @@ automation ansible: ...@@ -175,7 +175,7 @@ automation ansible:
payload: CLOSED payload: CLOSED
- service: rest_command.set_zone_status_closed - service: rest_command.set_zone_status_closed
data: {} data: {}
mode: single mode: restart
# send zonenstatus to telegram # send zonenstatus to telegram
- alias: ANSIBLE_zonenstatus_send_telegram - alias: ANSIBLE_zonenstatus_send_telegram
...@@ -207,4 +207,4 @@ automation ansible: ...@@ -207,4 +207,4 @@ automation ansible:
target: -1001893089134 target: -1001893089134
timeout: 30 timeout: 30
message: Die warpzone ist seit {{ '{{' }} states('sensor.time') {{ '}}' }} geschlossen! message: Die warpzone ist seit {{ '{{' }} states('sensor.time') {{ '}}' }} geschlossen!
mode: single mode: restart
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