Having media player tell the states?
-
Hi!
In HA it's possible to have a media player tell the state of a entity, like this:service: tts.google_translate_say data: message: "Temperature is {{states('sensor.temperature')}}." cache: false
I tried to do the same in MSR, but I didn't succeed. Is it possible - if so; how?
/Fanan -
What did you try?
-
What did you try?
@toggledbits
I tried it with and without the " ". Like this (example without it):Don't know what else to try?
-
@toggledbits
I tried it with and without the " ". Like this (example without it):Don't know what else to try?
@fanan You're on the right track. What you're doing wrong is that you're trying to use Home Assistant's substitution syntax in Reactor. You need to use Reactor's substitution syntax (and expression functions and syntax) in a substitution in Reactor. You will need to use the
getEntity()
function in your Reactor expression, and then navigate through the entity's data to the desired attribute. That will look more like this:Note that the argument to
getEntity()
is either an entity name (if it's unique), or a canonical ID (as shown here; canonical IDs are shown in the Entities list in left nav). -
T toggledbits locked this topic on