homebridge-eufy-security / plugin

Homebridge plugin to control certain Eufy Security devices
Apache License 2.0
166 stars 24 forks source link

[enhancement]: JUST serve as an on/off #105

Closed bwt615 closed 2 years ago

bwt615 commented 2 years ago

Describe the solution you'd like

I use homekit for primary link to eufy cam. I want to be able to turn camera off via homekit. Can you make it so it can just toggle video on and off?

github-actions[bot] commented 2 years ago

Did you check this Road Map pages ?

thieren commented 2 years ago

Hi @bwt615

there is already the option enableButton. With this it's possible to turn camera on/off. But I suppose you want to turn on/off and also don't use the camera itself (e.g. enableCamera: false), am I right?

bwt615 commented 2 years ago

Hi @bwt615

there is already the option enableButton. With this it's possible to turn camera on/off.

But I suppose you want to turn on/off and also don't use the camera itself (e.g. enableCamera: false), am I right?

Correct!

thieren commented 2 years ago

You could try the latest beta. I have made some changes that should enable you to do just what you want.

Please let me know, if this is what you meant.

bwt615 commented 2 years ago

Awesome! Thank you. Mind helping with the command? Not the most tech saavy

thieren commented 2 years ago

Awesome! Thank you. Mind helping with the command? Not the most tech saavy

To install beta? Here are the instructions

jhaleit commented 2 years ago

I tried turning the camera on/off and it seems broken to me.

When I click it off it the button auto switches back on, but the camera does turn off.. I just can't turn it back on? Anyway here is the logs I got:::

[7/14/2022, 10:36:49 PM] [homebridge-eufy-security] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside write handler for characteristic: this.CameraService.getCharacteristic is not a function. See https://homebridge.io/w/JtMGR for more info.
[7/14/2022, 10:36:49 PM] [EufySecurity-2.1.0-beta.8] DEBUG: Dining Room Camera Property Changes: enabled false
[7/14/2022, 10:36:56 PM] [EufySecurity-2.1.0-beta.8] DEBUG: Dining Room Camera SET DeviceEnabled: false
[7/14/2022, 10:36:56 PM] [homebridge-eufy-security] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside write handler for characteristic: this.CameraService.getCharacteristic is not a function. See https://homebridge.io/w/JtMGR for more info.
[7/14/2022, 10:37:01 PM] [EufySecurity-2.1.0-beta.8] INFO:  Looking for old cached accessories that seem to be outdated...
[7/14/2022, 10:37:01 PM] [EufySecurity-2.1.0-beta.8] INFO:  No outdated cached accessories found.
thieren commented 2 years ago

Found the bug. Will fix it in the next release. Stay tuned.

thieren commented 2 years ago

Sry, forgot to fix this in beta.9 will hopefully find it's way in beta.10 ;-)

thieren commented 2 years ago

Hey @jhaleit

can you try again with latest beta?

jhaleit commented 2 years ago

It works! Thank you!