Browse Source

adding command line sensor

master
Thomas 4 years ago
parent
commit
5fef5fa5d3
Signed by: taschenbier
GPG Key ID: 306F574D34A9673B
  1. 9
      sensors/sensors.yaml

9
sensors/sensors.yaml

@ -17,3 +17,12 @@ @@ -17,3 +17,12 @@
- platform: command_line
name: Python Version
command: "python3 --version"
- platform: command_line
command: 'curl -s -m 20 -H "Content-Type: application/json" -X GET cypher/matemeter/api.php'
name: remaining_bottles
json_attributes:
- remaining_bottles
value_template: "{{ value_json.remaining_bottles |int }}"
scan_interval: 20
command_timeout: 30

Loading…
Cancel
Save