|
|
@ -17,23 +17,3 @@ |
|
|
|
- platform: command_line |
|
|
|
- platform: command_line |
|
|
|
name: Python Version |
|
|
|
name: Python Version |
|
|
|
command: "python3 --version" |
|
|
|
command: "python3 --version" |
|
|
|
|
|
|
|
|
|
|
|
- platform: command_line |
|
|
|
|
|
|
|
command: "curl cypher/matemeter/api.php" |
|
|
|
|
|
|
|
name: remaining_bottles |
|
|
|
|
|
|
|
value_template: "{{value_json.remaining_bottles}}" |
|
|
|
|
|
|
|
json_attributes: |
|
|
|
|
|
|
|
- total_bottles_refilled |
|
|
|
|
|
|
|
- total_bottles_sold |
|
|
|
|
|
|
|
- remaining_bottles |
|
|
|
|
|
|
|
scan_interval: 20 |
|
|
|
|
|
|
|
command_timeout: 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- platform: rest |
|
|
|
|
|
|
|
name: matemeter |
|
|
|
|
|
|
|
resource: http://cypher/matemeter/api.php |
|
|
|
|
|
|
|
value_template: "{{value_json.remaining_bottles}}" |
|
|
|
|
|
|
|
json_attributes: |
|
|
|
|
|
|
|
- total_bottles_refilled |
|
|
|
|
|
|
|
- total_bottles_sold |
|
|
|
|
|
|
|
- remaining_bottles |
|
|
|
|
|
|
|