Hello, I have followed a post on this forum to add PTZ control Pan & Tilt, It works nearly well except I am unable to set good icons on thoses button for Pan & Tilt
Here is the source post I used as reference : Onvif camera platform - How to do PTZ? - #8 by Joao_Pereira
Now I can pan & tilt my cam and I am happy but… all button have a camera icon, I dont understand from where this icone is :
Here is what it look like :
And the YAML :
type: picture-glance
camera_image: camera.tapocam_mainstream
camera_view: live
entities:
- entity: camera.tapocam_mainstream
tap_action:
name: Pan Left
show_state: false
icon: mdi:arrow-left
show_icon: true
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.tapocam_mainstream
pan: LEFT
speed: 0.5
distance: 0.5
move_mode: ContinuousMove
- entity: camera.tapocam_mainstream
tap_action:
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.tapocam_mainstream
pan: RIGHT
speed: 0.5
distance: 0.5
move_mode: ContinuousMove
name: Pan right
show_state: false
icon: mdi:arrow-left
show_icon: true
- entity: camera.tapocam_mainstream
tap_action:
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.tapocam_mainstream
tilt: UP
speed: 0.5
distance: 0.5
move_mode: ContinuousMove
name: Tilt up
show_state: false
icon: mdi:arrow-up
show_icon: true
- entity: camera.tapocam_mainstream
tap_action:
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.tapocam_mainstream
tilt: DOWN
speed: 0.5
distance: 0.5
move_mode: ContinuousMove
name: Tilt down
show_state: false
icon: mdi:arrow-down
show_icon: true
If someone have an idea and can show me my mistake, it would be nice ?