michielpost / Q42.HueApi

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

UpdateSensorAsync can't update SensorConfig? #88

Closed niels9001 closed 7 years ago

niels9001 commented 7 years ago

There does not seem to be a way to update the SensorConfig, am I right? I guess UpdateSensorAsync(string SensorID, SensorConfig Config) would be the most logical way?

michielpost commented 7 years ago

UpdateSensorAsync corresponds to this API call: /api/<username>/sensors/<id> https://www.developers.meethue.com/documentation/sensors-api#56_update_sensor You can only change the name

If you want to Change the Sensor Config you can use ChangeSensorConfigAsync https://www.developers.meethue.com/documentation/sensors-api#58_change_sensor_config

niels9001 commented 7 years ago

Ah, sorry for the confusion!