Dahua VTO custom integration

Hi Mirum, welcome to the forum!

Is your code from a working automation?
I’m trying to use this but the CardNo condition seems to be wrong and throws an error.