Open elfnino opened 7 years ago
Any suggestion what could be wrong ?
+1 Same issue here
i have the same +2
i have the same +3
Hi I also get the same issue. Seems to be linked to the URL statement in json file. I'm running mosquitto server on the synology with homebridge within docker. Tried "url" as "mqtt://IP_address" or "mqtt://IP_address:1883" or "IP_address".
Has someone found a workaround or explanation ?
I validated my MQTT setup using the homebridge-mqtt-switch-tasmota plugin which works fine. For the homebridge-mqtt-power-consumption-log-tasmota plugin I got access errors as the log files try to write to /root/.homebridge so I changed to the docker folder. When they were resolved back to the original error **/usr/local/lib/node_modules/homebridge-mqtt-power-consumption-log-tasmota/index.js:398 data = null; ^
same error here:
/usr/local/lib/node_modules/homebridge-mqtt-power-consumption-log-tasmota/index.js:398
data = null;
^
ReferenceError: data is not defined
at MqttClient.
Hi, I have used a standart config and I am getting following error:
[5/3/2017, 10:17:05 PM] Loaded plugin: homebridge-mqtt-power-consumption-log-tasmota [5/3/2017, 10:17:05 PM] Registering accessory 'homebridge-mqtt-power-consumption-log-tasmota.mqtt-power-consumption-log -tasmota' [5/3/2017, 10:17:05 PM] --- [5/3/2017, 10:17:06 PM] Loaded plugin: homebridge-mqtt-switch-tasmota [5/3/2017, 10:17:06 PM] Registering accessory 'homebridge-mqtt-switch-tasmota.mqtt-switch-tasmota' [5/3/2017, 10:17:06 PM] --- [5/3/2017, 10:17:06 PM] Loaded config.json with 1 accessories and 0 platforms. [5/3/2017, 10:17:06 PM] --- [5/3/2017, 10:17:06 PM] Loading 0 platforms... [5/3/2017, 10:17:06 PM] Loading 1 accessories... [5/3/2017, 10:17:06 PM] [prvePOW] Initializing mqtt-power-consumption-log-tasmota accessory... Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
[5/3/2017, 10:17:06 PM] Homebridge is running on port 51826. [5/3/2017, 10:17:06 PM] [prvePOW] Nothing to change _hourly [5/3/2017, 10:17:06 PM] [prvePOW] Nothing to change _daily [5/3/2017, 10:17:06 PM] [prvePOW] Nothing to change _period **/usr/local/lib/node_modules/homebridge-mqtt-power-consumption-log-tasmota/index.js:398 data = null; ^
ReferenceError: data is not defined** at MqttClient. (/usr/local/lib/node_modules/homebridge-mqtt-power-consumption-log-tasmota/index.js:398:9 )
at emitThree (events.js:116:13)
at MqttClient.emit (events.js:194:7)
at MqttClient._handlePublish (/usr/local/lib/node_modules/homebridge-mqtt-power-consumption-log-tasmota/node_module s/mqtt/lib/client.js:821:12)
at MqttClient._handlePacket (/usr/local/lib/node_modules/homebridge-mqtt-power-consumption-log-tasmota/node_modules /mqtt/lib/client.js:286:12)
at process (/usr/local/lib/node_modules/homebridge-mqtt-power-consumption-log-tasmota/node_modules/mqtt/lib/client. js:242:12)
at Writable.writable._write (/usr/local/lib/node_modules/homebridge-mqtt-power-consumption-log-tasmota/node_modules /mqtt/lib/client.js:252:5)
at doWrite (/usr/local/lib/node_modules/homebridge-mqtt-power-consumption-log-tasmota/node_modules/readable-stream/ lib/_stream_writable.js:338:64)
at writeOrBuffer (/usr/local/lib/node_modules/homebridge-mqtt-power-consumption-log-tasmota/node_modules/readable-s tream/lib/_stream_writable.js:327:5)
at Writable.write (/usr/local/lib/node_modules/homebridge-mqtt-power-consumption-log-tasmota/node_modules/readable- stream/lib/_stream_writable.js:264:11)