Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

No binary sensors show up #61

Closed
jsg4 opened this issue Oct 28, 2016 · 2 comments
Closed

No binary sensors show up #61

jsg4 opened this issue Oct 28, 2016 · 2 comments
Labels

Comments

@jsg4
Copy link

jsg4 commented Oct 28, 2016

In latest version, sensors are now showing (awesome!), but binary sensors are not. Here's my config.

{
  "bridge": {
    "name": "Homebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 8128,
    "pin": "031-45-154"
  },
  "platforms": [
    {
      "platform": "HomeAssistant",
      "name": "HomeAssistant",
      "host": "http://192.168.1.242:8123",
      "password": "password",
      "supported_types": [
        "binary_sensor",
        "fan",
        "light",
        "lock",
        "scene",
        "sensor",
        "switch"
      ]
    },
    {
      "platform": "Nest",
      "token": "token",
      "clientId": "client",
      "clientSecret": "secret",
      "code": "code"
    },
    {
      "platform": "LiftMaster2",
      "username": "username",
      "password": "password"
    }
  ]
}
@robbiet480
Copy link
Member

I'm seeing binary_sensors with a sensor_class of motion and opening. Please note that only a few sensor_classes are currently supported due to limitations in HomeKit. If you use the same /api/states trick I showed you earlier you can inspect what sensor_class your binary_sensors have. The currently supported ones are moisture, motion, occupancy, opening, smoke.

@robbiet480 robbiet480 added the bug label Oct 29, 2016
@robbiet480
Copy link
Member

This was due to missing sensor_class. I added an error in 2a8d9b3 to warn people if they have enabled binary_sensor without having a sensor_class set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants