My wife watches SuperNatural. She saw me get the TV to come on when she walks in the door. So she wanted me to get the TV to come on. Got to Netflix and then start SuperNatural. Well I have it done. I have one hipcup and hoping the community can help. First I I will give the automation to you then show what it is doing.
Trigger: (right now, will change just for testing) Front door opening and closing.
Condition: wait trigger 10 minutes, Living room motion and alarm set to disarm.
Action: (This is the tricky part)
First I wake on lan for the TV to come alive
Next, I put a 5 sec delay and then call Netflix source
Then, another delay cause netflix is slow to load. Then press enter for the user to login
Then, another delay for it to load the home screen. Then I am suppose to run this command. and here is the issue.
command: adb shell am start -n com.netflix.ninja/.MainActivity -a android.intent.action.VIEW -d netflix://title/70143825 -f 0x10000020 -e "amzn_deeplink_data" "7014385"
This is the command. If it is all one line it will run correctly. But here is what home assistant does to it.
command: >-
adb shell am start -n com.netflix.ninja/.MainActivity -a
android.intent.action.VIEW -d netflix://title/70143825 -f 0x10000020 -e
"amzn_deeplink_data" "7014385"
Is there a way to make the system see it as one line? or is there a better way? I really want to get a way to always pick the correct user and just start playing the show. But there commands are to long and home assistant is not allowing it to execute correctly.
Thanks