From 2f9cd342dd27c23e330604957ea902d0dcd427c6 Mon Sep 17 00:00:00 2001 From: Nicolas Liaudat Date: Sun, 5 Mar 2023 09:06:23 +0100 Subject: [PATCH] add html api call from value.html https://github.com/jomjol/AI-on-the-edge-device/issues/2124 --- docs/Integration-Home-Assistant.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/Integration-Home-Assistant.md b/docs/Integration-Home-Assistant.md index ca97ddf..06e4a3c 100644 --- a/docs/Integration-Home-Assistant.md +++ b/docs/Integration-Home-Assistant.md @@ -203,6 +203,22 @@ template: icon: mdi:gauge ``` + +The 2nd way is to use the html api call from value.html : + +``` +sensor: +- platform: rest + resource: http:///value.html + name: cold_water + unique_id: cold_water_from_rest + unit_of_measurement: "L" + device_class: water + state_class: total_increasing + icon: mdi:gauge + scan_interval : 120 + ``` + See also https://community.home-assistant.io/t/rest-sensor-nested-json/243420/9