Home Assistant How To - get more Statistics from sensors
26.1 هزار بار بازدید -
4 سال پیش
-
Getting more statistics from your
Getting more statistics from your existing sensors and binary sensors is very easy with Home Assistant built-in component - Statistics. It can help you learn more about your home and area where you live from the data you already have.
https://www.home-assistant.io/integra...
00:00 Intro
00:19 Thank you to Channel members
00:33 About statistics component
01:44 Add statistics to sensor.yaml file
06:40 Restart Home Assistant for changes to take effect
08:23 Rename your statistics sensors
09:15 Looking at statistics
11:17 Wrap-up
Here is sample sensor.yaml code
Synology CPU sensor stats for last 60 minutes
- platform: statistics
entity_id: sensor.synology_cpu_load_total
max_age:
minutes: 60
name: Synology CPU stats
ISS binary sensor counter
- platform: statistics
entity_id: binary_sensor.iss
name: ISS counter stats
Outside temperature stats with 2 decimal spaces
- platform: statistics
entity_id: sensor.weather_temperature
precision: 2
name: Temperature stats
eCO2 stats with 2 decimal spaces and last 20 samples
- platform: statistics
entity_id: sensor.ccs811_eco2_value
sampling_size: 20
precision: 2
name: eCO2 stats
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: discord
#howto #HomeAssistant #thershold
https://www.home-assistant.io/integra...
00:00 Intro
00:19 Thank you to Channel members
00:33 About statistics component
01:44 Add statistics to sensor.yaml file
06:40 Restart Home Assistant for changes to take effect
08:23 Rename your statistics sensors
09:15 Looking at statistics
11:17 Wrap-up
Here is sample sensor.yaml code
Synology CPU sensor stats for last 60 minutes
- platform: statistics
entity_id: sensor.synology_cpu_load_total
max_age:
minutes: 60
name: Synology CPU stats
ISS binary sensor counter
- platform: statistics
entity_id: binary_sensor.iss
name: ISS counter stats
Outside temperature stats with 2 decimal spaces
- platform: statistics
entity_id: sensor.weather_temperature
precision: 2
name: Temperature stats
eCO2 stats with 2 decimal spaces and last 20 samples
- platform: statistics
entity_id: sensor.ccs811_eco2_value
sampling_size: 20
precision: 2
name: eCO2 stats
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: discord
#howto #HomeAssistant #thershold
4 سال پیش
در تاریخ 1399/04/25 منتشر شده
است.
26,176
بـار بازدید شده