-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[ferroamp] Binding for Ferroamp 20241010 #17536
base: main
Are you sure you want to change the base?
Conversation
This is the binding for local connection to the Ferroamp Energy System Signed-off-by: Örjan Backsell <orjan.backsell@gmail.com>
Changes done in FerroampHandlerFactory.java Signed-off-by: Örjan Backsell <orjan.backsell@gmail.com>
Hi @lsiepel , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As it had some passaes before i keep this short. Left comments mainly looking at the readme. Some suggestions need to be adpated on multiple places. The binding is improving, so good to see progress.
| userName | text | Username to access the device | N/A | yes | no | | ||
| password | text | Password to access the device | N/A | yes | no | | ||
| hasBattery | boolean | Is there a battery connected or not? | N/A | no | yes | | ||
| ssoS0 | boolean | Is there a first SSO unit connected? | N/A | no | no | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is a sso ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sso is the connection part between the Pv-panels and the Energy hub. Solar String Optimizer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case change the description, so it is more clear (applies to all four):
Is there a first Solar String Optimizer (SSO) unit connected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, see the new text. This is complicated for me as not English native speaker. I use Google translate sometimes but I can see there shortcomings in the reverse translations.
## Thing | ||
|
||
```java | ||
Thing ferroamp:energyhub:myenergyhub [ hostName="energyhub-ip", userName="myUserName", password="myPassword", hasBattery=false ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you extend the example with other Things
| eso-battery-energy-produced | Number:Energy | R | Eso Battery Energy Produced | Total energy produced by ESO, i.e total energy charged | | ||
| eso-battery-energy-consumed | Number:Energy | R | Eso Battery Energy Consumed | Total energy consumed by ESO, i.e total energy discharged | | ||
| eso-soc | Number:Dimensionless | R | Eso State of Charge | State of Charge for ESO | | ||
| eso-relay-status | String | R | Eso Relay Status | 0 = relay closed, 1 = relay open | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe change this to a Contact itemtype.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -484,12 +480,10 @@ | |||
<module>org.openhab.voice.watsonstt</module> | |||
<module>org.openhab.voice.whisperstt</module> | |||
</modules> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are unexpected. Only the change on line 145 is expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, don't know, but I can see them also in mine fork and in openhab/openhab-addons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do know and they are unexpected :-)
Please revert all changes and only change the line 145. You can copy paste the contents of:
https://raw.githubusercontent.com/openhab/openhab-addons/refs/heads/main/bundles/pom.xml
Changes done in README.md, 20241010 Örjan Backsell <orjan.backsell@gmail.com>
| ssoS0 | boolean | Is there a first SSO unit connected? | N/A | no | no | | ||
| ssoS1 | boolean | Is there a second SSO unit connected? | N/A | no | no | | ||
| ssoS2 | boolean | Is there a third SSO unit connected? | N/A | no | no | | ||
| ssoS3 | boolean | Is there a fourth SSO unit connected? | N/A | no | no | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a system limit to 4 SSO's ? Did you consider to model this parameter as a single number: 0-9 representing the amount of SSO's this way it would be more dynamic?
|
||
The following configuration parameters are available. | ||
|
||
| Name | Type | Description | Default | Required | Advanced | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the thing-types.xml the eso and esm parameters are missing.
Would be nice if these setting scould be auto detected by the binding instead of manually configuring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in README.
I will think about auto detect.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0" | ||
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd"> | ||
<thing-type id="energyhub"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both ferroamp.xml and thing-type.xml have the same energyhub
thing id. Please remove one.
Done changes in EhubParameters.java, FerroampBindingConstants.java, FerroampChannelConfiguration.java, ferroamp.xml, README.md Signed-off-by: Örjan Backsell <orjan.backsell@gmail.com>
Changes done in: EsmParameters.java EsoParameters.java ferroamp.xml FerroampBindingConstants.java FerroampChannelConfiguration.java README.md SsoParameters.java Signed-off-by: Örjan Backsell <orjan.backsell@gmail.com>
Changes done in README.md Signed-off-by: Örjan Backsell <orjan.backsell@gmail.com>
This is the binding for local connection to the Ferroamp Energy System