MQTT commands added.

Rene 'Renne' Bartsch 2018-07-17 10:54:27 +02:00
parent 563171e3a9
commit 9931d4ee0e
1 changed files with 7 additions and 0 deletions

@ -47,6 +47,13 @@ The APDS-9960 chip (or breakout board) must be connected to the ESP8266 and the
![I2C GPIO configuration](https://raw.githubusercontent.com/arendst/arendst.github.io/master/media/wemos/wemos_sht30_config_marked.jpg)
### MQTT commands
| Command | Value | Description |
|---|---|---|
| Sensor27 || Show APDS9960 gesture/RGBC mode |
| Sensor27 | 0 / off | Disable APDS9960 gesture mode/Enable RGBC mode |
| Sensor27 | 1 / on | Enable APDS9960 gesture mode/Disable RGBC mode |
### Example rules
#### Power on light when ambient light is below 100 lux.
`rule on APDS9960#Ambient<100 do power on endon on APDS9960#Ambient>110 do power off endon`