Skip to content

Instantly share code, notes, and snippets.

@TheRealSimon42
Created October 24, 2023 14:40
Show Gist options
  • Save TheRealSimon42/7020b5a1104aadc5e47f5d8a96f913ee to your computer and use it in GitHub Desktop.
Save TheRealSimon42/7020b5a1104aadc5e47f5d8a96f913ee to your computer and use it in GitHub Desktop.
/config/configuration.yaml - Know if someone is showering based on humidity trend
binary_sensor:
# Quelle: https://community.home-assistant.io/t/automation-shower-detection-trigger-when-humidity-increases-in-10-minutes/162250
# Tracks 3 humidity readings over 10 minutes. If the change is greater than 10%, evals to true. (10/(60*10))
- platform: trend
sensors:
badezimmer_duschen:
friendly_name: "Badezimmer duschen"
max_samples: 3
entity_id: sensor.aqara_tempature_and_humidity_sensor_humidity
sample_duration: 600
min_gradient: 0.01666
device_class: occupancy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment