Aller au contenu
aurelien31

Aide création Virutal Device Flipr

Recommended Posts

Bonjour à tous,

 

J'aurai besoin d'aide pour créer un virtual device Flipr sur Fibaro HC2.

Pourriez vous m'aidez ?

Je souhaiterai faire ça : 

Capture d’écran 2019-06-10 à 15.15.20.png$

Proposé par @kevin39 mais n'a jamais donné de suite.

 

J'ai trouvé les fichier qui permette de récupérer les Api de Flipr :

 

https://flipr.freshdesk.com/fr/support/solutions/articles/36000062890-guide-du-développeur-apis-flipr

 

J'ai réussi à créer le code HTML sur postman :

 

GET /modules/1A4360/survey/last HTTP/1.1
Host: apis.goflipr.com
Authorization: Bearer eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYXVyZWxpZW4uY3JlbWF6eUBnbWFpbC5jb20iLCJzdWIiOiJhdXJlbGllbi5jcmVtYXp5QGdtYWlsLmNvbSIsIm5iZiI6MTY1NDI2MDg4NSwiZXhwIjoxNjc3NTg4ODg1LCJpc3MiOiJodHRwOi8vbG9jYWxob3N0LyIsImF1ZCI6IkFueSJ9.sk2y6sMrS6_BkOM3zil548jdKyY5PoIB88Lmf7ge82Q
Cookie: ARRAffinity=038c5b6de232f0f1a4a0f95d4bd62f39612acb99002094b5738c6e534da7d779; ARRAffinitySameSite=038c5b6de232f0f1a4a0f95d4bd62f39612acb99002094b5738c6e534da7d779

 

Mais je ne sais pas comment le mettre en forme pour l'avoir sur la HC2.

Pourriez vous m'aider ?

Merci par avance :)

Aurélien

Modifié par aurelien31

Partager ce message


Lien à poster
Partager sur d’autres sites

Hi,

the script should work exaclty as you used it in postman, but in Fibaro VD you need to use the "string" type, please you see the post where others guys speaking about this topic

 

https://forum.fibaro.com/topic/46613-setting-rfprotectionstate-using-lua-or-vd/?_fromLogin=1

 

I hope have helped you

Partager ce message


Lien à poster
Partager sur d’autres sites

×