logo elektroda
logo elektroda
X
logo elektroda

[Solved] How do I set up a scene in Tuya to control the lights in the garage with a scene switch?

czmariusz1 2409 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21255229
    czmariusz1
    Level 2  
    I am requesting to build a scene in the Tuya app. The idea is to control the lighting in the garage automatically. The set of devices I have, which I would like to use for automation, includes (all added and working in Tuya directly (WiFi) or via brakma (Zigbee):
    - Scene switch / switch ( https://a.aliexpress.com/_EzlMdTP ) /Zigbee/.
    - Motion sensor ( https://a.aliexpress.com/_EG7PJeH ) /Zigbee/
    - Door opening sensor ( https://a.aliexpress.com/_EHNRvSd ) /Zigbee/
    - 230V switch ( https://a.aliexpress.com/_EuybYTx ) /Fi

    The idea is that classic lighting (two lamps) is connected to the WiFi switch to be controlled in such a way that:
    After sunset
    - When the motion sensor detects movement
    Or
    - when the door-opening sensor detects door opening
    the app turns the switch on and turns the light on, and after 10 minutes it turns the switch off and turns the light off

    Up to this point, it is easy and I can set the scenes so that it works. On the other hand, the situation becomes complicated if I want to use a scene switch, which is implicitly designed to switch the light on and off, but in such a way that the light does not go off regardless of whether the sensors from the description above (motion or/and door-opening) are triggered, which implicitly switch off the light 10 minutes after it is switched on.

    I have absolutely no idea how to set up such a thing. Please help (or info that it can't be done, if it is - at least I won't be looking for a way).

    Thank you and best regards,
    Mariusz
  • ADVERTISEMENT
  • Helpful post
    #2 21255288
    speedy9
    Helpful for users
    If I have understood what you mean, you should add "Precondition" to the sensor scenes. -> Device Status -> 230V switch and here select "if off". This will ensure that if you "manually" switch the light on, the scenes assigned to the sensors will not activate.
  • ADVERTISEMENT
  • #3 21255296
    czmariusz1
    Level 2  
    Agreed, whereas I still don't know how to solve the situation where a sensor turns on a light and starts "counting down" the time until it goes out, and someone wants to click the scene switch to keep it lit until it is "manually" turned off (and not 10 min after the sensor scene turns it on).

    I would add that I have three different Tuya-recognisable states to use in the scene switch:
    - short click
    - short double click
    - long "hold"
    Perhaps it is possible to use, for example, a double-click to stop a scheduled sensor shutdown?
  • ADVERTISEMENT
  • Helpful post
    #4 21255322
    speedy9
    Helpful for users
    H,, you could try in your scene to switch on manual lights in the "Then" part to include the command "Select Smart Scenes" -> "Select Automation" -> "Scene to switch on light from sensor" -> Disable. However, I am not 100% sure that this will disable the "countdown" already triggered by the current scene. You need to test.
  • ADVERTISEMENT
  • #5 21256069
    czmariusz1
    Level 2  
    Interrupting the scene causes the steps started in the scene to be interrupted - the countdown does not continue and the next steps of the scene are not executed. This solves my problem. Thank you very much for your help.
  • #6 21256070
    czmariusz1
    Level 2  
    I would add that in order to solve the issue holistically, you had to add some automation and use the click and double-click switch functions. But it works as it should.
ADVERTISEMENT