self.call_service(service = "notify.alexa_media", message="Spülmaschine ist gelaufen")
But how to specify the array of targets? A named parameter with array? targets=[a, b, c] ???
How to set the type that is oddly nested under a 2nd data:?
How to deal with the nested data in general?
In HA I can easily copy/paste or use the UI without a deeper understanding but in python I should understand it.
Unfortunately the documentation on call_service() is close to “it exists, guess the rest” while my understanding on HA services is also not sooo advanced.
HI,
just to avoid that another guy has to reverse engineer this with felt million of tests…
Here a small app that can announce/tts text to alexa and set a volume for the echos.
It took ages to find out that one service expects “target” while the other uses “entity_id” as named variable but both consume an array of strings like media_player.xyz