I asked this in the mobile app section but then I realized the question is more general.
Before we were able to use the api_password to get a screenshot from any camera added to HASS. Now this functionality is removed due to change to tokens.
How can I achieve the similar?
We have the entity_picture and access_token attribute which contains the current token but since this is not a LLT it cannot be used in automations. To my understanding LLT is not supported for this feature?
I tried to append the token by logic like below but it seems not to work.
action:
- service: shell_command.mqtt_send_file
data_template:
topic: 'zanzito/fredrik/photonotification'
imageFilePath: 'https://EXTERNAL_URL/api/camera_proxy/camera.camera?token={{ state_attr("camera.camera", "access_token") }} '
In my use case I send the path to picture to a py-script that then post it over MQTT to Zanzito but I guess getting the picture from a camera can be useful in many cases.
I run HASS in VENV with NGINX front-end for external access
Thanks