Skip to content
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] Binding enhancements #7276

Closed
23 of 26 tasks
marcelrv opened this issue Apr 3, 2020 · 5 comments
Closed
23 of 26 tasks

[miio] Binding enhancements #7276

marcelrv opened this issue Apr 3, 2020 · 5 comments
Assignees
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@marcelrv
Copy link
Contributor

marcelrv commented Apr 3, 2020

Placeholder / braindump for next set of features planned / wished for in the miio binding

Cloud

  • Allow to send commands to devices via the cloud besides direct ([miio] Cloud Communication for devices #8981)
    Add option to binding and device config to select the communication patther
    Options 0 direct than try cloud, 1 direct, 2 cloud
    Note this also possibly allows to receive info not received directly from device e.g. powerusage for plugs, info from Bluetooth devices etc
  • Cloud events subscription
    Allow support for devices like Xiaomi Mijia AI Video Doorbell, or various lumi devices like motion sensors, button as these don't have a property to query but only create events
  • Support to pull some parameters from the cloud using custom cloud refresh commands [miio] Add BT Devices channel to chuangmi plug #11715

Discovery

Vacuum

Basic handler

Database improvements

  • Per device add name (+ maybe maturity). Note: adding the name to be able to remove all basic devices from the MiIoDevices.java and drive them directly from the db
  • Move from precommand & post to jsonarray of commands to allow for arbitrary amount of parameters
  • Add possibility of refresh command per parameter, so not only the get_properties are done in refresh but others could be as well (allows to support viomi vacuum type devices in basic handler) [miio] Allow for custom refresh commands #8796
  • Support to add the option values [miio] dynamically generate channelTypes #9158
  • Write documentation for the json database format

MIOT support

Unsupported handler

Gateways support

@marcelrv marcelrv added the enhancement An enhancement or new feature for an existing add-on label Apr 3, 2020
@micha-tum
Copy link

One more thing that might be useful: For Yeelight lamps, it is currently not possible to turn the lamp on through the RGB channel (RGB brightness > 0 should turn on the lamp, ==0 -> off). Also brightness channel changes of the item are not synced to the RGB channel brightness, only vice versa is synced. Both things are necessary to have it properly working with Google assistant, current workaround is through a dummy item and some rules, but it would be nice to have this directly in the binding. Hope this comment is in the right place here, otherwise just delete it. Thanks for your effort on the binding!

marcelrv added a commit to marcelrv/openhab-addons that referenced this issue Apr 17, 2020
* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions


Signed-off-by: Marcel Verpaalen <[email protected]>
cpmeister pushed a commit that referenced this issue Apr 18, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling #7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers #4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
yfre pushed a commit to yfre/openhab-addons that referenced this issue Apr 27, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
Signed-off-by: Eugen Freiter <[email protected]>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this issue May 29, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
LoungeFlyZ pushed a commit to LoungeFlyZ/openhab2-addons that referenced this issue Jun 8, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
J-N-K pushed a commit to J-N-K/openhab-addons that referenced this issue Jul 14, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this issue Jul 26, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
Signed-off-by: CSchlipp <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this issue Sep 1, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
Signed-off-by: Daan Meijer <[email protected]>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this issue Sep 19, 2020
* [miio] add miot protocol & conditions

* Add miot protocol handling openhab#7276
* Add first 2 miot devices (airpurifiers mb3 & ma4)
* Add conditional commands
* Change brightness to dimmers openhab#4388
* Apply conditions for dimmers
* Remove obsolete (pre)parameters from actions

Signed-off-by: Marcel Verpaalen <[email protected]>
@marcelrv marcelrv self-assigned this Nov 7, 2020
marcelrv added a commit to marcelrv/openhab-addons that referenced this issue Nov 28, 2020
Simplify the json database creation for new models and less chance for
errors
Related to openhab#7276

Signed-off-by: Marcel Verpaalen <[email protected]>
marcelrv added a commit to marcelrv/openhab-addons that referenced this issue Nov 28, 2020
Simplify the json database creation for new models and less chance for
errors
Related to openhab#7276

Signed-off-by: Marcel Verpaalen <[email protected]>
marcelrv added a commit to marcelrv/openhab-addons that referenced this issue Nov 29, 2020
Simplify the json database creation for new models and less chance for
errors
Related to openhab#7276

Signed-off-by: Marcel Verpaalen <[email protected]>
cpmeister pushed a commit that referenced this issue Dec 4, 2020
* [miio] dynamically generate channelTypes

Simplify the json database creation for new models and less chance for
errors
Related to #7276

Signed-off-by: Marcel Verpaalen <[email protected]>
Co-authored-by: Connor Petty <[email protected]>
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/xiaomi-mi-binding-config-file/115287/2

@mrumpf
Copy link

mrumpf commented Jan 25, 2021

Allow the binding to be configured via a cfg file: https://community.openhab.org/t/xiaomi-mi-binding-config-file/115287/2 so that the cfg file can be added to a git repo to get all OH configuration under version control.

@marcelrv
Copy link
Contributor Author

@mrumpf I believe that is already possible with all binding configurations
You can define the binding configuration through userdata/config/binding/miio.config

content:

:org.apache.felix.configadmin.revision:=L"9"
cloudDiscoveryMode="all"
password="superduperSecret"
service.pid="binding.miio"
username="[email protected]"

boehan pushed a commit to boehan/openhab-addons that referenced this issue Apr 12, 2021
* [miio] dynamically generate channelTypes

Simplify the json database creation for new models and less chance for
errors
Related to openhab#7276

Signed-off-by: Marcel Verpaalen <[email protected]>
Co-authored-by: Connor Petty <[email protected]>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this issue May 5, 2022
* [miio] dynamically generate channelTypes

Simplify the json database creation for new models and less chance for
errors
Related to openhab#7276

Signed-off-by: Marcel Verpaalen <[email protected]>
Co-authored-by: Connor Petty <[email protected]>
@marcelrv
Copy link
Contributor Author

Closing the issue. Remaining on the Wishlist is Cloud events subscription.
Allow support for devices like Xiaomi Mijia AI Video Doorbell, or various lumi devices like motion sensors, button as these don't have a property to query but only create events

However, as this cloudsevents functionality involves a rather complex flow don't expect to implement this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

No branches or pull requests

4 participants