Skip to content

Releases: weltmeyer/ha_sonnenbatterie

v2025.03.01

01 Mar 21:50
6eb4fcb
Compare
Choose a tag to compare

Fix stupid oversight, json_schedule obvioulsy is an array so it should be treated as such when comparing the threshold_p_max limit.

v2025.02.02

18 Feb 20:20
9a682b3
Compare
Choose a tag to compare

Cleanups and fixes:

  • Check for active write API before enabling services, actions, selects, numbers and buttons. Fixes #86. Thanks @Prythi
  • This new check now requires python_sonnenbatterie >= 0.6.0
  • Removed unnecessary calls to coordinator.async_refresh() when initializing services, actions, selects, numbers and buttons which results in slightly faster startup time
  • Add three new diagnostic sensors:
    • read_api: whether the v2 JSON-API read access is enabled
    • write_api: whether the v2 JSON-API write access is enabled
    • tou_max: displays the configured limit for threshold_p_max on ToU
  • Enforce the configured tou_max limit on calls to set_tou_schedule()

v2025.02.01

09 Feb 11:21
538e3fd
Compare
Choose a tag to compare

Rework some services to return more consistent responses:

  • make set_operating_mode return the textual representation of the operating mode
  • make get_operating_mode return the textual representation of the operation mode
  • introduce new service set_operating_mode_num that accepts a numeric value for the mode to set and in turn also returns the numeric value of the mode that has been set
  • introduce new service get_operating_mode_num that returns the numeric operating mode value

Added the new service descriptions to README.md and also added the formerly forgotten get_operating_mode description.

Removed some unused older code.

Updated HA requirement to 2025.2.0

v2025.01.03

24 Jan 16:59
3d275d9
Compare
Choose a tag to compare

Changes include:

  • Add number service to set battery reserve, closes #80
  • Change input type for charge/discharge actions to str, closes #78
  • Add trivial check for negative values to dis-/charge actions
  • Fix some minor formatting errors in the actions section
  • Updated description for actions, added explanation for device_id
  • Updated README with more detailed installation instructions

v2025.01.02

15 Jan 14:50
a76943f
Compare
Choose a tag to compare

Selects! Numbers! Buttons! ... and more ;)

Selects, Numbers and Buttons

You'll now get some new inputs that are shown with the device under the "Configuration" section:

  • a "select" entity to switch the operating mode between "manual", "automatic" and "timeofuse" (yes, "expansion" is
    excluded on purpose)

  • two sliders to set the "charge" or "discharge" power of in W.

  • three buttons to reset either "charge" or "discharge" or both to 0W

    Bildschirmfoto 2025-01-11 um 01 33 48

Note

When using the sliders, buttons and the selector all changes will be sent to the SonnenBatterie immediately.

Fixes and Goodies

  • Found and fixed a bug that caused "production_w" (legacy sensor name, new name is "state_prodcution") to not show up in the sensor list under a recognizable name. It was caused by the translation entry being named "state_poduction_w" instead of "state_production". This fix might also fix the problem reported by in #65

  • Added some more icons to various sensors, hope you like it

  • Added more information to the device info shown on the device screen

    Bildschirmfoto 2025-01-11 um 01 34 42

v2025.01.01

01 Jan 16:02
aa7e236
Compare
Choose a tag to compare

Actions!

Warning

This version of the integration needs python_sonnenbatterie >= 0.5.0 (see this PR)

This is the first version of the integration to provide user facing
actions. Currently supported actions are:

  • get_operating_mode()
  • set_operating_mode(mode=<mode>)
  • charge_battery(power=<power>)
  • discharge_battery(power=<power>)
  • get_battery_reserve()
  • set_battery_reserve(value=<value>)
  • set_config_item(item=<item>, value=<value>)
  • get_tou_schedule()
  • set_tou_schedule(schedule=<schedule_array>)

v2024.12.02

27 Dec 12:04
f720162
Compare
Choose a tag to compare

v2024.12.02

  • Fix reconfigure flow for existing installations

v2024.12.01

  • Make sure the default scan interval is honored even if not set by user
  • Make sure old values aren't overwritten in case of connection error (fixes #70)
  • Be lenient to connection errors for ~3 mins (Sonnenbatterie maintenance interval)
  • Fix minor oversight in sensor_list.py
  • Silence/fix some PEP hints from IDE
  • Update version, require sonnenbatterie >= 0.3.0
  • Moved "options" to basic configuration
    • scan_interval and debug_mode can now be set under the (...) menu
      using the "Reconfigure" option
  • Made configuration editable by providing async_setup_reconfigure function (see above)
  • Added serial number to device in integration overview
  • Disabled OptionsFlowHandler class since there are no more options ;)
  • Disabled some functions that were never called
  • Reworked config reload to be compatible with HA 2025.1 onward (fixes #69)
  • Added/removed translations where appropriate
  • Removed unused constants
  • Fixed a bug that caused the sensors to be read every second thereby causing unnecessary load
  • Updated README