Supereg / homebridge-http-switch

Powerful http switch for Homebridge: https://github.com/homebridge/homebridge
ISC License
218 stars 36 forks source link

Help me on this call http #81

Closed platini76 closed 1 year ago

platini76 commented 3 years ago

hello!

I have a problem, assuming that I am a noob, it is possible to use your plugin to make this call?

curl -XPUT https://api.lifx.co/v1/lights/states -d @states.json -HContent-Type:application/json -H"Authorization: Bearer $PROD_API_TOKEN"

states.json

{ "states": [ { "selector": "label:strip", "power": "on" }, { "selector": "label:strip|0-15", "brightness": 0 }, { "selector": "label:strip|16-31", "brightness": 1 } ] }