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

Room temperature sensor not available #15

Closed
Laars123 opened this issue Sep 19, 2022 · 16 comments
Closed

Room temperature sensor not available #15

Laars123 opened this issue Sep 19, 2022 · 16 comments

Comments

@Laars123
Copy link

My luxtronik/alpha innotec installation includes a room temperature sensor.
However, it doesn't show up in the integration. Can this be added?
It does show up in de webserver heatpump controller though.
Thanks!

Note: Auto discovery didn't work in my case.

@rhammen
Copy link
Contributor

rhammen commented Nov 6, 2022

I'd also like to have this :-)
parameter: ID_WEB_RBE_RT_Ist

@rhammen
Copy link
Contributor

rhammen commented Nov 6, 2022

I was able to add the Room Temperature by adding the following around line 400 of sensor.py:
LuxtronikSensor(
hass,
luxtronik,
device_info_heating,
"calculations.ID_WEB_RBE_RT_Ist",
"room_temperature",
f"Room {text_temp}",
entity_category=None,
),

Additionally, I added a sensor for the Pumpfrequency at around line 325 in sensor.py:
LuxtronikSensor(
hass,
luxtronik,
device_info,
"calculations.ID_WEB_Freq_VD",
"pump frequency",
f"Pump Frequency",
entity_category=None,
icon="mdi:sine-wave",
unit_of_measurement='Hz'
),

@Kars-de-Jong
Copy link
Contributor

For the climate entity, you can add this yourself using the configuration dialog. Just enter “calculations.ID_WEB_RBE_RT_Ist” in the “Home Assistant sensor id for the current indoor temperature” text field.

@rhammen that is not the pump frequency, it’s the compressor frequency.

You can add extra sensors yourself using the “luxtronic2” sensor platform:

sensors:
  - platform: luxtronik2
    sensors:
      - group: calculations
        id: ID_WEB_Temperatur_THG
        friendly_name: Temperatuur heetgas
        icon: mdi:thermometer
        state_class: measurement
      - group: calculations
        id: Heat_Output
        friendly_name: Vermogen
        icon: mdi:flash
        state_class: measurement
        unit_of_measurement: W

etc.

@BenPru
Copy link
Owner

BenPru commented Nov 14, 2022

I have no luxtronik hardware thermostat.
Is it possible to write the ID_WEB_RBE_RT_Ist from ha to luxtronik?
ID_WEB_RBE_RT_Ist is a calculation and readonly, but perhaps we can find a parameter for this?

@Kars-de-Jong
Copy link
Contributor

That would be great, but I don't think it's possible with this interface. It is possible with the BACnet / Modbus option, that does have an "outside temperature" analog value / holding register.

@rhammen
Copy link
Contributor

rhammen commented Nov 14, 2022

I have no luxtronik hardware thermostat. Is it possible to write the ID_WEB_RBE_RT_Ist from ha to luxtronik? ID_WEB_RBE_RT_Ist is a calculation and readonly, but perhaps we can find a parameter for this?

What exactly do you want to achieve?
"ID_WEB_RBE_RT_Ist" is basically just a temperature sensor of the "room temperture".
If it is about displaying the room temperature In the climate control, you use the configure button to enter which (tempertature) sensor to show on the Heating climate control.
I'd expect you can enter there any (room) temperature sensor you have available in HA.

@BenPru
Copy link
Owner

BenPru commented Nov 15, 2022

How does the heatpump use the room temperature?
Is it used like ha climate entities? If yes, I think it is useful to push the ha room temperature to luxtronik.

@rhammen
Copy link
Contributor

rhammen commented Nov 15, 2022

As far as I know, the heatpump temperature control is like a 3-step approach:
Base) Calculating the Return flow temperature, based on the Outside temperature and the heating-curve

  1. You can add to the return temperature a value between [-5,+5] Celcius. This is what the climate thermostat currently does
  2. RBE (room wall unit) can further adjust the return target as follows:

l = Luxtronik('192.168.1.190', 8889)
print('room current',l.calculations.get('ID_WEB_RBE_RT_Ist'))
print('room target',l.calculations.get('ID_WEB_RBE_RT_Soll'))
print('correction factor [%]',l.parameters.get('ID_RBE_Einflussfaktor_RT_akt')) range [100%,200%]
print('adjustment',l.calculations.get('ID_WEB_Temperatur_RFV'))

delta = room_target - room_current
adjustment = max ( (correction * delta), 2)

so suppose we have:
room temperature = 20
target = 20.5
correction_factor = 100%
--> return tempertature adjustment = 0.5

For users with an RBE configured, we could try writing ID_WEB_RBE_RT_Soll, thus create a real room-temperature thermostat.
I'm not sure if this would work if users do not have an RBE configured...

@BenPru
Copy link
Owner

BenPru commented Nov 15, 2022

For users with an RBE configured, we could try writing ID_WEB_RBE_RT_Soll

@rhammen Great idea.
But we can not write calculation values...
All the values are zero in my heatpump.
Would you like to implement this "3-step approach" in the ha luxtronik "climate.luxtronik2_heating"?

@rhammen
Copy link
Contributor

rhammen commented Nov 15, 2022

So something like:
IF "RBE calculation values" != 0
"Configure as room temperature climate control"
ELSE
"Configure as temperature correction control" (= as it currently works after my update)
?
I can do that :-)

@rhammen
Copy link
Contributor

rhammen commented Nov 15, 2022

Ignore my previous remark.
We cannot write to calculations.
So we can only control the thermostat via "parameters.ID_Einst_WK_akt"
That means:

IF  no RBE present:
   - let's create a SW thermostat
   - we take current room temperature from sensor defined in luxtronik config
   - HA climate thermostat controls the target room temperature, e.g. 20.5
   - let user define a correction_factorce.g. 100%
--> calculate temperature adjustment = 0.5
--> write this adjustment to  "parameters.ID_Einst_WK_akt"
--> this calculation should be repeated regularly, because the room temperature may change over time
IF RBE present:
     -  the RBE thermostat already takes care of the observed difference between current room temperature and target ID_WEB_RBE_RT_Soll
     -  the user may select a different target room temperature in HA
     -  the HA thermostat hould only act on the difference between "HA thermostat target temperature" and ID_WEB_RBE_RT_Soll
     - calculate the the needed temperature adjustment 
--> write this adjustment to  "parameters.ID_Einst_WK_akt"

Is this how you imagine it to work?

@BenPru
Copy link
Owner

BenPru commented Nov 16, 2022

So we can only control the thermostat via "parameters.ID_Einst_WK_akt" That means:
Is this how you imagine it to work?

Yes, exactly.

  • let user define a correction_factorce.g. 100%
  • calculate temperature adjustment = 0.5
  • write this adjustment to "parameters.ID_Einst_WK_akt"
  • this calculation should be repeated regularly, because the room temperature may change over time

The hvac mode (parameters.ID_Ba_Hz_akt) and preset mode (parameters.ID_Ba_Hz_akt) must be written from ha to luxtronik and read from luxtronik to ha.

@BenPru
Copy link
Owner

BenPru commented Nov 18, 2022

@rhammen @Kars-de-Jong
In heatpump24.com I have a setting 33 "remote control" with possible values RFV, RFV-K, RFV-DK, RBE and Smart.
Is this the activation of the room thermostat?
Is it possible to set this to "smart" and push the thermostat values from ha to luxtronik?

calculations.ID_WEB_Freq_VD is always 0 and calculations.ID_WEB_Temperatur_TWA is always -50 for me. Why?

@rhammen
Copy link
Contributor

rhammen commented Nov 19, 2022

@rhammen @Kars-de-Jong In heatpump24.com I have a setting 33 "remote control" with possible values RFV, RFV-K, RFV-DK, RBE and Smart. Is this the activation of the room thermostat?

Yes, for me this is set to "RBE".

Is it possible to set this to "smart" and push the thermostat values from ha to luxtronik?

As far as I know the thermostat values are all in calulcations. So we cannot write them (?)
I'm not aware of parameters that can set the thermostat values.

calculations.ID_WEB_Freq_VD is always 0 and `calculations.

For me this parameter shows the inverter frequency, when the heatpump is running.
A value like 20, 30 or 40.
I don't knwo why the value is 0 for you. Maybe related to the type of heatpump?
I have a brine/water heatpump

ID_WEB_Temperatur_TWAis always-50` for me. Why?

For me this shows the brine-temperature that goes back into the ground.
For exampel TWE = 8.0 C and TWA = 4.3 C
Also here, I suspect it may be related to the type of heatpump and the sensors that it has?
Does the value show for you in the heatpump App?

@BenPru
Copy link
Owner

BenPru commented Nov 19, 2022

Maybe related to the type of heatpump?
Also here, I suspect it may be related to the type of heatpump and the sensors that it has?

Yes, I think so.

Does the value show for you in the heatpump App?

No, its not visible in the App or the website.

@rhammen
Copy link
Contributor

rhammen commented Nov 22, 2022

I think the original problem of this issue "Room temperature sensor not available" has been solved with the recent update(s)
Then this issue can be closed.
There was also some discussion in this thread about how to implement a heating thermostat.
I propose we continue that discusssion in issue #3

@BenPru BenPru closed this as completed Nov 22, 2022
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

4 participants