Hi,
I could use some help, I tried the search and Google and did found something but I think I’m doing something wrong or misunderstood due language difference.
What do I want to achieve: My Rooted Eneco Toon Thermostat can now read water usage through a Wemos and a pulse counter and that works fine.
It also sends out a json formatted webpage to work with Domoticz so I’d like to get the same data to show in HA.
How does the file output look: http://192.168.1.130/water.html shows a blak page with just this line: {“waterflow”:“0”,“waterquantity”:“2583”}
What did I try in sensors.yaml:
# waterflow van Wemos
- platform: file
file_path: http://192.168.1.130/water.json
value_template: "{{ value_json.waterflow }}"
unit_of_measurement: "L"
- platform: file
file_path: http://192.168.1.130/water.html
value_template: "{{ value_json.waterquantity }}"
unit_of_measurement: "M3"
On check config I get this:
Invalid config for [sensor.file]: not a file for dictionary value @ data[‘file_path’]. Got ‘http://192.168.1.130/water.json’. (See ?, line ?).
Invalid config for [sensor.file]: not a file for dictionary value @ data[‘file_path’]. Got ‘http://192.168.1.130/water.html’. (See ?, line ?).
And because of my lack of knowledge about most of this I’m now lost