I have 2 types of foscam camera’s, 2 of each (so, 4 camera’s).
In my configuration.yaml I added this line : camera: !include cameras.yaml
And in the cameras.yaml I declared all my camera’s, once as foscam and once as generic (I’m starting with HA, so a lot of testing…).
# FI9826W/FI9826P
- platform: foscam
ip: 192.168.1.101
port: 2001
username: !secret camera_living_login
password: !secret camera_living_psw
name: camera_living
# FI9826W/FI9826P
- platform: foscam
ip: 192.168.1.102
port: 2002
username: !secret camera_gang_login
password: !secret camera_gang_psw
name: camera_gang
# FI9900P
- platform: foscam
ip: 192.168.1.103
port: 2003
username: !secret camera_garage_login
password: !secret camera_garage_psw
name: camera_garage
# FI9900P
- platform: foscam
ip: 192.168.1.104
port: 2004
username: !secret camera_voordeur_login
password: !secret camera_voordeur_psw
name: camera_voordeur
# FI9826W/FI9826P
- platform: generic
name: camera_generic_living
still_image_url: ""
stream_source: !secret camera_living_stream_source
username: !secret camera_living_login
password: !secret camera_living_psw
authentication: digest
# FI9826W/FI9826P
- platform: generic
name: camera_generic_gang
still_image_url: ""
stream_source: !secret camera_gang_stream_source
username: !secret camera_gang_login
password: !secret camera_gang_psw
authentication: digest
# FI9900P
- platform: generic
name: camera_generic_garage
still_image_url: ""
stream_source: !secret camera_garage_stream_source
username: !secret camera_garage_login
password: !secret camera_garage_psw
authentication: digest
# FI9900P
- platform: generic
name: camera_generic_voordeur
still_image_url: ""
stream_source: !secret camera_voordeur_stream_source
username: !secret camera_voordeur_login
password: !secret camera_voordeur_psw
authentication: digest
And of course my secret.yaml file
After that, I restarted HA and I see my 4 foscam camera’s in the integrations
I create a dashboard with these 8 camera’s
- title: Camera
path: camera
badges: []
cards:
- type: picture-glance
title: camera.camera_generic_living
image: https://demo.home-assistant.io/stub_config/kitchen.png
entities: []
camera_image: camera.camera_generic_living
camera_view: live
- type: picture-glance
title: camera.camera_generic_gang
image: https://demo.home-assistant.io/stub_config/kitchen.png
entities: []
camera_view: live
camera_image: camera.camera_generic_gang
- type: picture-glance
title: camera.camera_generic_garage
image: https://demo.home-assistant.io/stub_config/kitchen.png
entities: []
camera_image: camera.camera_generic_garage
camera_view: live
- type: picture-glance
title: camera.camera_generic_voordeur
image: https://demo.home-assistant.io/stub_config/kitchen.png
entities: []
camera_image: camera.camera_generic_voordeur
camera_view: live
- type: picture-glance
title: camera.camera_garage
image: https://demo.home-assistant.io/stub_config/kitchen.png
entities: []
camera_image: camera.camera_garage
- type: picture-glance
title: camera.camera_living
image: https://demo.home-assistant.io/stub_config/kitchen.png
entities: []
camera_image: camera.camera_living
- type: picture-glance
title: camera.camera_voordeur
image: https://demo.home-assistant.io/stub_config/kitchen.png
entities: []
camera_image: camera.camera_voordeur
- type: picture-glance
title: camera.camera_gang
image: https://demo.home-assistant.io/stub_config/kitchen.png
entities: []
camera_image: camera.camera_gang
I see all my camera’s, except one: camera.camera_living ??? And yes, I checked all the credentials !
I must admit I started testing with this camera only, so it seems like there is something still hanging somewhere…I really don’t know.