From my understanding this should be working. Anyone better with JSONata that could shed some light.
Basically I have the below code. “Zone” gets passed in on the msg.zone stream and “duration” is coming from an input.boolean entity. The problem is when running the flow I get “Invalid JSONata expression: Attempted to invoke a non-function”