nigl / homeassistant_eta_integration

Integration of ETA (Heating) sensors to home assistant
MIT License
24 stars 8 forks source link

Unitless float values not added #6

Open maugsburger opened 1 year ago

maugsburger commented 1 year ago

I miss some values, like

<object uri="/40/10021/0/11108/2060" name="Restsauerstoff"/> giving `

0

` (at least while not running, but the tree on the control itself gave values >0 while running.

To my understanding of the protocol, the last uri part is a unique identifier for the type of information, so it would be possible to hard code 2060 as float value somewhere (and probably add % as unit.

Regards momo

maugsburger commented 1 year ago

Hm, and I couldn't find this as well: <object uri="/40/10021/0/0/12164" name="Restsauerstoff">

`

766

`

DaLaze commented 1 year ago

I have a similar problem.

i try to get the value of the following object: <object uri="/120/10101/0/11237/2295" name="Luftfeuchte"/>

in my browser i get the value:

<eta version="1.0">
<value uri="/user/var//120/10101/0/11237/2295" strValue="37" unit="%rH" decPlaces="0" scaleFactor="10" advTextOffset="0">370</value>
</eta>

i tried to insert the unit "%rH" in the api-code and in the sensor-code, but i still don't get it. can you help me please?

best regards DaLaze

nigl commented 1 year ago

@maugsburger

I miss some values, like

<object uri="/40/10021/0/11108/2060" name="Restsauerstoff"/> giving <eta version="1.0"> <value advTextOffset="0" unit="" uri="/user/var//40/10021/0/11108/2060" strValue="---" scaleFactor="100" decPlaces="1">0</value> </eta> (at least while not running, but the tree on the control itself gave values >0 while running.

To my understanding of the protocol, the last uri part is a unique identifier for the type of information, so it would be possible to hard code 2060 as float value somewhere (and probably add % as unit.

Regards momo

Hi the problem, with the uri /40/10021/0/11108/2060 is that the strValue is empty, and thus will not be used as float_sensor.

However, the uri should work /40/10021/0/0/12164, because that looks like a valid strValue. Unfortunately I can not reproduce it on my system, because I get on both URI as strValue "---". Is there always a valid strValue on your system at uri /40/10021/0/0/12164?

nigl commented 1 year ago

@DaLaze I will check this hopefully at the next couple of days

maugsburger commented 1 year ago

@nigl I just checked, these URIs only give meaningfull readings (like shown above) when the oven is firing.

Now they also show '---':

➜  ~ curl http://172.31.0.100:8080/user/var/40/10021/0/11108/2060                  
<?xml version="1.0" encoding="utf-8"?>
<eta version="1.0" xmlns="http://www.eta.co.at/rest/v1">
 <value advTextOffset="0" unit="" uri="/user/var/40/10021/0/11108/2060" strValue="---" scaleFactor="100" decPlaces="1">0</value>
</eta>
➜  ~ curl http://172.31.0.100:8080/user/var/40/10021/0/0/12164   
<?xml version="1.0" encoding="utf-8"?>
<eta version="1.0" xmlns="http://www.eta.co.at/rest/v1">
 <value advTextOffset="0" unit="" uri="/user/var/40/10021/0/0/12164" strValue="---" scaleFactor="100" decPlaces="1">0</value>
</eta>
nigl commented 1 year ago

@maugsburger I checked now again (the oven is working now) and I could add the sensor _kessel_eingänge_restsauerstoff_restsauerstoff (which is uri /40/10021/0/11108/2060) I will check what will happen when the heating is turned off.

nigl commented 1 year ago

@maugsburger The Restsauerstoff Sensor still works on my installation. It does not update when the heating is not running. I don't know if "NA" Value would be better or if the current handling is better image

@DaLaze I added "%rH" in the dev branch, can you please update to version "0.0.2-dev" and check if it is working now?

DaLaze commented 1 year ago

@nigl i tried it, unfortunately it still doesn't work!

markus7net commented 1 year ago

Hello can someone check if he is able to add the following sensor:

<eta xmlns="http://www.eta.co.at/rest/v1" version="1.0">
<value advTextOffset="1000" unit="" uri="/user/var//76/10101/0/11237/2002" strValue="Ein" scaleFactor="1" decPlaces="0">1001</value>
</eta>

I cannot add it even if i add it in custom_seonsors.py Thanks!

image

N1Dy commented 11 months ago

Hello can someone check if he is able to add the following sensor:

<eta xmlns="http://www.eta.co.at/rest/v1" version="1.0">
<value advTextOffset="1000" unit="" uri="/user/var//76/10101/0/11237/2002" strValue="Ein" scaleFactor="1" decPlaces="0">1001</value>
</eta>

I cannot add it even if i add it in custom_seonsors.py Thanks!

image

Hello I guess you are on the wrong repo with this question because this solution works with a config workflow where you pick the entities you want to have in Home Assistant

These two repos are working with sensor_custom.py

zypro/ha_eta

or

hubtub2/ha_custom_component forum Holzheizer.com