Add cobalt CPU sensor

This commit is contained in:
2020-05-03 01:59:57 +03:00
parent c79bf6c5e8
commit f0c2cac988
2 changed files with 8 additions and 1 deletions

View File

@@ -10,6 +10,12 @@ binary_sensor:
value_template: "{{ states('sun.sun') == 'below_horizon' or is_state('input_boolean.floorplan_night_mode', 'on') }}"
sensor:
- platform: command_line
name: Cobalt CPU Temperature
command: "cat /sys/class/thermal/thermal_zone3/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
- platform: time_date
display_options:
- "time"
@@ -28,6 +34,7 @@ sensor:
friendly_name: "SARAH's URL"
value_template: !secret sarah_url
shell_command:
clear_logs: truncate -s 0 /config/home-assistant.log