From 0a0f8ecfd613b046c068a4a68c42ef5bd776b877 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 31 Jan 2020 00:20:04 +0100 Subject: [PATCH] matemeter via rest --- sensors/sensors.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sensors/sensors.yaml b/sensors/sensors.yaml index 4ab6b17..c3ea578 100644 --- a/sensors/sensors.yaml +++ b/sensors/sensors.yaml @@ -28,3 +28,12 @@ - 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