Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
adjust command line sensor to new format
  • Loading branch information
Misiu authored Nov 8, 2024
1 parent 6c1005c commit 4c07881
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ custom_components/argon40/services.yaml

1. Add CPU Temperature sensor:
```yaml
sensor:
- platform: command_line
name: CPU Temp
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: "{{ value | multiply(0.001) | round(1) }}"
command_line:
- sensor:
name: CPU Temp
unique_id: cpu_temp
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: "{{ value | multiply(0.001) | round(1) }}"
```
Or use [System monitor](https://www.home-assistant.io/integrations/systemmonitor/#processor-temperature) integration to get the CPU temperature
2. Add automation:
```yaml
automation:
Expand Down

0 comments on commit 4c07881

Please sign in to comment.