OpenDTU icon indicating copy to clipboard operation
OpenDTU copied to clipboard

Consistency between absolute/relative limit values and homassistant integration

Open reinhard-brandstaedter opened this issue 1 year ago • 1 comments

What happened?

Via MQTT or the UI we can set the inverter limits higher than the actual limit of the inverter. E.g. we can set a HMS-2000 absolute limit to 3000/150%. This is OK as in my experience this allows to get more from 2 channels of a 4 channel inverter as the limit is evenly split across 4 channels. With a limit of 2400W and only 2 channels of the inverter connected I can still get 1200W.

However the homeassistant templates that are pushed for auto-config of HA have different max values than what is allowed in the UI/MQTT commands. This leads to warnings:

15:44:03.421 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.hms_2000_limit_nonpersistent_relative: 140.0 (range 0.0 - 100.0)
15:44:03.421 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.hms_2000_limit_persistent_relative: 140.0 (range 0.0 - 100.0)
15:44:03.426 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.hms_2000_limit_nonpersistent_absolute: 2800.0 (range 0.0 - 2250.0)
15:44:03.427 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.hms_2000_limit_persistent_absolute: 2800.0 (range 0.0 - 2250.0)

In my opionion those max values in the config template should also be adjusted to 150% resp. 3000 (for a 2000W inverter)

To Reproduce Bug

  • enable HA integration/auto config
  • set the limit to 150% in OpenDTU
  • observe HA log for the warning

Expected Behavior

same limit boundaries on MQTT/UI side and HA configuration

Install Method

Pre-Compiled binary from GitHub

What git-hash/version of OpenDTU?

https://github.com/tbnobody/OpenDTU/releases/tag/v24.3.15

Relevant log/trace output

No response

Anything else?

No response

reinhard-brandstaedter avatar May 15 '24 13:05 reinhard-brandstaedter

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Apr 03 '25 04:04 github-actions[bot]

This issue has been automatically closed because it has not had recent activity. Please add a comment if you want to get this issue re-opened. Thank you for your contributions.

github-actions[bot] avatar Apr 18 '25 04:04 github-actions[bot]

i also have that with my Home-Assistant and HMS-2000 (OpenDTU) at night:

2025-04-18 06:31:59.443 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.hms_2000_limit_nonpersistent_relative: 0.1 (range 1.0 - 100.0)
2025-04-18 06:31:59.449 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.hms_2000_limit_nonpersistent_absolute: 2.0 (range 10.0 - 2250.0)
2025-04-18 06:31:59.449 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.hms_2000_limit_persistent_absolute: 2.0 (range 10.0 - 2250.0)
2025-04-18 06:32:09.993 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.hms_2000_limit_persistent_relative: 0.1 (range 1.0 - 100.0)

Jey-Pee avatar Apr 18 '25 09:04 Jey-Pee

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

github-actions[bot] avatar May 19 '25 04:05 github-actions[bot]