Getting binary sensor into homebridge

I am using HASS.io everything is working great and integrated with Homebridge. However, I simply cannot get the following Fibaro binary sensor to appear:

binary_sensor.fibaro_system_fgms001zw5_motion_sensor_sensor

It’s reporting back to HASS on/off readings fine.

I have exposed “binary_sensor” as a supported type in my config.json:

{
  "bridge": {
    "name": "Home Assistant",
    "username": "B8:27:EB:66:BF:9C",
    "port": 51826,
    "pin": "066-32-791"
  },
  "description": "Homebridge for Home Assistant",
  "accessories": [],
  "platforms": [{
      "platform": "HomeAssistant",
      "name": "HomeAssistant",
      "host": "http://hassio/homeassistant",
      "password": "",
      "default_visibility": "hidden",
      "supported_types": ["climate", "fan", "media_player", "input_boolean", "sensor", "binary_sensor", "switch"],
      "logging": true,
      "verify_ssl": true
    }, {
      "platform": "ZP",
	  "name":"Sonos",
      "service": "fan",
      "brightness": false,
      "speakers": false
    }]
}

In my customize.yaml file I am exposing it to Homebridge:

binary_sensor.fibaro_system_fgms001zw5_motion_sensor_sensor:
  friendly_name: Hallway Binary Motion
  icon: mdi:run
  homebridge_visible: true
  homebridge_name: Hallway Binary Motion

But it simply refuses to appear. Any idea what I am doing wrong?

Thanks

I recently had the same problem with an Aeotec multisensor.

You need to set the device_class in your customize.yaml file to motion.

binary_sensor.fibaro_system_fgms001zw5_motion_sensor_sensor:
  friendly_name: Hallway Binary Motion
  icon: mdi:run
  device_class: motion
  homebridge_visible: true
  homebridge_name: Hallway Binary Motion

For more info: