https://github.com/huming2207/yilishen
YiLiShen - a command line helper tool for Xiaomi Yeelight WiFi light bulbs, written in C++
https://github.com/huming2207/yilishen
cmake cpp cpp14 cxx cxx14 rapidjson socket ssdp tcp yeelight yeelight-devices
Last synced: about 1 month ago
JSON representation
YiLiShen - a command line helper tool for Xiaomi Yeelight WiFi light bulbs, written in C++
- Host: GitHub
- URL: https://github.com/huming2207/yilishen
- Owner: huming2207
- Created: 2018-05-31T00:41:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-22T01:56:21.000Z (almost 4 years ago)
- Last Synced: 2025-02-01T20:09:52.044Z (3 months ago)
- Topics: cmake, cpp, cpp14, cxx, cxx14, rapidjson, socket, ssdp, tcp, yeelight, yeelight-devices
- Language: C++
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YiLiShen
Project YiLiShen (Chinese: 蚁力神), a simple helper tool for Xiaomi Yeelight WiFi light bulbs/lamps/strips.
The name was taken from a famous Chinese Ponzi scheme scandal in a decade ago. Check [Yilishen Tianxi Group](https://en.wikipedia.org/wiki/Yilishen_Tianxi_Group) for more details.
## Development environment
- Ubuntu 18.04
- macOS 10.13.5You may need to install rapidjson separately.
On macOS you should run:
```
brew install rapidjson
```On Ubuntu you should run
```
sudo apt install rapidjson-dev
```I've only got two mono color light bulbs, so I can't test those color setting commands. But it should works.
## Sample Usage
Usage:
```
Yilishen [arg1] [arg2] [arg3] ... [argN]
```Please refer to [Yeelight WiFi Light Inter-Operation Specification](https://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf) for more details
Output when running `./Yilishen toggle`:
```
Found a device at 192.168.2.122, ID: 3330
Sending command toggle to this device...
Got result: {"id":9527, "result":["ok"]}Found a device at 192.168.2.145, ID: 3331
Sending command toggle to this device...
Got result: {"id":9527, "result":["ok"]}
```...and the light bulb will be turn on (if not on) or turn off (if it has been turned on).