Skip to content

Commit

Permalink
Beta release 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Dec 23, 2017
1 parent dce6796 commit 8f77435
Show file tree
Hide file tree
Showing 30 changed files with 1,687 additions and 110 deletions.
38 changes: 23 additions & 15 deletions APPSTORE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ This app uses an unofficial library called the [miIO Device Library](https://git

## Supported devices
Below is a list of supported devices and devices that might be supported in the future if there is demand for this. Post a comment in the app store if you would like to see support for a specific device.
* Yeelight Bulbs Wi-Fi (tested)
* Yeelight LED strips (tested)
* Yeelight Ceiling Light (untested)
* Yeelight Bedside Lamp II (untested)
* Air Purifiers 2 and Pro (tested)
* Humidifier (untested)
* Yeelights: Bulbs Wi-Fi (tested), LED strips (tested), Bedside Lamp II (tested), Ceiling Lights (untested)
* Xiaomi Philips: Light Bulbs (untested), Eyecare Lamp 2 (untested)
* Xiaomi Air Purifiers 2 and Pro (tested)
* Xiamomi Humidifier (untested)
* Xiaomi Single Power Plug WiFi version (untested)
* NOT SUPPORTED ANYMORE: Robot Vacuum Cleaner (commands time out with latest firmware)
* NOT SUPPORTED: Yeelight Desk Lamp
* NOT SUPPORTED: Smart Socket Plug and Power Strips
Expand All @@ -21,35 +20,44 @@ Below is a list of supported devices and devices that might be supported in the
For support please use the official support topic on the forum [here](https://forum.athom.com/discussion/3295/).

## Adding Yeelights
This Homey app supports direct control for Yeelights. Before being able to add your Yeelights as devices in Homey you will need to enable the "Developer Mode". You can do this by using the official Yeelight app on your smartphone (not the Xiaomi Mi Home app but the actual Yeelight app). In this app go into the settings of your bulb and you will see a menu item called Developer Mode. This contains a toggle to enable the developer mode. After enabling this the Homey app will be able to autodiscover your bulb when adding it as new device.
This Homey app supports direct control for Yeelights. Before being able to add your Yeelights as devices in Homey you will need to enable the "Developer Mode" or "LAN control" in the official Yeelight app. You can do this by using the official Yeelight app on your smartphone (not the Xiaomi Mi Home app but the actual Yeelight app). In this app go into the settings of your bulb and you will see a menu item called Developer Mode. This contains a toggle to enable the developer mode. After enabling this the Homey app will be able to autodiscover your bulb when adding it as new device.

## Adding miIO devices (Air Purifier and Humidifier)
For Homey to be able to communicate with devices over the miIO protocol a unique device token needs to be obtained. Some technical skills are needed for retrieving these tokens. If your are not to tech-savvy using this app for any other device than the Yeelights might be challenging. See the instructions below.

* [Air Purifier and Humidifier](https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md).
## Adding miIO devices
For Homey to be able to communicate with devices over the miIO protocol a unique device token needs to be obtained. Some technical skills are needed for retrieving these tokens. If your are not to tech-savvy using this app for any other devices than the Yeelights might be challenging. See the instructions [here](https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md).

## Supported Cards
### Yeelight Bulbs Wi-Fi
### Yeelights
* Default flow cards for light capabilities class
* [ACTIONS] Change brightness over time, Temperature/brightness scene, Color/brightness scene, Custom command (advanced), Set default on state

### Mi Air Purifiers
### Xiaomi Philips Light Bulbs
* Default flow cards for light capabilities class

### Xiaomi Mi Air Purifiers
* [CONDITIONS] Powered
* [ACTIONS] Power on/off, Set speed

### Mi Humidifiers
### Xiaomi Mi Humidifiers
* [CONDITIONS] Powered
* [ACTIONS] Power on/off, Set speed

### Xiaomi Single Power Plug
* Default flow cards for on/off, measure power and meter power capabilities class

## Changelog
### 2017-12-20 -- v2.4.0 - beta
* NEW: added support for the Philips Xiaomi Light Bulbs (untested)
* NEW: added support for the Philips Xiaomi Eyecare Lamp 2 (untested)
* NEW: added support for the Xiaomi Single Power Plug (untested)

### 2017-11-30 -- v2.3.2
* FIX: added a keep-alive to Yeelight connections to maintain the connection over time
* FIX: fixed pairing wizard for Humidifier and Purifier

### 2017-11-06 -- v2.3.1
* UPDATE: code rewrite for SDK2
* UPDATE: made use of official donation button feature of Homey app store
* REMOVED: driver for the Mi Robot Vacuum Cleaner since it's not working anymore with the latest firmware update of the cleaner (if you still want to use/try it you can do a local install from the [beta branch on GitHub](https://github.com/jghaanstra/com.xiaomi-miio/tree/beta) )
* REMOVED: driver for the Mi Robot Vacuum Cleaner since it's not working anymore with the latest firmware update of the cleaner (if you still want to use/try it you can do a local install from an archive [beta branch on GitHub](https://github.com/jghaanstra/com.xiaomi-miio/releases/tag/2.3.1-beta) )
* NEW: changed Yeelight driver to support Yeelight LED strip (require repairing of **ALL** Yeelight devices)
* NEW: added extra action cards for Yeelights: Change brightness over time, Custom command (advanced), Set default on state, Temperature/brightness scene, Color/brightness scene
* NEW: added support for the default dim over time action card for Yeelights
Expand Down
26 changes: 26 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,32 @@ class XiaomiMiioApp extends Homey.App {
return Promise.reject(error);
})
})

// PHILIPS EYECARE LAMP: CONDITION AND ACTION FLOW CARDS
new Homey.FlowCardAction('enableEyecare')
.register()
.registerRunListener((args, state) => {
var eyecare = args.eyecare == 'on' ? true : false;
util.sendCommand('eyecare', eyecare, args.device.getSetting('address'), args.device.getSetting('token'))
.then(result => {
return Promise.resolve(result);
})
.catch(error => {
return Promise.reject(error);
})
})

new Homey.FlowCardAction('modeEyecare')
.register()
.registerRunListener((args, state) => {
util.sendCommand('mode', args.mode, args.device.getSetting('address'), args.device.getSetting('token'))
.then(result => {
return Promise.resolve(result);
})
.catch(error => {
return Promise.reject(error);
})
})
}
}

Expand Down
Loading

0 comments on commit 8f77435

Please sign in to comment.