RenierM26 / ha-ezviz

Ezviz component for HASSIO, testing latest additions to official integration. (The few I work on at least)
GNU General Public License v3.0
45 stars 22 forks source link

Loading ezviz via platform config is deprecated v0.0.4.3 #36

Closed moh-Brent closed 3 years ago

moh-Brent commented 3 years ago

Just received a new DP1C, no issues within itself. I've installed and followed multiple instructions in different varying ways but nothing seems to work.

Installed via HACS v0.0.4.3 HA supervisor-2021.02.11 HA core-2021.2.3

setup camera.yaml

- platform: ezviz_cloud
  username: !secret ezviz_app_username
  password: !secret ezviz_app_password
  region: us
  cameras:
    F30191048:
      username: admin
      password: !secret ezviz_F30191048_password

EZVIZ integration is already there after reboot so cannot add it as per the instruction, I have removed it, re-added, increased timeout. This is the only error i get in the logs [custom_components.ezviz_cloud.camera] Loading ezviz via platform config is deprecated, it will be automatically imported. Please remove it afterwards. Any help would be awesome :)

Cheers

Brent

Wolk9 commented 3 years ago

Copy this

jjhamb commented 3 years ago

same issue here.... I see ptz Services but no camera. Screenshot 2021-02-23 at 4 39 34 PM

moh-Brent commented 3 years ago

that's exactly all I get

nguyenbabao commented 3 years ago

me too :(

RenierM26 commented 3 years ago

Hi All,

Please try the latest version. You can now add the camera RTSP credentials via an integration instance. After a hassio restart it should also auto populate from your config entries. (Probably the quickest way to set them up).

Any change to RTSP credentials requires an integration restart. (Of the instance with your ezviz credentials)

moh-Brent commented 3 years ago

ummm, the integration doesn't show up any longer. I've reinstalled after removing etc. Do I need to keep the yaml code? Cheers EDIT: it turned up after an hour and a few reboots to boot... random? Installed, added my username and password, rebooted. added the camera via the integration, now I get the Services and the camera show in the integration but no entities, what am I doing wrong :(

RenierM26 commented 3 years ago

Hi @moh-Brent,

Sometimes you need to refresh your browser before config_flow entities show up.

The easiest way is to add the yaml config entries, restart hass (The integration should import your config). You can then remove or keep the config entries from your yaml file....it wil just log a warning every time you restart but has no impact on the functionality.

moh-Brent commented 3 years ago

OK tried all that, looks like I'm a failure LOL, going to stop trying for a while to clear my head and work on something else.

If anyone has success please let me know

jjhamb commented 3 years ago

I am still having trouble... Installed integration in HACS Restarted Added settings in configuration.yaml Restarted Integration gets installed automatically but no camera is found in entities. {See attached Photo} Screenshot 2021-02-28 at 3 16 03 AM

HOWEVER If there is nothing in YAML file and I try to install integration from Configuration panel, I get a dialogue box asking for credentials and region. But on submitting I get error saying invalid username or password. There is nothing wrong with my credentials, they work on the APP.

RenierM26 commented 3 years ago

Hi @jjhamb ,

Did you verify your region? The integration gets all device info for Ezviz so none of the device info will populate if it can't connect.

RenierM26 commented 3 years ago

@moh-Brent,

I see, from your config extract above, that you are using the US region? You'll need to add it via the integration as there's no region setting via yaml.

If the region is incorrect, it will actually pass the login check and show 0 devices. (I'm in eu, just tested with us)

moh-Brent commented 3 years ago

Yeah I did the region via the integration, I'll try again from scratch tomorrow or tonight if I finish work early enough :(

jjhamb commented 3 years ago

Finally got it working..... Removed the integration Removed camera from my App Deleted my Account on the App Created New account with Country in EU Logged in with my Email instead of my phone no Added my Camera to the App Copied the name given to my camera automatically by the app Added camera with this name to my YAML restarted Home Assistant Now I have the camera in the entities Additionally I have following services Screenshot 2021-03-01 at 3 09 13 AM

Was able to use the PTZ service as follows Screenshot 2021-03-01 at 3 10 52 AM

If anyone can help with rest of the services, it will be great.

moh-Brent commented 3 years ago

Maybe its because my Region is New Zealand, may have to follow the below with country as US or EU? When I log onto the EZVIZ web it points me to the US region though.

Will try all that later today, thanks for all your help!

moh-Brent commented 3 years ago

OK so I have done this twice, first with my country as USA, second as UK (for eu) Removed the integration Removed camera from my App Deleted my Account on the App Created New account with Country in US and EU Logged in with my Email instead of my phone no (always used my email) Added my Camera to the App Copied the name given to my camera automatically by the app (I've used 2 different names here) Added camera with this name to my YAML restarted Home Assistant (alot)

- platform: ezviz_cloud
  username: !secret ezviz_app_username
  password: !secret ezviz_app_password
  cameras:
    F30191048:
      username: admin
      password: !secret ezviz_F30191048_password
    DP1C(F30191048):
      username: admin
      password: !secret ezviz_F30191048_password

image

The login and PW is defo 100% correct, I've used it on the web and windows app, I am defo in the eu https://ieu.hicloudcam.com/user/userAction!goToMyShipin7.action The camera password works I've used it several times successfully. image

The only error I get is

Logger: custom_components.ezviz_cloud.camera
Source: custom_components/ezviz_cloud/camera.py:63
Integration: Ezviz (documentation)
First occurred: 21:02:16 (1 occurrences)
Last logged: 21:02:16

Loading ezviz via platform config is deprecated, it will be automatically imported. Please remove it afterwards.
jjhamb commented 3 years ago

Maybe its because my Region is New Zealand, may have to follow the below with country as US or EU? When I log onto the EZVIZ web it points me to the US region though. Will try all that later today, thanks for all your help! From: jjhamb notifications@github.com Sent: Monday, 1 March 2021 10:42 a.m. To: RenierM26/ha-ezviz ha-ezviz@noreply.github.com Cc: Brent McCabe brent@mccabe.kiwi; Mention mention@noreply.github.com Subject: Re: [RenierM26/ha-ezviz] Loading ezviz via platform config is deprecated v0.0.4.3 (#36) Finally got it working..... Removed the integration Removed camera from my App Deleted my Account on the App Created New account with Country in EU Logged in with my Email instead of my phone no Added my Camera to the App Copied the name given to my camera automatically by the app Added camera with this name to my YAML restarted Home Assistant Now I have the camera in the entities Additionally I have following services [Screenshot 2021-03-01 at 3 09 13 AM]https://user-images.githubusercontent.com/6984759/109434478-949e6600-7a3b-11eb-88cd-16f4dceb4569.png Was able to use the PTZ service as follows [Screenshot 2021-03-01 at 3 10 52 AM]https://user-images.githubusercontent.com/6984759/109434545-c7e0f500-7a3b-11eb-96f2-d5065c20694d.png If anyone can help with rest of the services, it will be great. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<#36 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKSK733I5VH5QXLT3L3WUB3TBK2DXANCNFSM4YBZOHSA.

I used France because apparently configuration defaults to eu

moh-Brent commented 3 years ago

HA, I tried that as well, still no go, I'm going to get a new EZVIZ security cam for the house soon so will see if it works on that model before panicking :)

Thanks for your help guys, I really appreciate it.

jjhamb commented 3 years ago

HA, I tried that as well, still no go, I'm going to get a new EZVIZ security cam for the house soon so will see if it works on that model before panicking :)

Thanks for your help guys, I really appreciate it.

I tested integration with my second installation of HASSIO too and it worked again. both resulted in 29 entities for my c6n camera. Do note that I had first removed my camera from the app and re-added it. This resulted in change in camera name to C6N(E12345678) where E12345678 is the serial no and C6N is the model no. Integration only works if I use given name C6N(E12345678), it creates no entities for E12345678. Another tweak I applied was to keep region as eu by selecting France as my country.

LIST of entities created for C6N

binary_sensor.c6n_e12345678_alarm_schedules_enabled
binary_sensor.c6n_e12345678_encrypted
binary_sensor.c6n_e12345678_motion_trigger
binary_sensor.c6n_e12345678_upgrade_available
camera.c6n_e12345678
sensor.c6n_e12345678_alarm_sound_mod
sensor.c6n_e12345678_detection_sensibility
sensor.c6n_e12345678_last_alarm_pic
sensor.c6n_e12345678_last_alarm_time
sensor.c6n_e12345678_pir_status
sensor.c6n_e12345678_seconds_last_trigger
sensor.c6n_e12345678_supported_channels
sensor.c6n_e12345678_wan_ip
switch.c6n_e12345678_alarm_light
switch.c6n_e12345678_alarm_light_relevance
switch.c6n_e12345678_alarm_tone
switch.c6n_e12345678_all_day_video
switch.c6n_e12345678_auto_sleep
switch.c6n_e12345678_human_intelligent_detection
switch.c6n_e12345678_infrared_light
switch.c6n_e12345678_light
switch.c6n_e12345678_light_flicker
switch.c6n_e12345678_mobile_tracking
switch.c6n_e12345678_privacy
switch.c6n_e12345678_sleep
switch.c6n_e12345678_sound
switch.c6n_e12345678_sound_localization
switch.c6n_e12345678_stream_adaptive
switch.c6n_e12345678_tracking
moh-Brent commented 3 years ago

I tried both as well maybe there is an issue with the DP1C door camera it doesnt have rtsp either

AlessandroTischer commented 3 years ago

I opened a new issue for those who don't see any entity after setting up account and cameras from integration UI:

https://github.com/RenierM26/ha-ezviz/issues/38#issue-820457608

RenierM26 commented 3 years ago

Hi All,

There is an open issue for DP1C door cameras. I'm closing this one as a duplicate and it's way of topic.