Advertisement
energywave

System package

Nov 4th, 2021
1,196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.57 KB | None | 0 0
  1. sensor:
  2.   - platform: command_line
  3.     name: "Temperatura Raspberry Home Assistant"
  4.     command: 'cat /sys/class/thermal/thermal_zone0/temp'
  5.     unit_of_measurement: '°C'
  6.     value_template: '{{ value | multiply(0.001) | round(1)}}'
  7.   - platform: filesize    
  8.     file_paths:
  9.      - /config/home-assistant_v2.db
  10.   - platform: filesize    
  11.     file_paths:
  12.      - /config/home-assistant.log
  13.   - platform: filesize    
  14.     file_paths:
  15.      - /config/home-assistant.log.1
  16.   - platform: systemmonitor
  17.     resources:
  18.       - type: disk_use_percent
  19.         arg: /
  20.       - type: disk_free
  21.       - type: memory_use_percent
  22.       - type: swap_use_percent
  23.       - type: load_1m
  24.       - type: processor_use
  25.       - type: last_boot
  26.  
  27. automation:
  28.   - id: eabf85a1-2f74-4935-8cd4-23b440c1671e
  29.     alias: 'Sistema - Notifica - Problemi alimentazione'
  30.     description: "Avvisa quando l'alimentazione del Raspberry Pi non è adeguata"
  31.     trigger:
  32.       - platform: state
  33.         entity_id:
  34.          - binary_sensor.rpi_power_status
  35.         from: 'off'
  36.     action:
  37.       - alias: "Pronuncia e invia notifica di alimentazione RPI non adeguata"
  38.         service: script.multinotify
  39.         data_template:
  40.           title: Problemi alimentazione Raspberry Pi
  41.           message: "E' stato rilevato un problema di alimentazione del Raspberry Pi con Home Assistant!"
  42.           notify_app: notify.ALL_DEVICES
  43.           channel: warning
  44.           group: host
  45.           critical: true
  46.           alexa_target: media_player.ovunque
  47.           alexa_volume_target: media_player.pian_terreno
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement