Commit Graph

266 Commits

Author SHA1 Message Date
Marcel
b73bf672ab
[miio] Support contact type in basic channel json (#11477)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-10-31 12:42:32 +01:00
Marcel
8b1eabe166
[miio] sending device in MiIoSendCommand (#11475)
* [miio] sending device in MiIoSendCommand

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

* [miio] spotless reformatting

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-10-31 12:41:40 +01:00
Marcel
306b3c4853
[miio] Save last msgId and misc minor updates (#11464)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-10-30 18:07:47 +02:00
Marcel
ad54da1638
[miio] force start cloudconnector after credentials are updated (#11459)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-10-30 08:50:43 +02:00
Marcel
dfc9a5cb92
[miio] Avoid excessive MessageSenderThread (#11455)
* [miio] Avoid excessive MessageSenderThread

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-10-27 21:18:54 +02:00
Marcel
3eb5e566df
[miio] avoid NPE in discovery in case of unexpected response cloud (#11420)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-10-22 08:49:45 +02:00
Marcel
2fb86d7138
[miio] Automatic create experimental support for (unsupported) miot devices (#11149)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-09-19 22:01:22 +02:00
Marcel
357d699cdd
[miio] add support for Smartmi Fresh Air System (zhimi.airfresh.va4&va2) (#11164)
* [miio] add support for Smartmi Fresh Air System (zhimi.airfresh.va4&va2)

Add support for
* Smartmi Fresh Air System (zhimi.airfresh.va4)
* Smartmi Fresh Air System (zhimi.airfresh.va2)

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

* [miio] fix 2 commands and add some formatting

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

* [miio] fix copy paste error

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

* [miio] airfresh channelnames

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

* [miio] merge & count devices

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-09-14 16:57:57 +02:00
Marcel
f0df1a45cc
[miio] Add support for Yeelight Jade Smart LED Ceiling Light (#11241)
Add support for  yeelink.light.ceil26 - Yeelight Jade Smart LED Ceiling
Light C2001

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-09-13 19:54:35 +02:00
Marcel
31cde42da5
[miio] Avoid shutting down shared executor service (#11166)
* [miio] Avoid shutting down shared executor service

* Closing #11152
* Better identify communication threads

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-09-08 22:13:32 +02:00
Marcel
fac7edc270
[miio] add support for mi airfryers (careli.fryer.maf01,2&3) (#11142)
Also includes update of models names db

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-08-29 22:17:43 +02:00
Marcel
492682c5cf
[miio] improve readme: restructure & map customizing feature (#11143)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-08-29 20:18:31 +02:00
Marcel
62f169d649
[miio] map improvement cropping and customizable colors/parameters (#11110)
* [miio] make robo map drawing customizable

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

* [miio] Add cropping possibility for vacuum map

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

* miio minor edit

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-08-16 14:03:33 +02:00
Marcel
0d286e7a89
[miio] improve/add properties for qmi powerstrip (#11118)
improve mija vacuum channels

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-08-16 14:02:09 +02:00
Marcel
9f09db1f18
[miio] add support for Mi Smart Standing Fan 2 (dmaker.fan.p18) (#11106)
closing #11053

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-08-14 13:40:36 +02:00
Marcel
8dbe57947d
[miio] add moppath & carpet area to robomap (#11097)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-08-11 11:56:09 +02:00
Marcel
aac28589e7
[miio] Minor improvement documentation & deviceId update message (#11046)
* [miio] Minor improvement documentation & message
* [miio] minor cleanup from sat
* miio] fix another minor datetimeformat SAT issue

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-07-24 21:21:14 +02:00
Marcel
5671f09900
[miio] Improve yeelight RGB with brightness, introduce substitutions (#10984)
* [miio] add deviceId and timestamp substitutions

This will allow to send right commands for gateway and lumi devices

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

* [miio] update brightness in yeelight RGB channel

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

* [miio] Use generic way to call the asyncCommunication module

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

* [miio] Fix mapping yeelight

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

* [miio] Improve Yeelight colormode mapping

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

* [miio] yeelight fix unit for delayed off

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-07-17 22:32:13 +02:00
Marcel
072a6045c2
[miio] add new custom refresh methods (#10957)
* Improve matching the command responses to the sending channel
* Use newer method to get device list using `device_list_page`
* Adding the ability to send custom requests to cloud
* Adding the ability to send custom commands with additional elements in
the json

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-07-12 09:55:16 +02:00
Marcel
c0ab022e4e
[miio] fix color lights sending numbers as strings (#10960)
* [miio] fix color lights sending numbers as strings

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-07-12 09:53:49 +02:00
Marcel
7d2db98662
[miio] change deviceID to Xiaomi used string (#10951)
* [miio] change deviceID to Xiaomi used string

Change the deviceId from the current hexadecimal to the string used by
Xiaomi.
This is needed as we have some devices that have deviceIds that are
non-numeric, hence breaking the current logic.

Note: separately removing the upnp discovery as this has become
irrelevant with cloud discovery and devices supporting the udp regular
discovery.

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

* Update bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoAbstractHandler.java

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>

Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
2021-07-06 19:42:42 +02:00
Kai Kreuzer
bebab9ce29 applied spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-06-27 23:25:35 +02:00
jenkins
8c5c81e256 [unleash-maven-plugin] Preparation for next development cycle. 2021-06-27 17:35:01 +00:00
Marcel
809e53d3af
[miio] Add support gateway lumi.gateway.mieu01 (#10893)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-21 22:07:17 +02:00
Marcel
ef1deff4e9
[miio] fix typo (#10894)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-21 21:16:34 +02:00
Marcel
6a7e240060
[miio] improve zhimi fan channels (#10882)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-20 20:58:05 +02:00
Marcel
8be582e52a
[miio] improve dreame mc1808 channels (#10873)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-20 20:19:51 +02:00
Marcel
8d39e5b2ee
[miio] fix discovery issue when for devices with dot (#10880)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-20 14:10:48 +02:00
Marcel
36d7dc26b8
[miio] cleanup several SAT warnings (#10871)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-16 10:28:44 +02:00
Marcel
28c513ac3a
[miio] fix typo in temperatue unit (#10869)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-16 10:27:04 +02:00
Marcel
8bd05c0f9f
[miio] add support for Mi Smart Standing Fan Pro Global (dmaker.fan.p15) (#10855)
* [miio] add support for Mi Smart Standing Fan Pro Global (dmaker.fan.p15)

add support Mi Smart Standing Fan Pro EU/Global (dmaker.fan.p15)
Improve p8 & p9 fans
close #10843

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

* [miio] improve timeunit

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-16 00:03:46 +02:00
Marcel
10f5ca8578
[miio] avoid NPE when rssi is missing (#10854)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-12 12:54:19 +02:00
Marcel
6ba1606e52
[miio] add support for Yeelight 1S (mono4) (#10763)
* [miio] add support for yeelight mono4
* [miio] add support yeelight lamp 9 & 10

close #10619
close #10061

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-05-28 15:05:01 +02:00
Marcel
aa665e54f5
[miio] also refresh after custom commands (#10714)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-05-26 21:04:19 +02:00
Wouter Born
c3a6aa5814
Upgrade Units of Measurement dependencies (#10583)
* Fix code/tests for upgrade
* Resolve runbundles
* Update Checkstyle ruleset for changed packages

Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-11 08:31:03 +02:00
Marcel
c7218c6d29
[miio] update & improve readability value mappings for readme (#10610)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-05-01 15:35:07 +02:00
Marcel
c157e395dc
[miio] add support for yeelink.light.lamp15 Yeelight Screen Light Bar (#10603)
closes #10589

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-28 12:26:29 +02:00
Marcel
eda5346a50
[miio] add support several new roborock vacuums (#10602)
new vacuums:
  "roborock.vacuum.a14": "Roborock T7S",
  "roborock.vacuum.a15": "Roborock S7",
  "roborock.vacuum.a19": "Roborock S4 Max",
  "roborock.vacuum.a23": "Roborock T7S Plus",

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-28 09:04:27 +02:00
Marcel
84bd5ad5d8
[miio] add support Mi Smart LED Bulb Essential (yeelink.light.color5) (#10531)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-27 22:32:39 +02:00
Marcel
da916ca4a5
[miio] update device names list (#10605)
Refresh of the device name list from Xiaomi

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-27 22:28:55 +02:00
Marcel
52b05085aa
[miio] handle invalid rssi response (#10601)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-27 22:27:24 +02:00
Marcel
61a3705f0f
[miio] Support of Smartmi Air Purifier zhimi.airpurifier.za1 (#10534)
Closes #10526

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-27 16:45:10 +02:00
mabosch74
5d63fb1689
[miio] added functions for Vacuums P2009/2036/2157 (#10269)
* Fixed typo for starting sequence
* Added support for "find me" & "test sound" function
* Added clear names for faults

Signed-off-by: Marcel Bossert-Schwab <mbossertschwab@gmx.de>
2021-04-26 12:13:30 +02:00
Marcel
df18f16d49
[miio] cleanup some sat errors (#10539)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-22 20:39:23 +02:00
Wouter Born
1633c705a1
Use Collection.isEmpty (#10525)
Fixes 47 SAT UseCollectionIsEmpty findings.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-04-15 21:00:47 +02:00
Christoph Weitkamp
a04cfd3389
Fixed SAT findings for new SAT 0.11.1 release (#10518)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-04-14 15:11:31 +02:00
Marcel
5ba64517ff
[miio] add support for cgllc.airm.cgdn1 Qingping Air Monitor Lite (#10182)
* [miio] add support for cgllc.airm.cgdn1 Qingping Air Monitor Lite

close #10152

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

* [miio] remove expiremental

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

* Improve readme

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

* [miio] improve qty types

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

* [miio] remove unknown element

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-10 09:58:57 +02:00
Antonio Tapiador
bbbb3a8ebe
Fix battary_life property (#10394)
Viomi's property battery life seems to have a weird typo. The property's real name is `battary_life` instead of `battery_life`. Using the wrong name `battery_life` makes the other properties in the batch to be undefined: `"run_state","mode","err_state","battary_life","box_type"`

The correct name `battary_life` is already used in other projects like https://github.com/rytilahti/python-miio/blob/master/miio/viomivacuum.py#L316 or 0bed81ab4f/lib/robots/viomi/ViomiValetudoRobot.js (L254)

Signed-off-by: Antonio Tapiador del Dujo <atd@singularities.org>
2021-03-31 21:44:28 +02:00
lolodomo
843e8d2904
[bindings l-n] Fix deprecated tag "required" (#10420)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-03-30 21:33:23 +02:00
Wouter Born
580f293766
Resolve itest runbundles for Gson and Commons Lang upgrades and fix JsonParser deprecations (#10345)
* Resolve itest runbundles for Gson and Commons Lang upgrades
* Fix JsonParser deprecations too
* Fix feature verification

Signed-off-by: Wouter Born <github@maindrain.net>
2021-03-18 12:15:15 +01:00
Wouter Born
ee59803df8
Remove org.jetbrains.annotations.NotNull (#10334)
Only Eclipse JDT annotations should be used, see:

https://www.openhab.org/docs/developer/guidelines.html#null-annotations

Signed-off-by: Wouter Born <github@maindrain.net>
2021-03-14 23:22:52 +01:00
Marcel
22390b203b
[miio] add & improve dreame vacuums p2036.p2041o,p2056o,p2057 (#10254)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-03-01 19:07:11 -08:00
Marcel
f6521f6fd9
[mmio] sync device list to latest and cleanup chuangimi plug (#10249)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-02-26 21:23:16 -08:00
Marcel
fdc22c0a4c
[miio] add support for zhimi.airpurifier.vb2 Mi Air Purifier Pro H (#10183)
* [miio] add support for zhimi.airpurifier.vb2 Mi Air Purifier Pro H

close #10174 

* [miio] update modes to values visible in app
* [miio] cleanup and fix valuu mapping
* [miio] fix duration

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-02-26 10:58:56 -08:00
Marcel
8fde1c3988
[miio] fix bundle restart error (#10190)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-02-25 15:53:19 -08:00
Marcel
d16bb98ed3
[miio] add support 5 zhimi heaters (#10231)
* [miio] Add zhimi heaters

add new
zhimi.heater.ma2 Mi Smart Space Heater S
zhimi.heater.ma3 Mi Smart Baseboard Heater E
zhimi.heater.mc2 Mi Smart Space Heater S
zhimi.heater.na1 Smartmi Smart Fan
zhimi.heater.nb1 Smartmi Smart Fan Heater

improving existing
zhimi.heater.za1 Smartmi Radiant Heater Smart Version
zhimi.heater.za2 Smartmi Smart Convector Heater 1S
zhimi.heater.zb1 Smartmi Smart Convector Heater 1S

* [miio] add some more options
* remove accidental development file
* [miio] fix number:duration
* [miio] remove channeltype from heaters

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-02-25 15:45:56 -08:00
Marcel
e86cc6b219
[miio] add support for Smartmi Standing Fan 3 zhimi.fan.za5 (#10229)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-02-25 10:30:48 -08:00
Marcel
6d2211a2e9
[miio] add support for deerma Humidifier (#10181)
* [miio] deerma Humidifier

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-02-25 10:25:39 -08:00
Marcel
d1d42c4de9
[miio] additional vacuum channels for advanced rules (#10180)
* [miio] add feature channels
* [miio] additional vacuum channels for advanced rules
* [miio] update readme

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-02-25 10:22:45 -08:00
Michael Rumpf
717ef5950a
GH-9936 Fixed datatype for brightness of the ambient light (#10065)
The ceiling10 Yeelight lamp has 2 dimmer for brightness:
"bright" for the main light and bg_bright for the ambient light.
Both are of type dimmer and accept percentage values between 1 and 100.
This fix changes the datatype of the bg_bright property from Number
to Dimmer in the device mapping database file ceiling4, which is also
the one that is used for the ceiling10 lamp.

Accepted without sign-off under minor change exemption.
2021-02-08 23:40:02 +01:00
Marcel
40dbd50943
[miio] Add support for viomi S9 vacuum (v18) (#9878)
* [miio] Add support for viomi S9 vacuum (v18)
* [miio] improved translations & wider columns readme
* [miio] Apply review suggestions

Signed-off-by: Marcel Verpaalen marcel@verpaalen.com
2021-02-04 11:48:24 -08:00
Marcel
4088241033
[miio] add support yeelink.light.colora Yeelight Smart LED Bulb 1SE (#10037)
Closes #9360

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-02-03 11:19:56 +01:00
Marcel
6f59b178b8
[miio] add channel for is_locating (#10036)
close: #10033

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-02-03 11:18:50 +01:00
Marcel
056e4c4103
[miio] update zhimi humiddifier ca4 (#10032)
https://community.openhab.org/t/zhimi-humidifier-ca4-issue/116009

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-02-03 11:05:03 +01:00
Marcel
f58df8fd25
[miio] validate response id matching command id (#9966)
* [miio] validate response id matching command id

This PR prevents out of sync issues in case devices are too slow to
respond or the timeout is set too short.

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

* [miio] spotless adding space

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

* [miio] update based on review

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-30 12:05:08 +01:00
Marcel
db3e2b690c
[miio] remove unit from color temperature (#9970)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-29 14:07:54 +01:00
Marcel
e4ac982119
[miio] add support for zhimi.humidifier.cb2 Smartmi Evaporative Humidifier (#9968)
* [miio] add support for zhimi.humidifier.cb2 Smartmi Evaporative
Humidifier

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

* [miio] remove java notation from readme

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-27 16:23:03 +01:00
Marcel
c9dbc46fd1
[miio] use json db to drive temperature channel definitions (#9960)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-25 20:15:26 -08:00
Marcel
cc00fd78ee
[miio] allow all quantitytypes and units (#9959)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-25 20:14:10 -08:00
Marcel
86efd73a17
[miio] add support for zhimi airpurifier 3C (mb4) (#9885)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-22 14:36:58 -08:00
Marcel
ca6d62ddeb
[miio] Fix double stratus update (#9901)
closing: #9898

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-21 18:01:31 -08:00
Marcel
23fd13c9da
[miio] fix channels with invalid names (#9888)
* [miio] fix channels with invalid names
* [miio] allow for readbale friendly names

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-21 18:00:25 -08:00
Marcel
de126f6a71
[miio] reorganise the device list (#9887)
to make finding devices easier

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-21 17:59:17 -08:00
Marcel
ce6954a891
[miio] add support for Mijia Smart Pet Water Dispensers (#9861)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-18 12:58:50 -08:00
Marcel
583d13e6b6
[miio] add support for nwt.derh.wdh318efw1 Internet Dehumidifier (#9787)
* [miio] add support for nwt.derh.wdh318efw1 Internet Dehumidifier

based on json provided & tested by @feodor85
closing #9737

* [miio] change autohumidity
* [miio] fix switched property

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-18 12:43:49 -08:00
Marcel
9fe47f829c
[miio] add support for dreame vacuum d9 (#9859)
* [miio] Add support for Dreame D9 robot

Closing #9558

* [miio] remove channelType
* [miio] dropdown for reset actions

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-18 12:42:19 -08:00
Marcel
247afd48c8
[miio] readme update (#9858)
Update screenshots to OH3
Minor improvements readme
update device_names list to latest

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-18 12:37:23 -08:00
Marcel
155e3b770d
[miio] fix printed zone clean command (#9865)
as per https://community.openhab.org/t/xiaomi-vacuum-map-viewer-to-find-coordinates-for-zone-cleaning/103500/47

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-18 12:24:14 -08:00
Marcel
fe32f91f38
[miio] improve Mi Water Purifier 600G yunmi.waterpuri.lx8. (#9752)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-18 10:56:58 -08:00
Marcel
c426d6de79
[miio] Improve Airpurifiers (#9756)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-16 10:07:19 +01:00
Marcel
afb9ea1870
[miio] add support for viomi.waterheater.e1 (#9798)
* [miio] add support for viomi.waterheater.e1
* Update bundles/org.openhab.binding.miio/src/main/resources/database/viomi.waterheater.e1.json
* [miio] fix typo in readme

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-15 12:31:56 -08:00
Marcel
a46d9cb306
[miio] update readme maker (#9797)
Update the readme maker to not suggest invalid item names (containing
hyphens)

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-13 11:57:13 -08:00
Marcel
cdbf10efdb
[miio] add support for chungmiplug 212a01 (#9795)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-01-13 11:52:24 -08:00
Wouter Born
d6364aceb1
Update license headers to 2021 (#9620)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-01-02 22:03:14 +01:00
Marcel
03dd4d491f
[miio] Update many channels with tags, categories & QuantityTypes (#9384)
* [miio] Update many channels with tags, categories & QuantityTypes
* [miio] remove unit from dimmers
* [miio] fix readme mappings for channels

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-27 21:25:15 -08:00
Marcel
0874df702c
[miio] suggest correct devicenames in readmehelper (#9379)
* [miio] suggest correct devicenames in readmehelper
* add newline at file end to make git happy
* [miio] update logic for mapping in readmeComments
* Allow readme maker to fix mappings based on the current options.
* [miio] make readmeOptionMapping static

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-26 17:04:14 -08:00
Marcel
f88225113b
[miio] Add support for xiaomi.airconditions c/ma/mc/mh/mt modesl (#9380)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-22 13:49:54 -08:00
Marcel
09b1037ea1
[miio] change vacuum segment channel from undef to - (#9371)
To support alexa integration.
closing #9172

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-22 13:49:26 -08:00
Wouter Born
ecac667258
Apply Spotless, update skeleton project version, resolve itest runbundles (#9459)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-12-22 10:37:44 +01:00
jenkins
e4554f4aa6 [unleash-maven-plugin] Preparation for next development cycle. 2020-12-21 10:36:42 +00:00
Matthew Skinner
ea3446f50e
[All addons] Review all readme.md files for V3 changes. (#9439)
Signed-off-by: Matthew Skinner <matt@pcmus.com>

* modbus.e3dc: newlines added and remove broken anchor.

Signed-off-by: Matthew Skinner <matt@pcmus.com>

* modbus.stie..:remove multiple newlines.

Signed-off-by: Matthew Skinner <matt@pcmus.com>

* modbus.sunspec: remove multiple newlines.


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Nanoleaf: remove PaperUI.


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Neato: Remove openhab 2


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Nibe: remove PaperUI.


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* NibeUplink: Remove PaperUI


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Niko: Remove PaperUI


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Nuki: Remove Paper UI


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* OneWire: Remove multiple newlines.


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* OpenUV: remove paperui


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* OpenWebNet: Remove paperUI


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Pentair: remove openhab2 path


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Fix typo


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* RFXCOM: remove PaperUI


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Russound: Remove PaperUI.


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Samsung: remove paperui


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Siemens: remove paperui


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Samsung Smartthings: remove openhab 2 mention.


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Somfy myLink: remove paperUI


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Somfy Tahoma: remove paperUI


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Sonos: Remove paperui ref


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Spotify: remove paperui


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Tankerkönig: remove java8 and paperUI references.


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Tellstick: remove paperui


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Tibber: remove paperui


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Velbus: remove paperUI


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Vitotronic: remove paperui


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* VolvoOnCall: remove paperUI


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* WiFi LED: remove paperui


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* WlanThermo: remove paperUI


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* XmlTV: remove openhab2 path


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Z-Way: Remove paperUI


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Update bundles/org.openhab.binding.nanoleaf/README.md

Signed-off-by: Matthew Skinner <matt@pcmus.com>

Co-authored-by: Fabian Wolter <github@fabian-wolter.de>

* MagentaTV: Fix typo

Signed-off-by: Matthew Skinner <matt@pcmus.com>

* MagentaTV: Change to userId


Signed-off-by: Matthew Skinner <matt@pcmus.com>

Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
2020-12-20 14:43:48 +01:00
Mark Hilbush
74bdcb6e85
[miio] Check for null properties (#9408)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
2020-12-17 17:41:28 -08:00
Marcel
a7009101ba
[miio] fix readme mapping string (#9409)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-17 14:07:54 -08:00
Marcel
3cdc6a8f24
[miio] fix wrong mappings in readme (#9402)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-17 08:33:13 -08:00
Marcel
4b5b6f8f8f
[miio] fix annotation for mibasicChannel (#9396)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-16 11:04:03 -08:00
Marcel
d287062acf
[miio] improve unsupported handler (#9370)
Some devices respond differently to unknown parameters

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-13 11:17:16 -08:00
J-N-K
086a046b61
fix console command documentation (#9355)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-12-13 09:19:51 +01:00
Marcel
12e5e38cb0
[miio] add support for huayi Fans, heater and lights (#9348)
* [miio] add support for huayi Fans, heater and lights
* [miio] incl right names

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-12 15:29:39 -08:00
Marcel
5bfc8940f4
[miio] Elimate several SAT warnings (#9289)
* [miio] eliminate warnings from mapdraw
* [miio] clean warnings from basic handler
* [miio] avoid apache commons warning in utils
* [miio] eliminate warnings from micloudconnector

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-12 15:27:54 -08:00
Marcel
6b3490fc57
[miio] improve yeelight json (#9338)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-12 11:58:18 -08:00
Marcel
7380b45811
[miio] add support for basic huayi lights (#9316)
* [miio] add support for basic huayi lights

also remove some double spaces in json files
* miio update devicenames

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-11 10:24:44 -08:00
Marcel
e9e8207345
[miio] extend units for miot types (#9318)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-11 10:20:41 -08:00
Marcel
6fe75cb288
[miio] only change the name if it is the default one (#9312)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-09 14:23:18 -08:00
Marcel
3eda5ebbc9
[miio] add support for Yeelight Dual Control Module (yeelink.switch.sw1) (#9295)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-08 10:03:25 -08:00
Marcel
82976235bc
[miio] improve dreame vacuum support (#9272)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-07 14:58:22 -08:00
Marcel
84703631fc
[miio] add support dreame 9 (dreame.vacuum.p2008) (#9278)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-07 09:14:56 -08:00
Wouter Born
ac6f08908f
Use renamed Units class (#9267)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-12-07 10:34:02 +01:00
Marcel
ab3dcba5dc
[miio] channels removal (#9237)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-12-06 22:18:53 -08:00
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
05b7bbdccf
[miio] Add discovery from cloud feature. (#9176)
* [miio] Add discovery from cloud feature.

This allows to discover things that are not directly on the same subnet

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Co-authored-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
2020-12-04 21:26:44 -08:00
Marcel
2597ff20d4
[miio] dynamically generate channelTypes (#9158)
* [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 <marcel@verpaalen.com>
Co-authored-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
2020-12-04 13:01:18 -08:00
Marcel
35528eda3b
[miio] Implement alternative MiIoQuantityTypes (#9203)
* [miio] Implement alternative MiIoQuantityTypes

* Improved way avoiding multiple entries for Unit
* Test cases for the MiIoQuantityTypes class
* Apply suggestions from code review

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Co-authored-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
2020-12-04 09:37:49 -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
852f19f5c2
[miio] Update channels only if they are linked (#9163)
* [miio] Update channels only if they are linked

With introduction of miot devices with enormous amount of channels
refreshes can become slow. With this change only relevant updates are
done.

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-28 21:03:44 -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
Marcel
8040a710fd
[miio] update line endings for readme maker (#9142)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-26 14:53:55 -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
Kai Kreuzer
007c3b56e5
removed deprecated author information from binding.xml (#9113)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-11-23 19:06:33 -08:00
Marcel
158cbe0c65
[miio] Use QuantityTypes for time & area in the vacuumhandler (#9058)
closes #7752

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-17 16:23:23 -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
d86edfe32b
[miio] send miot actions parameter as jsonObject (#9056)
* [miio] send miot actions parameter as jsonObject
* [miio] avoid maven error

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-17 12:32:52 -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
02341d3536
[miio] Use generic channeltypes if none provided (#8999)
To prevent channels not showing up in OH3 main UI

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-13 15:09:39 -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
J-N-K
ba4c96d99d
[infrastructure] move infered nullness warnings to error and update EEA (#8949)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-11-12 21:07:11 +01: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
b4bc6d7e77
[miio] remove unneeded debug msg (#8919)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-01 00:17:40 -07:00
J-N-K
bd664ff0c8
[infrastructure] add external null-annotations (#8848)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-10-31 00:29:03 +01:00
Marcel
9a5832a2ee
[miio] Fix handling commands with curly brackets (#8897)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-29 23:24:20 -07:00
Marcel
472c0fd960
[miio] avoid Invalid URI host: null error (#8867)
* [miio] avoid Invalid URI host: null error

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-27 16:08:13 +01:00
Marcel
788ca22724
[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

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

* [miio] remove change from PR
2020-10-23 18:45:03 -07: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
8606f57b56
[miio] cleanup duplicate paths (#8835)
Use the path defined in the binding constants

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-22 18:13:08 +02: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
998d11455c
[miio] Allow for custom refresh commands (#8796)
* [miio] Allow for custom refresh commands

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-21 14:01:22 -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
a5657bb5d9
[miio] eliminate warning org.apache.commons.io.FileUtils in readmemaker (#8718)
* [miio] eliminate warning org.apache.commons.io.FileUtils in readmemaker

Eliminate
[WARNING] org.openhab.binding.miio.internal.ReadmeHelper.java:[25]
The package org.apache.commons.io.FileUtils should not be used.

* [miio] add StandardCharsets.UTF_8 to file readwrite

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-10 19:24:06 -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