OpenWonderLabs / SwitchBotAPI

SwitchBot Open API Documents
885 stars 73 forks source link

brightness levels / light sensors #41

Open yjeanrenaud opened 3 years ago

yjeanrenaud commented 3 years ago

Is your feature request related to a problem? Please describe.

I noticed the majority of the SwitchBot devices I got do have a light sensor built in and reported to the app in terms of dim/bright. This is the case at least for the Motion Sensor, the Contact Sensor and the Curtain, even though the feature is sometimes marked beta, e. g. for the Curtain. These sensors are unused in the API right now, if I did not terribly overlook it.

Describe the solution you'd like

I would love to have these values reported in the json so I could work on an extra sensor set for the homebridge-switchbot-openapi plugin, e. g. if you add the Curtain bot, an extra ambient brightness sensor is added, too.

Describe alternatives you've considered

there is none I guess. I looked at other homebridge plugins and none has that feature (yet). As far as i can tell, it all comes back to the API which does not provide these values yet.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

yjeanrenaud commented 3 years ago

is this not possible?

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

yjeanrenaud commented 3 years ago

I would really love to read those values out

markusstephanides commented 3 years ago

Me too!

voarsh2 commented 3 years ago

Me too.

alamers commented 3 years ago

Looks like it has been added, but there is an issue with it having two different definitions. I opened #48 for that...

strunker commented 3 years ago

Added to the curtain? I don’t see it in the docs at all that u get light sensor data back in the get call.

strunker commented 3 years ago

@donavanbecker can you comment if this is something we can expect on the curtain API? It has a light sensor, internally the device can use it to open\close, so that data should be available over api as well.

donavanbecker commented 3 years ago

@strunker I have no control on what is included in API. I don't work for SwitchBot. I just manage their homebridge plugins.

strunker commented 3 years ago

Come awnnn @donavanbecker fix ittt! Insert more whining. The actual devs vanished from this forum for the most part since December so... My mistake though.

donavanbecker commented 3 years ago

@strunker Best I can do is moderate and pin issues I think worth pinning, so they don't go stale.

Which I have on this one.

donavanbecker commented 3 years ago

@yjeanrenaud I did implement the light sensor into the homebridge-SwitchBot plugin.

strunker commented 3 years ago

I read the original request for this, as being able to tap sensor data from the devices. like the switchbot curtain has a light sensor, yet that data is only available to the device itself, why?? If I misread that, I'll post my own request (not that they will likely care\or see it but will do anyway).