johnlemonse / homebridge-telldus

36 stars 22 forks source link

Unable to disable accessories (local) #64

Closed SubZane closed 6 years ago

SubZane commented 6 years ago

I'm trying to disable 4 accessories that I don't want to send to homebridge, but it doesn't work. I get no errors, but the accessories show up anyway.

What have I missed? { "bridge": { "username": "CD:22:3D:E3:CE:93", "name": "Telldus", "pin": "123-45-678", "port": 51826 }, "platforms": [{ "platform": "Telldus", "name": "Telldus Liv!e", "accessories": [ { "local_id": 2, "model": "temperaturehumidity", "disabled": true }, { "local_id": 3, "model": "temperaturehumidity", "disabled": true }, { "local_id": 4, "model": "temperaturehumidity", "disabled": true }, { "local_id": 10, "model": "temperaturehumidity", "disabled": true } ], "unknown_accessories": [{ "local_id": 13, "model": "selflearning-switch", "type": "device", "manufacturer": "Telldus" }, { "local_id": 14, "model": "selflearning-switch", "type": "device", "manufacturer": "Telldus" }, { "local_id": 15, "model": "selflearning-switch", "type": "device", "manufacturer": "Telldus" } ], "local": { "ip_address": "192.168.0.105", "access_token": "xxx" } }] }

dezral commented 6 years ago

Try to put them in "unknown_accessories" and disable them there.. i have all my accessories in a "unknown_accessories" seems to work..

mifi commented 6 years ago

Yes, the "accessories" property is not used by homebridge-telldus. you should use "unknown_accessories"

SubZane commented 6 years ago

Excellent! Thank you!

Maybe this should be added to the documentation, if it's not already there? :)