Skip to content
Snippets Groups Projects
Commit a051df1c authored by jabertwo's avatar jabertwo
Browse files

homeassistant automatisierungen via ansible - part 5

parent 0940301f
No related branches found
No related tags found
No related merge requests found
......@@ -312,6 +312,92 @@ automation ansible:
- climate.vortragsraum_vorne
mode: single
# Feinstaubsensor steuert Luftfilter
- alias: ANSIBLE_Feinstaubsensor_Luftfilter
description: Feinstaubsensor steuer Luftfilter
trigger:
- platform: time_pattern
seconds: /10
condition: []
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.feinstaub_2_5
below: 36
sequence:
- service: fan.set_percentage
data:
percentage: 33
target:
device_id: 8b6ff876340558ef11d13441afecec8d
- conditions:
- condition: numeric_state
entity_id: sensor.feinstaub_2_5
above: 35
below: 86
sequence:
- service: fan.set_percentage
data:
percentage: 66
target:
device_id: 8b6ff876340558ef11d13441afecec8d
- conditions:
- condition: numeric_state
entity_id: sensor.feinstaub_2_5
above: 85
sequence:
- service: fan.set_percentage
data:
percentage: 100
target:
device_id: 8b6ff876340558ef11d13441afecec8d
mode: restart
# Feinstaubsensor steuert Ampel
- alias: ANSIBLE_Feinstaubsensor_Ampel
description: Feinstaubsensor status auf Ampel anzeigen
trigger:
- platform: time_pattern
seconds: /10
condition: []
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.feinstaub_2_5
below: 36
sequence:
- device_id: e26403f906b93f7c6b4f5339a21f9b26
domain: select
entity_id: select.ampel_preset
type: select_option
option: Green static
- conditions:
- condition: numeric_state
entity_id: sensor.feinstaub_2_5
above: 35
below: 86
sequence:
- device_id: e26403f906b93f7c6b4f5339a21f9b26
domain: select
entity_id: select.ampel_preset
type: select_option
option: Orange static
- conditions:
- condition: numeric_state
entity_id: sensor.feinstaub_2_5
above: 85
sequence:
- device_id: e26403f906b93f7c6b4f5339a21f9b26
domain: select
entity_id: select.ampel_preset
type: select_option
option: Red static
mode: restart
# WLED rot
- alias: ANSIBLE_WLED_red
description: WLED rot
......@@ -444,91 +530,91 @@ automation ansible:
max: 30
# WLED default
alias: "ANSIBLE_WLED_default"
description: WLED Default effect
trigger:
- type: turned_on
platform: device
device_id: 33915e12bd114226dcd4718e77a27779
entity_id: binary_sensor.button_1
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
condition: []
action:
- service: light.turn_on
data: {}
target:
area_id:
- hackcenter
- kuche
- lounge
- serverrack
- service: select.select_option
data:
option: default
target:
entity_id:
- select.icicles_preset
- select.kueche_preset
- select.lightsaber01_preset
- select.lightsaber02_preset
- select.loetecke_preset
- select.loungedecke_preset
- select.rack_preset
- select.schild_preset
- select.theke_preset
- select.trocknerschlauch_preset
- select.warpcubes_preset
- select.loungetisch_preset
- select.matrix01_preset
- select.vorhang_preset
- select.lampan_preset
- alias: "ANSIBLE_WLED_default"
description: WLED Default effect
trigger:
- type: turned_on
platform: device
device_id: 33915e12bd114226dcd4718e77a27779
entity_id: binary_sensor.button_1
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
condition: []
action:
- service: light.turn_on
data: {}
target:
area_id:
- hackcenter
- kuche
- lounge
- serverrack
- service: select.select_option
data:
option: default
target:
entity_id:
- select.icicles_preset
- select.kueche_preset
- select.lightsaber01_preset
- select.lightsaber02_preset
- select.loetecke_preset
- select.loungedecke_preset
- select.rack_preset
- select.schild_preset
- select.theke_preset
- select.trocknerschlauch_preset
- select.warpcubes_preset
- select.loungetisch_preset
- select.matrix01_preset
- select.vorhang_preset
- select.lampan_preset
# WLED meteor
alias: "ANSIBLE_WLED_Meteor"
description: WLED Meteor effect
trigger:
- type: turned_on
platform: device
device_id: 33915e12bd114226dcd4718e77a27779
entity_id: binary_sensor.button_1
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 10
condition: []
action:
- service: light.turn_on
data: {}
target:
area_id:
- hackcenter
- kuche
- lounge
- serverrack
- service: select.select_option
data:
option: Meteor
target:
entity_id:
- select.icicles_preset
- select.kueche_preset
- select.lightsaber01_preset
- select.lightsaber02_preset
- select.loetecke_preset
- select.loungedecke_preset
- select.rack_preset
- select.schild_preset
- select.theke_preset
- select.trocknerschlauch_preset
- select.warpcubes_preset
- select.loungetisch_preset
- select.matrix01_preset
- select.vorhang_preset
- select.lampan_preset
mode: single
- alias: "ANSIBLE_WLED_Meteor"
description: WLED Meteor effect
trigger:
- type: turned_on
platform: device
device_id: 33915e12bd114226dcd4718e77a27779
entity_id: binary_sensor.button_1
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 10
condition: []
action:
- service: light.turn_on
data: {}
target:
area_id:
- hackcenter
- kuche
- lounge
- serverrack
- service: select.select_option
data:
option: Meteor
target:
entity_id:
- select.icicles_preset
- select.kueche_preset
- select.lightsaber01_preset
- select.lightsaber02_preset
- select.loetecke_preset
- select.loungedecke_preset
- select.rack_preset
- select.schild_preset
- select.theke_preset
- select.trocknerschlauch_preset
- select.warpcubes_preset
- select.loungetisch_preset
- select.matrix01_preset
- select.vorhang_preset
- select.lampan_preset
mode: single
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