Advertisement
chrisdaloa

Raspberry's sensors History & Graphs

Oct 13th, 2018
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.89 KB | None | 0 0
  1. sensor:
  2.   - platform: command_line
  3.     name: CPU Temp
  4.     command: "cat /sys/class/thermal/thermal_zone0/temp"
  5.     # If errors occur, remove degree symbol below
  6.     unit_of_measurement: "°C"
  7.     value_template: '{{ value | multiply(0.001) | round(1) }}'
  8.   - platform: systemmonitor
  9.     resources:
  10.       - type: ipv4_address
  11.         arg: eth0
  12.       - type: disk_free
  13.         arg: /
  14.       - type: memory_free
  15.       - type: processor_use
  16.       - type: last_boot
  17.       - type: since_last_boot  
  18.      
  19. recorder:
  20.   purge_keep_days: 2
  21.   include:
  22.     domains:
  23.      - automation
  24.       - input_boolean
  25.       - input_number
  26.       - input_datetime
  27.       - input_select
  28.       - binary_sensor
  29.       - sensor
  30.       - history_graph
  31.  
  32. history_graph:
  33.   gr1:
  34.     name: Raspberry's cpu
  35.     entities:
  36.      - sensor.cpu_temp
  37.       - sensor.processor_use
  38.     hours_to_show: 24
  39.     refresh: 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement