Remove command line sensor hddtemp example (#16180)

This commit is contained in:
Tom Brien 2021-01-14 11:55:16 +00:00 committed by GitHub
parent 7ef0192504
commit 6e9cb0430f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,26 +60,6 @@ json_attributes:
In this section you find some real-life examples of how to use this sensor.
### Hard drive temperature
There are several ways to get the temperature of your hard drive. A simple solution is to use [hddtemp](https://savannah.nongnu.org/projects/hddtemp/).
```bash
hddtemp -n /dev/sda
```
To use this information, the entry for a command-line sensor in the `configuration.yaml` file will look like this.
```yaml
# Example configuration.yaml entry
sensor:
- platform: command_line
name: HD Temperature
command: "hddtemp -n /dev/sda"
# If errors occur, make sure configuration file is encoded as UTF-8
unit_of_measurement: "°C"
```
### CPU temperature
Thanks to the [`proc`](https://en.wikipedia.org/wiki/Procfs) file system, various details about a system can be retrieved. Here the CPU temperature is of interest. Add something similar to your `configuration.yaml` file: