The script trace shows that the webrtc.create_link service is called with a null url, suggesting the script camera_id variable isn't set when the script is called. I've tried many variations on the theme using service_data but can't get it to work. providing the variable in the script does work but means that I'd need to create a script per camera which I'd like to avoid if possible.
I'm using go2rtc via frigate and consuming the cameras from the HA integration which is all working very nicely.
any hints very much appreciated! Please do let me know if you need any further info
Firstly, thanks for a great project! It's taken my cameras from basically useless using the default HA streams to rock solid!
I'm trying to combine a modified version of the temp link script with a shortcut to generate links directly from the cards.
my script (modified from your example) creates a link based on the
camera_id
variablehere's my card config, once again adapted from the example in the docs - I'm trying to pass the
camera_id
variable in to the script inservice_data
.The script trace shows that the
webrtc.create_link
service is called with anull
url, suggesting the scriptcamera_id
variable isn't set when the script is called. I've tried many variations on the theme usingservice_data
but can't get it to work. providing the variable in the script does work but means that I'd need to create a script per camera which I'd like to avoid if possible.I'm using go2rtc via frigate and consuming the cameras from the HA integration which is all working very nicely. any hints very much appreciated! Please do let me know if you need any further info