Hey Thanks for the Suggestion:
Please explain what your example is and where is it located ?
This is where I’m looking at for the Tuya Setups.
/config/custom_components/localtuya
Only see one yaml file called services.yaml in that folder.
What’s the exact name of that file.?
OK - I’ve just switched to Local Tuya, and - during the Setup and adding a device I was asked which type of device it should be.
There, I could select between switch, light, power-plug, and so on.
So, I just had a look - and it seems that you can easily edit the devices within the Local Tuya Integration:
Open your Integrations page and select “Configure” for the localtuya integration
select “edit a device”
select the device you want to edit
Now, a Configuration Dialog will be shown.
Here, I don’t know, if you need to remove the entity in order to change the type - or if it is ok by just submitting this dialog (Probably, you need to remove it and then, it can be added with the correct device type)
Yes I’ve been there several times and this is where the settings are. However Where you left off a is where things get complicated and that is the actual DP settings. There seems to be very little information on this. The values that need to be entered are very sketchy.
Example: color value. Low or high?
I’m just now starting to look at the Tuya development site to find the values, but at least for me a crap shot and I’m guessing with no clear directions.
yes, the DP settings are a bit hard to understand - I had the same the first time…
But it appears to be easier as I thought it could be…
If you provide a Screenshot, I might be able to give some examples - but since I didn’t want to set up my light again, I did not continue with the “edit” options here… (sorry for that)
Ok thanks I’ll post a screen shot for you later today as I’m not yet home.
Like everything it gets better when one gets their feet wet.
Sure would be nice to have full documentation on doing this.
Would be really nice if there was a clear way to easily extract this DP data from the Tuya developer website.
I’m confused by this screen, selecting DP’s (see screenshot). Where can I discover what values I should select for a ‘light’?
Note, when i leave ID as the default on/off, I can turn it on/off, but no brightness change or color. When I attempt to select some other DP, it won’t work.
I had missed the mention ‘DP’ in that comment… Thanks!
When I run the query, it’s showing my device as a ‘switch’ (DP as 20) not a ‘light’, therefor, no ‘Brightness’ option. I don’t understand as it is a light and I can control brightness from the Tuya app, remote, and in HA as a light.
It shows DP 20 as a switch as that is the control to switch the LED on and off. You just have to make sure when you first configure the device that you select that you want to setup a Light and not a Switch. I noticed your bulb is in color mode. Try changing it to white mode and then run the Tuya IOT query again and see if you get a Brightness DP value as its for white only. Otherwise just try using DP 22 for Brightness and see how it goes.