Cameras com integração directa no Home Assistant

@pedrocampos No host: é só o IP da camara… Não é para colocares a porta RTSP :554

Nesse ficheiro onde estás a adicionar a camara, só podes ter uma vez camera: e depois as várias camaras de seguida nesse ficheiro… Não é para colocar camera: sempre que se adiciona uma camera…

Tens que reiniciar o Home Assistant depois de gravares o ficheiro. Verifica antes se te dá algum erro de configuração.

Eu tenho essa camara e funciona sem problemas da forma que estou a descrever.

tenho estes erros no LOG…

2020-04-23 10:03:36 WARNING (MainThread) [homeassistant.components.onvif.camera] Couldn't connect to camera 'Frente', but will retry later. Error: Cannot connect to host 192.168.xx.xx:8000 ssl:None [Connect call failed ('192.168.xx.xx', 8000)]
2020-04-23 10:03:36 WARNING (MainThread) [homeassistant.components.camera] Platform onvif not ready yet. Retrying in 30 seconds.
2020-04-23 10:03:39 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for shelly which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-23 10:04:10 WARNING (MainThread) [homeassistant.components.onvif.camera] Couldn't connect to camera 'Frente', but will retry later. Error: Cannot connect to host 192.168.xx.xx:8000 ssl:None [Connect call failed ('192.168.xx.xx', 8000)]
2020-04-23 10:04:10 WARNING (MainThread) [homeassistant.components.camera] Platform onvif not ready yet. Retrying in 60 seconds.
2020-04-23 10:05:14 WARNING (MainThread) [homeassistant.components.onvif.camera] Couldn't connect to camera 'Frente', but will retry later. Error: Cannot connect to host 192.168.xx.xx:8000 ssl:None [Connect call failed ('192.168.xx.xx', 8000)]
2020-04-23 10:05:14 WARNING (MainThread) [homeassistant.components.camera] Platform onvif not ready yet. Retrying in 90 seconds.
2020-04-23 10:06:48 WARNING (MainThread) [homeassistant.components.onvif.camera] Couldn't connect to camera 'Frente', but will retry later. Error: Cannot connect to host 192.168.xx.xx:8000 ssl:None [Connect call failed ('192.168.xx.xx', 8000)]
2020-04-23 10:06:48 WARNING (MainThread) [homeassistant.components.camera] Platform onvif not ready yet. Retrying in 120 seconds.
2020-04-23 10:08:52 WARNING (MainThread) [homeassistant.components.onvif.camera] Couldn't connect to camera 'Frente', but will retry later. Error: Cannot connect to host 192.168.xx.xx:8000 ssl:None [Connect call failed ('192.168.xx.xx', 8000)]
2020-04-23 10:08:52 WARNING (MainThread) [homeassistant.components.camera] Platform onvif not ready yet. Retrying in 150 seconds.
2020-04-23 10:11:26 WARNING (MainThread) [homeassistant.components.onvif.camera] Couldn't connect to camera 'Frente', but will retry later. Error: Cannot connect to host 192.168.xx.xx:8000 ssl:None [Connect call failed ('192.168.xx.xx', 8000)]
2020-04-23 10:11:26 WARNING (MainThread) [homeassistant.components.camera] Platform onvif not ready yet. Retrying in 180 seconds.

e este

2020-04-23 17:24:09 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from Frente: Cannot connect to host 192.168.1.XXX:80 ssl:None [Connect call failed ('192.168.1.XXX', 80)]

@pedrocampos por favor edita a mensagem do teu tópico anterior.

peço desculpa nem reparei que pediram para editar

1 Curtiu

Boas,

Alguém já conseguiu integrar a imagem da camara numa Amazon Echo Show?

Tenho todos os equipamentos a funcionar sem problema, mas quando peço para mostrar a camara diz que o equipamento nao é compatível

1 Curtiu

consegues decifrar os erros que me aparecem?
por mais configs que faça ha sempre alguma coisa…

@pedrocampos Coloca aqui o código yaml que estás a utilizar devidamente formatado.
Tens a certeza que estás a utilizar o IP correto da câmara?
Se colocares esse IP no browser consegues aceder às configurações da câmara?

Quando colocas aqui código com IPs internos da rede, como os 192.168.xxx.xxx não precisas estar a ocultar nada… Todos nós temos IPs desses ou parecidos na nossa rede e casa. O eu saber o IP interno que a tua câmara está a utilizar não vai fazer com que consiga aceder a ela a partir do exterior da tua rede.

Sim tenho a certeza. Sim tanto o link rtsp funciona no VLC como no browser abre as definições da camara.

 - platform: generic
    still_image_url: http://192.168.1.65/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=123456
    stream_source: "rtsp://admin:123456@192.168.1.65:554/h264Preview_01_main"

tenho isto no meu config, tentei usar todas as opções que encontrei…
instalei um programa no PC chamado iSpy por esses links rstp consigo entrar e pelo motion eye tambem da unresponsive host.

camera:
- platform: reolink_dev
  host: 192.168.1.65
  username: admin
  password: 123456
  name: Camara1
  stream: main
  protocol: rtsp
  channel: 0
  scan_interval: 5
- platform: onvif
  name: camera2
  host: 192.168.1.65
  username: admin
  password: 123456
  port: 8000
- platform: generic
  name: camera3
  still_image_url: "https://192.168.1.65/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=123456"
  stream_source: "rtsp://admin:123456@192.168.1.65:554/h264Preview_01_main"
- platform: generic
  name: camera4
  still_image_url: "https://192.168.1.65/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=123456"
  stream_source: "rtmp://192.168.1.65:1935/bcs/channel0_main.bcs?token=[TOKEN]&channel=0&stream=0"
- platform: generic
  name: camera5
  still_image_url: "https://192.168.1.65/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=123456"
  stream_source: "rtmp://192.168.1.65/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=123456"
- platform: generic
  name: camera6
  still_image_url: "https://192.168.1.65/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=123456"
  stream_source: "rtmp://192.168.1.65/vod/Rec_20160707_040638_411_M.mp4?&channel=0&stream= 0&user=admin&password=123456"

e tenho estes erros nos logs

2020-04-27 10:43:37 ERROR (MainThread) [custom_components.reolink_dev.ReolinkPyPi.camera] Exception while calling Reolink camera API at ip 192.168.1.65
2020-04-27 10:43:37 ERROR (MainThread) [custom_components.reolink_dev.ReolinkPyPi.camera] Error translating login response to json
2020-04-27 10:43:40 WARNING (MainThread) [homeassistant.components.onvif.camera] Couldn't connect to camera 'camera2', but will retry later. Error: Cannot connect to host 192.168.1.65:8000 ssl:None [Connect call failed ('192.168.1.65', 8000)]
2020-04-27 10:44:30 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from camera3: Cannot connect to host 192.168.1.65:443 ssl:None [Connect call failed ('192.168.1.65', 443)]
2020-04-27 10:44:30 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from camera4: Cannot connect to host 192.168.1.65:443 ssl:None [Connect call failed ('192.168.1.65', 443)]
2020-04-27 10:44:30 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from camera5: Cannot connect to host 192.168.1.65:443 ssl:None [Connect call failed ('192.168.1.65', 443)]
2020-04-27 10:44:30 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from camera6: Cannot connect to host 192.168.1.65:443 ssl:None [Connect call failed ('192.168.1.65', 443)]

Esta camera Zosi 1080 p funciona bem com HA ?

Alguém poderá ajudar?

Não sei se no teu caso ajuda, mas eu tive que alterar os codecs das minhas câmaras Hikvision de H.265 para H.264

Estão com esta configuração:

- platform: ffmpeg
  name: Entrada
  input: -rtsp_transport tcp -i rtsp://user:pass@ip_da_camara/Streaming/Channels/101

Também me parece que a tua formatação não está correta (espaçamento).
Tenta colocar assim:

camera:
  - platform: reolink_dev
    host: 192.168.1.65
    username: admin
    password: 123456
    name: Camara1
    stream: main
    protocol: rtsp
    channel: 0
    scan_interval: 5

os da Reolink sao H.264…esta config nao funciona tambem…

penso que estava tudo ok mas copiei a tua formatação e nada.

Tenta assim:

ffmpeg:

camera:
  - platform: ffmpeg
    name: Frente
    input: rtsp://admin:123456@192.168.1.65:554/h264Preview_01_main

Da-me estes error no Log

2020-05-04 14:55:02 ERROR (stream_worker) [libav.tcp] Port missing in uri
2020-05-04 14:55:05 ERROR (stream_worker) [libav.tcp] Connection to tcp://192.168.1.65:554?timeout=5000000 failed: Host is unreachable
2020-05-04 14:55:30 ERROR (stream_worker) [libav.tcp] Connection to tcp://192.168.1.65:554?timeout=5000000 failed: Host is unreachable
2020-05-04 14:55:33 ERROR (stream_worker) [libav.tcp] Connection to tcp://192.168.1.65:554?timeout=5000000 failed: Host is unreachable
2020-05-04 14:55:35 WARNING (Poll) [pyShelly] Error, 401 Unauthorized
2020-05-04 14:55:46 WARNING (Thread-42) [pyShelly] Error, 401 Unauthorized
2020-05-04 14:55:50 ERROR (stream_worker) [libav.tcp] Connection to tcp://192.168.1.65:554?timeout=5000000 failed: Host is unreachable

Como não conheço essa câmara, não te consigo ajudar.

Pois obrigado
O mais estranho disto tudo é acesso pelo browser e pelo VLC funciona.

Instalei agora uma app na TV (ip cam viewer), escolhi onvif e funciona perfeitamente


Copyright © 2017-2021. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade