-
Notifications
You must be signed in to change notification settings - Fork 172
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
RGB Control #16
Comments
This package does not currently support color and brightness controls for bulbs, mainly because I don't have any. I'll welcome any PRs that add support for them though. |
I have the same issue with my rgb led light bulb. |
Brightness controls have now been added, check out the new README for instructions. If you can provide the output of the below script I'll look into adding support for RGB bulbs. Run it a few times changing only the color between runs so we can see what parameter controls it. const TuyAPI = require('tuyapi');
const device = new TuyAPI({
id: 'xxxxxxxxxxxxxxxxxxxx',
key: 'xxxxxxxxxxxxxxxx',
ip: 'xxx.xxx.xxx.xxx'});
device.get({schema: true}).then(data => {
console.log(data);
}); |
Thanks for the quick answer. |
@Fabinewchurch just paste it into a file on your desktop or wherever is convenient. You'll have to run |
@codetheweb sorry for the late answer; I tried what you said, but I cant get the script to run; I always get an error saying: "Cannot find module 'tuyapi'" but I already installed it. |
You’ll likely need to sudo npm install -g tuyapi node file_name.js If that doesn’t work, can you post your console session of the attempt please? |
hi, I put some schemes to manage the colors (I noticed that you can also manage the scenes but at the moment I write only the colors) the parameter concerned is 5 `####### color yellow##### ########color blue###### #######color green#### ---------- update ---------- if you set parameter 2 to "white", also set parameter 3 for brightness and 4 for white temperature |
Mentioning @kalety so they can follow this issue for updates. @ everyone who's still trying to control RGB bulbs: until such control is implemented in |
@albertsal thank you for your input! I came across the same challenge with lightbulbs and your research helped a lot. I just submitted a pull request with |
@zysoft hello I'm glad that I helped, I did not initially know what was homebridge, after I realized that it is an apple app, I still wanted to participate writing what I discovered. I unfortunately do not have apple products to give you feedback |
(I'm copy/pasting this into every open issue and PR.) This plugin is now deprecated, as I don't have enough time to maintain it along with other TuyAPI related projects. Please use AMoo-Miki's homebridge-tuya-lan plugin instead. (Or, you can continue to use this plugin, but I will not be giving support or adding any new devices.) I'm sorry about this, but this plugin is taking a disproportionate amount of my time that I believe is better spent making TuyAPI more stable and adding more tools to the ecosystem. |
Closing; inactive thread. If you need support please re-open this issue. This plugin now supports RGB/RGBW lights. |
I have installed a tuya light, and have it under the devices section in the config, but I am not getting any options for colour or brightness in the Home app.
Great work overall though, I have used this for a power plug switch and a light successfully.
The text was updated successfully, but these errors were encountered: