MacWyznawca / homebridge-mqtt-switch-tasmota

Plugin to HomeBridge optimized to work with firmware Sonoff-Tasmota, MQTT.
MIT License
57 stars 18 forks source link

Wrong config? #47

Open seekerPL opened 5 years ago

seekerPL commented 5 years ago

Hi @MacWyznawca , can you tell me what I'm doing wrong?

In my config I added my TV plus 2 Sonoff basic.

[2018-9-20 13:30:49] Loaded config.json with 3 accessories and 0 platforms. [2018-9-20 13:30:49] --- [2018-9-20 13:30:49] Loaded plugin: homebridge-mqtt-switch-tasmota [2018-9-20 13:30:49] Registering accessory 'homebridge-mqtt-switch-tasmota.mqtt-switch-tasmota' [2018-9-20 13:30:49] --- [2018-9-20 13:30:49] Loaded plugin: homebridge-panasonictv [2018-9-20 13:30:49] Registering accessory 'homebridge-panasonictv.TV' [2018-9-20 13:30:49] --- [2018-9-20 13:30:50] Loaded plugin: homebridge-sonoff [2018-9-20 13:30:50] Registering platform 'homebridge-sonoff.Sonoff' [2018-9-20 13:30:50] --- [2018-9-20 13:30:50] Loading 0 platforms... [2018-9-20 13:30:50] Loading 3 accessories... [2018-9-20 13:30:50] [Sonoff01] Initializing mqtt-switch-tasmota accessory... [2018-9-20 13:30:50] [Sonoff01] Nazwa do RESULT POWER [2018-9-20 13:30:50] [Sonoff02] Initializing mqtt-switch-tasmota accessory... [2018-9-20 13:30:50] [Sonoff02] Nazwa do RESULT POWER [2018-9-20 13:30:50] [TV] Initializing TV accessory... Load homebridge-sonoff.Sonoff /usr/lib/node_modules/homebridge-sonoff/index.js:16 platform.config.devices = platform.config.devices || []; ^

TypeError: Cannot read property 'devices' of null at new Sonoff (/usr/lib/node_modules/homebridge-sonoff/index.js:16:45) at Server._loadDynamicPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:346:30) at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:87:8) at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:43:10) at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3)

config.json.txt

Please help

Kepete commented 5 years ago

Have you checked your config with https://jsonlint.com ?