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
7b7d2deb
Commit
7b7d2deb
authored
1 year ago
by
jabertwo
Browse files
Options
Downloads
Patches
Plain Diff
homeassistant automationen per ansible
parent
1cdfcd99
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
intern/docker_homeassistant/templates/config/configuration.yaml
+51
-2
51 additions, 2 deletions
.../docker_homeassistant/templates/config/configuration.yaml
with
51 additions
and
2 deletions
intern/docker_homeassistant/templates/config/configuration.yaml
+
51
−
2
View file @
7b7d2deb
...
...
@@ -248,10 +248,59 @@ automation ansible:
timeout
:
30
message
:
Die warpzone ist seit {{ '{{' }} states('sensor.time') {{ '}}' }} geschlossen!
mode
:
restart
# Stromverbrauch auf Telegram senden
-
alias
:
ANSIBLE_stromverbrauch_send_telegram
description
:
Sendet alle 10 Minuten den Stromverbrauch per Telegram
trigger
:
-
platform
:
time_platform
minutes
:
/10
condition
:
[]
action
:
-
if
:
-
condition
:
state
entity_id
:
automation.ansible_zonenstatus_send_telegram
attribute
:
current
state
:
"
1"
then
:
-
wait_for_trigger
:
-
platform
:
state
entity_id
:
-
automation.ansible_zonenstatus_send_telegram
attribute
:
current
to
:
"
0"
-
service
:
telegram_bot.send_message
data
:
target
:
-1001341516106
timeout
:
30
message
:
>-
{{ states('sensor.esphome_status_power') }} kW bei angenehmen {{ states('sensor.temp') }}°C
mode
:
restart
# Licht im Hackcenter dimmen
-
alias
:
ANSIBLE_dali_licht_hackcenter
description
:
Ruft den Helper aus um per MQTT das Licht zu dimmen
trigger
:
-
platform
:
state
entity_id
:
-
input_number.dali_licht_hackcenter
for
:
hours
:
0
minutes
:
0
seconds
:
0
condition
:
[]
action
:
-
service
:
mqtt.publish
data
:
topic
:
light/dali
payload_template
:
"
{{
states('input_number.dali_licht_hackcenter')
|
int
}}"
mode
:
restart
#turn off all radiators
#
turn off all radiators
-
alias
:
ANSIBLE_heizung_aus
description
:
"
Schaltet
alle
Heizungen
aus
"
description
:
Schaltet alle Heizungen aus
trigger
:
[]
condition
:
[]
action
:
...
...
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