Using data jar with homekit


I have a hue motion sensor that turns on lights. I want to do this conditionally based on a value in data jar. Is this possible?

A solution I have tried is to use ”get contents from URL” via a push cut automation server. But this does not seem to get triggered. It works when I click on ”Test this automation”.

Ideally, it would not need any calls to another device.