Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sensor:
- - platform: command_line
- name: "Temperatura Raspberry Home Assistant"
- command: 'cat /sys/class/thermal/thermal_zone0/temp'
- unit_of_measurement: '°C'
- value_template: '{{ value | multiply(0.001) | round(1)}}'
- - platform: filesize
- file_paths:
- - /config/home-assistant_v2.db
- - platform: filesize
- file_paths:
- - /config/home-assistant.log
- - platform: filesize
- file_paths:
- - /config/home-assistant.log.1
- - platform: systemmonitor
- resources:
- - type: disk_use_percent
- arg: /
- - type: disk_free
- - type: memory_use_percent
- - type: swap_use_percent
- - type: load_1m
- - type: processor_use
- - type: last_boot
- automation:
- - id: eabf85a1-2f74-4935-8cd4-23b440c1671e
- alias: 'Sistema - Notifica - Problemi alimentazione'
- description: "Avvisa quando l'alimentazione del Raspberry Pi non è adeguata"
- trigger:
- - platform: state
- entity_id:
- - binary_sensor.rpi_power_status
- from: 'off'
- action:
- - alias: "Pronuncia e invia notifica di alimentazione RPI non adeguata"
- service: script.multinotify
- data_template:
- title: Problemi alimentazione Raspberry Pi
- message: "E' stato rilevato un problema di alimentazione del Raspberry Pi con Home Assistant!"
- notify_app: notify.ALL_DEVICES
- channel: warning
- group: host
- critical: true
- alexa_target: media_player.ovunque
- alexa_volume_target: media_player.pian_terreno
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement