Intégration vieille Camera AXIS 214PTZ dans frigate-card-ptz

Je me réponds à moi-même si ca peut en aider d’autres :

scripts.yaml
camera_axis_ptz:
sequence:
- service: ‹ {% if direction == « left » %} rest_command.axisleft
{% elif direction == « right » %} rest_command.axisright
{% elif direction == « up » %} rest_command.axisup
{% elif direction == « down » %} rest_command.axisdown
{% endif %} ›

configuration .yaml

rest_command:
axisup:
url: « http://192.168.1.58/axis-cgi/com/ptz.cgi?move=up »
axisdown:
url: « http://192.168.1.58/axis-cgi/com/ptz.cgi?move=down »
axisright:
url: « http://192.168.1.58/axis-cgi/com/ptz.cgi?move=right »
axisleft:
url: « http://192.168.1.58/axis-cgi/com/ptz.cgi?move=left »

custom:frigate-card

elements:

  • type: custom:frigate-card-ptz
    orientation: horizontal
    style:
    transform: none
    right: 5%
    bottom: 20%
    service: script.camera_axis_ptz
    data_left:
    direction: left
    data_right:
    direction: right
1 « J'aime »