Value filter in trigger

Hi there!

I’m building a flow ensuring my Doorman lock is automatically locking when closing the door and home mode is “away”. But I cannot get the value filter in the trigger to work properly. It is the “val” part of the fimp message trigged by closing the door to use, right? I paste the code for the trigger and fimp message below. Someone have any idea what i’m doing wrong here?

 {
      "Id": "11",
      "Type": "trigger",
      "Label": "",
      "SuccessTransition": "20",
      "TimeoutTransition": "10",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:dev/rn:zigbee/ad:1/sv:alarm_lock/ad:8_1",
      "Service": "alarm_lock",
      "ServiceInterface": "evt.alarm.report",
      "Config": {
        "IsValueFilterEnabled": true,
        "LookupServiceNameAndLocation": false,
        "RegisterAsVirtualService": false,
        "Timeout": 5,
        "ValueFilter": {
          "Value": "{'event' : 'door_closed' , 'status' : 'activ'}",
          "ValueType": "str_map"
        },
        "VirtualServiceGroup": "ch_0",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "x": 901,
        "y": 168
      },
      "TypeAlias": "Trigger"
    },

And here is the fimp message:

{
  "serv": "alarm_lock",
  "type": "evt.alarm.report",
  "val_t": "str_map",
  "val": {
    "event": "door_closed",
    "status": "activ"
  },
  "props": null,
  "tags": null,
  "src": "-",
  "ver": "1",
  "uid": "7338c3c6-176b-4215-93ae-977245b7d432",
  "topic": "pt:j1/mt:evt/rt:dev/rn:zigbee/ad:1/sv:alarm_lock/ad:8_1"
}

Hi!
Unfortunately you cannot use value filter in trigger node for string maps.

hi, thanks for your reply. is there a way to just send a fimp message directly from the flow? would solve my issue if I could change to autolock when changing home mode. Here is the message enabling the autolock mode on the locker:

{
  "serv": "doorman",
  "type": "cmd.doorman_param.set",
  "val_t": "str_map",
  "val": {
    "parameter_id": "2",
    "value": "255"
  },
  "props": {},
  "tags": null,
  "resp_to": "pt:j1/mt:rsp/rt:cloud/rn:remote-client/ad:smarthome-app",
  "src": "app",
  "ver": "1",
  "uid": "c8e8a2ce-ad44-416a-a121-f3abada6662b",
  "topic": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:doorman/ad:8_1"
}

solved it:)

used home event triggers, and created this action for handling autolock on/off (value “255”/“0”) Then I could disable autolock in home mode, and enable in all other modes.

 {
      "Id": "20",
      "Type": "action",
      "Label": "",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:doorman/ad:8_1",
      "Service": "doorman",
      "ServiceInterface": "cmd.doorman_param.set",
      "Config": {
        "DefaultValue": {
          "Value": {
            "parameter_id": "2",
            "value": "255"
          },
          "ValueType": "str_map"
        },
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "ResponseToTopic": "true",
        "VariableName": "",
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "x": 1046,
        "y": 447
      },
      "TypeAlias": "Action",
      "LastValue": true
    },
1 Like