Closed ndejong5 closed 3 years ago
Alright I got the light working now. The dimming range was way low so I changed that in the tuya app. However, it won't dim at all it either on or off. How do I fix this?
Hope someone can help. I have a 3 Ceiling Fan Dimmer Switches DS03, on tuya app i can control lights and fan speed, but on homebrige/homekit, i only get the fan control. any ideas what i'm missing. i tried the config above and it didn't work at all, her his how i get only the fan control.
{
"platform": "TuyaWebPlatform",
"name": "TuyaWebPlatform",
"options": {
"username": "xxx@mail.com",
"password": "xxx",
"countryCode": "1",
"platform": "tuya",
"pollingInterval": 10,
"scene": true
},
"defaults": [
{
"id": "< xxx ID from one of the devices >",
"device_type": "
Had the same issue with the TuyaWeb plugin - I thought you could separate the tiles within the Home app, but I can't remember 100%. I ended up using tuya-lan for these switches.
It's a bit of work, but they're working perfectly:
Find the id and key: https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md#listing-tuya-devices-from-the-tuya-smart-or-smart-life-apps-highly-recommended
Add config:
"platform": "TuyaLan",
"devices": [
{
"name": "Dining Room Wall Switch",
"type": "fanLight",
"manufacturer": "TreatLife",
"model": "DS03",
"id": "123",
"key": "xxx"
}
Hide the switch in TuyaWeb: (assuming you're using this plugin for other devices)
"name": "TuyaWebPlatform",
"hiddenAccessories": [
"123",
I also had to modify SimpleFanLightAccessory.js: https://github.com/iRayanKhan/homebridge-tuya/issues/110#issuecomment-672164790
Let me know if you have any questions - I'm happy to help in any way that I can.
@travisgerard when I add this config I get an error that says "doesn't have a valid type defined". I've tried changing the type in your example from "fanLight" to "SimpleFanLight" but I get the same error. Any suggestions?
Still having this issue? Re-open the issue, reply and we'll fix it
I'm hitting a wall with the TreatLife DS03. Followed the instructions at https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md#listing-tuya-devices-from-the-tuya-smart-or-smart-life-apps-highly-recommended and was able to get "Device(s) registered!" with the id/ip/localKey/name parameters:
[
{
id: 'ebce47a28178981b87jzyj',
ip: '47.211.204.20',
localKey: "wF9Z}lz-?wVQ~-'l",
name: 'Ceiling Fan Dimmer Switch DS03'
}
]
however, when I plug them into the homebridge-tuya config, I'm getting
[4/27/2023, 9:06:13 AM] [homebridge-tuya] wF9Z}lz-?wVQ****, key for Master Bedroom Lights & Fan (ebce47a28178981b87jzyj), is not a valid key.
[4/27/2023, 9:06:13 AM] [homebridge-tuya] No valid configured devices found.
My config looks like this:
{
"type": "fanLight",
"name": "Master Bedroom Lights & Fan",
"id": "ebce47a28178981b87jzyj",
"key": "wF9Z}lz-?wVQ~-'l",
"manufacturer": "TreatLife",
"model": "DS03"
}
What am I doing wrong?
FWIW by doing several "tuya-cli get" commands, I was able to work out the various settings for this switch...but even after digging through the wiki and issues I can't find a resource that tells me how to convert this data into a working config.json.
1 fan power
3 fan speed, 1 - 4
9 light power
10 light dimmer, 140 - 1000
105 "min dimmer" value (configured in app)
106 mode1 (configured in app)
108 always 1?
I'll be happy to write up a how-to for the wiki for this device, if I can ever get it working. What a royal pita, whew.
I have successfully got the fan working but the light does nothing. Here is my config:
{ "platform": "TuyaLan", "devices": [ { "name": "Bedroom Fan", "type": "FanLight", "manufacturer": "Treat Life", "model": "Ceiling Fan Dimmer Switch DS03", "id": "XXX", "key": "XXX" } ] }