mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Remove configuration details
This commit is contained in:
parent
c473d426e3
commit
8c544a89c9
@ -3,41 +3,6 @@ homeassistant.components.sensor.command_sensor
|
|||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Allows to configure custom shell commands to turn a value for a sensor.
|
Allows to configure custom shell commands to turn a value for a sensor.
|
||||||
|
|
||||||
Configuration:
|
|
||||||
|
|
||||||
To use the command_line sensor you will need to add something like the
|
|
||||||
following to your configuration.yaml file.
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
platform: command_sensor
|
|
||||||
name: "Command sensor"
|
|
||||||
command: sensor_command
|
|
||||||
unit_of_measurement: "°C"
|
|
||||||
correction_factor: 0.0001
|
|
||||||
decimal_places: 0
|
|
||||||
|
|
||||||
Variables:
|
|
||||||
|
|
||||||
name
|
|
||||||
*Optional
|
|
||||||
Name of the command sensor.
|
|
||||||
|
|
||||||
command
|
|
||||||
*Required
|
|
||||||
The action to take to get the value.
|
|
||||||
|
|
||||||
unit_of_measurement
|
|
||||||
*Optional
|
|
||||||
Defines the units of measurement of the sensor, if any.
|
|
||||||
|
|
||||||
correction_factor
|
|
||||||
*Optional
|
|
||||||
A float value to do some basic calculations.
|
|
||||||
|
|
||||||
decimal_places
|
|
||||||
*Optional
|
|
||||||
Number of decimal places of the value. Default is 0.
|
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.command_sensor.html
|
https://home-assistant.io/components/sensor.command_sensor.html
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user