I have an automation for showing CCTV on my lg webos tv when a person is detected with frigate. Upon detection I create a scene to store the current source. Then the source is switched to CCTV and after a few seconds activate the scene to switch back to the previous source. It works but I am now getting a 30 second delay after activating the scene and the source actually switching. It used to work with no delay.
I went in to the automation and manually run the services. Even then when I run the create scene I get the ‘action run successfully’ dialogue immediately.
When I run the activate scene I don’t get the dialogue until 30 seconds later. However I noticed that if the scene is created when the TV is off then it is activated immediately with no delay.
I even created a test automation to only create and run the scene just to make sure there is nothing else in the automation that is causing the delay. I am still getting the same behaviour.
I have tried the same actions with different entities such as lights and there is no delay. Would appreciate any insights to resolve this. You can see the delay in the timeline.
alias: Test scene
description: ""
trigger: []
condition: []
action:
- service: scene.create
data:
scene_id: family_source_before_motion
snapshot_entities:
- media_player.family_room_tv
enabled: true
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: scene.turn_on
target:
entity_id: scene.family_source_before_motion
data: {}
mode: single