Skip to content

Commit

Permalink
Update temperature_switch_control.yaml
Browse files Browse the repository at this point in the history
Update trigger
  • Loading branch information
TheRealFalseReality committed Aug 21, 2024
1 parent 1e5947a commit 16a4a34
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
blueprint:
name: Aquarium - Toggle Switches Based on Temperature
description: This automation blueprint will turn switches on or off when the selected
temperature sensor is above or below a certain value. (v1.1) [Automation]
temperature sensor is above or below a certain value. (v2) [Automation]
domain: automation
source_url: https://github.com/TheRealFalseReality/aquapi/blob/main/blueprints/automation/TheRealFalseReality/temperature_switch_control.yaml
source_url: https://gist.github.com/TheRealFalseReality/9788b2f9ba2e5e51a05bd081441314d3
input:
condition:
name: Add Condition(s)
Expand Down Expand Up @@ -107,8 +107,14 @@ variables:
switchWarmOff: !input switchWarmOff
additional_actions: !input additional_actions
trigger:
- platform: state
- platform: numeric_state
entity_id: !input sensorTemperature
above: !input warmTemperature
id: above
- platform: numeric_state
entity_id: !input sensorTemperature
below: !input coolTemperature
id: below
condition: []
action:
- if:
Expand All @@ -118,21 +124,17 @@ action:
default: !input additional_actions
- choose:
- conditions:
- condition: numeric_state
entity_id: !input sensorTemperature
above: !input warmTemperature
- condition: trigger
id:
- above
sequence:
- service: switch.turn_on
data: {}
target: !input switchWarmOn
- service: switch.turn_off
data: {}
target: !input switchWarmOff
- conditions:
- condition: numeric_state
entity_id: !input sensorTemperature
below: !input coolTemperature
sequence:
default:
- service: switch.turn_off
data: {}
target: !input switchCoolOff
Expand Down

0 comments on commit 16a4a34

Please sign in to comment.