diff --git a/automation day wind max b/automation day wind max new file mode 100644 index 0000000..a839846 --- /dev/null +++ b/automation day wind max @@ -0,0 +1,37 @@ +alias: Weather - Day Wind Max +description: "" +trigger: + - platform: state + entity_id: + - sensor.gw1100a_v2_2_3_wind_gust + id: wind_speed + - platform: time + at: "00:00:00" + id: midnight_reset +condition: [] +action: + - choose: + - conditions: + - condition: trigger + id: + - wind_speed + - condition: numeric_state + entity_id: sensor.gw1100a_v2_2_3_wind_gust + above: input_number.day_wind_max + sequence: + - service: input_number.set_value + data: + value: "{{states('sensor.gw1100a_v2_2_3_wind_gust')}}" + target: + entity_id: input_number.day_wind_max + - conditions: + - condition: trigger + id: + - midnight_reset + sequence: + - service: input_number.set_value + data: + value: 0 + target: + entity_id: input_number.day_wind_max +mode: single