Update Automation Records, Temp and Wind
This commit is contained in:
@@ -3,11 +3,11 @@ description: ""
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- sensor.gw1100a_v2_2_3_outdoor_temperature
|
||||
- sensor.<OUTDOOR TEMP SENSOR>
|
||||
id: temp_change
|
||||
- platform: state
|
||||
entity_id:
|
||||
- sensor.gw1100a_v2_2_3_wind_gust
|
||||
- sensor.<WIND SENSOR>
|
||||
id: wind_speed
|
||||
condition: []
|
||||
action:
|
||||
@@ -17,12 +17,12 @@ action:
|
||||
id:
|
||||
- temp_change
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.gw1100a_v2_2_3_outdoor_temperature
|
||||
entity_id: sensor.<OUTDOOR TEMP SENSOR>
|
||||
above: input_number.highest_recorded_temp
|
||||
sequence:
|
||||
- service: input_number.set_value
|
||||
data:
|
||||
value: "{{states('sensor.gw1100a_v2_2_3_outdoor_temperature')}}"
|
||||
value: "{{states('sensor.<OUTDOOR TEMP SENSOR>')}}"
|
||||
target:
|
||||
entity_id: input_number.highest_recorded_temp
|
||||
- service: input_datetime.set_datetime
|
||||
@@ -45,12 +45,12 @@ action:
|
||||
id:
|
||||
- temp_change
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.gw1100a_v2_2_3_outdoor_temperature
|
||||
entity_id: sensor.<OUTDOOR TEMP SENSOR>
|
||||
below: input_number.lowest_recorded_temp
|
||||
sequence:
|
||||
- service: input_number.set_value
|
||||
data:
|
||||
value: "{{states('sensor.gw1100a_v2_2_3_outdoor_temperature')}}"
|
||||
value: "{{states('sensor.<OUTDOOR TEMP SENSOR>')}}"
|
||||
target:
|
||||
entity_id: input_number.lowest_recorded_temp
|
||||
- service: input_datetime.set_datetime
|
||||
@@ -73,12 +73,12 @@ action:
|
||||
id:
|
||||
- wind_speed
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.gw1100a_v2_2_3_wind_gust
|
||||
entity_id: sensor.<WIND SENSOR>
|
||||
above: input_number.highest_recorded_wind_speed
|
||||
sequence:
|
||||
- service: input_number.set_value
|
||||
data:
|
||||
value: "{{states('sensor.gw1100a_v2_2_3_wind_gust')}}"
|
||||
value: "{{states('sensor.<WIND SENSOR>')}}"
|
||||
target:
|
||||
entity_id: input_number.highest_recorded_wind_speed
|
||||
- service: input_datetime.set_datetime
|
||||
|
||||
Reference in New Issue
Block a user