luxtronik icon indicating copy to clipboard operation
luxtronik copied to clipboard

Added additional sensors

Open toggm opened this issue 1 year ago • 22 comments

* Added additional sensors for flow in temperatur and target of circuit 2 and 3
* Added counter of additional heat  generator2

Related to: https://github.com/BenPru/luxtronik/issues/285

Example of new sensors: image

toggm avatar Oct 28 '24 21:10 toggm

image

toggm avatar Nov 05 '24 06:11 toggm

@BenPru Can you please merge this commits?

blue-bean avatar Nov 17 '24 10:11 blue-bean

@BenPru anything missing which prevents you from merging this PR?

toggm avatar Dec 05 '24 07:12 toggm

@BenPru Can you please merge this commits?

@blue-bean I marked the dev branch as main branch in my repo. If you want to use those sensors, you can add my repo as a custom repository to HACS in the meantime.

toggm avatar Dec 05 '24 07:12 toggm

@toggm I've tested your files but with this changes i've the effect that every second start of HA there are some sensors missing (only every second restart - after next restart all sensors working fine). Very strange

blue-bean avatar Dec 15 '24 18:12 blue-bean

@toggm I've tested your files but with this changes i've the effect that every second start of HA there are some sensors missing (only every second restart - after next restart all sensors working fine). Very strange

@blue-bean I've seen similar behaviour, not sure if it's really related to my chances as I see an exception in a different place. Seems to be a timing issue. But I'll have a look.

toggm avatar Dec 16 '24 05:12 toggm

@toggm I will test it now with the latest beta 2024.11.15

blue-bean avatar Dec 16 '24 08:12 blue-bean

@toggm Can you push your changes as pull requests to my fork https://github.com/blue-bean/luxtronik_ait ? I don't know another way to import your pull requests in my local BenPru-repository using Github-Desktop.

blue-bean avatar Dec 16 '24 11:12 blue-bean

@blue-bean you could either fork my repository of pull my remote branch. https://stackoverflow.com/questions/1709177/pull-a-certain-branch-from-the-remote-server

The changes are in the feature/flow_in_circuit_temperatures branch.

toggm avatar Dec 16 '24 12:12 toggm

@blue-bean I'm missing the following fix which was merged back to main after I forked the repo: https://github.com/BenPru/luxtronik/commit/012baaf96ba86f9f9c06c69c6409f0703af8d394

I'm now going to rebase.

toggm avatar Dec 16 '24 20:12 toggm

@blue-bean Rebasing has fixed the error. @BenPru what about reviewing/merging this MR?

toggm avatar Dec 16 '24 21:12 toggm

I've merged this changes locally into the latest main branch (2024.11.15) and can confirm that all changes work fine.

blue-bean avatar Dec 16 '24 21:12 blue-bean

Is someone else able to merge?

toggm avatar Jan 14 '25 14:01 toggm

I'm afraid not.

blue-bean avatar Jan 14 '25 18:01 blue-bean

@toggm Please provide a release text to describe the breaking changes. 🙏 Sorry for the delay. Many things around me atm.

BenPru avatar Jan 14 '25 18:01 BenPru

@toggm Please provide a release text to describe the breaking changes. 🙏 Sorry for the delay. Many things around me atm.

@BenPru Thanks for answering. Should I post the release notes here or where do you expect me to document those changes?

toggm avatar Jan 15 '25 05:01 toggm

@toggm Please provide a release text to describe the breaking changes. 🙏 Sorry for the delay. Many things around me atm.

@BenPru I've created now a short description about the renaming of the sensors and the newly introduced sensors, hope this will help to be able to merge this PR.

Release notes

This release fixes the naming of the heating circuit sensors. Before, circuit-1 sensors where in fact sensors of the main heating circuit. Circuit-2 sensors where point to mixing circuit-1, circuit-3 where pointing to mixing circuit-3. Mixing circuit-2 was missing at all.

Harmonize naming of circuit sensor names

The following renaming was applied:

  • Main circuit sensors now start without circuit prefix to distinguish them between the mixing circuits
  • Mixing circuit sensors now start with circuit<Number> prefixes
  • Circuit-2 sensors names where renamed to circuit-1 sensors names
  • Naming of Circuit-3 sensors was just harmonized to the same pattern

All Renaming where described in the following issue: https://github.com/BenPru/luxtronik/issues/291

The sensors where renamed as follow:

Entity name before Renamed to
sensor.<identity_prefix>_heating_circuit_curve1_temperature sensor.<identity_prefix>_heating_curve_end_temperature
sensor.<identity_prefix>_heating_circuit_curve2_temperature sensor.<identity_prefix>_heating_curve_parallel_shift_temperature
sensor.<identity_prefix>_heating_circuit_curve_night_temperature sensor.<identity_prefix>_heating_curve_night_temperature
sensor.<identity_prefix>_heating_circuit2_curve1_temperature sensor.<identity_prefix>_heating_curve_circuit1_end_temperature
sensor.<identity_prefix>_heating_circuit2_curve2_temperature sensor.<identity_prefix>_heating_curve_circuit1_parallel_shift_temperature
sensor.<identity_prefix>_heating_circuit2_curve_night_temperature sensor.<identity_prefix>_heating_curve_circuit1_night_temperature
sensor.<identity_prefix>_heating_circuit3_curve1_temperature sensor.<identity_prefix>_heating_curve_circuit3_end_temperature
sensor.<identity_prefix>_heating_circuit3_curve2_temperature sensor.<identity_prefix>_heating_curve_circuit3_parallel_shift_temperature
sensor.<identity_prefix>_heating_circuit3_curve_night_temperature sensor.<identity_prefix>_heating_curve_circuit3_night_temperature

The history will update itself. All other custom integrations (dashboard, automations, helpers, templates, ...) need to be migrated manually.

Introducing new sensors

The following sensors where newly introduced:

New entity Description
sensor.<identity_prefix>_heating_curve_circuit2_end_temperature Target end temperature of mixing circuit 2
sensor.<identity_prefix>_heating_curve_circuit2_parallel_shift_temperature Parallel shift temperature of mixing circuit 2
sensor.<identity_prefix>_heating_curve_circuit2_night_temperature Night temperature shift of mixing circuit 2
sensor.<identity_prefix>_flow_in_circuit1_temperature Flow-in temperature of mixing circuit 1
sensor.<identity_prefix>_flow_in_circuit2_temperature Flow-in temperature of mixing circuit 2
sensor.<identity_prefix>_flow_in_circuit3_temperature Flow-in temperature of mixing circuit 3
sensor.<identity_prefix>_flow_in_circuit1_target_temperature Flow-in target temperature of mixing circuit 1
sensor.<identity_prefix>_flow_in_circuit2_target_temperature Flow-in target temperature of mixing circuit 2
sensor.<identity_prefix>_flow_in_circuit3_target_temperature Flow-in target temperature of mixing circuit 3
additional_heat_generator2_operation_hours Heat generator 2 operation hours

toggm avatar Jan 31 '25 10:01 toggm

To my knowledge, renaming an entity will only effect new installs. It shouldn't effect existing entities, so this shouldn't be a breaking change.

Is my assumption wrong?

Secondly, I'm always struggling to visualize what the entities mean. @toggm : Do you happen to have a drawing with the sensors on a basic heatpump layout? I can create a nice picture out of it and update the documentation.

AJediIAm avatar Feb 01 '25 09:02 AJediIAm

@AJediIAm Renaming of an entity is then a breaking change, if you reference the entity in an automation, in a template or in the dashboard those references will point to non-existing entity anymore. Therefore the change is kind of breaking.

Reagarding the drawing I need to check the documentation of my heatpump integration and see if I could enrich it with some of the sensors.

toggm avatar Feb 03 '25 05:02 toggm

@AJediIAm I have to say that in my opinion the renaming and introduction of @toggm's new sensors is highly intuitive. It is catchy, consistent and congruent across all mixing circuits. I have been using this extension for almost a month now with excellent experience. I particularly missed the ‘xxx_flow_in_circuitx_temperature’ entity in the past, as this differs from the ‘xxx_flow_in_temperature’ entity of the heat pump in a combined storage tank.

Hydraulikschema

stefanovich1 avatar Feb 07 '25 09:02 stefanovich1

@stefanovich1 Thank you for the missing documentation/diagram

toggm avatar Feb 07 '25 09:02 toggm

@BenPru still something missing to be able to merge?

toggm avatar May 05 '25 18:05 toggm

Sorry for the delay.

AJediIAm avatar Jul 08 '25 18:07 AJediIAm