roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
846 stars 112 forks source link

HA integration #351

Closed roleoroleo closed 5 months ago

roleoroleo commented 3 years ago

Please, take a look at this project:

https://github.com/roleoroleo/yi-hack_ha_integration

foxel commented 3 years ago

Cool :+1:

Since topics are still configurable on the camera after the integration is configured it looks like you need to read topics at least inside async_setup_entry so that users don't need to remove and re-add the integration after such changes.

roleoroleo commented 3 years ago

Thak you for your notes. I'm taking my first steps in ha programming and I need guidance.

roleoroleo commented 3 years ago

Done. About the last step, I need to study it.

roleoroleo commented 3 years ago

I fixed the last step but I have a weird problem after this change. When the wizard completes, ha doesn't ask the destination area for the new entities. I have to set it later.

EDIT

Fixed moving config code to init.py

divemasterjm commented 3 years ago

i had to comment AI HUMAN and SOUND in init_py cause integration throw an error with this entities. after comment worked ok i have also constant errors on mqtt broker 1619340036: New connection from xxx.xxx.x.xx on port 1883. 1619340036: Socket error on client , disconnecting.

i miss binary_sensor to activate/desactivate motion events

roleoroleo commented 3 years ago

What's your model? mstar, allwinner or allwinner-v2?

divemasterjm commented 3 years ago

mstar

On Sun, Apr 25, 2021 at 1:40 PM roleo @.***> wrote:

What's your model? mstar, allwinner or allwinner-v2?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/roleoroleo/yi-hack-MStar/issues/351#issuecomment-826309849, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALECS4SKITYK7AJBRSABWNTTKP5SXANCNFSM43KTXQJA .

roleoroleo commented 3 years ago

Ok, fixed AI HUMAN and SOUND. Thanks.

roleoroleo commented 3 years ago

What do you mean with "i miss binary_sensor to activate/desactivate motion events"?

divemasterjm commented 3 years ago

as per your integration you can have only few sensor, will be nice to have as most as you can just for setting up automations, i mean for binary_sensor for activation of motion events for having a sensor to activate or deactivate motion enevts just to for example setup an automation to record and have snapshots on/off

foxel commented 3 years ago

@divemasterjm the thing you are asking for should be performed with one binary sensor. In HA you can trigger automation on both events where it goes from no motion to motion detected and vice-versa

divemasterjm commented 3 years ago

@foxel i know but i want to deactivate motion detection based on state if for example alarm is amerd home, night, away, therefore i only have snapshot or movie when this setting is on

roleoroleo commented 3 years ago

Sorry but I don't understand. Could you explain me better?

divemasterjm commented 3 years ago

i want to have ftp uploads of images or videos que i turn switch ftp updload ON this why i ask for having more switches in the integration to control camera

FTP Upload Enable/disable upload of recorded events to a FTP service.
github-actions[bot] commented 6 months 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.