Browse Source

shorten curl command

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

2
sensors/sensors.yaml

@ -19,7 +19,7 @@
command: "python3 --version" command: "python3 --version"
- platform: command_line - platform: command_line
command: 'curl -s -m 20 -H "Content-Type: application/json" -X GET cypher/matemeter/api.php' command: "curl cypher/matemeter/api.php"
name: remaining_bottles name: remaining_bottles
value_json: "{{value_json.remaining_bottles}}" value_json: "{{value_json.remaining_bottles}}"
scan_interval: 20 scan_interval: 20

Loading…
Cancel
Save