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

[sonnen] Fix channel types, Energy should be Power #15384

Merged
merged 3 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions bundles/org.openhab.binding.sonnen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ 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. |
| batteryCharging | Number:Power | 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 |
| batteryDischarging | Number:Power | read | Indicates the actual current discharging the Battery. Otherwise 0. |
| consumption | Number:Power | read | Indicates the actual consumption of the consumer in watt |
| gridFeedIn | Number:Power | read | Indicates the actual current feeding to the Grid in watt.0 if nothing is feeded |
| gridConsumption | Number:Power | read | Indicates the actual current consumption from the Grid in watt.0 if nothing is received |
| solarProduction | Number:Power | 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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,37 +71,37 @@
<state readOnly="true"/>
</channel-type>
<channel-type id="batteryCharging">
<item-type>Number:Energy</item-type>
<item-type>Number:Power</item-type>
<label>Battery Charging</label>
<description>Indicates the actual current charging the Battery. Otherwise 0.</description>
<state readOnly="true" pattern="%.0f %unit%"/>
</channel-type>
<channel-type id="batteryDischarging">
<item-type>Number:Energy</item-type>
<item-type>Number:Power</item-type>
<label>Battery Discharging</label>
<description>Indicates the actual current discharging the Battery. Otherwise 0.</description>
<state readOnly="true" pattern="%.0f %unit%"/>
</channel-type>
<channel-type id="consumption">
<item-type>Number:Energy</item-type>
<item-type>Number:Power</item-type>
<label>Consumption</label>
<description>Indicates the actual consumption of the House.</description>
<state readOnly="true" pattern="%.0f %unit%"/>
</channel-type>
<channel-type id="gridFeedIn">
<item-type>Number:Energy</item-type>
<item-type>Number:Power</item-type>
<label>Grid Feed In</label>
<description>Indicates the actual current feeding to the Grid. Otherwise 0.</description>
<state readOnly="true" pattern="%.0f %unit%"/>
</channel-type>
<channel-type id="gridConsumption">
<item-type>Number:Energy</item-type>
<item-type>Number:Power</item-type>
<label>Grid Consumption</label>
<description>Indicates the actual current consumption from the the Grid. Otherwise 0.</description>
<state readOnly="true" pattern="%.0f %unit%"/>
</channel-type>
<channel-type id="solarProduction">
<item-type>Number:Energy</item-type>
<item-type>Number:Power</item-type>
<label>Solar Production</label>
<description>Indicates the actual production of the Solar system.</description>
<state readOnly="true" pattern="%.0f %unit%"/>
Expand Down