Commit Graph

33 Commits

Author SHA1 Message Date
Marcel
0cde89c327
[miio] update json files to new definition (#9239)
* Update some of the miot files to the new definition
* Apply units,category & tags for some channels
* apply standard sorting

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-05 12:59:48 -08:00
Marcel
707d840c73
[miio] Channel Updates to Quantitypes (#9196)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-02 09:25:25 -08:00
Marcel
ad202edefa
[miio] Cloud Communication for devices (#8981)
* [miio]  Cloud Communication for devices

Allows to define if communication to devices is direct or send via the
Xiaomi cloud.
Introduce additional channel to execute commands via cloud.

Other small improvements
* Use common method from abstract handler to send commands
* Common way to handle custom commands
* Introduce small delay before refreshing robot properties after sending
commands (similar to the basic handler) so devices have time to update
their properties

* [miio] simplify cloudconnector
* [miio] Cleanup all jobs when unloading
* [miio] update to use dedicated ScheduledExecutorService

Use dedicated ScheduledExecutorService to avoid unloading problems

* Update bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoAbstractHandler.java
* [miio] fix for removeif
* miio- Improve scheduler
* [miio] fix communication error if device is not on the network
* [miio] update with comments from feedback

* remove scheduler tracking
* improve status setting for cloud communication
* [miio] update with feedback review

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
2020-11-28 20:03:12 -08:00
Marcel
d646215288
[miio] update for vacuum.e2 (#9139)
* [miio] update for vacuum.e2

small update now critical commands are confirmed working.

* [miio] update readme

as dock command is now also confirmed

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-26 16:04:46 -08:00
Marek Skrobacki
0a9ea9fd45
[miio] add support for zhimi.humidifier.ca4 (Smartmi Evaporative Air Humidifier 2) (#9093)
* miio: add support for zhimi.humidifier.ca4

This change adds support for Xiaomi Smartmi Evaporation Air Humidifier 2.

The device uses MIOT protocol, exact spec is available at:

http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:humidifier:0000A00E:zhimi-ca4:2

Signed-off-by: Marek Skrobacki <skrobul@skrobul.com>
2020-11-26 14:32:39 -08:00
Marcel
d41927c703
[miio] Add support zhimi.heater.zb1 & zhimi.heater.za2 (#9055)
* [miio] Add support zhimi.heater.zb1 & zhimi.heater.za2
* [miio] capitalize channel labels

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-17 16:16:36 -08:00
Marcel
2930e431ad
[miio] Fix readme for line breaks inside table cell (#9052)
* [miio] Fix readme for line breaks inside table cell
* [miio] improve readme

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-17 10:46:20 -08:00
Marcel
d6d68c7a96
[miio] update readme (#9014)
* [miio] update readme

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-16 12:26:50 -08:00
Marcel
1e5aaf948c
[miio] add support for lumi.curtain.hagl05 Xiaomi youpin Curtain Controller (Wi-Fi) (#9017)
* [miio] add support for lumi.curtain.hagl05
* [miio] improve channel description
* [miio] improved mapping for curtain hagl05
* [miio] fix channelTypes

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-15 17:19:00 -08:00
Marcel
406b7e4392
[miio] Add support for mijia.vacuum.v2 (#9036)
* [miio] Add support for mijia.vacuum.v2

related issue #9005
* [miio] fix channelTypes based on review

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-15 17:17:59 -08:00
Marcel
13a37f0c8c
[miio] add support for scishare smart capsule coffee machine s1102 (#9015)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-13 14:48:15 -08:00
Marcel
258f709ab8
[miio] Add zhimi.fan.za1 (#8998)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-11 11:28:39 -08:00
Marcel
918408eac1
[miio] Allow for quantity Type (#8756)
* [miio] Allow for quantity Type in the basic handler

This extends the miio:basic handler with the option to define channels
with QuantityType e.g. to use number:temperature

* [miio] add missing breaks

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-09 08:39:50 -08:00
Marcel
9f22e64ffd
[miio] update readme with db location details (#8987)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-08 19:17:13 -08:00
Marcel
71566e47af
[miio] add poweroff properties to zhimi powerstrip (#8899)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-01 14:32:56 -08:00
Marcel
15312d33f2
[miio] update readme with Roborock app info (#8935)
As per  https://community.openhab.org/t/xiaomi-robot-vacuum-binding/31317/1729

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-01 21:30:43 +01:00
Marcel
df261980c8
[miio] add FAQ to readme (#8837)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-22 15:27:35 -07:00
Marcel
49580b59bb
[miio] Add temperature value to chuangmi.plug.v1 (#8832)
Based on: https://github.com/marcelrv/openhab2/pull/12

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-22 18:06:57 +02:00
Marcel
ed6d68ffd7
[miio] add new country server and improve readme (#8816)
* [miio] add new country server and improve readme
* [miio] apply spotless

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-21 14:14:14 -07:00
Marcel
71fd87c5c9
[miio] add suppport for Mr Bond M1 pro Smart Clothes Dryer (#8749)
Add support for following types
"mrbond.airer.m1s",
"mrbond.airer.m1pro",
"mrbond.airer.m1super"

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-16 10:01:23 -07:00
Marcel
aef1d10f40
[miio] Add Zhimi Heater za1 (#8743)
add model zhimi.heater.za1

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-14 13:59:38 -07:00
Marcel
2913018e4a
[miio] add several Philips lights (#8736)
Add following models:
philips.light.sread2
philips.light.cbulb
philips.light.cbulbs
philips.light.dcolor
philips.light.rwread

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-11 18:18:43 -07:00
Marcel
343981fc12
[miio] add chungmi plug (#8728)
add
chuangmi.plug.hmi206
chuangmi.plug.hmi208

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-11 11:58:09 -07:00
Marcel
aa98737e9f
[miio] Improved unsupported handler that build experimental support (#8716)
* [miio] Improved unsupported handler that build experimental support

New unsupported handler that tries to find channels for unsupported
devices and creates experimental database file for it.

* [miio] logger fixes

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-10 11:03:33 -07:00
Marcel
bf72bd2ce3
[miio] Miio philips miot lights (#8699)
* [miio] add Philips miot ceiling lights

adding models
philips.light.dlight
philips.light.mceil
philips.light.mceilm
philips.light.mceils
philips.light.obceil
philips.light.obceim
philips.light.obceis
philips.light.xzceil
philips.light.xzceim
philips.light.xzceis
philips.light.sceil
philips.light.sceilm
philips.light.sceils

* [miio] change name downlight

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-08 20:14:51 -07:00
Marcel
435c78ef8c
[miio] Add several Philips ceiling lights (#8681)
Adding
philips.light.bceiling1
philips.light.bceiling2
philips.light.lnblight1
philips.light.lnblight2
philips.light.lnlrlight
philips.light.lrceiling

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-07 14:39:27 -07:00
Marcel
782a4210a4
[miio] allow for device remarks in the readme from json db (#8676)
* [miio] allow for device remarks in the readme from json db
* Update bundles/org.openhab.binding.miio/src/test/java/org/openhab/binding/miio/internal/ReadmeHelper.java

Signed-off-by: Marcel Verpaalen marcel@verpaalen.com
2020-10-06 15:04:36 -07:00
Marcel
3403216154
[miio] add several xjx.toiletseats (#8677)
* [miio] add several xjx.toiletseats

To enjoy your quiet moment with Openhab...

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-06 12:55:44 -07:00
Marcel
a980dbfb4d
[miio] Add many new Yeelights models (#8668)
* [miio] Add many new Yeelights models

closing #8082
* [miio] update doc

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-05 10:35:00 -07:00
Marcel
a857592f07
[miio] allow for comments to channels in json db (#8666)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-04 16:56:36 -07:00
Marcel
7b2d184676
[miio] add yunmi waterpurifiers (#8665)
* Add several new models waterpurifiers
* Add many new properties

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-04 15:29:53 -07:00
Marcel
e6dfd0c946
[miio] enable telnet for lumi gateway (#8639)
* [miio] enable telnet for lumi gateway

* allow enable telnet and some other functions on gateway
* use new fw as default for chugmi plug

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-04 09:31:56 -07:00
Kai Kreuzer
6df6783b60 added migrated 2.x add-ons
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-09-21 03:37:19 +02:00