michielpost / Q42.HueApi

C# helper library to talk to the Philips Hue bridge
MIT License
409 stars 114 forks source link

What to use when #84

Closed niels9001 closed 7 years ago

niels9001 commented 7 years ago

I'm trying to create a Hue Tap toggle button, and I need to set a flag to true/false within the action, like this:

{ "address": "/sensors/7/state", "method": "PUT", "body": { "flag": true } }

What should I use (e.g. LightCommand or SceneCommand) to achieve this?

michielpost commented 7 years ago

This would be an InternalBridgeCommand with the Body set to new SensorState() { Flag = true} because the command goes to a sensor.