Is it possible to use a single reaction for multiple entities as variables?
-
@tamorgen You need MSR to evaluate the whole data being sent
${{ { “message”: window_names + “ opened!” } }}
@Crille said in Is it possible to use a single reaction for multiple entities as variables?:
@tamorgen You need MSR to evaluate the whole data being sent
${{ { “message”: window_names + “ opened!” } }}
That's not working either. It actually disables the Play button at he end of Entity Action.
This is a system call on home assistant (call_service) to send a notification via the HA companion app. The message: text isn't part of the message to be sent, it's yaml code that is part of the data field.
For example, I have another reaction that sends a message to my phone when my washing machine has completed a cycle.
The word message doesn't appear on my phone, just the data after it.
Here is my current rule:
In the Local Expressions, you can see Last value: (string) "Office Windows", so that value should be returned for window_names in the system call.
-
Try without the spaces so it looks like this
message: ${{window_names}} Open
. MSR supports both JSON and Yaml, but you just gotta make sure theres no errors. Usually online validators help with this@Pabla said in Is it possible to use a single reaction for multiple entities as variables?:
Try without the spaces so it looks like this
message: ${{window_names}} Open
. MSR supports both JSON and Yaml, but you just gotta make sure theres no errors. Usually online validators help with thisDoesn't work. MSR throws this error.
-
Try without the spaces so it looks like this
message: ${{window_names}} Open
. MSR supports both JSON and Yaml, but you just gotta make sure theres no errors. Usually online validators help with this@Pabla said in Is it possible to use a single reaction for multiple entities as variables?:
Try without the spaces so it looks like this
message: ${{window_names}} Open
. MSR supports both JSON and Yaml, but you just gotta make sure theres no errors. Usually online validators help with thisThat triggers the notification, but the value isn't returned.
-
@Pabla said in Is it possible to use a single reaction for multiple entities as variables?:
Don't use the play button next to the action, use the play button right under set reaction
Well that makes a difference! This has been driving me nuts all afternoon. Thanks for cluing me in!
-
It should look like this:
message: "${{window_names}} Open"
-
T toggledbits locked this topic on