roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
205 stars 32 forks source link

"Save video when a motion is detected" does not update properly #130

Closed auanasgheps closed 8 months ago

auanasgheps commented 1 year ago

Hi, Using this integration on HA with a r35gb running yi-hack-Allwinner-v2 version 0.2.7.

image image

When I toggle Switch on/off the camera in Yi GUI, it gets updated in HA, and vice-versa. However, when I toggle Save video when a motion is detected in HA, it does not update the actual camera setting. If I change it in the camera, it reflects in HA.

roleoroleo commented 1 year ago

You are right. Please, overwrite the files in /tmp/sd/yi-hack/bin with the content of this archive: save.tar.gz

auanasgheps commented 1 year ago

I've done it and rebooted the camera. Now it's rebooting in loops...

auanasgheps commented 1 year ago

Hard unplug has solved the bootloop. Thanks, the change is now reflected! immagine

immagine

Good to close for me if will be implemented in the next update :)

roleoroleo commented 1 year ago

Yes, already committed.

auanasgheps commented 1 year ago

Thank you!

auanasgheps commented 1 year ago

Hey I have an issue related to this one. Even if the option is disabled (with the fix), the camera is still recording a video when motion is detected :(

roleoroleo commented 1 year ago

Does the switch change in the web interface when you change it in ha? What does "is still recording" mean? When the switch is off the cam should record 24h, 1 file every minute.

auanasgheps commented 1 year ago

Does the switch change in the web interface when you change it in ha?

Yes.

Here's the current setting in HA: "Save video on motion" is off "Video switch" is on image

in Web Interface looks correct: image

When the switch is off the cam should record 24h, 1 file every minute.

OK, so maybe I misunderstood the feature. My goal is to replicate the old "privacy" mode and disable recording while I'm at home. What setting should I switch? "Switch on/off the camera"?

roleoroleo commented 1 year ago

Yes, I copied how original firmware works. When you switch off the cam, it should stop recording.

auanasgheps commented 8 months ago

Closing - no further action is needed.