Hello! I’m trying to create a button to select a specific camera to view but my code results in “Unknown Type: image”
- type: custom:state-switch
entity: sensor.cctv_selection
transition: flip-x
style:
top: 55%
Left: 50%
width: 90%
states:
Driveway:
type: vertical-stack
cards:
- type: image
camera_image: camera.driveway
show_state: false
show_name: false
FrontDoor:
type: vertical-stack
cards:
- type: image
camera_image: camera.front_door
show_state: false
show_name: false
FrontYard:
type: vertical-stack
cards:
- type: image
camera_image: camera.front_yard
show_state: false
show_name: false
My ‘sensor.cctv_selection’ only has 3 options (Driveway, FrontYard, and FrontDoor), so I don’t see what I’m missing here. I use state-switch and custom button cards all the time, but this one is eluding me. Also tried replacing image cards with custom-button cards, but I can’t get camera images to work in those.
Thoughts?
2 posts - 2 participants