BaQs / pyEzviz

Python package for ezviz cameras
Apache License 2.0
105 stars 45 forks source link

Any updates on pyezviz integration? #17

Closed woobenjamin closed 3 years ago

woobenjamin commented 3 years ago

Hello,

To begin with, thanks for creating this integration. I know that this integration was disabled in HA 0.115. I'm wondering if there has been any movement in re-enabling this? I'm simply hoping to get a binary sensor working for when the doorbell button is pressed. Many thanks.

ben

RenierM26 commented 3 years ago

19

A workaround to this problem (until BaQs reviews and merges a pull request with the fix) You can create a copy of the ezviz component from hassio, then edit the manifest.json file to use a pull request for pyezviz.

Example manifest.json making use of my fork as example. I've renamed the component so your "configuration.yaml" file will need to reference "ezviz_my" instead of "ezviz".

configuration.yaml:

stream: camera:

manifest.json changes on copy of official hassio ezviz component. The requirements section references my fork of pyEzviz but you could easily change this to BaQs with patch if you prefer that route. (Below will work)

{ "domain": "ezviz_my", "name": "Ezviz_my", "documentation": "https://www.home-assistant.io/integrations/ezviz", "dependencies": [], "codeowners": ["@baqs"], "requirements": ["git+https://github.com/RenierM26/pyEzviz.git@master#pyezviz==0.1.5.6"] }

avol-io commented 3 years ago

i tried the trick.. but where is the manifest to modify? because i found that in homeassistant/lib/python3.8/site-packages/homeassistant/components/ezviz but homeassistend told me Platform error camera.ezviz2 - Integration 'ezviz2' not found

RenierM26 commented 3 years ago

Hi There, you'll need to copy the hassio ezviz component from their repository. (very similar to installing a custom_component).

the manifest file is in the ezviz component directory (Which should be a copy of the hassio component from their github repository).

BaQs commented 3 years ago

Hi all, sorry for the delay! We'll work on this with @RenierM26 and merge all that into the official HA module

Thx!

woobenjamin commented 3 years ago

Hi all, sorry for the delay! We'll work on this with @RenierM26 and merge all that into the official HA module

Thx!

Thanks. Have held off because I don't want to add custom custom code..

RenierM26 commented 3 years ago

Hi There,

We're working on updating the official HASS integration and making good progress. In the mean time you can use HACS custom repository:

Custom repository : RenierM26/ha-ezviz