various tidyups
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
#:########################################################################################:#
|
||||
# PACKAGE: Potplant Moisture Alerts
|
||||
# FILE: packages/potplant_moisture_alerts.yaml
|
||||
# VERSION: v1.1.0 2026-07-29
|
||||
# - Preserve user-selected thresholds and master enable state across restarts.
|
||||
# VERSION: v1.1.1 2026-08-15
|
||||
# - Update moisture sensor entity IDs after the plant devices were renamed.
|
||||
# - v1.1.0 2026-07-29: Preserve user-selected thresholds and master enable state across restarts.
|
||||
#:########################################################################################:#
|
||||
# PURPOSE:
|
||||
# Alert when potplant soil moisture drops below a configurable threshold.
|
||||
# Displays on the Lounge LED matrix and announces via Lounge Google Home voice.
|
||||
#:########################################################################################:#
|
||||
# SETTINGS:
|
||||
# - input_number.*_moisture_threshold: per-plant dry threshold (default 30%)
|
||||
# - input_number.*_moisture_threshold: per-plant dry threshold (table 25%, TV 30%)
|
||||
# - input_boolean.potplant_alert_enabled: master enable toggle
|
||||
#:########################################################################################:#
|
||||
# DEPENDENCIES:
|
||||
# - packages/view_road_announcement_router.yaml for script.view_road_announcement
|
||||
# - sensor.table_plant_soil_moisture
|
||||
# - sensor.tv_plant_soil_moisture
|
||||
# - sensor.table_plant_x36md_soil_moisture
|
||||
# - sensor.tv_plant_x37md_soil_moisture
|
||||
#:########################################################################################:#
|
||||
|
||||
input_number:
|
||||
@@ -24,6 +25,7 @@ input_number:
|
||||
min: 0
|
||||
max: 100
|
||||
step: 5
|
||||
initial: 25
|
||||
unit_of_measurement: "%"
|
||||
icon: mdi:water-percent
|
||||
|
||||
@@ -45,15 +47,21 @@ template:
|
||||
- name: "Table Plant Needs Water"
|
||||
unique_id: table_plant_needs_water
|
||||
icon: mdi:flower
|
||||
availability: >-
|
||||
{{ not is_state('sensor.table_plant_x36md_soil_moisture', 'unavailable')
|
||||
and not is_state('sensor.table_plant_x36md_soil_moisture', 'unknown') }}
|
||||
state: >-
|
||||
{{ (states('sensor.table_plant_soil_moisture') | float(100)) <
|
||||
(states('input_number.table_plant_moisture_threshold') | float(30)) }}
|
||||
{{ (states('sensor.table_plant_x36md_soil_moisture') | float(100)) <
|
||||
(states('input_number.table_plant_moisture_threshold') | float(25)) }}
|
||||
|
||||
- name: "TV Plant Needs Water"
|
||||
unique_id: tv_plant_needs_water
|
||||
icon: mdi:flower
|
||||
availability: >-
|
||||
{{ not is_state('sensor.tv_plant_x37md_soil_moisture', 'unavailable')
|
||||
and not is_state('sensor.tv_plant_x37md_soil_moisture', 'unknown') }}
|
||||
state: >-
|
||||
{{ (states('sensor.tv_plant_soil_moisture') | float(100)) <
|
||||
{{ (states('sensor.tv_plant_x37md_soil_moisture') | float(100)) <
|
||||
(states('input_number.tv_plant_moisture_threshold') | float(30)) }}
|
||||
|
||||
automation:
|
||||
|
||||
Reference in New Issue
Block a user