Change Zoneminder run states

Wouldn’t it be possible to have Openhab interact with Zoneminder to change Zoneminder RUN STATES. When an alarm arm state is set to “Away” Zoneminder run state is „Armed“ and the cameras is in motect mode And if I set a state from Openhab to “Home” the Zoneminder changed to run state „NoArmed“ and the cameras will no record (in monitor mode)?
The run states in Zoneminder is configured and I can change the states in Zoneminder server using command /usr/bin/zmpkg.pl Armed and / usr/bin/zmpkg.pl NoArmed. But Zoneminder Bindig can,t handle run states.
Does someone use something like this?