You probably already figured this out, but for the sake of new people who are having the same error:
Reload the ONVIF integration after creating presets in the app, then the code will work.
You probably already figured this out, but for the sake of new people who are having the same error:
Reload the ONVIF integration after creating presets in the app, then the code will work.