Create virtual device
documentedCreate a new virtual device on the hub.
POST /virtual_deviceVirtual Deviceno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://hubsdk.flic.io/v1/virtual_device" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-Api-Key: {{FLIC_API_KEY}}" \
-d '{"name": "{{$name}}", "type": "{{$type}}", "initial_state": {"power": {{$power}}, "brightness": {{$brightness}}, "hue": {{$hue}}, "saturation": {{$saturation}}, "volume": {{$volume}}, "position": {{$position}} }}'