Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

New TCP Sensor for Meteohub Temperature

$
0
0

@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&quotes=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&quotes=1&mode=data&sensor=th0
    timeout: 6
    value_template: “{{ value_json[‘TH’][‘temp’] }}”
    unit_of_measurement: C

Any suggestions on what I have done wrong please?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>