Is there an issue with creating scenes with Tuya lights?

I’m attempting to test the scene_create function for future projects but even the simplest of tests are failing to revert the light to its previous state; off or white, the light changes colour to green as expected with no errors in the logs.


- id: colourlight
  alias: colorlight
  description: 
  trigger:
  - event_data:
      name: switch
    event_type: sonoff.remote
    platform: event
  
  action:
  - data:
      scene_id: before
      snapshot_entities: light.322337452462ab0e8a70
    service: scene.create

  
  - data:
      entity_id: 'light.322337452462ab0e8a70'
      rgb_color:
      - 0
      - 255
      - 0
    service: light.turn_on
  - delay:
      seconds: 3
  - data:
    entity_id: scene.before

you’re missing the service part:
This should be:

  - service: scene.turn_on
    data:
      entity_id: scene.before
1 Like

I think that was my editing to remove personal information and omitted that. I ended up flashing to tasmota and scenes are working now.

Thank you for replying though.

1 Like

I’ve flashed my tuya devices to tasmota too so I no longer depend on an Internet connection / server in China

1 Like