I am trying to set up a cURL sensor.
I am attempting to bring in real-time power price information in Australia.
so far I have attempted a command line sensor but when I paste the working Curl into the command field, home assistant doesn’t like it.
(incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 261, column 98:
… es/listprices \ -H ‘Content-Type: application/json’ \ -d '{ "p …
^).
I guess this is due to it being on multiple lines. It works perfectly in the Linux terminal.
i thought i’d try to just grab the values i need from the data and do the math in home assistant. not as clean but something i have a bit more of a clue how to do!
still can’t get the bugger working tho!
thanks for your switch code tho HasQT, it didn’t work but it gave me some great structure to work with.
Price Surge!
Aussies getting paid over $10 a Kw for exported electricity! turn everything off, export like mad, Christmas bonus incoming!
I’ve got to get this automated, think Jon think… how hard can this be!
Thank you for your effort and input
I will dig back into this eventually, Christmas is starting to get in the way!
Hopefully Santa will bring me some integration development skills
enjoy the break everyone!
Hi HasQT, hope you had a good break
in answer to your question - there is no response in Home Assistant to the API.
I get a response if i bung the command into the linux terminal so i know it is correct.
I just need to find a way to bring the data into home assistant
I checked out the restful sensor with no joy, I’ll have a crack at formatting the other link you sent.
I’m not using node-red at the moment but i do need to take the dive. it looks pretty damn good for sure!
I’ve been given another route to try, all in imperative code rather than terminal commands.
not sure if this makes things harder or easier, it’s certainly another angle
Hi John,
How are you going with the AMBER intergration? i have just been signed up with them, and i would also like to have live pricing shown on my hass.io.
If it is not to much to ask, could you though some pointers my way for getting it working? AMBER have sent me the API details etc.