-
-
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
[miio] Allow for custom refresh commands #8796
Conversation
* Allow for custom commands during miio:basic refreshes, needed to support refresh for e.g. scicoffeemaker, viomi vacuums etc * Improve the unsupported handler to deal with the custom commands as well * Do not add non-existing channeltypes in basic handler * Add the right channeltypes to the jsonDB instead of just defaulting them to the channel names. Signed-off-by: Marcel Verpaalen marcel@verpaalen.com
Travis tests were successfulHey @marcelrv, |
...b.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java
Outdated
Show resolved
Hide resolved
...b.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java
Show resolved
Hide resolved
…ding/miio/internal/handler/MiIoBasicHandler.java Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
"readmeComment": "If this channel does not respond to on/off replace the model with chuangmi.plug.v3old in the config or upgrade firmware" | ||
}, | ||
{ | ||
"property": "usb_on", |
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.
Also, why did the formatting change for this file? It is not inconsistent with the other files.
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 used that file for my testing, and did some intrim reset to undo my changes for the testing.
seems that that also undone the formatting changes...
Applied the formatter once more.
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
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
* [miio] Allow for custom refresh commands Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* [miio] delay refresh to avoid devices not ready yet (#8838) * [miio] delay refresh to avoid devices not ready yet Delay refresh after command is send as some devices are not ready yet with the execution and will report wrong status. This is confusing to the users. Related forum topic: https://community.openhab.org/t/xiaomi-mi-air-purifier-xiaomi-mi-io/34840/300 * [miio] remove change from PR * [miio] Add temperature value to chuangmi.plug.v1 (#8832) Based on: marcelrv#12 * [miio] add new country server and improve readme (#8816) * [miio] add new country server and improve readme * [miio] apply spotless * [miio] Allow for custom refresh commands (#8796) * [miio] Allow for custom refresh commands Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* [miio] Allow for custom refresh commands Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* [miio] Allow for custom refresh commands Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Allow for custom commands during miio:basic refreshes, needed to
support refresh for e.g. scicoffeemaker, viomi vacuums etc
Improve the unsupported handler to deal with the custom commands as
well
Do not add non-existing channeltypes in basic handler
Add the right channeltypes to the jsonDB instead of just defaulting
them to the channel names.
Signed-off-by: Marcel Verpaalen marcel@verpaalen.com