Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure unknown parameters #5

Open
MrLukson opened this issue Jul 17, 2020 · 18 comments
Open

Configure unknown parameters #5

MrLukson opened this issue Jul 17, 2020 · 18 comments

Comments

@MrLukson
Copy link

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:

  • ID_Einst_HzHwHKE_akt
  • ID_Einst_HzHKRANH_akt
  • ID_Einst_HzHKRABS_akt
  • ID_Einst_Heizgrenze_Temp

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

Thank you in advance.

@Bouni
Copy link
Owner

Bouni commented Jul 23, 2020

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

@MrLukson
Copy link
Author

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
Copy link
Owner

Bouni commented Jul 23, 2020

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
Copy link
Author

MrLukson commented Jul 23, 2020

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
Copy link
Owner

Bouni commented Jul 23, 2020

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
Copy link
Owner

Bouni commented Jul 23, 2020

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

grafik

@MrLukson
Copy link
Author

Yeah :) i mentioned about it before :)

@Bouni
Copy link
Owner

Bouni commented Jul 23, 2020

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
Copy link
Owner

Bouni commented Jul 23, 2020

Yeah :) i mentioned about it before :)

I should read more focused 😁

@MrLukson
Copy link
Author

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
Copy link
Owner

Bouni commented Jul 23, 2020

Nice! You can leave this one open.

@MrLukson
Copy link
Author

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
Copy link
Author

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

image

@Bouni
Copy link
Owner

Bouni commented Jul 23, 2020

Nice! Can you share your config somewhere?

@MrLukson
Copy link
Author

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

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

  • alias: Ogrzewanie - Automatyczny
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_ogrzewania
    to: Automatyczny
    action:
    service: luxtronik.write
    data:
    parameter: ID_Ba_Hz_akt
    value: Automatic

  • alias: Ogrzewanie - II źródło ciepła
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_ogrzewania
    to: II źródło ciepła
    action:
    service: luxtronik.write
    data:
    parameter: ID_Ba_Hz_akt
    value: Second heatsource

  • alias: Ogrzewanie - Party
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_ogrzewania
    to: Party
    action:
    service: luxtronik.write
    data:
    parameter: ID_Ba_Hz_akt
    value: Party

  • alias: Ogrzewanie - Wakacje
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_ogrzewania
    to: Wakacje
    action:
    service: luxtronik.write
    data:
    parameter: ID_Ba_Hz_akt
    value: Holidays

  • alias: Ogrzewanie - Wyłączony
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_ogrzewania
    to: Wyłączony
    action:
    service: luxtronik.write
    data:
    parameter: ID_Ba_Hz_akt
    value: "Off"

  • alias: C.W.U. - Automatyczny
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_c_w_u
    to: Automatyczny
    action:
    service: luxtronik.write
    data:
    parameter: ID_Ba_Bw_akt
    value: Automatic

  • alias: C.W.U. - II źródło ciepła
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_c_w_u
    to: II źródło ciepła
    action:
    service: luxtronik.write
    data:
    parameter: ID_Ba_Bw_akt
    value: Second heatsource

  • alias: C.W.U. - Party
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_c_w_u
    to: Party
    action:
    service: luxtronik.write
    data:
    parameter: ID_Ba_Bw_akt
    value: Party

  • alias: C.W.U. - Wakacje
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_c_w_u
    to: Wakacje
    action:
    service: luxtronik.write
    data:
    parameter: ID_Ba_Bw_akt
    value: Holidays

  • alias: C.W.U. - Wyłączony
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_c_w_u
    to: Wyłączony
    action:
    service: luxtronik.write
    data:
    parameter: ID_Ba_Bw_akt
    value: "Off"

  • alias: Chłodzenie - Automatyczny
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_chlodzenia
    to: Automatyczny
    action:
    service: luxtronik.write
    data:
    parameter: ID_Einst_BA_Kuehl_akt
    value: Automatic

  • alias: Chłodzenie - Wyłączony
    trigger:
    platform: state
    entity_id: input_select.tryb_pracy_chlodzenia
    to: Wyłączony
    action:
    service: luxtronik.write
    data:
    parameter: ID_Einst_BA_Kuehl_akt
    value: "Off"

  • alias: Ogrzewanie - Temperatura +-
    trigger:
    platform: state
    entity_id: input_number.ogrzewanie_temperatura
    action:
    service: luxtronik.write
    data:
    parameter: ID_Einst_WK_akt
    data_template:
    value: '{{trigger.to_state.state}}'

  • alias: Ogrzewanie - Obieg grzewczy 1
    trigger:
    platform: state
    entity_id: input_number.obieg_grzewczy_1
    action:
    service: luxtronik.write
    data:
    parameter: ID_Einst_HzHwHKE_akt
    data_template:
    value: '{{trigger.to_state.state}}'

  • alias: Ogrzewanie - Obieg grzewczy 2
    trigger:
    platform: state
    entity_id: input_number.obieg_grzewczy_2
    action:
    service: luxtronik.write
    data:
    parameter: ID_Einst_HzHKRANH_akt
    data_template:
    value: '{{trigger.to_state.state}}'

  • alias: Ogrzewanie - Obieg grzewczy 3
    trigger:
    platform: state
    entity_id: input_number.obieg_grzewczy_3
    action:
    service: luxtronik.write
    data:
    parameter: ID_Einst_HzHKRABS_akt
    data_template:
    value: '{{trigger.to_state.state}}'

  • alias: Ogrzewanie - Granica grzania
    trigger:
    platform: state
    entity_id: input_number.granica_grzania
    action:
    service: luxtronik.write
    data:
    parameter: ID_Einst_Heizgrenze_Temp
    data_template:
    value: '{{trigger.to_state.state}}'

  • alias: C.W.U. - Temperatura pożądana
    trigger:
    platform: state
    entity_id: input_number.temperatura_pozadana
    action:
    service: luxtronik.write
    data:
    parameter: ID_Soll_BWS_akt
    data_template:
    value: '{{trigger.to_state.state}}'

  • alias: Chłodzenie - Zewnętrzna temperatura startu
    trigger:
    platform: state
    entity_id: input_number.zewn_temp_startu
    action:
    service: luxtronik.write
    data:
    parameter: ID_Einst_KuehlFreig_akt
    data_template:
    value: '{{trigger.to_state.state}}'

  • alias: Chłodzenie - Temperatura posadzki
    trigger:
    platform: state
    entity_id: input_number.temperatura_posadzki
    action:
    service: luxtronik.write
    data:
    parameter: ID_Sollwert_KuCft1_akt
    data_template:
    value: '{{trigger.to_state.state}}'

  • alias: Chłodzenie - Górna granica temp. zewn.
    trigger:
    platform: state
    entity_id: input_number.gorna_granica_temp_zewn
    action:
    service: luxtronik.write
    data:
    parameter: ID_Einst_Kuhl_Zeit_Ein_akt
    data_template:
    value: '{{trigger.to_state.state}}'

  • alias: Chłodzenie - Dolna granica temp. zewn.
    trigger:
    platform: state
    entity_id: input_number.dolna_granica_temp_zewn
    action:
    service: luxtronik.write
    data:
    parameter: ID_Einst_Kuhl_Zeit_Aus_akt
    data_template:
    value: '{{trigger.to_state.state}}'`

@MrLukson
Copy link
Author

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
Copy link
Author

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
Copy link

corneel27 commented Feb 2, 2021

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:

  • alias: set slider
    trigger:
    platform: state
    entity_id: sensor.luxtronik.ID_Einst_WK_akt
    action:
    service: input_number.set_value
    data:
    entity_id: input_number.stooklijn_verschuiving
    value: "{{ states(sensor.luxtronik.ID_Einst_WK_akt) }}"

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??

@Bouni Bouni mentioned this issue Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants