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

Add sensors or parameters - how to (in this case the new power limitation) #267

Open
stefanovich1 opened this issue Aug 26, 2024 · 14 comments
Assignees
Labels
enhancement New feature or request todo issue ready to implement

Comments

@stefanovich1
Copy link

Hey friends,

ist there a documentation, on how to add parameters or sensors to the integration?
My attempt is to add the power limitation as a writable parameter tobe able to use it in automations.

Thanks

@stefanovich1
Copy link
Author

Thanks I gues.
I dont get how a windows exe can fix the integartion on the HA?
The exe is flagged as suspicious....can you give furhter info on how this exe will fix this problem?

@ChrisMisker
Copy link

I would definitely not do anything with what Wanderx said, I don't trust that.
What you can do, is find the ID. Download the diagnostics before you change the parameter, change the parameter and download the diagnostics again. Find the difference between the 2 files and try to find the right parameter. Mention it here, and Benpru might add it to a future version.

@stefanovich1
Copy link
Author

I would definitely not do anything with what Wanderx said, I don't trust that. What you can do, is find the ID. Download the diagnostics before you change the parameter, change the parameter and download the diagnostics again. Find the difference between the 2 files and try to find the right parameter. Mention it here, and Benpru might add it to a future version.

Thanks for suggestion: Do you mean the datalogger diagnostics from the machine, right?

@ChrisMisker
Copy link

ChrisMisker commented Aug 27, 2024

I would definitely not do anything with what Wanderx said, I don't trust that. What you can do, is find the ID. Download the diagnostics before you change the parameter, change the parameter and download the diagnostics again. Find the difference between the 2 files and try to find the right parameter. Mention it here, and Benpru might add it to a future version.

Thanks for suggestion: Do you mean the datalogger diagnostics from the machine, right?

See https://github.com/BenPru/luxtronik and then the chapter about Support / Creating tickets.

@stefanovich1
Copy link
Author

Hello friends,

I did some investigation:
The Parameter ID 1158 is ON/OFF Limitation
The Parameter ID 1159 is the limitation in kW but in a weird dimension.
e.g. 2kW is listet as "20" and 1.1kw is listet as "11"

Is there a way to add it manualy via editor in HA?

@stefanovich1
Copy link
Author

As far as I could research, BenPru's integration removed the possibility to add those parameters manually.
So I'm still stuck with this task.
Could anyone give me directions on:

  • either how to add those parameters manually (if possible)
  • or how to support BenPru to add those parameters (I am willing to contribute, but with very little experience)

Thanks

@rhammen
Copy link
Contributor

rhammen commented Sep 27, 2024

How to manually add Luxtronik parameters:

  • Go to HACS
  • Search for Luxtronik
  • It will find 2 integrations with the name Luxtronik and the same icon. You basically need both.
  1. The original Luxtronik integration by Bouni, last updated last year. URL ends with "hacs/repository/260169906"
  2. The integration in this repository by BenPru, currently at version 2024.9.23-Beta. URL ends with "hacs/repository/420733339"
  • You will have already downloaded and installed integration 2.
  • Download and Install the integration 1. It will install the integration in custom_components/luxtronik.
    (The BenPru integration 2. in this repository has been installed to custom_components/luxtronik2)
  • Integration 1. cannot be configured via the HA UI: you need to configure everything via YAML.
  • The Hacs page of the integration 1. (URL ends with "hacs.repository/260169906") describes how to configure via YAML the connection to the Heatpump, and how to add sensors for parameters that are not part of integration 2.

Should you have problem adding the sensors or getting things to work with the integration 1. , you'll need to ask for support at that integration: https://github.com/Bouni/luxtronik/issues

@BenPru
Copy link
Owner

BenPru commented Sep 28, 2024

The Parameter ID 1158 is ON/OFF Limitation
The Parameter ID 1159 is the limitation in kW but in a weird dimension.
Firmware *.90 >=

@stefanovich1 Great, thank you very much.
Please let me release a new stable and after that I can have a look at the new values.
Unfortunately my heatpump has no new firmware (*.90) and I can't test it.

@BenPru BenPru self-assigned this Sep 30, 2024
@BenPru BenPru added enhancement New feature or request todo issue ready to implement labels Sep 30, 2024
@Mehli12
Copy link

Mehli12 commented Oct 1, 2024

Hi,

I think these parameters are very interesting not just as sensors but also as writable. At the end I would be possible to adjust the heat pump power limit to the available power from PV for example.
I have no idea how to change these parameters via HA. But changing this via the UI of the Luxtronik is not an option.

@blue-bean
Copy link

blue-bean commented Oct 2, 2024

There is a new firmware available which adds support for a HEMS based on Solar Manager .
See some infos at Link
Up to now i have no problems using this firmware with the latest integration 2024.9.30

EDIT: see this issue

[V3.90.1-12327]

  • Allgemeine Verbesserungen und Optimierungen der Wärmepumpenregelung
  • Integration Smart Home Schnittstelle (SHI) für die Anbindungen des Solar Managers (HEMS)

@stefanovich1
Copy link
Author

Hey people!
I would like to help wherever I can. I have a suggestion for the Sensors below.
The Sensors only apply when "smart grid" is active.
This switch is also not available in the integration....should we add this also?

descr(
    key=SensorKey.ELECTRICAL_POWER_LIMITATION_VALUE,
    luxtronik_key=LP.P1159_Unknown_Parameter_1159,
    icon="mdi:arrow-collapse-down",
    state_class=SensorStateClass.MEASSUREMENT,
    device_class=SensorDeviceClass.ENERGY,
    entity_category=EntityCategory.DIAGNOSTIC,
    native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
    native_precision=1,
    factor=0.1,
    min_firmware_version_minor=FirmwareVersionMinor.minor_90,
    update_interval=UPDATE_INTERVAL_SLOW,

LuxtronikBinarySensorEntityDescription(
    key=SensorKey.ELECTRICAL_POWER_LIMITATION_SWITCH,
    luxtronik_key=LP.P1158_Unknown_Parameter_1158,
    icon="mdi:leaf-circle-outline",
    device_class=BinarySensorDeviceClass.RUNNING,

@wiljums
Copy link

wiljums commented Nov 28, 2024

There is a new firmware available which adds support for a HEMS based on Solar Manager .
See some infos at Link
Up to now i have no problems using this firmware with the latest integration 2024.9.30

EDIT: see this issue

[V3.90.1-12327]

  • Allgemeine Verbesserungen und Optimierungen der Wärmepumpenregelung
  • Integration Smart Home Schnittstelle (SHI) für die Anbindungen des Solar Managers (HEMS)

@blue-bean: where did you find the 'releasenotes' of the new firmware?

@Codectory
Copy link

Are there any plans for this feature?

@Codectory
Copy link

Codectory commented Dec 17, 2024

I am done with the feature. I would like to push it to a separate branch. @blue-bean @BenPru Can anyone give me the permission?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request todo issue ready to implement
Projects
None yet
Development

No branches or pull requests

9 participants