Zone minder change state syntax

Apologies if this was covered somewhere else, I did look but wasn’t able to find anything.

Having trouble integrating zone minder, I add the config and it seems to work, as the set_run_state service does appear. My issue I think is that I don’t understand the syntax for creating the automation. It asks for an id, which the example calls zm_host, which is also what is used for the actual host part of the config example. If I enter the zm server IP like in the config, the automation fails. Does anyone have more detailed instructions for using the set_run_state service?