Releases: rjpearce/sofar2mqtt-python
v4.0.2
v4.0.1
v4.0.0
Very big thank you to @zulufoxtrot for his work to bring read-write capabilities to ME3000/HYD-ES inverters.
What's Changed
- Support for ME3000SP desired battery charge/discharge power in passive mode.
Summary of changes:
json: added read flag. if true or absent: read it. if false: don't read it. needed for charge_discharge_power that is write only (as far as I can tell)
json: created new register: "battery power". uses read register 0x020d which was originally believed to contain charge_discharge_power.
l'll comment other changes in the code
Checks (serial number checks bypassed):
only works in passive mode ✅
positive value triggers a charge ✅
negative value triggers a discharge 💹
a zero value disconnects the battery (relay click) ✅
shows up correctly in Home Assistant ✅
battery power correctly reported ✅
Not working yet:
serial number 🛑 (and therefore the program can't start)
MQTT read is broken for charge_discharge_power for the ME3000SP: since we don't read the register (because we can't, as far as I know), we don't publish a topic for this register to MQTT, so it does not show up in Home Assistant, so we can't set it directly in HA. Workaround for now: create an Input Number, then an automation to publish the value of this number to the MQTT topic.
- Bump urllib3 from 2.6.0 to 2.6.3 in the pip group across 1 directory by @dependabot[bot] in #41
Full Changelog: v3.1.1...v4.0.0
v3.1.1
v3.1.0
v3.0.6
What's Changed
- Bump urllib3 from 2.5.0 to 2.6.0 in the pip group across 1 directory by @dependabot[bot] in #34
- Use 0x0488 for Grid on EP by @rjpearce in #36
Full Changelog: v3.0.5...v3.0.6
v3.0.5 - Security updates
What's Changed
- Attempt 2 to fix docker image version by @rjpearce in #23
- Only create docker images for version and latest by @rjpearce in #24
- Bump requests from 2.31.0 to 2.32.0 in the pip group across 1 directory by @dependabot[bot] in #25
- Bump urllib3 from 1.26.18 to 1.26.19 in the pip group across 1 directory by @dependabot[bot] in #26
- Bump certifi from 2023.7.22 to 2024.7.4 in the pip group across 1 directory by @dependabot[bot] in #27
- Bump requests from 2.32.0 to 2.32.4 in the pip group across 1 directory by @dependabot[bot] in #30
- Bump urllib3 from 1.26.19 to 2.5.0 in the pip group across 1 directory by @dependabot[bot] in #31
- Bump Docker image to python:3.13.7-alpine3.2 by @rjpearce in #33
Full Changelog: v3.0.3...v3.0.5
3.0.4
3.0.2
3.0.1
- Implemented MQTT auto discovery for home assistant - no more manual config!
- Added a new refresh option for each register allowing some registers to be read more regularly (fresher) than other that are less important (i.e serial number)
- Added registers for serial number, software version, hardware version.
- The script now retains a local dict of data which is updated after reading registers for this iteration (based on refresh)
- After an iteration the entire dict (JSON) is sent to a new topic sofar/state_all'
- Added a new option for LEGACY_PUBLISH to continue to send messages individually in addition to sofar/state_all.
- Introduce Signal handling to ensure graceful exit
What's Changed
- Build container with sha by @rjpearce in #12
- Introduce MQTT auto discovery for Home Assistant by @rjpearce in #11
Full Changelog: 2.2.5...3.0.1