yaml tidyups for esphome

This commit is contained in:
root
2026-02-05 21:28:48 +13:00
parent c104187d62
commit d7884770fe
15 changed files with 633 additions and 539 deletions
+10 -3
View File
@@ -1,12 +1,19 @@
mqtt:
- light:
schema: json
name: "Lounge Dimmer"
name: "Robodyn Dimmer"
unique_id: lounge_dimmer_1
default_entity_id: light.robodyn_dimmer
state_topic: "livingroom/dimmer"
command_topic: "livingroom/dimmer/set"
availability:
- topic: "livingroom/availability"
- topic: "livingroom/availablity"
payload_available: "online"
payload_not_available: "offline"
brightness: true
supported_color_modes: ["brightness"]
supported_color_modes:
- brightness
retain: true
+39 -3
View File
@@ -1,7 +1,43 @@
input_boolean:
main_bathroom_shower:
name: Main Bathroom Shower
icon: mdi:shower
sensor:
- platform: derivative
name: Main Bathroom Humidity Change Rate
source: sensor.main_bathroom_environment_zth10_humidity_2
round: 1
unit_time: s # the resulting "unit_of_measurement" will be %H/s if the sensor.temperate has set %H as its unit
time_window: "00:00:10" # we look at the change over the last 10 seconds
unit_time: min
time_window: "00:15:00"
round: 0.1
automation:
- id: main_bathroom_shower_detected
alias: Main Bathroom - Shower detected (humidity rate + min humidity)
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.main_bathroom_humidity_change_rate
above: 0.6
for: "00:05:00"
condition:
- condition: numeric_state
entity_id: sensor.main_bathroom_environment_zth10_humidity_2
above: 63
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.main_bathroom_shower
- id: main_bathroom_shower_cleared
alias: Main Bathroom - Shower cleared (humidity rate)
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.main_bathroom_humidity_change_rate
below: 0.2
for: "00:15:00"
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.main_bathroom_shower