ROTFL - What kind of lock is this that people might put their tongue on it?
This category isn't listed in the Tuya reference manual, doesn't appear to have any commands associated with it (the functions are empty) but seems to have status data, what fields would you want to have displayed in a driver?
I'm working on supporting the need for multiple Hubitat devices to map to a single Tuya device, for example, a power strip with 3 outlets would need 3 Hubitat devices or other combination type devices. I've had some success and will be reaching back out to various folk to test these changes when ready.
@jonathanb
I think I found an error in the fan speed control:
Original:
// Component command to cycle fan speed
void componentCycleSpeed(DeviceWrapper dw) {
switch (dw.currentValue('speed')) {
case 'low':
case 'medium-low':
componentSetSpeed(dw, 'medium')
break
case 'medium':
case 'medium-high':
componentSetSpeed(dw, 'high')
break case 'high': componentSetSpeed(dw, 'low')
break
}
}
For my use case, I rewrote it as:
// Component command to cycle fan speed
void componentCycleSpeed(DeviceWrapper dw) {
switch (dw.currentValue('speed')) { case 'low': componentSetSpeed(dw, 'low')
break
case 'medium-low': case 'medium': componentSetSpeed(dw, 'medium')
break
case 'medium-high':
case 'high': componentSetSpeed(dw, 'high')
break
}
}
which seems to work for my tuya canopy fan controller
That indicates it was not able to renew the access token for some reason, if you push the Initialize button in the driver, it will attempt a new login and get a new token. I probably need to add an automatic retry if the token renewal fails as I don't think I have one right now.
Ok, thanks for confirming. I will mention one thing I noticed, in case it may help someone. While debugging I reviewed the app on the Tuya IoT site and my devices were gone; I had to unlink, change the data center to Western US (I'm on the East Coast and was using the East Coast DC) and re-link; then my devices at least showed back up on the Tuya IoT site. So they are definitely playing with the data centers.
Log in SOLVED. It looks like it was a problem on their end and the way to fix it is just change your password. I changed mine and it came right back to life.
61 is Australia.. 31 is the Netherlands. Having said that Australia is hosted in the European data center (don't ask me why). The advice you gave works for Australia, so thanks for that. note that the Tuya developer site has a page on which country is hosted in which data centre and you have to pick the correct one for the country you are registering for. I now have half a dozen devices, so at least I have got past the first hurdle.
This can certainly be a later phase enhancement but I took a look at the finite number of scenes(effects) of the string lights. This would give me more than just basic on/off/color/white. Here's a peek at what we're looking at:
Not really sure why the effects appear to have totally different naming conventions half way through but the numbers have continuity. These are all the built in effects and to my knowledge, there's no way to add any more so this list will never change.
Did you manage to get your Tuya lock working with HE? I'm having some sliding doors fitted and have been struggling to find a smart lock for these. I found some Tuya options but not sure if it would be feasible to get them working with HE using this integration.
SmarDeer BT Smart lock for Tuya Broken bridge fingerprint lock Biometric Fingerprint handle for Sliding door with Bluetooth
Yoheen Wifi Tuya APP Remote Unlock Electronic Digital Smart Fingerprint Door Lock for Aluminium Sliding Glass Wooden Door