Send data or value to device on custom widget_html. is it possible?

hello !!
i’ve see that with WIDGET_hmtl i can create my custom witdget and with {{value}} is it possible receive data from device , with refresh every 1second or with stream .

but now i need to create my own custom widget_html which sends a value to a target value, using html and javascript. is it possible?
I did not find anything on the forum

best regards

to better understand, I have already created my custom widget using html + svg + javascript (see attached photo). but now I have to associate to the buttons I have designed some send functions to the system. or if there is another way to do it

2 Likes

ok i ‘ve solved it with AJAX get & post call inside widget , but now my device is disabled from system , i’ have receive email from server thinger .