@scriven33 wrote:
I am trying to extract information from my Meteohub weather station - at the moment to specifically show the external temperature.
The URL to query is this:
http://192.168.1.123/meteolog.cgi?type=xml"es=1&mode=data&sensor=th0
and it returns this result:
<TH date="20200217161838" id="th0" temp="8.9" hum="80" dew="5.6" lowbat="0" />
What I am looking to collect is the temp.
So I attempted to create a new sensor using the TCP platform as below, but it isn’t working.
- platform: tcp
name: Outdoor Temp
host: 192.168.1.123
port: 80
payload: /meteolog.cgi?type=xml"es=1&mode=data&sensor=th0
timeout: 6
value_template: “{{ value_json[‘TH’][‘temp’] }}”
unit_of_measurement: CAny suggestions on what I have done wrong please?
Posts: 1
Participants: 1