HI,
I have this group and items:
Group:Switch:OR(Modect,Monitor) gpCameraModeSwitchAll "Overall ZoneMinder Mode" <ipcameraright>
String CUCINA_CAMMODE "ZoneMinder Function [%s]" <ipcameraright> (gpCameraMode,gpCameraModeSwitchAll) {http="<[http://192.168.1.176/zm/api/monitors/2.json:5000:JS(ZM_getFunction.js)]", autoupdate="false", exec=">[*:curl -XPOST http://192.168.1.176/zm/api/monitors/2.json -d Monitor[Function]=%2$s]" }
String INGRESSO_CAMINGRESSOMODE "ZoneMinder Function [%s]" <ipcameraright> (gpCameraMode,gpCameraModeSwitchAll) {http="<[http://192.168.1.176/zm/api/monitors/1.json:5000:JS(ZM_getFunction.js)]", autoupdate="false", exec=">[*:curl -XPOST http://192.168.1.176/zm/api/monitors/1.json -d Monitor[Function]=%2$s]" }
and then i have this Sitemap for group switch:
Switch item=gpCameraModeSwitchAll mappings=[Modect=Modect, Monitor=Monitor]
I need use “Modect” and “Monitor” as command. Single switch working fine, but group switch does not send command.
Any help would be appreciated.
Regards