Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-warpzone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infrastruktur
ansible-warpzone
Commits
ceddf326
Commit
ceddf326
authored
2 years ago
by
matt
Browse files
Options
Downloads
Patches
Plain Diff
hauptschalter steuert zonenstatus
parent
de7ba3ea
No related branches found
No related tags found
1 merge request
!20
hauptschalter steuert zonenstatus
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
intern/docker_esphome/templates/config/esphome_status.yaml
+1
-1
1 addition, 1 deletion
intern/docker_esphome/templates/config/esphome_status.yaml
intern/docker_homeassistant/templates/config/configuration.yaml
+12
-11
12 additions, 11 deletions
.../docker_homeassistant/templates/config/configuration.yaml
with
13 additions
and
12 deletions
intern/docker_esphome/templates/config/esphome_status.yaml
+
1
−
1
View file @
ceddf326
...
...
@@ -47,5 +47,5 @@ binary_sensor:
inverted
:
true
filters
:
-
delayed_on_off
:
500ms
name
:
"
warpzone
Status
"
name
:
"
esphome_status_Hauptschalter
"
device_class
:
presence
This diff is collapsed.
Click to expand it.
intern/docker_homeassistant/templates/config/configuration.yaml
+
12
−
11
View file @
ceddf326
...
...
@@ -54,13 +54,14 @@ influxdb:
token
:
{{
influxdb_token
}}
default_measurement
:
units
# zonenstatus wird vom hauptschalter gesteuert, switch02 ping ist nicht mehr notwendig
# https://www.home-assistant.io/integrations/ping/
binary_sensor
:
-
platform
:
ping
host
:
TL-SG3452X
name
:
"
Switch02"
count
:
3
scan_interval
:
20
#
binary_sensor:
#
- platform: ping
#
host: TL-SG3452X
#
name: "Switch02"
#
count: 3
#
scan_interval: 20
# https://www.home-assistant.io/integrations/rest_command/
rest_command
:
...
...
@@ -109,15 +110,16 @@ automation ansible:
# set zonenstatus
-
alias
:
ANSIBLE_zonenstatus_set
description
:
Speichert Zonenstatus in einem Helper
mode
:
restart
trigger
:
-
platform
:
state
entity_id
:
-
binary_sensor.
switch02
-
binary_sensor.
esphome_status_hauptschalter
from
:
"
off"
to
:
"
on"
-
platform
:
state
entity_id
:
-
binary_sensor.
switch02
-
binary_sensor.
esphome_status_hauptschalter
from
:
"
on"
to
:
"
off"
condition
:
[]
...
...
@@ -125,7 +127,7 @@ automation ansible:
-
choose
:
-
conditions
:
-
condition
:
state
entity_id
:
binary_sensor.
switch02
entity_id
:
binary_sensor.
esphome_status_hauptschalter
state
:
"
on"
sequence
:
-
service
:
input_select.select_option
...
...
@@ -135,7 +137,7 @@ automation ansible:
entity_id
:
input_select.zonenstatus
-
conditions
:
-
condition
:
state
entity_id
:
binary_sensor.
switch02
entity_id
:
binary_sensor.
esphome_status_hauptschalter
state
:
"
off"
sequence
:
-
service
:
input_select.select_option
...
...
@@ -143,7 +145,6 @@ automation ansible:
option
:
closed
target
:
entity_id
:
input_select.zonenstatus
mode
:
restart
# send zonenstatus to MQTT, REST
-
alias
:
ANSIBLE_zonenstatus_send_MQTT_REST
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment