AlexanderBabel / homebridge-sonoff

Control Sonoff Basic devices with Tasmota firmware through Homebridge
Other
9 stars 4 forks source link

SyntaxError: Unexpected token R in position 0 #1

Closed fenddder closed 6 years ago

fenddder commented 6 years ago

Hi!

Set-up : RPI 2 with latest Raspbian image + latest updates Sonoff basic with Tasmota Version | 5.9.1 installed

Set up done - Reproducing the issue : Start homebridge and unlock Iphone, enter Home and wait for the sonoff device to refresh status of output. That is when the plug-in crashes and the error is the following:

undefined:1 RESULT = "{"POWER" : "OFF"} ^

SyntaxError: Unexpected token R in JSON at position 0 at JSON.parse() at Request.request [as _callback] (/usr/lib/node_modules/homebridge-sonoff/index.js :155:20) at Request.self.callback (/usr/lib/node_modules/homebridge-sonoff/node_modules/request/request.js:185:22) ...... ............ ..................... ................................ ............................................ at Object.onceWrapper )events.js:313:30)

AlexanderBabel commented 6 years ago

I recommend you to update your Tasmota firmware. I'm using this plugin with version 5.14.0 and it works perfectly.

AlexanderBabel commented 6 years ago

Also the plugin only supports Tasmota v5.11.0 or higher.

fenddder commented 6 years ago

Hi Alexander, many thanks. I missread the requirements. I’ll check it out

On Tue, 31 Jul 2018 at 00:22, Alexander Babel notifications@github.com wrote:

I recommend you to update your Tasmota firmware. I'm using this plugin with version 5.14.0 and it works perfectly.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AlexanderBabel/homebridge-sonoff/issues/1#issuecomment-409015462, or mute the thread https://github.com/notifications/unsubscribe-auth/An_D_kQ_vClKAzfvunxk2x1JtcpM7UAzks5uL3kmgaJpZM4VnMLK .

-- Crăescu Ștefan MadBits Design 0723510112 stefancraescu@gmail.com stefancraescu@gmail.com