Hi,
I am trying to integrate sensor data from my Zehnder touch panel, a device that controls temperature regulation in my home.
The data can be read in plain text by reading a certain URL.
Here is an example:
http://192.168.8.49/cgi-bin/getValues.exe?PDP,,R1996,D&PDP,,R1997,D&PDP,,R6,D&PDP,,R1924,D&PDP,,R1923,D&PDP,,DB4030.%40COFF_Registro_Sonda%40,d
and the answer is
2&3&0&657&245&ppo syntax error
657 means 65.7% humidity percentage
245 means 24.5°C
how can I integrate this URL data in a sensor ?
Thanks
If you use a Scrape sensor to get your value you can assign a template to format the data. You will need to figure out what to use for the select
variable based on the webpage.
sensor:
- platform: scrape
name: zehnder_temp
resource: http://192.168.8.49/cgi-bin/getValues.exe?PDP,,R1996,D&PDP,,R1997,D&PDP,,R6,D&PDP,,R1924,D&PDP,,R1923,D&PDP,,DB4030.%40COFF_Registro_Sonda%40,d
select: ?
device_class: temperature
state_class: measurement
unit_of_measurement: '°C'
value_template: >
{{ value.split("&")[4][:-1]~"." value.split("&")[4][-1:] }}
- platform: scrape
name: zehnder_hum
resource: http://192.168.8.49/cgi-bin/getValues.exe?PDP,,R1996,D&PDP,,R1997,D&PDP,,R6,D&PDP,,R1924,D&PDP,,R1923,D&PDP,,DB4030.%40COFF_Registro_Sonda%40,d
select: ?
device_class: humidity
state_class: measurement
unit_of_measurement: '%'
value_template: >
{{ value.split("&")[3][:-1]~"." value.split("&")[3][-1:] }}
you give me a good start point, here is the working result
- platform: rest
name: zehnder_temp
resource: http://192.168.8.49/cgi-bin/getValues.exe?PDP,,R1996,D&PDP,,R1997,D&PDP,,R6,D&PDP,,R1924,D&PDP,,R1923,D&PDP,,DB4030.%40COFF_Registro_Sonda%40,d
value_template: >
{{ value.split("&")[4] | float *0.1 }}
scrape was not right because webpage return plaintext without tag.
Thanks
Good morning,
I’m also importing the values from zhender touch but I don’t understand the logic of the variables called in http…
Can you help me?
First compartment humidity
http://192.168.1.253/cgi-bin/getValues.exe?PDP,,R1924,D
First compartment temperature
http://192.168.1.253/cgi-bin/getValues.exe?PDP,,R1923,D
thanks for the help
guido
rodezio
February 25, 2023, 10:30am
5
well the meaning of variables is a reverse engineering work what do you want to read ?
Hi Rodezio,
I would like to read the temperature and humidity values of each room, if possible if it is calling hot or cold.
I would also like to have the on off status of the chiller.
thanks for your help
guido
rodezio
February 26, 2023, 7:48am
7
So for the temperature and humidity here it is
2201 → temperature room 1
2401 → humidity room 1
then increase 01 to 02, 03 and so on for the other rooms.
I don’t have read the state of the TPC output so you have to do it by yourself. It is not difficult to discover the register number.