Bouni / luxtronik

Luxtronik integration for Home Assistant
MIT License
82 stars 14 forks source link

Configure unknown parameters #5

Open MrLukson opened 4 years ago

MrLukson commented 4 years ago

Hi,

i'm stuck with my configuration by HA, because they are uknown parameters and ican tell you what you have to configure by which ID.

So here is the list:

All these parameters are tempherature sensors and should be configured this way.

Thank you in advance.

Bouni commented 4 years ago

Where did you get these ID names from? What luxtronik version are you running and what heatpump model do you have?

MrLukson commented 4 years ago

Luxtronik 2.0. I got this parameters from your Parameters.py, but there are als ID's. By my heatpump24.com when you go with your coursor for example for heating setting then can you see in URL Parameter ID number. And therefore i got this ID's. We can set right these parameters with help heatpump24.com.

I have WZS 82K3M

V3.85.5

Bouni commented 4 years ago

I did a quick test and those parameters are working for me. The only exception is that they not properly scaled at the moment, but I'll fix that later today.

- platform: luxtronik
  scan_interval: 60
  sensors:
    - group: parameters
      id: ID_Einst_HzHwHKE_akt
    - group: parameters
      id: ID_Einst_HzHKRANH_akt
    - group: parameters
      id: ID_Einst_HzHKRABS_akt
    - group: parameters
      id: ID_Einst_Heizgrenze_Temp

This gives me:

grafik

I also looked into heatpump24.com but didn't figure out what you mean by "when you go with your coursor for example for heating setting then can you see in URL Parameter ID number."

Maybe you can clarify that a bit more.

MrLukson commented 4 years ago

image

Here are on the left side ID's which are the same as by parameters.py, but you can also see this using source of the site:

<tr class='title'><th width='40px' ></th><th>Parametr</th><th>Dane z pompy ciepła @<br />23/07/2020 - 14:01</th><th>Nowe dane</th><th width='30px'></th></tr><tr class=odd><td style='text-align:center;'>11</td><td style='margin-left:10px;'><img src='bilder/Heizung/HeizungKurve1.png'>Obieg grzew.</td><td>23°C</td><td style='height:40px; width:200px; white-space:nowrap;'><input type='range' min='20' max='70' step='0.5' data-format='%.01f°C' value='23' name='Einst_11'></td><td align='center'></td></tr><tr class=even><td style='text-align:center;'>12</td><td style='margin-left:10px;'><img src='bilder/Heizung/HeizungKurve2.png'>Obieg grzew.</td><td>22°C</td><td style='height:40px; width:200px; white-space:nowrap;'><input type='range' min='5' max='35' step='0.5' data-format='%.01f°C' value='22' name='Einst_12'></td><td align='center'></td></tr><tr class=odd><td style='text-align:center;'>13</td><td style='margin-left:10px;'><img src='bilder/Heizung/HeizungKurve3.png'>Obieg grzew.</td><td>0°C</td><td style='height:40px; width:200px; white-space:nowrap;'><input type='range' min='-15' max='10' step='0.5' data-format='%.01f°C' value='0' name='Einst_13'></td><td align='center'></td></tr></table>

In the code are for example: 11 and the 11 is an ID.

It's any possible to adjust the ID's on my own? How can i do it?

BTW.: Are you from Germany?

Bouni commented 4 years ago

Ok, now i got it, if the name is Einst_11 for example that corresponds to parameter 11. I just checked that for parameter 1 in heatpump24.com and with the data comming from my heatpump and that seems to fit.

Nice finding!

It's any possible to adjust the ID's on my own? How can i do it?

Unfortunately HA pulls the module version specified in the manifest.json from pypi. The conversions are in the imported module, so you cannot simply change them.

But I would be more than happy if you submit pull requests with corrected data types, heres the repo.

Simply change the values in parameters.py from Unknown to a data type specified in datatypes.py.

For Example:

11: Unknown("ID_Einst_HzHwHKE_akt"), becomes 11: Celsius("ID_Einst_HzHwHKE_akt"),

BTW.: Are you from Germany?

Yes, I am

Bouni commented 4 years ago

I just realized that the number infront of the value corresponds with the parameter id:

grafik

MrLukson commented 4 years ago

Yeah :) i mentioned about it before :)

Bouni commented 4 years ago

I pushed an update some minutes ago that gives you the four values mentioned in the initial post:

grafik

It's available via HACS now!

Bouni commented 4 years ago

Yeah :) i mentioned about it before :)

I should read more focused 😁

MrLukson commented 4 years ago

Yeah i saw this. Thank you very much and when i have free time i wann prepare you the whole sheet with right units by ID's. IShould i open new Issues after that or leave this open until i'll prepare the list?

Bouni commented 4 years ago

Nice! You can leave this one open.

MrLukson commented 4 years ago

Bouni, i have problem right now to write something to any ID. Even in HA doesn't show up the instruction in developer options:

image

And come this error:

image

MrLukson commented 4 years ago

These parameters which you changed already i needed for my automations. Here is an example from UI:

image

Bouni commented 4 years ago

Nice! Can you share your config somewhere?

MrLukson commented 4 years ago

Inputs number are normally set through GUI. And by Lovelace is only entities added. The most importants are automations. Here you are:

`###################### Luxtronik Sensors ######################

MrLukson commented 4 years ago

You can also make automation to heating state and water state through trigger, but i made translation by my HA and therefore is for each state separate automation.

MrLukson commented 4 years ago

Here is example from input number:

image

The temperature range i took from heatpump24:

<tr class='title'><th width='40px' ></th><th>Parametr</th><th>Dane z pompy ciepła @<br />23/07/2020 - 14:01</th><th>Nowe dane</th><th width='30px'></th></tr><tr class=odd><td style='text-align:center;'>1</td><td style='margin-left:10px;'>Temperatura + -</td><td>2.5°C</td><td style='height:40px; width:200px; white-space:nowrap;'><input type='range' min='-5' max='5' step='0.5' data-format='%.01f°C' value='2.5' name='Einst_1'></td><td align='center'></td></tr></table>

corneel27 commented 3 years ago

I can also change these values with the Alpha app. But these changes are not show in the corresponding input_number. I have therefor this code:

if value on Luxtronik changes: set value on slider

automation:

But I get the error: ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: Entity ID sensor.luxtronik.ID_Einst_WK_akt is an invalid entity id for dictionary value @ data['entity_id']. Got None. (See ....configuration.yaml, line 21).

What am I doing wrong??