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

[fronius] Add new channels and fix documentation #7247

Merged
merged 3 commits into from
Apr 4, 2020
Merged

[fronius] Add new channels and fix documentation #7247

merged 3 commits into from
Apr 4, 2020

Conversation

hypetsch
Copy link
Contributor

  • Added a new channel to retrieve the device status error code property.
  • Added a new channel to retrieve the device status status code property.
  • Fixed incorrect channel and parameters ids in documentation.

Signed-off-by: Peter Schraffl <[email protected]>
@hypetsch hypetsch requested a review from trokohl as a code owner March 28, 2020 12:32
@TravisBuddy
Copy link

Travis tests were successful

Hey @hypetsch,
we found no major flaws with your code. Still you might want to look at this logfile, as we usually suggest some optional improvements.

@cpmeister cpmeister added the enhancement An enhancement or new feature for an existing add-on label Mar 29, 2020
@cpmeister
Copy link
Contributor

From the way you have coded this, there will always be an error code reported to the channel even when there is no error?

@hypetsch
Copy link
Contributor Author

It's just the current error code value as reported by the inverter where error code value 0 means no error/normal operation. So this is information has to be more interpreted as a status of the inverter, so in my opinion this is ok.

Copy link
Contributor

@cpmeister cpmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpmeister
Copy link
Contributor

@trokohl Please give some feedback if you can.

@@ -20,28 +20,30 @@ The binding has no configuration options, all configuration is done at Thing lev

The thing has a few configuration parameters:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe change this one to bridge?

| refresh | Refresh interval in seconds |
| Parameter | Description |
|-----------------|------------------------------------------------------ |
| hostname | The ip-address of your Fronius Datalogger |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to add a hostname here? Or are only IP addresses supported?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can see it in the code it should be possible to use a hostname too. It just replaces the configuration value into the URL. Also the reachability check should work with a hostname.
Internally the variables are sometimes called ip and sometimes hostname...
(In my opinion it would habe been better to simply name it host.)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be refactored, but is out of scope of this PR. Can you adjust the two open pointa in the documentation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did some more cleanups of the documentation, hope it is ok this way.

Signed-off-by: Peter Schraffl <[email protected]>
@TravisBuddy
Copy link

Travis tests were successful

Hey @hypetsch,
we found no major flaws with your code. Still you might want to look at this logfile, as we usually suggest some optional improvements.

Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Thanks.

@J-N-K J-N-K merged commit 6b95a8b into openhab:2.5.x Apr 4, 2020
@hypetsch hypetsch deleted the add-new-channels branch April 4, 2020 11:30
@cpmeister cpmeister added this to the 2.5.4 milestone Apr 4, 2020
Hans-Reiner pushed a commit to Hans-Reiner/openhab2-addons that referenced this pull request Apr 11, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
Signed-off-by: Hans-Reiner Hoffmann <[email protected]>
yfre pushed a commit to yfre/openhab-addons that referenced this pull request Apr 27, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
Signed-off-by: Eugen Freiter <[email protected]>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request May 29, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
LoungeFlyZ pushed a commit to LoungeFlyZ/openhab2-addons that referenced this pull request Jun 8, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
J-N-K pushed a commit to J-N-K/openhab-addons that referenced this pull request Jul 14, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this pull request Jul 26, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
Signed-off-by: CSchlipp <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this pull request Sep 1, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
Signed-off-by: Daan Meijer <[email protected]>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request Sep 19, 2020
* Added status code and error code channel
* Fix documentation

Signed-off-by: Peter Schraffl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants