Friday, August 11, 2023

fade in and fade out lights using "smart lamps"

Testing out various options, found that these two smart lamps do the job for us.


Wipro Next Smart Wi-Fi 20W CCT+RGB LED Batten | 16 Million Colours | White Tunable | Dimmable |Scheduling |Scene Creation |Smart Grouping of Lights |Amazon Alexa & Google Asst. Compatible |Pack of 1 

https://www.amazon.in/gp/product/B08D19X3LS/

Amazon Basics - 9W Smart LED Bulb with Alexa, Google Assistant & Wi-Fi Enabled (Pack of 1, Cool White, B22 Holder)

https://www.amazon.in/gp/product/B0BBMRCFGW/

Apparently these are Tuya compatible, since they are controlled using the Smart Life app. 

We could control these using either the Smart Life app or the Alexa app, but in case future updates cause them to need a subscription or something, I thought of writing python controls for them with the help of tinytuya.

 Some notes. 

The Amazon basics lamp - for pairing, need to put on and off exactly 5 times: doing 10 times does not seem to work. First need to set up in smart life app, only then can we set up in Alexa app.

1. Smart Life App -

  • way to add - add a 'home', add a 'room', add devices
    Click on the + in the top right to create "scene" (fade in fade out etc)
    Tap to run
  • minimum delay between actions is 1 second
  • does not seem to support drag and drop to rearrange actions in a scene.
  • does not seem to support "local" control - the control type seems to be set to 'cloud' only.

2. Alexa App

  • When adding device in Alexa app, choose Smart Life as the device type.
  • After adding to "office" group, More... for custom routine.
  • minimum wait time is 5 seconds. For shorter wait, a workaround as suggested at reddit is to make Alexa say something with 0 volume.

    https://www.reddit.com/r/amazonecho/comments/qtz9ob/create_1_second_wait_in_routine/

    Action: +
    >(Device Settings) Set Volume 0
    >Next>Action: +
    >(Alexa Says)>(Customize)>Count 1
    >Next>Action: +
    >(Device Settings) Set Volume 5
    >Next>Save<  

3. Writing a python script: I'll write a separate post on my notes for writing this set of scripts.

 

No comments:

Post a Comment