You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've set body.comment.body to trigger on /test but noticed that it also works with anything else following that /test (i.e /test <some-other-string> would also trigger this Sensor).
I'm wondering if I should have used template instead of value along with some sprig.contains() for example, or what would be the best practice in this use case? Is there any scenario where value's behavior of catching /test <some-string> changes in the future?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a question regarding data filters.
I created the following Sensor:
I've set
body.comment.body
to trigger on/test
but noticed that it also works with anything else following that/test
(i.e/test <some-other-string>
would also trigger this Sensor).I'm wondering if I should have used
template
instead ofvalue
along with somesprig.contains()
for example, or what would be the best practice in this use case? Is there any scenario wherevalue
's behavior of catching/test <some-string>
changes in the future?Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions