mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
spelling mistakes mostly
This commit is contained in:
@@ -247,7 +247,7 @@ template:
|
||||
unique_id: "custom_sensor.sprinkler_total_rain_fallen_plus_expected"
|
||||
icon: mdi:weather-pouring
|
||||
unit_of_measurement: mm
|
||||
availability: "{{ states('sensor.sprinkler_recent_rain_precipitation') not in ['unkown', 'unavailable'] }}"
|
||||
availability: "{{ states('sensor.sprinkler_recent_rain_precipitation') not in ['unknown', 'unavailable'] }}"
|
||||
state: >
|
||||
{{ (states('sensor.sprinkler_recent_rain_precipitation') | float + states('sensor.sprinkler_total_expected_precipitation') | float(default=100.0) ) | round(2) }}
|
||||
|
||||
@@ -293,12 +293,12 @@ template:
|
||||
icon: mdi:clock
|
||||
unit_of_measurement: seconds
|
||||
availability: >
|
||||
{{ states('sensor.opensprinkler_water_level') not in ['unkown', 'unavailable'] and
|
||||
states('input_number.front_yard_station_minutes') not in ['unkown', 'unavailable'] and
|
||||
states('input_number.east_side_station_minutes') not in ['unkown', 'unavailable'] and
|
||||
states('input_number.back_yard_station_minutes') not in ['unkown', 'unavailable'] and
|
||||
states('input_number.west_side_station_minutes') not in ['unkown', 'unavailable'] and
|
||||
states('input_number.sprinkler_repeat_program_amount') not in ['unkown', 'unavailable'] }}
|
||||
{{ states('sensor.opensprinkler_water_level') not in ['unknown', 'unavailable'] and
|
||||
states('input_number.front_yard_station_minutes') not in ['unknown', 'unavailable'] and
|
||||
states('input_number.east_side_station_minutes') not in ['unknown', 'unavailable'] and
|
||||
states('input_number.back_yard_station_minutes') not in ['unknown', 'unavailable'] and
|
||||
states('input_number.west_side_station_minutes') not in ['unknown', 'unavailable'] and
|
||||
states('input_number.sprinkler_repeat_program_amount') not in ['unknown', 'unavailable'] }}
|
||||
state: >
|
||||
{{ states("sensor.opensprinkler_water_level")| float(default=0) | multiply(0.01) | multiply(states("input_number.front_yard_station_minutes") | multiply(60)) | float(default=0) +
|
||||
states("sensor.opensprinkler_water_level")| float(default=0) | multiply(0.01) | multiply(states("input_number.east_side_station_minutes") | multiply(60)) | float(default=0) +
|
||||
@@ -352,22 +352,22 @@ template:
|
||||
device_class: moisture
|
||||
delay_off:
|
||||
minutes: 15
|
||||
# availability: "{{ states('sensor.rain_quarter_hourly_precipitation') not in ['unkown', 'unavailable'] }}"
|
||||
# availability: "{{ states('sensor.rain_quarter_hourly_precipitation') not in ['unknown', 'unavailable'] }}"
|
||||
# state: >
|
||||
# {{ states('sensor.rain_quarter_hourly_precipitation') | float(default=0) > 0.0 }}
|
||||
availability: "{{ states('binary_sensor.is_raining') not in ['unkown', 'unavailable'] }}"
|
||||
availability: "{{ states('binary_sensor.is_raining') not in ['unknown', 'unavailable'] }}"
|
||||
state: >
|
||||
{{ states('binary_sensor.is_raining') }}
|
||||
|
||||
- trigger:
|
||||
# - platform: homeassistant
|
||||
# event: start
|
||||
# - platform: homeassistant
|
||||
# event: start
|
||||
|
||||
# - platform: time
|
||||
# at: '01:00:00'
|
||||
# - platform: time
|
||||
# at: '01:00:00'
|
||||
|
||||
# - platform: state
|
||||
# entity_id: input_boolean.sprinkler_is_winterized
|
||||
# - platform: state
|
||||
# entity_id: input_boolean.sprinkler_is_winterized
|
||||
|
||||
binary_sensor:
|
||||
- name: "Sprinkler: In Season"
|
||||
@@ -378,37 +378,28 @@ template:
|
||||
# - trigger:
|
||||
# - platform: homeassistant
|
||||
# event: start
|
||||
|
||||
# - platform: time
|
||||
# at: '01:00:00'
|
||||
|
||||
# - platform: state
|
||||
# entity_id: input_boolean.sprinkler_is_winterized
|
||||
|
||||
# - platform: event
|
||||
# event_type: event_template_reloaded
|
||||
# id: "reload"
|
||||
|
||||
# binary_sensor:
|
||||
# - name: "Sprinkler: Should Winterize"
|
||||
# unique_id: "custom_binary_sensor.sprinkler_should_winterize"
|
||||
# device_class: problem
|
||||
# state: "{{ iif(is_state('binary_sensor.sprinkler_in_season', 'off'), iif(is_state('input_boolean.sprinkler_is_winterized', 'off'), 'on', 'off'), 'off') }}"
|
||||
|
||||
# - trigger:
|
||||
# - platform: homeassistant
|
||||
# event: start
|
||||
|
||||
# - platform: time
|
||||
# at: '01:00:00'
|
||||
|
||||
# - platform: state
|
||||
# entity_id: input_boolean.sprinkler_is_winterized
|
||||
|
||||
# - platform: event
|
||||
# event_type: event_template_reloaded
|
||||
# id: "reload"
|
||||
|
||||
# binary_sensor:
|
||||
# - name: "Sprinkler: Should Dewinterize"
|
||||
# unique_id: "custom_binary_sensor.sprinkler_should_dewinterize"
|
||||
@@ -444,7 +435,6 @@ automation:
|
||||
data:
|
||||
message: "{{now().strftime('%Y-%m-%d')}}T{{now().strftime('%H:%M:%S.%f')}},{{states('sensor.ecowitt_wh40_21917_precipitation')}},{{states('binary_sensor.is_raining')}},{{state_attr('binary_sensor.is_raining','sample_count')}},{{state_attr('binary_sensor.is_raining','sample_duration')}},{{state_attr('binary_sensor.is_raining','min_gradient')}},{{state_attr('binary_sensor.is_raining','gradient')}}"
|
||||
|
||||
|
||||
- alias: "Log Soil Moisture"
|
||||
id: 362fbc8d-64f1-47dd-a686-e460e9c18690
|
||||
trigger:
|
||||
@@ -503,7 +493,7 @@ automation:
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.sun_next_dawn
|
||||
condition: "{{ states('sensor.sun_next_dawn') not in ['unkown', 'unavailable'] }}"
|
||||
condition: "{{ states('sensor.sun_next_dawn') not in ['unknown', 'unavailable'] }}"
|
||||
action:
|
||||
- service: input_datetime.set_datetime
|
||||
target:
|
||||
@@ -532,7 +522,7 @@ automation:
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.is_raining
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
condition: or
|
||||
|
||||
Reference in New Issue
Block a user