Home Assistant How To - track Threshold and use with sensors

Опубликовано: 14 Октябрь 2024
на канале: BeardedTinker
4,115
107

Threshold is very simple yet powerful integration that allows you to track if sensor value is above, below or in range of required state. This is great add-on for your Home Assistant system and allows you to easily extend your automations.
https://www.home-assistant.io/integra...

00:00 Intro
00:19 Channel members thank you
00:33 About threshold integration
01:37 Add threshold to binary_sensor.yaml file
02:39 Tracking lower value
05:35 Tracking upper value
06:49 Restart Home Assistant for changes to take effect
07:44 Add new sensor to UI
08:59 Tracking both upper and lower value - state is not in range
10:21 Tracking in-range value
12:33 Wrap-up

Here is sample binary_sensor.yaml code
Track both lower and upper value - great to track optimal values
platform: threshold
entity_id: sensor.living_room_temperature
lower: 22
upper: 25.5
name: Living room optimal temperature

Track upper value - if value goes above some value
platform: threshold
entity_id: sensor.living_room_temperature
upper: 24.5
name: Living room too hot

Track lower value - if value goes below some value
platform: threshold
entity_id: sensor.living_room_temperature
lower: 21
name: Living room too cold

Don't forget to check your configuration and restart Home Assistant after you finish all of the editing.

Please, give me a thumb up if you liked this video, subscribe if you still haven't and I'll see you next time!

Have fun!
BeardedTinker

P.S. If you would like to support me and this channel, you can now JOIN and become member!
https://www.youtube.com/BeardedTinker...

Twitter: @BeardedTinker
Discord:   / discord  
#howto #HomeAssistant #thershold