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] adding new devices #7273

Merged
merged 3 commits into from
Apr 3, 2020
Merged

[miio] adding new devices #7273

merged 3 commits into from
Apr 3, 2020

Conversation

marcelrv
Copy link
Contributor

@marcelrv marcelrv commented Apr 2, 2020

Adding several new devices. including:
yeelink.light.color4 #7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) #7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) #6787
Additional sensors and information in zhimi.airpurifier.v7 #5760

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

Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

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

Travis tests were successful

Hey @marcelrv,
we found no major flaws with your code. Still you might want to look at this logfile, as we usually suggest some optional improvements.

@@ -4,6 +4,7 @@
"yeelink.light.color1",
"yeelink.light.color2",
"yeelink.light.color3",
"yeelink.light.color4",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use tabs to make this consistent with everything else.

@@ -307,7 +315,7 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena
| Channel | Type | Description |
|------------------|---------|-------------------------------------|
| power | Switch | Power |
| mode | String | Mode |
| humidifierMode | String | Mode |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe update the description too? The channel name has more information than the description does...

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
@marcelrv
Copy link
Contributor Author

marcelrv commented Apr 3, 2020

note, I moved the 2 typo's correction in the readme to the cloud PR o avoid merge conflict.

@marcelrv marcelrv requested a review from cpmeister April 3, 2020 17:55
@TravisBuddy
Copy link

Travis tests were successful

Hey @marcelrv,
we found no major flaws with your code. Still you might want to look at this logfile, as we usually suggest some optional improvements.

Copy link
Contributor

@cpmeister cpmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are probably a lot more "Shutdowm" misspells that were out of scope of this PR. Not sure if you should fix them all as part of this PR though 😕

However, many devices share large similarities with existing devices.
However, many devices share large similarties with existing devices.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original spelling was correct

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I known.. to avoid the usual git voodoo I made the comment earlier: note, I moved the 2 typo's correction in the readme to the cloud PR to avoid merge conflict.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you didn't specify which two you moved though, lol.

However, many devices share large similarities with existing devices.
However, many devices share large similarties with existing devices.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too

Group G_light "Yeelight LED Ceiling Lamp v9" <status>
Switch power "Power" (G_light) {channel="miio:basic:light:power"}
Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"}
Number delayoff "Shutdowm Timer" (G_light) {channel="miio:basic:light:delayoff"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Number delayoff "Shutdowm Timer" (G_light) {channel="miio:basic:light:delayoff"}
Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"}

Group G_light "Yeelight LED Ceiling Lamp v11" <status>
Switch power "Power" (G_light) {channel="miio:basic:light:power"}
Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"}
Number delayoff "Shutdowm Timer" (G_light) {channel="miio:basic:light:delayoff"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Number delayoff "Shutdowm Timer" (G_light) {channel="miio:basic:light:delayoff"}
Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"}

Group G_light "Yeelight LED Ceiling Lamp v12" <status>
Switch power "Power" (G_light) {channel="miio:basic:light:power"}
Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"}
Number delayoff "Shutdowm Timer" (G_light) {channel="miio:basic:light:delayoff"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Number delayoff "Shutdowm Timer" (G_light) {channel="miio:basic:light:delayoff"}
Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"}

Group G_light "Yeelight LED Ceiling Lamp v13" <status>
Switch power "Power" (G_light) {channel="miio:basic:light:power"}
Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"}
Number delayoff "Shutdowm Timer" (G_light) {channel="miio:basic:light:delayoff"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Number delayoff "Shutdowm Timer" (G_light) {channel="miio:basic:light:delayoff"}
Number delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"}

Group G_light "Yeelight Color Bulb YLDP02YL 9W" <status>
Switch power "Power" (G_light) {channel="miio:basic:light:power"}
Number brightness "Brightness" (G_light) {channel="miio:basic:light:brightness"}
String delayoff "Shutdowm Timer" (G_light) {channel="miio:basic:light:delayoff"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
String delayoff "Shutdowm Timer" (G_light) {channel="miio:basic:light:delayoff"}
String delayoff "Shutdown Timer" (G_light) {channel="miio:basic:light:delayoff"}

},
{
"property": "delayoff",
"friendlyName": "Shutdowm Timer",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"friendlyName": "Shutdowm Timer",
"friendlyName": "Shutdown Timer",

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
@marcelrv
Copy link
Contributor Author

marcelrv commented Apr 3, 2020

Yes, seems the Shutdowm typo was there since early on and copied to the many derivatives.

@TravisBuddy
Copy link

Travis tests were successful

Hey @marcelrv,
we found no major flaws with your code. Still you might want to look at this logfile, as we usually suggest some optional improvements.

Copy link
Contributor

@cpmeister cpmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpmeister cpmeister merged commit d8c7e00 into openhab:2.5.x Apr 3, 2020
@cpmeister cpmeister added this to the 2.5.4 milestone Apr 3, 2020
@marcelrv marcelrv deleted the miio-april20 branch April 3, 2020 20:30
Hans-Reiner pushed a commit to Hans-Reiner/openhab2-addons that referenced this pull request Apr 11, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: Hans-Reiner Hoffmann <hans-reiner.hoffmann@gmx.de>
yfre pushed a commit to yfre/openhab-addons that referenced this pull request Apr 27, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: Eugen Freiter <freiter@gmx.de>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request May 29, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
LoungeFlyZ pushed a commit to LoungeFlyZ/openhab2-addons that referenced this pull request Jun 8, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
J-N-K pushed a commit to J-N-K/openhab-addons that referenced this pull request Jul 14, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this pull request Jul 26, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: CSchlipp <christian@schlipp.de>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this pull request Sep 1, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: Daan Meijer <daan@studioseptember.nl>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request Sep 19, 2020
Adding several new devices. including:
yeelink.light.color4 openhab#7016
Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000
Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787
Additional sensors and information in zhimi.airpurifier.v7 openhab#5760

fix formatting and channel
correct Shutdowm typo

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
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
3 participants