-
-
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
[VeSync] Add support for wifi outlets #17844
Conversation
54c4715
to
b439480
Compare
This is follow up PR to the broken one here: #15343 |
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.
@marcelGoerentz : Looks really nice and clean :) Just building this one locally to cross check no unusual bits with that new subDevice field although I doubt it. I've added a few trivial points in, other that that it looks really nice overall - Thank you!!! :)
bundles/org.openhab.binding.vesync/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
...nc/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncDeviceOutletHandler.java
Outdated
Show resolved
Hide resolved
...nc/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncDeviceOutletHandler.java
Outdated
Show resolved
Hide resolved
Looks good comm's wise with the new field :) So from my side, just the minor bits commented above. No SAT errors or compiler warnings noticed 👍 Pretty much there with the minor tweaks, to use %units% on the patterns, I think from my side. Just looking at that time calculation to see if it need's possibly mapping or is just local time 0200 based. |
@dag81 thank you for feedback. It is almost a year ago that I’ve written this code so I need to check why I used the offset for the time. The point with the unit hints will be fixed tomorrow. Again, thanks a lot for your effort. |
No prob's thanks for expanding it with new devices! :) . I was just looking through the repo trying to figure out the time-zone bits, and saw they now have payload's in there for some of the devices, although its still not clear yet to me. Some of that is app sim placebo data def, just for the servers to accept the requests. |
If I remember correctly, I found the value via try and error. Because I was getting an offset of the actual time when retrieving the values. I’m -0100 from UTC so this is maybe something else. Maybe the location of their servers? Unfortunately I didn’t get any feedback from other users. |
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.
Thank you for quickly updating :) this LGTM @marcelGoerentz.
@lsiepel from myside this LGTM. I guess it need's someone from the maintainers now to spin through quickly, so it can be merged. |
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 contineuing on this PR. I left some comments to consider. Otherwise LGTM
...nc/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncDeviceOutletHandler.java
Outdated
Show resolved
Hide resolved
...nc/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncDeviceOutletHandler.java
Outdated
Show resolved
Hide resolved
...nc/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncDeviceOutletHandler.java
Outdated
Show resolved
Hide resolved
...nc/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncDeviceOutletHandler.java
Outdated
Show resolved
Hide resolved
...nc/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncDeviceOutletHandler.java
Outdated
Show resolved
Hide resolved
...nc/src/main/java/org/openhab/binding/vesync/internal/handlers/VeSyncDeviceOutletHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.vesync/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.vesync/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
…inding/vesync/internal/handlers/VeSyncDeviceOutletHandler.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Marcel Goerentz <57457529+marcelGoerentz@users.noreply.github.com> Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
…inding/vesync/internal/handlers/VeSyncDeviceOutletHandler.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Marcel Goerentz <57457529+marcelGoerentz@users.noreply.github.com> Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
…inding/vesync/internal/handlers/VeSyncDeviceOutletHandler.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Marcel Goerentz <57457529+marcelGoerentz@users.noreply.github.com> Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
Signed-off-by: Goerentz <E0636650@eaton.ad.etn.com> Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
7893d2e
to
706655f
Compare
Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
* Add support for wifi outlets Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
* Add support for wifi outlets Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
* Add support for wifi outlets Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de> Signed-off-by: Christian Koch <78686276+chilobo@users.noreply.github.com>
[VeSync] Add outlets to the supported devices
This enhancement will let you get information about your smart plug (outlet) and give the oppurtunity to control it.
Description
This is improvement will let you control your outlets that are uplinked to you VeSync account.
As I have smart plug which delivers information about the used energy and the current energy and is also contolable via the VeSync App, I wanted to observe and control it via openHAB. Therefore I decided to develop this improvement.
There are no changes done to the old functionality of this binding, there will only be features added.
To add a plug to your running system it will follow the same flow as it was for the humidifier and purifier.
So all you have to do is waiting for an automatic scan or trigger it by yourself.
Testing
Unfortunately I only have one smart plug (GreenSun Wifi Smart plug) that I could test with and this is working with firmware version 1.0.02.
So it would be great if someone else could test this binding with his/hers outlets to confirm its working properly.
You will find the jar file here: https://github.com/marcelGoerentz/openhab-addons/releases/tag/v0.0.2
Discussion
You can Discuss with me about this binding here: https://community.openhab.org/t/vesync-smart-plug/148039