Ao utilizar o script abaixo para gerar uma imagem, gera a seguinte mensagem de erro. Já tentei de várias formas corrigir, mas não encontro uma solução.
2020-08-20 18:54:29 ERROR (MainThread) [homeassistant.components.script.video_porteiro_snapshot] Video Porteiro Snapshot: Error executing script. Service not found for call_service at pos 2: Unable to find service camera/local_file_update_file_path
2020-08-20 18:54:29 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 802, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 183, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 191, in _async_step
await getattr(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 380, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1258, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service camera/local_file_update_file_path
script:
video_porteiro_snapshot:
alias: Video Porteiro Snapshot
description: 'Gera as fotos ao acionar o botão'
sequence:
- service: camera.snapshot
data:
entity_id: camera.video_porteiro_camera
filename: '/config/www/cameras/video_porteiro/video_porteiro_{{ now ().day }}_{{ now ().month }}_{{ now ().year }}_{{ now ().hour }}_{{ now ().minute }}.jpg'
- data_template:
entity_id: camera.saved_image
file_path: '/config/www/cameras/video_porteiro/video_porteiro_{{ now ().day }}_{{ now ().month }}_{{ now ().year }}_{{ now ().hour }}_{{ now ().minute }}.jpg'
service: camera.local_file_update_file_path