Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[miio] Initial Contribution Mi IO Binding
This is a combination of 84 commits. Initial commit for Mi IO binding Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] add basic functionality to control other miio devices * Generate channels based on database * Update properties based on database * Execute commands based on database Signed-off-by: Marcel Verpaalen marcel@verpaalen.com [miio] fix author tags Signed-off-by: Marcel Verpaalen marcel@verpaalen.com [miio] remove version constraint on gson Signed-off-by: Marcel Verpaalen marcel@verpaalen.com refine pom & Java 1.8 Signed-off-by: Dieter Schmidt <dima.loschkin@gmail.com> add yeelight ceiling for tests Signed-off-by: Dieter Schmidt <dima.loschkin@gmail.com> add channels when defining thing type Signed-off-by: Dieter Schmidt <dima.loschkin@gmail.com> Revert "add channels when defining thing type" This reverts commit 8067f57. Signed-off-by: Dieter Schmidt <dima.loschkin@gmail.com> [miio] improve starting sequence & device identification * Fix sending empty string commands * Adding device identification string to config Signed-off-by: Marcel Verpaalen marcel@verpaalen.com [miio] remove mock data & check model in database Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix initiation for vacuum Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] Fix incorrect format for vacuum Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] restructure database * restructured database format * added Xiaomi Philips ceeling light Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fixed findbug error * mibasic: error handling when updating channels Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> intrim add philips lightr Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> intrim adjust manifest Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> intrim update to latest version attempt to fix communication problems Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> intrim resolve travis errors Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> Update CommandParameterType.java Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] rework binding to async (WIP) *added 2nd discovery method Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] reworked async communication * Improve discovery speed * Added Philips light bulb support * reworked async communication incl implementation of queue Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix copyright header Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] add support encrypted tokens (IOS) Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix dependency issue simplified encrypted pwd handling cleanup Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] transitioned vacuum to async Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] improved commands handling Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] limit the properties requested in 1 go Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] updated airpurifier temp channel Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] avoid polling job crashing Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix command without parameter sending Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] update airpurifier. improve json null handling Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] missing properties Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] add zimi powerstrip Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] add 2 properties for Xiaomi powerstrip Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] add chuangmi.plug.m1 & fix status issue Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix minor discovery issue Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix IOS token decoding Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] add channels for AIR PURIFIER 2 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix formatting Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] updated purifier properties Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] find database in case multiple models id's in database add model purifier pro (v6) databse add chumi plug v1 database entry Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] add transformation option to db * updated airpurifier v6 & m1 to use transformation * Fix typo in channel name filtermaxLife Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix database entries switch iso onoftype Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] avoid cancelled refresh for basic devices Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] variable timeout *on-off for vacuum *improve basic refesh in case of timing issues Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] avoid npe & add cleaning record Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] several small improvements vacuum - new switch channel for on/off to allow alexa integration vacuum - reset consumables channel airpurifiers - fix temperature reading (/10) all - small improvements in abstract handler Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] update powerstrip database Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] improve ping to avoid connection issues Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] Updated device list Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] improve initiation & update plug. * removes NPE is specific cases during change of type * Removing unavailable properties from plug m1 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] Several improvements * Fix toggle * improve documentation * Improve handling of different command types Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> Delete .README.md.html Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] experimentally add yeelights Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] added support for new vacuum v2 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix database issue Experimental support color Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fixing several code warnings Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] various fixes * fix discovery * Fixes lamp definitions and missing channels * Fix several code warnings Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] minor changes * Update pom to 2.3 snapshot * Change log level Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix build Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] revert back change to new MDNSDiscovery participant revert back change to new MDNSDiscovery participant as users report issue in runtime Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] replace depreciated bundle reference * Removed depreciated bundle ref * Fixed typo for vacuum v2 * Add conversion for scene Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> Added support for Yeelight LED Ceiling Lamp v4 (JIAOYUE 650 RGB) (openhab#7) * Added item "Yeelight LED Ceiling Lamp v4 (JIAOYUE 650 RGB)" - added new device yeelink.light.ceiling4 ("Yeelight LED Ceiling Lamp v4 (JIAOYUE 650 RGB)") - fixed checkstyle errors (mainly 2017 > 2018 in copyright message) and some warnings about string placeholders in debug messages Signed-off-by: AnthraxLeprosyPi <anthrax.leprosy.pi@gmail.com> * Added support for Yeelight LED Ceiling Lamp v4 (JIAOYUE 650 RGB) - Added compatibility for Yeelight LED Ceiling Lamp v4 (JIAOYUE 650 RGB) - Added new channels ambientColor and ambientColorTemperature Signed-off-by: AnthraxLeprosyPi <anthrax.leprosy.pi@gmail.com> [miio] add humidifier and other fixes * Add humidifier * Fix database issues yeelight color * Add new commands robot v2 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix issue humidifier db Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] minor fixes in database * fixed set humification in for humidifier * fixed powerstrip v1 id Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] add devices * philips ceiling lamp * waterpurifier Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix yeelight issues * Handling of brightness in the color control * Adding additional parameters to allow ct adjustment Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] minor bug fix Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] powerplug & db fixes Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> add Philips Eyecare 2 & improve Yeelight 650 (openhab#8) Signed-off-by: Dieter Schmidt <dima.loschkin@gmail.com> [miio] add AirPurifier 2S Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix open port issue * Fix port not being closed issue * Align discovery labels Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fixing typo and update devices Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] Add to pom Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] Several commits to fix wrongly added files [miio] fixing some checkstyle errors Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] change pom to 2.4 snapshot Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] Experimental support for Mi Smart Fan Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] improve mi smartfan Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] add Philips downlight to db Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] minor fixes and add yeelink.light.color2 to db * Fix double comma issue in some json * Fix sending empty property * Add yeelink.light.color2 * Update fan Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] documentation update Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] cleanups Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] update readme Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] minor fix readme Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] add zhimi.fan.sa1 add Xiaomi Mi Smart Pedestal Fan minor fixes for network response Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] update readme with example item files Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] improve documentation & remove spaces Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] database updates new device (experimental) Philips light moon updated led strip Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] add philips candle added some additional device strings Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix typo & mising database entries Fix some database missing & wrong items Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] fix usbpower for chuangmi plug Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] merging changes of t1lt3rr0r * Added channel for changing rgb color on yeelights * Fixed the "delayoff" channel to use correct command * Added a "preCommandParameter1" to MiIoDeviceAction.java to use a value in front of the send value/command (for example necessary for the yeelight method "cron_add" with value [0,VALUE] * Added toString() method to MiIoDeviceAction.java Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> [miio] update documentation Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
- Loading branch information