Files
fresh-home/lovelace/phone/plants.yaml
T
2025-10-27 16:49:34 -04:00

217 lines
9.5 KiB
YAML

title: Plants
path: plants
icon: mdi:flower
type: sidebar
badges: []
subview: true
cards:
- type: vertical-stack
cards:
- type: grid
square: false
columns: 3
cards: #colors = ['#4dab6d', "#72c66e", "#c1da64", "#f6ee54", "#fabd57", "#f36d54", "#ee4d55"]
- type: gauge
entity: sensor.sprinkler_total_rain_fallen_plus_expected
needle: true
min: 5
max: 25
segments:
- from: 5
color: "#4dab6d"
- from: 10
color: "#c1da64"
- from: 15
color: "#fabd57"
- from: 20.6
color: "#ee4d55"
name: Recent Precipitation
- type: gauge
entity: input_number.sprinkler_maximum_temperature_measured
needle: true
min: 61
max: 97
segments:
- from: 61
color: var(--info-color)
- from: 70
color: "#4dab6d"
- from: 79
color: "#c1da64"
- from: 88
color: "#fabd57"
name: Recent High Temp
- type: gauge
entity: sensor.sprinkler_days_since_last_watering
needle: true
min: 0
max: 4
segments:
- from: 0
color: "#ee4d55"
- from: 1
color: "#fabd57"
- from: 2
color: "#c1da64"
- from: 3
color: "#4dab6d"
name: Expected Days Between Watering
- !include /config/lovelace/plant-cards/plant_sensor_cea4.yaml
- !include /config/lovelace/plant-cards/plant_sensor_3eae.yaml
- !include /config/lovelace/plant-cards/plant_sensor_3eb0.yaml
- !include /config/lovelace/plant-cards/hasta_soil_sensor.yaml
- !include /config/lovelace/plant-cards/daisy_soil_sensor.yaml
- type: vertical-stack
view_layout:
position: sidebar
cards:
- type: custom:mushroom-entity-card
entity: input_boolean.lovelace_show_sprinklers
name: Sprinklers
secondary_info: none
tap_action:
action: toggle
- type: entities
entities:
- entity: sensor.rain_gauge_precipitation
secondary_info: last-updated
- entity: binary_sensor.is_raining
secondary_info: last-changed
- entity: binary_sensor.sprinkler_raining
secondary_info: last-changed
- type: conditional
conditions:
- entity: input_boolean.lovelace_show_sprinklers
state: "on"
card:
type: vertical-stack
cards:
- type: custom:mushroom-entity-card
entity: input_boolean.sprinkler_is_winterized
name: Winterized
secondary_info: none
tap_action:
action: toggle
- type: glance
show_name: true
show_icon: true
show_state: true
entities:
- entity: binary_sensor.sprinkler_should_winterize
- entity: binary_sensor.sprinkler_should_dewinterize
- type: markdown
content: >-
{%- if is_state('switch.opensprinkler_enabled','on') %}
{%- if states('input_number.sprinkler_maximum_temperature_measured') |
int(default=0) > states('input_number.sprinkler_temp_above_low_run') |
int(default=0) %}
{%- if states('input_number.sprinkler_maximum_temperature_measured') | int(default=0) > states('input_number.sprinkler_temp_above_medium_run') | int(default=0) %}
{%- if states('input_number.sprinkler_maximum_temperature_measured') | int(default=0) > states('input_number.sprinkler_temp_above_high_run') | int(default=0) %}
It got hot enough to run the sprinklers at the high water level ({{ states('input_number.sprinkler_temp_above_high_run') | int(default=0) }}°F)
{%- if states('sensor.sprinkler_total_expected_precipitation') | float(default=0) < 20.1 -%}
There isn't enough recent and/or expected rain to cancel watering the lawn
{%- else %}
Too much precipitation has fallen or is expected
{% endif %}
{%- if states('sensor.sprinkler_days_since_last_watering') | float(default=0) > 1.0 -%}
It got so hot that the lawn will be watered again, even though it was just watered
{%- else %}
This should never show up
{% endif %}
{%- else %}
It got hot enough to run the sprinklers at the medium water level ({{ states('input_number.sprinkler_temp_above_medium_run') | int(default=0) }}°F)
{%- if states('sensor.sprinkler_total_expected_precipitation') | float(default=0) < 15.1 %}
There isn't enough recent and/or expected rain to cancel watering the lawn
{%- else %}
Too much precipitation has fallen or is expected
{% endif %}
{%- if states('sensor.sprinkler_days_since_last_watering') | float(default=0) > 2.0 %}
The lawn wasn't watered this morning
{%- else %}
The lawn was just watered and it didn't get warm enough to water it again
{% endif %}
{% endif %}
{%- else %}
It got hot enough to run the sprinklers at the low water level ({{ states('input_number.sprinkler_temp_above_low_run') | int(default=0) }}°F)
{%- if states('sensor.sprinkler_total_expected_precipitation') | float(default=0) < 10.1 %}
There isn't enough recent and/or expected rain to cancel watering the lawn
{%- else %}
Too much precipitation has fallen or is expected
{% endif %}
{%- if states('sensor.sprinkler_days_since_last_watering') | float(default=0) > 3.0 %}
The lawn wasn't watered this morning
{%- else %}
The lawn was just watered and it didn't get warm enough to water it again
{% endif %}
{% endif %}
{%- else %}
It did not get hot enough to run the sprinklers at the low water level ({{ states('input_number.sprinkler_temp_above_low_run') | int(default=0) }}°F)
{% endif %}
{%- else %}
The sprinkler is turned off
{% endif %}
# - type: custom:opensprinkler-card
# device: 0b73d5253a9215f27de1b87258e49bc2
# name: Sprinklers
- type: glance
show_name: true
show_icon: true
show_state: true
entities:
- entity: switch.front_yard_station
tap_action:
action: toggle
- entity: input_number.front_yard_station_minutes
- entity: switch.east_side_station
tap_action:
action: toggle
- entity: input_number.east_side_station_minutes
- entity: switch.back_yard_station
tap_action:
action: toggle
- entity: input_number.back_yard_station_minutes
- entity: switch.west_side_station
tap_action:
action: toggle
- entity: input_number.west_side_station_minutes
- entity: binary_sensor.5_minute_test_program_running
name: 5 Minute Test
tap_action:
action: call-service
service: opensprinkler.run
data:
entity_id: switch.5_minute_test_program_enabled
- entity: binary_sensor.full_run_program_running
name: Full Run
tap_action:
action: call-service
service: opensprinkler.run
data:
entity_id: switch.full_run_program_enabled
- entity: switch.morning_program_enabled
name: Morning Schedule
tap_action:
action: toggle
- entity: switch.evening_program_enabled
name: Evening Schedule
tap_action:
action: toggle
- entity: binary_sensor.front_yard_fun_program_running
name: Front Yard Fun
tap_action:
action: call-service
service: opensprinkler.run
data:
entity_id: switch.front_yard_fun_program_enabled
- entity: binary_sensor.back_yard_fun_program_running
name: Back Yard Fun
tap_action:
action: call-service
service: opensprinkler.run
data:
entity_id: switch.back_yard_fun_program_enabled
columns: 2