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

[shelly] Add channels device#deviceName, relay#outputName + refactoring #8396

Merged
merged 9 commits into from
Sep 12, 2020

Conversation

markus7017
Copy link
Contributor

This PR adds 2 new channels

  • deviceName and
  • channelName per relay channel

Those reflect the settings in the Shelly App and provide logical names for the device (all) and relay channels.

In addition Apache Comments (StringUtil+IOUtIOUtilsiul) was replaced by native code.

trigger when binding was started; StringUtils replaced by native Java
string operations

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Markus Michels <markus7017@gmail.com>
@markus7017 markus7017 added enhancement An enhancement or new feature for an existing add-on work in progress A PR that is not yet ready to be merged labels Sep 4, 2020
@markus7017 markus7017 added this to the 2.5.9 milestone Sep 4, 2020
@markus7017 markus7017 self-assigned this Sep 4, 2020
@TravisBuddy
Copy link

Travis tests were successful

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

Signed-off-by: Markus Michels <markus7017@gmail.com>
@TravisBuddy
Copy link

Travis tests were successful

Hey @markus7017,
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

@fwolter fwolter left a comment

Choose a reason for hiding this comment

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

As spotless is enabled in the 2.5.x branch now, you need to fix those formatting errors with mvn spotless:apply.

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Markus Michels <markus7017@gmail.com>
@markus7017 markus7017 linked an issue Sep 8, 2020 that may be closed by this pull request
Signed-off-by: Markus Michels <markus7017@gmail.com>
@markus7017
Copy link
Contributor Author

@fwolter How do we proceed?

@markus7017 markus7017 closed this Sep 8, 2020
@markus7017 markus7017 reopened this Sep 8, 2020
@TravisBuddy
Copy link

Travis tests have failed

Hey @markus7017,
please read the following log in order to understand the failure reason. There might also be some helpful tips along the way.
It will be awesome if you fix what is wrong and commit the changes.

1 similar comment
@TravisBuddy
Copy link

Travis tests have failed

Hey @markus7017,
please read the following log in order to understand the failure reason. There might also be some helpful tips along the way.
It will be awesome if you fix what is wrong and commit the changes.

modified with last commit

Signed-off-by: Markus Michels <markus7017@gmail.com>
@TravisBuddy
Copy link

Travis tests were successful

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

definition for Dimmer/Dimmer2 corrected (the is no group status anymore)

Signed-off-by: Markus Michels <markus7017@gmail.com>
@markus7017 markus7017 changed the title [shelly][WIP] Add channels device#deviceName, relay#channelName + refactoring [shelly][WIP] Add channels device#deviceName, relay#outputName + refactoring Sep 11, 2020
@markus7017
Copy link
Contributor Author

@fwolter I changed channel channelName to outputName as dicussed

From my side we are ready to merge

Signed-off-by: Markus Michels <markus7017@gmail.com>
@markus7017
Copy link
Contributor Author

@fwolter change is done

@fwolter fwolter changed the title [shelly][WIP] Add channels device#deviceName, relay#outputName + refactoring [shelly] Add channels device#deviceName, relay#outputName + refactoring Sep 12, 2020
@fwolter fwolter removed the work in progress A PR that is not yet ready to be merged label Sep 12, 2020
Copy link
Member

@fwolter fwolter left a comment

Choose a reason for hiding this comment

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

LGTM

@fwolter fwolter merged commit 58e9eb9 into openhab:2.5.x Sep 12, 2020
@markus7017 markus7017 deleted the shelly_snapshot branch September 12, 2020 14:49
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this pull request Sep 12, 2020
…ng (openhab#8396)

Signed-off-by: Markus Michels <markus7017@gmail.com>
@markus7017 markus7017 linked an issue Sep 19, 2020 that may be closed by this pull request
@markus7017 markus7017 modified the milestone: 2.5.9 Sep 19, 2020
markus7017 added a commit to markus7017/openhab-addons that referenced this pull request Sep 19, 2020
…ng (openhab#8396)

Signed-off-by: Markus Michels <markus7017@gmail.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Oct 8, 2020
…ng (openhab#8396)

Signed-off-by: Markus Michels <markus7017@gmail.com>
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.

[shelly] relay#autoOn and relay#autoOff don't accept UBM [shelly] New setting for device/channel name
3 participants