solomos
(Gerasimos Solomos)
1
hello,
Please excuse my question if it’s silly. Although I am familiar with HA I have now started with Node-Red and I don’t know if this is possible.
Can I create an HTTP endpoint, pass a value to it and then update a sensor ???
What I want to achieve is the following:
I have a cashier machine.
For each sale the cashier is creating an HTTP get to my HA formatting as following:
http://192.168.2.205:1880/endpoint/control?price=12.90
I want to capture the value of the query “price” and update an input number sensor.
Is it possible ?
thank you in advance
Hellis81
(Hellis81)
2
solomos
(Gerasimos Solomos)
3
As I still haven’t get an answer that covers me, I will rephrase the question.
I have a device that creates an HTTP endpoint to HA.
Each time it hits HA I get the following value, which changes a couple of times per day.
( I get the above by hitting the URL of the endpoint)
Can I create a sensor ( e.g input_number) with the value as state which will be updated each time the value changes???
solomos
(Gerasimos Solomos)
4
please, I need to solve this out
can you share what you got so far?
solomos
(Gerasimos Solomos)
6
hello,
I think that my question was stupid and is not possible. I don’t know .-
I never got an answer…
However I was able to solve it by creating an HTTP Sensor .
Very nice! Very powerful
You can achieve that in NR mixing a http in node and an entity node together.
solomos
(Gerasimos Solomos)
8
I know you can dot it my friend … But without instructions is hard to do it …
I rather prefer to stick with the HTTP sensor which requires nothing