Zoneminder Monitor / Record Switch

If have a nice running Home Assistant (0.40) with Zoneminder, Philips Hue, Sonos etc.
I created a panel with two switches.
I want to toggle to put Zoneminder into recording mode and back to monitor mode.

But the toggles don’t work.

switch:
  - platform: zoneminder
    command_on: Record
    command_off: Monitor

If I click the switch it jumps back to the off state after 2 seconds.
How to get it working?
I would like to use HA as frontend.

1 Like

I found it. The HA user that logins to Zoneminder needs admin or system rights.