this post was submitted on 30 Jun 2023
0 points (50.0% liked)
homeassistant
11705 readers
49 users here now
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
On top of my head there are 2 ways to do it:
change
node withJSONata
so that you can just put the input payload in a JSON templatefunction
node and use plain JS to create an object to returnThank you so much! Sorry for the late reply but I figured it out doing pretty much what you said. Button node to JSON node that coverts to a JSON string and then pass that into the template
I'll post more info when I'm at a computer