Advertisement
MiAutomations

Untitled

Dec 15th, 2020 (edited)
2,217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.67 KB | None | 0 0
  1. type: picture-elements
  2. entity: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  3. camera_image: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  4. camera_view: live
  5. elements:
  6.   - type: icon
  7.     icon: 'mdi:arrow-up'
  8.     style:
  9.       background: 'rgba(255, 255, 255, 0.5)'
  10.       right: 25px
  11.       bottom: 50px
  12.     tap_action:
  13.       action: call-service
  14.       service: reolink_dev.ptz_control
  15.       service_data:
  16.         entity_id: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  17.         command: UP
  18.   - type: icon
  19.     icon: 'mdi:stop'
  20.     style:
  21.       background: 'rgba(255, 255, 255, 0.5)'
  22.       right: 25px
  23.       bottom: 25px
  24.     tap_action:
  25.       action: call-service
  26.       service: reolink_dev.ptz_control
  27.       service_data:
  28.         entity_id: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  29.         command: STOP
  30.   - type: icon
  31.     icon: 'mdi:arrow-down'
  32.     style:
  33.       background: 'rgba(255, 255, 255, 0.5)'
  34.       right: 25px
  35.       bottom: 0px
  36.     tap_action:
  37.       action: call-service
  38.       service: reolink_dev.ptz_control
  39.       service_data:
  40.         entity_id: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  41.         command: DOWN
  42.   - type: icon
  43.     icon: 'mdi:target'
  44.     style:
  45.       background: 'rgba(255, 255, 255, 0.5)'
  46.       Left: 20px
  47.       bottom: 0px
  48.     tap_action:
  49.       action: call-service
  50.       service: reolink_dev.ptz_control
  51.       service_data:
  52.         entity_id: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  53.         command: TOPOS
  54.         preset: 1
  55.   - type: icon
  56.     icon: 'mdi:arrow-left'
  57.     style:
  58.       background: 'rgba(255, 255, 255, 0.5)'
  59.       right: 50px
  60.       bottom: 25px
  61.     tap_action:
  62.       action: call-service
  63.       service: reolink_dev.ptz_control
  64.       service_data:
  65.         entity_id: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  66.         command: LEFT
  67.   - type: icon
  68.     icon: 'mdi:arrow-right'
  69.     style:
  70.       background: 'rgba(255, 255, 255, 0.5)'
  71.       right: 0px
  72.       bottom: 25px
  73.     tap_action:
  74.       action: call-service
  75.       service: reolink_dev.ptz_control
  76.       service_data:
  77.         entity_id: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  78.         command: RIGHT
  79.   - type: icon
  80.     icon: 'mdi:arrow-top-left'
  81.     style:
  82.       background: 'rgba(255, 255, 255, 0.5)'
  83.       right: 50px
  84.       bottom: 50px
  85.     tap_action:
  86.       action: call-service
  87.       service: reolink_dev.ptz_control
  88.       service_data:
  89.         entity_id: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  90.         command: LEFTUP
  91.   - type: icon
  92.     icon: 'mdi:arrow-top-right'
  93.     style:
  94.       background: 'rgba(255, 255, 255, 0.5)'
  95.       right: 0px
  96.       bottom: 50px
  97.     tap_action:
  98.       action: call-service
  99.       service: reolink_dev.ptz_control
  100.       service_data:
  101.         entity_id: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  102.         command: RIGHTUP
  103.   - type: icon
  104.     icon: 'mdi:arrow-bottom-left'
  105.     style:
  106.       background: 'rgba(255, 255, 255, 0.5)'
  107.       right: 50px
  108.       bottom: 0px
  109.     tap_action:
  110.       action: call-service
  111.       service: reolink_dev.ptz_control
  112.       service_data:
  113.         entity_id: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  114.         command: LEFTDOWN
  115.   - type: icon
  116.     icon: 'mdi:arrow-bottom-right'
  117.     style:
  118.       background: 'rgba(255, 255, 255, 0.5)'
  119.       right: 0px
  120.       bottom: 0px
  121.     tap_action:
  122.       action: call-service
  123.       service: reolink_dev.ptz_control
  124.       service_data:
  125.         entity_id: camera.camera_9 #( Substituir pela vossa entity da camera IP)
  126.         command: RIGHTDOWN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement