Replies: 2 comments 2 replies
-
|
It is JavaScript. You could use this to check for syntax errors? (Just remove the $ and curly braces) https://esprima.org/demo/validate.html |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hello. You'er able to console.log this, and return the value itself instead. If you look through my videos (find the links in the tutorial category), you should find a example. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I tried to search answer because this must basic thing but I could not find anything. I have many times problems to write service_data line and I don't know how to debug it. How I can call that I see what is the output?
For example how do I see what this service_data output is?
- sensor.garage_temperature_temperature
state_action:
- service: floorplan.text_set
service_data: >-
${(entity.state !== undefined) ? Math.round(entity.state * 10) / 10
+ "°" : "unknown"}
Beta Was this translation helpful? Give feedback.
All reactions