I want to make this cam stream possible:
sensor:
- platform: command_line
name: Cam token
command: curl -sL 'https://balticlivecam.com/wp-admin/admin-ajax.php?action=auth_token&id=4487' | sed -n "s/.*token=\(.*\)\".*/\1/p"
camera:
- platform: ffmpeg
name: TLV
input: https://edge01.balticlivecam.com/blc/Israel1/index.m3u8?token={{ states('sensor.Cam_token') }}
Allowing templates here doesn’t look to me as a security problem and though it’s possible to achieve the result with redirecting link (which can be updated once in a while) apparently this is not the best way to go.