SwitchBotAPI icon indicating copy to clipboard operation
SwitchBotAPI copied to clipboard

brightness levels / light sensors

Open yjeanrenaud opened this issue 3 years ago • 14 comments

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.

yjeanrenaud avatar Jul 18 '21 22:07 yjeanrenaud

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.

github-actions[bot] avatar Jul 28 '21 23:07 github-actions[bot]

is this not possible?

yjeanrenaud avatar Jul 29 '21 10:07 yjeanrenaud

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.

github-actions[bot] avatar Aug 08 '21 12:08 github-actions[bot]

I would really love to read those values out

yjeanrenaud avatar Aug 09 '21 11:08 yjeanrenaud

Me too!

markusstephanides avatar Aug 23 '21 08:08 markusstephanides

Me too.

voarsh2 avatar Aug 23 '21 11:08 voarsh2

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

alamers avatar Sep 20 '21 18:09 alamers

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 avatar Oct 02 '21 18:10 strunker

@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.

strunker avatar Oct 19 '21 16:10 strunker

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

donavanbecker avatar Oct 20 '21 19:10 donavanbecker

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.

strunker avatar Oct 21 '21 12:10 strunker

@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 avatar Oct 21 '21 12:10 donavanbecker

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

donavanbecker avatar Oct 21 '21 12:10 donavanbecker

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).

strunker avatar Oct 21 '21 12:10 strunker