Advertisement
MiAutomations

LG webos IPcamera snapshots notifications

Jun 15th, 2022 (edited)
1,552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.82 KB | None | 0 0
  1. alias: 'LG TV webos notifications '
  2. description: ''
  3. trigger:
  4.   - type: motion
  5.     platform: device
  6.     device_id: #colocar o device id da vossa tv
  7.     entity_id: binary_sensor.#colocar o vosso sensor de movimento
  8.     domain: binary_sensor
  9. condition: []
  10. action:
  11.   - service: webostv.command
  12.     data:
  13.       entity_id: media_player.living_room_tv #substituir pela entidade da vossa tv
  14.       command: system.launcher/open
  15.       payload:
  16.         target: >-
  17.           http://xxx.xxx.xxx.xxx/cgi-bin/api.cgi # colocar o URL da snapshot da vossa ipcamera
  18.   - delay:
  19.       hours: 0
  20.       minutes: 0
  21.       seconds: 10 #tempo que dura a imagem da camera no ecrã da vossa tv
  22.       milliseconds: 0
  23.   - service: webostv.button
  24.     target:
  25.       entity_id: media_player.living_room_tv
  26.     data:
  27.       button: EXIT
  28. mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement