-
-
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
[ahawastecollection] Initial Contribution #10387
Conversation
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.
Thanks for your contribution!
There is one reasonable checkstyle warning left.
Please add yourself to the CODEOWNERS file and add the binding to bom\openhab-addons\pom.xml
.
...src/main/java/org/openhab/binding/ahawastecollection/internal/AhaWasteCollectionHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ahawastecollection/src/main/resources/OH-INF/binding/binding.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.ahawastecollection/src/main/resources/OH-INF/binding/binding.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ahawastecollection/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ahawastecollection/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
I installed the binding successfully on my productive OH system. I find the grabbing of the data from the form a bit confusing as the "Abholplatz" didn't show up at the first request and the form variable is called "ladeort". Maybe you could add a screenshot of the developer console showing the values. The "_DE" in the i18n filename needs to be removed to function properly. |
@fwolter Thanks for your review and the remarks - most of them are already fixed. |
I opened and issue: openhab/openhab-core#2261 |
7210ba6
to
2258b68
Compare
See the discussion in above issue. The locale identifier should be |
2258b68
to
ce00716
Compare
b1a6562
to
eb687f9
Compare
if (command instanceof RefreshType) { | ||
this.scheduler.execute(this::updateCollectionDates); | ||
} else { | ||
this.logger.warn("The AHA Abfuhrkalender is a read-only binding and can not handle commands"); //$NON-NLS-1$ |
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.
Remove the comment.
bundles/org.openhab.binding.ahawastecollection/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ahawastecollection/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
38635ca
to
7e903c0
Compare
Signed-off-by: Sönke Küper <[email protected]> Co-authored-by: Fabian Wolter <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
7e903c0
to
08ad87c
Compare
Your code doesn't compile as it has formatting issues. |
Signed-off-by: Sönke Küper <[email protected]>
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.
LGTM
Now, you could add your binding's logo to the openHAB website. See https://deploy-preview-1540--openhab-docs-preview.netlify.app/docs/developer/bindings/#add-your-binding-s-logo-to-the-openhab-website
Signed-off-by: Sönke Küper <[email protected]> Signed-off-by: John Marshall <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: Sönke Küper [email protected]
Closes: #10386
This PR implements an binding for the aha waste collection schedule.
It allows users to request the next collection days for several waste types at an specified location.
It therefore basically uses the schedule provided at aha Abfuhrkalender and retrieves the next collection days and supplies them as date channel values.