mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-26 02:37:03 +00:00
Remove command line sensor hddtemp example (#16180)
This commit is contained in:
parent
7ef0192504
commit
6e9cb0430f
@ -60,26 +60,6 @@ json_attributes:
|
|||||||
|
|
||||||
In this section you find some real-life examples of how to use this sensor.
|
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
|
### 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:
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user