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

hauptschalter steuert zonenstatus

parent de7ba3ea
No related branches found
No related tags found
1 merge request!20hauptschalter steuert zonenstatus
...@@ -47,5 +47,5 @@ binary_sensor: ...@@ -47,5 +47,5 @@ binary_sensor:
inverted: true inverted: true
filters: filters:
- delayed_on_off: 500ms - delayed_on_off: 500ms
name: "warpzone Status" name: "esphome_status_Hauptschalter"
device_class: presence device_class: presence
...@@ -54,13 +54,14 @@ influxdb: ...@@ -54,13 +54,14 @@ influxdb:
token: {{ influxdb_token }} token: {{ influxdb_token }}
default_measurement: units default_measurement: units
# zonenstatus wird vom hauptschalter gesteuert, switch02 ping ist nicht mehr notwendig
# https://www.home-assistant.io/integrations/ping/ # https://www.home-assistant.io/integrations/ping/
binary_sensor: #binary_sensor:
- platform: ping # - platform: ping
host: TL-SG3452X # host: TL-SG3452X
name: "Switch02" # name: "Switch02"
count: 3 # count: 3
scan_interval: 20 # scan_interval: 20
# https://www.home-assistant.io/integrations/rest_command/ # https://www.home-assistant.io/integrations/rest_command/
rest_command: rest_command:
...@@ -109,15 +110,16 @@ automation ansible: ...@@ -109,15 +110,16 @@ automation ansible:
# set zonenstatus # set zonenstatus
- alias: ANSIBLE_zonenstatus_set - alias: ANSIBLE_zonenstatus_set
description: Speichert Zonenstatus in einem Helper description: Speichert Zonenstatus in einem Helper
mode: restart
trigger: trigger:
- platform: state - platform: state
entity_id: entity_id:
- binary_sensor.switch02 - binary_sensor.esphome_status_hauptschalter
from: "off" from: "off"
to: "on" to: "on"
- platform: state - platform: state
entity_id: entity_id:
- binary_sensor.switch02 - binary_sensor.esphome_status_hauptschalter
from: "on" from: "on"
to: "off" to: "off"
condition: [] condition: []
...@@ -125,7 +127,7 @@ automation ansible: ...@@ -125,7 +127,7 @@ automation ansible:
- choose: - choose:
- conditions: - conditions:
- condition: state - condition: state
entity_id: binary_sensor.switch02 entity_id: binary_sensor.esphome_status_hauptschalter
state: "on" state: "on"
sequence: sequence:
- service: input_select.select_option - service: input_select.select_option
...@@ -135,7 +137,7 @@ automation ansible: ...@@ -135,7 +137,7 @@ automation ansible:
entity_id: input_select.zonenstatus entity_id: input_select.zonenstatus
- conditions: - conditions:
- condition: state - condition: state
entity_id: binary_sensor.switch02 entity_id: binary_sensor.esphome_status_hauptschalter
state: "off" state: "off"
sequence: sequence:
- service: input_select.select_option - service: input_select.select_option
...@@ -143,7 +145,6 @@ automation ansible: ...@@ -143,7 +145,6 @@ automation ansible:
option: closed option: closed
target: target:
entity_id: input_select.zonenstatus entity_id: input_select.zonenstatus
mode: restart
# send zonenstatus to MQTT, REST # send zonenstatus to MQTT, REST
- alias: ANSIBLE_zonenstatus_send_MQTT_REST - alias: ANSIBLE_zonenstatus_send_MQTT_REST
......
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