-
-
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
[bluetooth.govee] Govee Bluetooth Binding initial contribution #8610
Conversation
Travis tests were successfulHey @cpmeister, |
If you consider this a test of the new binding generation script, it seems to have really botched the |
...ee/src/main/java/org/openhab/binding/bluetooth/govee/internal/GoveeDiscoveryParticipant.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.bluetooth.govee/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.bluetooth.govee/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Connor Petty <[email protected]>
Signed-off-by: Connor Petty <[email protected]>
9f70b88
to
87176b9
Compare
Signed-off-by: Connor Petty <[email protected]>
Signed-off-by: Connor Petty <[email protected]>
So my initial implementation of this binding didn't actually work when I tested it, so I've had to rewrite it from scratch. |
Signed-off-by: Connor Petty <[email protected]>
<features name="org.openhab.binding.bluetooth.govee-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0"> | ||
<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository> | ||
|
||
<feature name="openhab-binding-bluetooth-govee" description="Bluetooth Binding Govee" version="${project.version}"> |
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.
You use "extension", "adapter" and "binding" for this code in different places.
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.
That is kinda the case for all of the bluetooth bindings...
"extension" refers to the fact that the binding adds functionality to the base bluetooth bindings.
"adapter" is used the pom.xml as part of the project name. But strictly speaking I don't really think this is appropriate and the word should probably be changed to extension
instead. But this standard was in place for all of the other bluetooth bindings so if I'm going to change it it should be a separate PR.
I do agree with you that these naming conventions are a bit confusing and I would love to change them at some point.
...ee/src/main/java/org/openhab/binding/bluetooth/govee/internal/ConnectedBluetoothHandler.java
Outdated
Show resolved
Hide resolved
...ee/src/main/java/org/openhab/binding/bluetooth/govee/internal/ConnectedBluetoothHandler.java
Outdated
Show resolved
Hide resolved
...ee/src/main/java/org/openhab/binding/bluetooth/govee/internal/ConnectedBluetoothHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.bluetooth.govee/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
* @author Connor Petty - Initial contribution | ||
* | ||
*/ | ||
public class ThingTypeTableGenerator { |
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 like this. Love to see this at some more prominent location.
...govee/src/main/java/org/openhab/binding/bluetooth/govee/internal/GoveeHygrometerHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/bluetooth/govee/internal/command/hygrometer/GetCommand.java
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/bluetooth/govee/internal/command/hygrometer/SetCommand.java
Show resolved
Hide resolved
Signed-off-by: Connor Petty <[email protected]>
Signed-off-by: Connor Petty <[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
bluetooth.govee Signed-off-by: Connor Petty <[email protected]>
Signed-off-by: Connor Petty <[email protected]>
Signed-off-by: Connor Petty <[email protected]>
Signed-off-by: Connor Petty <[email protected]>
Signed-off-by: Connor Petty <[email protected]>
Signed-off-by: Connor Petty <[email protected]>
@openhab/add-ons-maintainers This needs a second reviewer if someone can take a look. Thanks. |
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.
Just some small stuff.
bundles/org.openhab.binding.bluetooth.govee/src/main/feature/feature.xml
Outdated
Show resolved
Hide resolved
.../org/openhab/binding/bluetooth/govee/internal/command/hygrometer/GetOrSetHumCaliCommand.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.bluetooth.govee/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
...c/test/java/org/openhab/binding/bluetooth/govee/internal/readme/ThingTypeTableGenerator.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Connor Petty <[email protected]>
Signed-off-by: Connor Petty <[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
openhab#8610)" This reverts commit 239e33a.
…ab#8610) Signed-off-by: Connor Petty <[email protected]> Signed-off-by: John Marshall <[email protected]>
…ab#8610) Signed-off-by: Connor Petty <[email protected]>
…ab#8610) Signed-off-by: Connor Petty <[email protected]>
I got some of these devices in order to try to test the new bluetooth dynamic channel generation feature I've been working on. Sadly they didn't really help, but since I already had the devices on my hands I made a quick binding for them anyway.
Signed-off-by: Connor Petty [email protected]