Strange but I can not add my camera as per you instruction in github:
- what type of data is this, there is no such element in the home assistant lovelace:
type : picture-elements
- Then followed by this:
"elements :
- type : icon
icon : ’ mdi: arr…"
there is no such thing in HA - elements, but entities
what version of HA you using?
Update: Spacing was wrong!
here is fixed one:
type: picture-elements
title: Garden PTZ Cam 01
camera_image: camera.garden_ptz01_camera
elements:
- type: state-icon
tap_action:
action: call-service
service: ptz_camera.move_left
service_data:
host: 192.168.1.18
entity: camera.garden_ptz01_camera
icon: 'mdi:arrow-left-drop-circle'
style:
bottom: 45%
left: 5%
color: white
opacity: 0.5
transform: ' scale (1.5, 1.5) '
- type: state-icon
tap_action:
action: call-service
service: ptz_camera.move_right
service_data:
host: 192.168.1.18
entity: camera.garden_ptz01_camera
icon: 'mdi:arrow-right-drop-circle'
style:
bottom: 45%
right: 5%
color: white
opacity: 0.5
transform: ' scale (1.5, 1.5) '
- type: state-icon
tap_action:
action: call-service
service: ptz_camera.move_up
service_data:
host: 192.168.1.18
entity: camera.garden_ptz01_camera
icon: 'mdi:arrow-up-drop-circle'
style:
top: 10%
left: 46%
color: white
opacity: 0.5
transform: ' scale (1.5, 1.5) '
- type: state-icon
tap_action:
action: call-service
service: ptz_camera.move_down
service_data:
host: 192.168.1.18
entity: camera.garden_ptz01_camera
icon: 'mdi:arrow-down-drop-circle'
style:
bottom: 10%
left: 46%
color: white
opacity: 0.5
transform: ' scale (1.5, 1.5) '
- type: state-icon
tap_action:
action: more-info
entity: camera.garden_ptz01_camera
icon: 'mdi:arrow-expand-all'
style:
top: 5%
right: 5%
color: white
opacity: 0.5
transform: ' scale (1.5, 1.5) '