Binary sensor Homey

I create a new type “Capabilities” bonary_sensor.
I would like to be able to add a flow to it which, after changing from true/false, can turn on or off another device.
file: /.homeycompose/capabilities/binary_sensor.json

{
  "type": "boolean",
  "title": { "en": "Binary Sensor" },
  "getable": true,
  "setable": false,
  "uiComponent": "sensor",
  "uiQuickAction": false,
  "icon": "/assets/input.svg"
}

file: driver.flow.compose.json

{
  "triggers": [
    {
      "id": "binary_sensor_true",
      "title": {
        "en": "Binary sensor is true"
      },
      "tokens": [
        {
          "name": "sensor_state",
          "type": "boolean",
          "title": {
            "en": "State"
          },
          "example": {
            "en": "true"
          }
        }
      ],
      "arguments": [
        {
          "name": "device",
          "type": "device",
          "filter": "capabilities=binary_sensor"
        }
      ]
    },
    {
      "id": "binary_sensor_false",
      "title": {
        "en": "Binary sensor is false"
      },
      "tokens": [
        {
          "name": "sensor_state",
          "type": "boolean",
          "title": {
            "en": "State"
          },
          "example": {
            "en": "false"
          }
        }
      ],
      "arguments": [
        {
          "name": "device",
          "type": "device",
          "filter": "capabilities=binary_sensor"
        }
      ]
    }
  ]
}

Not working.

Not enough.
Adding an error message might help to get a response :man_shrugging:

dont have response ,
flow not run when i change i input state

  • Show the flow
  • Share your app code

The amount of information you provide is not enough.