Sonnen binding
The binding for sonnen communicates with a sonnen battery. More information about the sonnen battery can be found here: https://sonnen.de/
In general the sonne API can be also read with the standard http binding. However I decided to create this binding to make it easier for normal user to integrate it in their openhab instance.
The following channels are yet supported:
Channel | Type | Access | Description |
---|---|---|---|
batteryChargingState | Switch | read | Indicates if the Battery is charging at that moment |
batteryCharging | Number:Energy | read | Indicates the actual current charging the Battery. Otherwise 0. |
batteryDischargingState | Switch | read | Indicates if the Battery is discharging at that moment |
batteryDischarging | Number:Energy | read | Indicates the actual current discharging the Battery. Otherwise 0. |
batteryFeedIn | Number:Energy | read | Indicates the actual charging current of the Battery in watt |
batteryDischarging | Number:Energy | read | Indicates the actual current discharging the Battery in watt |
consumption | Number:Energy | read | Indicates the actual consumption of the consumer in watt |
gridFeedIn | Number:Energy | read | Indicates the actual current feeding to the Grid in watt.0 if nothing is feeded |
gridConsumption | Number:Energy | read | Indicates the actual current consumption from the Grid in watt.0 if nothing is received |
solarProduction | Number:Energy | read | Indicates the actual production of the Solar system in watt |
batteryLevel | Number | read | Indicates the actual Battery Level in % from 0 - 100 |
flowConsumptionBatteryState | Switch | read | Indicates if there is a current flow from Battery towards Consumption |
flowConsumptionGridState | Switch | read | Indicates if there is a current flow from Grid towards Consumption |
flowConsumptionProductionState | Switch | read | Indicates if there is a current flow from Solar Production towards Consumption |
flowGridBatteryState | Switch | read | Indicates if there is a current flow from Grid towards Battery |
flowProductionBatteryState | Switch | read | Indicates if there is a current flow from Production towards Battery |
energyImportedStateProduction | Number:Energy | read | Indicates the imported kWh Production |
energyExportedStateProduction | Number:Energy | read | Indicates the exported kWh Production |
energyImportedStateConsumption | Number:Energy | read | Indicates the imported kWh Consumption |
energyExportedStateConsumption | Number:Energy | read | Indicates the exported kWh Consumption |
batteryChargingFromGrid | Switch | read/write | Starts and stops the active battery charging from Grid. Note: âWrite-APIâ in Software-Integration page of the local web interface from the sonnen battery must be activated and the given token must be entered in authentication token field of the binding |
batteryOperationMode | String | read | Indicates if the Battery is operating in automatic or manual mode. Manual mode is required for active charging the battery. Assure that the battery is in automatic mode if you donât actively charge the battery.Changing the operation mode is happening with the channel âbatteryChargingFromGridâ |
Changelog
Version 0.1
- initial release
Version 0.2
- Refactoring code
- Adding new Channels batteryFeedIn, batteryDispense and gridReceive on user request. gridFeedIn shows now only positive values.
Version 1.0
- Refactoring code
- Changing Channel descriptions
- Same Code basis as merged to the next offical release of openhab
Version 1.1 (added 12.03.22) - Update of V1.1 on 07.04.23
- Added support for sonnen API V2
- Added two channels for PowerMeter
Version 3.0 (added 24.01.25) - Update of V3.0rc1 on 24.01.25 (Minimal OH4.3.0 required)
- Added support for start/stop charging battery form grid
Resources
Latest Release JAR:
Latest JAR-File V3.0rc1
Source Code is merged here (pull request created):
Github repository
New PR for OH5.0:
Pull Request
Author
This binding was developed by @Christian_Feininger .