STEP 3
Create a action script to use with PreShow.
Change the ** ** to suit.
http://**YOUR HA IP ADDRESS**:8123/api/services/script/turn_on
HEADERS: {"Authorization": "Bearer **PASTE YOUR LONG-LIVED ACCESS TOKEN HERE**", "Content-Type": "application/json"}
POST: {"entity_id": "**YOU SCRIPT NAME eg script.Turn_on_Cinema_Light **"}
Sample attached.
Let me know if you run into any problems and I will create a pdf guide with screen shots etc.
HA is fantastic to what you can do with it example: If someone presses my door bell camera and I am in my home cinema, I have a automation script that will pause the movie playing and display a popup message, saying someones at the front door and also shows the camera video feed. Once you start theirs no going back .
Movie_Pause.cvaction