From 6fcdfea681206862ce1411b3688be5eba21a741f Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 30 Jan 2020 23:35:53 +0100 Subject: [PATCH] fix json value --- sensors/sensors.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sensors/sensors.yaml b/sensors/sensors.yaml index dc8738f..0b1d807 100644 --- a/sensors/sensors.yaml +++ b/sensors/sensors.yaml @@ -21,7 +21,6 @@ - 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_json: "{{value_json.remaining_bottles}}" scan_interval: 20 command_timeout: 30