Adding in some units of measurement. #729
This commit is contained in:
parent
4166b5229f
commit
b639a68120
|
@ -23,6 +23,7 @@ sensor:
|
||||||
- platform: command_line
|
- platform: command_line
|
||||||
command: 'curl https://api.github.com/repos/ccostan/home-assistantconfig'
|
command: 'curl https://api.github.com/repos/ccostan/home-assistantconfig'
|
||||||
name: GitHub Stats
|
name: GitHub Stats
|
||||||
|
unit_of_measurement: 'Count'
|
||||||
scan_interval: 20000
|
scan_interval: 20000
|
||||||
value_template: '{{ value_json.name }}'
|
value_template: '{{ value_json.name }}'
|
||||||
json_attributes:
|
json_attributes:
|
||||||
|
@ -34,6 +35,7 @@ sensor:
|
||||||
- platform: command_line
|
- platform: command_line
|
||||||
name: Lines of Code
|
name: Lines of Code
|
||||||
command: "find /config -name '*.yaml' | xargs cat | wc -l"
|
command: "find /config -name '*.yaml' | xargs cat | wc -l"
|
||||||
|
unit_of_measurement: 'Lines'
|
||||||
scan_interval: 20000
|
scan_interval: 20000
|
||||||
|
|
||||||
- platform: history_stats
|
- platform: history_stats
|
||||||
|
|
Loading…
Reference in New Issue