rycardo wrote:Remote Button - SlimFire KR19A (these are the EZX10RF buttons)
-- undefined -- (these are the Beacon Plugin devices)
RemoteLinc 2 8-Scene (these are Insteon Mini-Remotes with 8 buttons)
EZX10RF Wireless Sensor Receiver (The EZX10RF device)
I have some theories: the undefined device probably still has it's configured flag set to false and the default value of "true" for display in UI. In the UI, we understand that an unconfigured device is by default not capable of being enabled or displayed remotely so we base our logic partly on that. However, the RESTful API doesn't know about that flag since it predates it and it's letting those through.
The RemoteLinc is a pure controller (it has no display state nor other responding functionality) and we filter those out automatically in Indigo Touch - but clearly we're not filtering them out of the RESTful call.
I believe you'll be able to filter out these devices using a combination of their properties. I don't believe any device that doesn't provide a standard action (i.e. sensors, custom devices, etc) would be useful to have in HB, right? If that's true, then one of the following properties should be true or the device can be ignored:
- Code: Select all
"typeSupportsDim": false,
"typeSupportsHVAC": false,
"typeSupportsOnOff": false,
"typeSupportsSpeedControl": false,
"typeSupportsSprinkler": false,
If you only add devices that have one of those flags set, then I think you're good to go. Further, however, I'm not sure that HK knows anything about sprinklers so I'm not sure letting those through would be useful. I think HK knows about thermostats maybe. Speed control devices are also probably not used in HK. The FanLinc does respond to on/off so it would get picked up that way.
If you want to let through "official" sensor devices, filter on "typeSupportsSensorValue". That won't let through custom plugin devices (like weather stations) for instance (unless they've specified themselves as sensor devices, which most don't). I don't think HK can use generic sensors for anything (yet), or if it does how you'd map the Indigo sensor value to the value expected by HK. That'll be an exercise for you...