Your YMAL here is rule machine, with Hubitat you will need to create a local or cloud endpoint using rule machine and then create the automation. Take a look at this link, it has a step-by-step process for creating the endpoint.
1 Like