The only thing that i need to know is how to get to this last picture where it shows { Current Lights State: ON}. I edited the Page Source to show that, so you guys can understand what i’m trying to get.
It’ possible to get that response, or anything similar, on Home Assistant? I would love to make it possible using Node-RED, but i’m open to any other solutions.
Look into the http request node, which should do it.
You might even be able to set the return field to a parsed JSON to just get “on” in the msg.payload.
Hey everyone, updating this topic. So to get the custom response is actually very simple, just use a “template function”, you can write up anything there basically. That together with the “current state”, is just what i was looking for.
Http In – Used to set the link that i’m accessing to make an action possible: :1880/light-1/on
Http Respose – Used to end the Request, otherwise it will be waiting forever to a respose, so just give it one, even if it’s not true.
Call Service – Do the action that i want when i access the link specified by Http In
Note that you can do different functions on Http In, if you’re planning to do it by your browser use GET.