-
-
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
[shelly] Improved Motion Support, Support CoIoT Unicast, fixes #10220
Conversation
Signed-off-by: Markus Michels <[email protected]>
@fwolter Allterco updated their firmware, which brings an important feature - helps the users and reduces my support. I want to include this in this PR. Nevertheless, could you please have a first look to the Code and give feedback on code structure. The is a bigger one and adds a complete new component org.openhab.binding.shelly.internal.manager. I tried to encapsulate as good as I can by having the is separate Component and a clear interface to the Thing handler (ShellyManagerInterface). I would work on your feedback before starting the review. So far I set the WIP label. |
If these are features which are independent from each other, it would be better to split these and file another PR for the updated firmware. |
@fwolter It's one new component Shelly Manager, which has SOME dependencies/changes in the base code, but the new Manager component depends on the changes in the base code. It's not "10 independent features in one PR" |
Ok. As the backlog is quite extensive, I'm afraid I can't review this in the short-term. |
@fwolter would it help if I split it
I estimate Part I is about 1/3rd of the total |
It makes sense if the two parts are useable from each other independently. If the changes in the first part are useless without part II, it doesn't make sense to split it. |
Signed-off-by: Markus Michels <[email protected]>
@fwolter I reduced the scope of this PR to include regular changes, but not the Manager |
sensorSleepTime is now adadvanced; Roller set position 0/100 is mapped to UP/DOWN; Reference to Shelly Manager removed from README Signed-off-by: Markus Michels <[email protected]>
Signed-off-by: Markus Michels <[email protected]>
@fwolter does that work for you? |
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.
There are some checkstyle warnings, which could be fixed easily.
...inding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyDeviceProfile.java
Outdated
Show resolved
Hide resolved
...b.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/ShellyHandlerFactory.java
Outdated
Show resolved
Hide resolved
...ding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyBaseHandler.java
Show resolved
Hide resolved
...ding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyBaseHandler.java
Outdated
Show resolved
Hide resolved
...enhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/util/ShellyUtils.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/i18n/shelly.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/i18n/shelly.properties
Outdated
Show resolved
Hide resolved
Signed-off-by: Markus Michels <[email protected]>
restarted, README updated, moved channel sensorSleepTime from group device to sensors Signed-off-by: Markus Michels <[email protected]>
@fwolter Review changes are applied, was able to fix 2 more bugs, nothing open know at the moment |
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.
There are two zip files in this PR.
...inding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyDeviceProfile.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/i18n/shelly.properties
Outdated
Show resolved
Hide resolved
Signed-off-by: Markus Michels <[email protected]>
@fwolter Changes applied a) regex b) not the smartes idea to work on a copy of the documents :-), zip files removed |
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
Great that you figured out the regex!
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
@fwolter We spoke abozt the regex expression, could you help to define the pattern, which extracts the version, but also -rc2" as sub identifier, samples for version strings:
Currently I have the following pattern: "v\d+\.\d+\.\d+" Feedback welcome |
|
…ab#10220) * New feature: Shelly Manager Signed-off-by: Markus Michels <[email protected]> * Removed Shelly Manager to reduce PR size (will be another PR) Signed-off-by: Markus Michels <[email protected]> * CoIoT initialization handles new COIOT options for the device, sensorSleepTime is now adadvanced; Roller set position 0/100 is mapped to UP/DOWN; Reference to Shelly Manager removed from README Signed-off-by: Markus Michels <[email protected]> * Nullpointer check added on settings.coiot (4Pro has this null) Signed-off-by: Markus Michels <[email protected]> * README updated Signed-off-by: Markus Michels <[email protected]> * Use regex to extract fw version from string, check fw version to detect restarted, README updated, moved channel sensorSleepTime from group device to sensors Signed-off-by: Markus Michels <[email protected]> * Review changes Signed-off-by: Markus Michels <[email protected]> Signed-off-by: John Marshall <[email protected]>
…ab#10220) * New feature: Shelly Manager Signed-off-by: Markus Michels <[email protected]> * Removed Shelly Manager to reduce PR size (will be another PR) Signed-off-by: Markus Michels <[email protected]> * CoIoT initialization handles new COIOT options for the device, sensorSleepTime is now adadvanced; Roller set position 0/100 is mapped to UP/DOWN; Reference to Shelly Manager removed from README Signed-off-by: Markus Michels <[email protected]> * Nullpointer check added on settings.coiot (4Pro has this null) Signed-off-by: Markus Michels <[email protected]> * README updated Signed-off-by: Markus Michels <[email protected]> * Use regex to extract fw version from string, check fw version to detect restarted, README updated, moved channel sensorSleepTime from group device to sensors Signed-off-by: Markus Michels <[email protected]> * Review changes Signed-off-by: Markus Michels <[email protected]>
…ab#10220) * New feature: Shelly Manager Signed-off-by: Markus Michels <[email protected]> * Removed Shelly Manager to reduce PR size (will be another PR) Signed-off-by: Markus Michels <[email protected]> * CoIoT initialization handles new COIOT options for the device, sensorSleepTime is now adadvanced; Roller set position 0/100 is mapped to UP/DOWN; Reference to Shelly Manager removed from README Signed-off-by: Markus Michels <[email protected]> * Nullpointer check added on settings.coiot (4Pro has this null) Signed-off-by: Markus Michels <[email protected]> * README updated Signed-off-by: Markus Michels <[email protected]> * Use regex to extract fw version from string, check fw version to detect restarted, README updated, moved channel sensorSleepTime from group device to sensors Signed-off-by: Markus Michels <[email protected]> * Review changes Signed-off-by: Markus Michels <[email protected]>
…ab#10220) * New feature: Shelly Manager Signed-off-by: Markus Michels <[email protected]> * Removed Shelly Manager to reduce PR size (will be another PR) Signed-off-by: Markus Michels <[email protected]> * CoIoT initialization handles new COIOT options for the device, sensorSleepTime is now adadvanced; Roller set position 0/100 is mapped to UP/DOWN; Reference to Shelly Manager removed from README Signed-off-by: Markus Michels <[email protected]> * Nullpointer check added on settings.coiot (4Pro has this null) Signed-off-by: Markus Michels <[email protected]> * README updated Signed-off-by: Markus Michels <[email protected]> * Use regex to extract fw version from string, check fw version to detect restarted, README updated, moved channel sensorSleepTime from group device to sensors Signed-off-by: Markus Michels <[email protected]> * Review changes Signed-off-by: Markus Michels <[email protected]>
The PR adds some improvements