-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Yeelight LED Ceiling Lamp v4 (JIAOYUE 650 RGB) (#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>
- Loading branch information
1 parent
2f4d8c3
commit 019d15f
Showing
31 changed files
with
177 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
121 changes: 121 additions & 0 deletions
121
addons/binding/org.openhab.binding.miio/database/yeelink.light.ceiling4.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
{ | ||
"deviceMapping": { | ||
"id": [ | ||
"yeelink.light.ceiling4" | ||
], | ||
"channels": [ | ||
{ | ||
"property": "power", | ||
"friendlyName": "Power", | ||
"channel": "power", | ||
"type": "Switch", | ||
"refresh": true, | ||
"ChannelGroup": "", | ||
"actions": [ | ||
{ | ||
"command": "set_power", | ||
"parameterType": "ONOFF" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "bright", | ||
"friendlyName": "Brightness", | ||
"channel": "brightness", | ||
"type": "Number", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "set_bright", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "delayoff", | ||
"friendlyName": "delayoff", | ||
"channel": "delayoff", | ||
"type": "Number", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "set_ct", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "ct", | ||
"friendlyName": "Color Temperature ", | ||
"channel": "colorTemperature", | ||
"type": "Number", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "set_ct_abx", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "color_mode", | ||
"friendlyName": "colorMode", | ||
"channel": "colorMode", | ||
"type": "Number", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "set_scene", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "name", | ||
"friendlyName": "Name", | ||
"channel": "name", | ||
"type": "String", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "set_name", | ||
"parameterType": "STRING" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "bg_rgb", | ||
"friendlyName": "Ambient Color", | ||
"channel": "ambientColor", | ||
"type": "Color", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "bg_set_rgb", | ||
"parameterType": "COLOR" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "bg_ct", | ||
"friendlyName": "Ambient Color Temperature ", | ||
"channel": "ambientColorTemperature", | ||
"type": "Number", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "bg_set_ct_abx", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...openhab.binding.miio/src/main/java/org/openhab/binding/miio/MiIoBindingConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/MiIoBindingConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...enhab.binding.miio/src/main/java/org/openhab/binding/miio/handler/MiIoGenericHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...b.binding.miio/src/main/java/org/openhab/binding/miio/handler/MiIoUnsupportedHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ing/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/Message.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoCrypto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoCryptoException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoHandlerFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoMessageListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoSendCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nding/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/Utils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ding.miio/src/main/java/org/openhab/binding/miio/internal/basic/CommandParameterType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...enhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/Conversions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/DeviceMapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
....binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoBasicChannel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...b.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/MiIoBasicDevice.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.