Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.4k stars 254 forks source link

Question: climate page #1363

Open kroessig opened 10 months ago

kroessig commented 10 months ago

I use the luxtronik integration to integrate and control my heat pump in HA. “Of course” I entered it into this blueprint and can see from the temperature symbol when it heats up. Top!

Unfortunately, the climate device entities do not meet my requirements. I don't heat according to room temperature, but my return temperature from my underfloor heating tells me whether the heat pump should run or not. (I don't have an individual room control). To increase the temperature in the room/house I can increase the return temperature. This provides the integration and I use it via automations.

image image

Now I would like to show and control this here. image

My climate device looks like this: image

Is it somehow possible to map this using an "template climate"?

edwardtfn commented 10 months ago

On the climate page you control the target temperature. Are you asking for a way to control your correction number?

kroessig commented 10 months ago

On the climate page you control the target temperature. Are you asking for a way to control your correction number?

exactly, that's what I want. but the correction number is not part of the climate-entity.

One way is of course to control the correction number depending on the target room temperature, for example: correction number = room temperature - 20

edwardtfn commented 10 months ago

On the climate page you have 4 custom values and 2 custom buttons. You could assign this number to one of the values and assign scripts to each fo the custom buttons, one for increase the number, the other one for decreasing the number.

The problem here is that those custom entities are universal to all climate pages, which means the same controls and same values will be shown to all climate pages if you have more than one.

edwardtfn commented 9 months ago

I'm coming back to this, but I still not sure if I understood what you are asking for.

As I understood the problem is that your Luxtronik climate is providing current temperature as 0, which looks to be incorrect. Are you looking for a way to use the NSPanel's temperature sensor into your Luxtronik climate so it shows the value correctly?

Could you please provide more details?

edwardtfn commented 9 months ago

It's quiet here. I'm closing this until we have our questions answered, so we can help. Please feel free to reopen it. 😉

kroessig commented 9 months ago

Hey,

I have already implemented your answer (with the two buttons), but unfortunately I forgot to report my “success”. The function is exactly what I wanted. Thank you very much for the tip. I then wanted to take a closer look at the blueprint and link my desired value directly there. Unfortunately I haven't been able to do it in the last few days. Would the position be the right one?

Blueprint NSPanel: Values for Climate Page
                             ##### Sliders & climate values #####
                           - &climate-update_slider
                             if: '{{ not (climate_entity == climate and embedded_climate) }}'
                             then:
                               - variables:
                                   current_temp: '{{ state_attr(climate_entity, "current_temperature") | float(-999) | round(1) }}'
                                   target_temp: >
                                     {{
                                       state_attr(climate_entity, "temperature") | float(-999) | round(1)
                                       if has_value(climate_entity)
                                       else -999

if so, I would change target_temp:

target_temp: '{{ float(states('number.luxtronik2_heating_target_correction') | float(-999) | round(1)) }}'

I am aware that every time I update the Blueprint, I have to make my own changes again.

Are you looking for a way to use the NSPanel's temperature sensor into your Luxtronik climate so it shows the value correctly?

I am looking for a way to specify any value there. ;-)

edwardtfn commented 9 months ago

That will show the temperature from your correction as the target temperature, which is probably not what you want.

What is your goal, in the end? Please take a look at this: https://en.wikipedia.org/wiki/XY_problem I think we have that case here and I didn't got what is the issue.

Try to describe your system, what is not working as you expected and what you expect. Please focus on the goal, not on the solutions you are trying. 😉

kroessig commented 9 months ago

Hey, sometimes it's easier than you think. I really want to see the correction value displayed. my case is maybe quite different than for most users. I have a heat pump and it runs without individual room controller. It heats until a return temperature (depending on the outside temperature) is reached. Now when I light the fireplace, I set the correction value to -2. I do this using the button - and it works great (+ works too). However, since I also use night setback and PV excess control, I want to see the current correction value.

My English isn't the best, so I can't express myself like that and explain so much. But I'm really grateful that you even translate and answer German questions yourself

edwardtfn commented 9 months ago

My English isn't the best, so I can't express myself like that and explain so much.

I have a bad English also, and I know what do you mean. 😉

I will take a look at this case later and come back to you.