[SOLVED] Send value from HTML to a item/thing?

openhab2
html
javascript
Tags: #<Tag:0x00007fe060035488> #<Tag:0x00007fe060034ec0> #<Tag:0x00007fe060034998>

(Maja) #1

Hello,

I have a color picker coded with jQuery, HTML and CSS and it outputs the value to a field. I want to send this value to a thing (which will then send the value over mqtt) to change a LED strip color. The processing will then happen on the ESP8266…I only need to figure out how to send the value from the HTML page to the thing. The HTML is rendered inside a Frame in the HABPanel.

Feel free to ask any questions as I don’t think I explained myself clearly.

Thanks in advance!


(Vincent Regaud) #2

Your can use the REST api.


(Maja) #3

Thanks for this, just what I was looking for - now it all works as intended.

Thread can be closed.