kpsuperplane / homebridge-wiz-lan

Control Wiz lights over LAN
Apache License 2.0
115 stars 37 forks source link

Invalid JSON in an platform error message #54

Closed tf64 closed 3 years ago

tf64 commented 3 years ago

Complete newbie here, basically a baby playing with scissors. Trying to get the wiz plugin to work using homebridge (HOOBS build). Using the "simple configuration" I get the following error:

"Unable to save. Please fix the following errors. Invalid JSON in an platform."

I'm pasting into configuration field:

"platforms": [{ "platform": "WizSmarthome", "name": "WizSmarthome", }]

Perhaps someone could assist in identifying what I'm doing wrong? Thanks in advance! Screen Shot 2021-03-30 at 3 31 37 PM

woundedknee45 commented 3 years ago

I have exactly the same problem.
Wiz Lan: Version 3.0.2 (3/11/21) HOOBS: Version 3.3.5

I searched for hours looking for an answer, and came here to post this issue, only to see that someone else posted the same issue. I tried different combinations of both the simple configuration and full configurations, and no matter what I put in I get the same "Unable to save. Please fix the following errors. Invalid JSON in an platform."

The only thing I can put in and not get an error is what what there right after I installed the plugin, which was "{}". Anything else gives me the invalid JSON error.

Any help or guidance would be appreciated. Thank you!

MoTechnicalities commented 3 years ago

In HOOBS, I think you sould just have the below pasted in the spot shown: { "platform": "WizSmarthome", "name": "Wiz" }

The documentation needs work. To say the least!

woundedknee45 commented 3 years ago

Mo, thanks for the comment, you helped me get it to work.

I had tried that before posting my question, and it didn’t work. BUT, I was reading your comment on my phone and decided to try it again, this time from the mobile interface on my iPhone, and it worked! I’m guessing there is some issue with chrome and the Hoobs interface that is not there when using the mobile interface with safari on the iPhone. Weird, but it worked! Thanks!!

tf64 commented 3 years ago

@MoTechnicalities thank you so much! That worked!