Shell¶
Enable the platform:
Usage¶
Base Properties¶
Property | Description |
---|---|
update_interval | How often to run the command. Default is 60s. |
In the future an update interval of
0
will allow you to stream the output of long running commands (e.g. a json log line by line).
Sensors¶
sensor:
- platform: shell
name: 'RAM Usage'
update_interval: 30s
command: |-
free | grep Mem | awk '{print $3/$2 * 100.0}'