I have a pool controller (Bayrol) at my home.
It is possible read out values via xml.
http://www.pm5-update.net/download_files/DE/PM5_PoolManager_XML_Data_Protocol_EN.pdf
For example, if I use the address:
192.168.1.8/cgi-bin/webgui.fcgi?xmlitem=34.4033
in my web browser, I get the following:
<pm5>
<item type="34" id="4033" label="T1" unit="°C" value="28.4"/>
</pm5>
Now how can I get this temperature as a sensor in my home assistant?`
Can someone help me please?
PS.
there would be alternatively also still the possibility via Modbus. However, I have unfortunately also so not managed.
http://www.pm5-update.net/download_files/DE/PM5_PoolManager_Modbus_TCP_Protocol_EN_V1.2.pdf
But the XML variant would be better for me.
koying
(Chris B)
2
Danke für die Hilfe.
Hatte den Post zwar schon mal gesehen, aber habe es trotzdem nicht zusammen gebracht.
Habe es mir jetzt noch einmal genauer angesehen und habe es geschafft
Falls es jemanden Hilft. Ich habe es so geschafft…
Temperatur auslesen:
sensor:
- platform: rest
resource: http://192.168.1.8/cgi-bin/webgui.fcgi?xmlitem=34.4033
name: PoolTEMP
device_class: temperature
value_template: '{{ value_json["pm5"]["item"]["@value"] }}'
koying
(Chris B)
4
And what exactly makes you think I speak German?
hahahah oh sry … was working on something else on the side and not thinking.
Thanks for the help.
Had seen the post before but still didn’t get it.
Have now looked at it again more closely and have done it
If it helps anyone. I managed to do it this way…
sensor:
- platform: rest
resource: http://192.168.1.8/cgi-bin/webgui.fcgi?xmlitem=34.4033
name: PoolTEMP
device_class: temperature
value_template: '{{ value_json["pm5"]["item"]["@value"] }}'
2 Likes