Toggle Yeelight on/off
    
        How this automation works
On, off or toggle Yeelight.
    If
    
      
      
        
          
          
          
            
      
    
  
Gesture with task matching ID occurs
Trigger ingredients
                
                  CreatedAt
                
                
                  Device
                
                
                  Gesture
                
                
                  Pattern
                
            
          
    Then
    
      
      
        
          
          
          
            
      
    
  
Toggle lights on/off
Action fields
                
                  device_id
                
                
                  on_off_option
                
            
          You might also like...
View more AppletsCreate your own Knocki and Yeelight workflow
Create custom workflows effortlessly by selecting triggers, queries, and actions. With IFTTT, it's simple: “If this” trigger happens, “then that” action follows. Streamline tasks and save time with automated workflows that work for you.
12 triggers, queries, and actions
        
          
            
            Realtime trigger
          
          
    Realtime Applets run after the trigger service notifies IFTTT of a new trigger event. Since IFTTT is notified proactively of new trigger events, realtime Applets normally run within a few seconds of a trigger event occurring.
        
        This trigger fires if you tap a gesture with a custom IFTTT task matching the ID of this trigger.
      
        
          
            
            Query
          
          
    A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
        
        This query returns the brightness of the device you choose
      
        
          
            
            Query
          
          
    A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
        
        This query returns the color temperature value of the device you choose
      
        
          
            
            Query
          
          
    A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
        
        This query returns the color value of the device you choose
      
        
          
            
            Query
          
          
    A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
        
        This query returns the on/off state of the device you choose
      
        
          
            
            Query
          
          
    A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
        
        This query returns a list of times a specific IFTTT task was triggered by tap gestures.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This action will change your light's brightness to the specified level.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This Action will change your lights to a specified color.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This Action will change your lights to specified color temperature.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This Action will set your lights to a specified brightness.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This Action will set your lights to a pre-defined scene.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This Action will turn on, turn off or toggle your lights.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This action will change your light's brightness to the specified level.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This Action will change your lights to a specified color.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This Action will change your lights to specified color temperature.
      
        
          
            
            Query
          
          
    A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
        
        This query returns the brightness of the device you choose
      
        
          
            
            Query
          
          
    A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
        
        This query returns the color temperature value of the device you choose
      
        
          
            
            Query
          
          
    A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
        
        This query returns the color value of the device you choose
      
        
          
            
            Query
          
          
    A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
        
        This query returns the on/off state of the device you choose
      
        
          
            
            Realtime trigger
          
          
    Realtime Applets run after the trigger service notifies IFTTT of a new trigger event. Since IFTTT is notified proactively of new trigger events, realtime Applets normally run within a few seconds of a trigger event occurring.
        
        This trigger fires if you tap a gesture with a custom IFTTT task matching the ID of this trigger.
      
        
          
            
            Query
          
          
    A query lets your Applet retrieve extra data that isn't included in the trigger, so that your automation can include more complete or useful information.
        
        This query returns a list of times a specific IFTTT task was triggered by tap gestures.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This Action will set your lights to a specified brightness.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This Action will set your lights to a pre-defined scene.
      
        
          
            
            Action
          
          
    An action is the task your Applet carries out after the trigger occurs. It defines what happens as the result of your automation and completes the workflow.
        
        This Action will turn on, turn off or toggle your lights.
      Build an automation in seconds!
              If
            
            
                
                Gesture with task matching ID occurs
                
              
            
              Then
            
            
                
                Change brightness
                
              
            You can add delays, queries, and more actions in the next step!
More on Knocki and Yeelight
About Knocki
          
            Turn any surface into a remote control.
          
            
        
Turn any surface into a remote control.
About Yeelight
          
            Yeelight service will let you connect and automate your bulbs and lamps. Just enjoy the fun of lights. 
          
            
        
Yeelight service will let you connect and automate your bulbs and lamps. Just enjoy the fun of lights.
