Hi!
I want to add some new things on OH 4.1 from Netatmo Binding without success.
With the API (Netatmo Connect | Legrand API Documentation), i can change state of legrand contactor (drivia with netatmo) using CURL command. (i use this contactor to on/off some exterior light)
Try to find on Netatmo Binding a solution to manage it but without success… I think source code of Netatmo Binding can’t discover those elements. Does anyone have already try to implement it on OH?
PS : Exec binding ou HTTP binding could maybe do the job but Netatmo auth need to be manage… that’s why i think my solution is on this binding…
Thanks by advance for those who will try to help me ^^
Come back here cause, with the http binding solution, I must adapt the auth/netatmo provide a token but with expiration and we must refresh it (Netatmo Connect | Authentication)
Do you have an idea how I can do that with OH and http binding?
I must take the new xxx|xxx token and put it on the headers setting on the http binding thing
Is it possible with the HTTP Binding to make a request, store the response on a global var and make a new request with parameters update with global var?
Or is it possible in OH to make some JS code and associated this JS code to an item?