Jason Cox

Results 1198 comments of Jason Cox

I just published v1.3.1 - see if this works. I don't how long the tokens last so I created an test by artificially changing the token to get the 'invalid...

Yes, you could but I added code to the library to re-authenticate with TuyaCloud when the token dies. Woud you be able to test it for me? ``` python3 -m...

This is great! There are 3 examples of the token expiring and tinytuya renewing it. Thanks for testing! Let me know if you see anything wrong. ``` DEBUG:Token Expired -...

Good questions. The "expire_time" value is set by the TuyaCloud (that is the response). In your example, that seems to hold true as it requires a new token every 2...

I think I misunderstood your request. If you want to turn it off via the Cloud API, you will need to do something like this instead: ```python # Send Command...

Are you able to ping the device from the PI? The error indicates it is not reachable from the PI: ``` ERROR Network Error: Device Unreachable - 905 ```

BulbDevice class is similar to OutletDevice (both use the root Device class) but adds bulb attributes (type, brightness, color) and related functions for controlling smart bulbs. I don't know how...

Hi @xtalax - If this is for juse one or two devices, why not have the user supply the DEVICE_ID and LOCAL_KEY? You could then initialize TinyTuya and have it...

Hi @Whytey - I love your idea. Some thoughts: 1. We can add a function to [scanner.py](https://github.com/jasonacox/tinytuya/blob/master/tinytuya/scanner.py) to just provide ONE device ID. This would be quick and could be...

Hi Michiel, tinytuya is a command line Tuya library that allows you to poll devices for state or change state (on/off/dim/color). A python script could be written to continually poll...