Update Automation Rain Records
This commit is contained in:
@@ -3,18 +3,18 @@ description: ""
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- sensor.gw1100a_v2_2_3_total_rain
|
- sensor.<TOTAL RAIN SENSOR>
|
||||||
condition: []
|
condition: []
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: sensor.gw1100a_v2_2_3_daily_rain_rate
|
entity_id: sensor.<DAILY RAIN SENSOR>
|
||||||
above: input_number.highest_daily_recorded_rainfall
|
above: input_number.highest_daily_recorded_rainfall
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_number.set_value
|
- service: input_number.set_value
|
||||||
data:
|
data:
|
||||||
value: "{{states('sensor.gw1100a_v2_2_3_daily_rain_rate')}}"
|
value: "{{states('sensor.<DAILY RAIN SENSOR>')}}"
|
||||||
target:
|
target:
|
||||||
entity_id: input_number.highest_daily_recorded_rainfall
|
entity_id: input_number.highest_daily_recorded_rainfall
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
@@ -24,12 +24,12 @@ action:
|
|||||||
entity_id: input_datetime.highest_daily_rainfall_date
|
entity_id: input_datetime.highest_daily_rainfall_date
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: sensor.gw1100a_v2_2_3_weekly_rain_rate
|
entity_id: sensor.<WEEKLY RAIN SENSOR>
|
||||||
above: input_number.highest_weekly_recorded_rainfall
|
above: input_number.highest_weekly_recorded_rainfall
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_number.set_value
|
- service: input_number.set_value
|
||||||
data:
|
data:
|
||||||
value: "{{states('sensor.gw1100a_v2_2_3_weekly_rain_rate')}}"
|
value: "{{states('sensor.<WEEKLY RAIN SENSOR>')}}"
|
||||||
target:
|
target:
|
||||||
entity_id: input_number.highest_weekly_recorded_rainfall
|
entity_id: input_number.highest_weekly_recorded_rainfall
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
@@ -39,12 +39,12 @@ action:
|
|||||||
entity_id: input_datetime.highest_weekly_rainfall_date
|
entity_id: input_datetime.highest_weekly_rainfall_date
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: sensor.gw1100a_v2_2_3_monthly_rain_rate
|
entity_id: sensor.<MONTHLY RAIN SENSOR>
|
||||||
above: input_number.highest_monthly_recorded_rainfall
|
above: input_number.highest_monthly_recorded_rainfall
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_number.set_value
|
- service: input_number.set_value
|
||||||
data:
|
data:
|
||||||
value: "{{states('sensor.gw1100a_v2_2_3_monthly_rain_rate')}}"
|
value: "{{states('sensor.<MONTHLY RAIN SENSOR>')}}"
|
||||||
target:
|
target:
|
||||||
entity_id: input_number.highest_monthly_recorded_rainfall
|
entity_id: input_number.highest_monthly_recorded_rainfall
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
|
|||||||
Reference in New Issue
Block a user