Scott Bender - I have a beta test ready for the...

I have a beta test ready for the signalk-sonoff-ewelink plugin which has been broken for some time now. Would anyone like to test it out?
32 Replies
Greg Young
Greg Young4mo ago
have a bunch sonoff in my home automation system, but only deployed shelly on the boat (as yr shelly PI worked well) if you dont get bites .. i can grab a couple of my spares and try them.. any specific type of sonoff device?
Scott Bender
Scott BenderOP4mo ago
I have a 4chpro and a BASICR2, so any other devices would help.
Greg Young
Greg Young4mo ago
ok will dig into my box ….
Scott Bender
Scott BenderOP4mo ago
There are extra steps to setup authentication. See the README https://github.com/sbender9/signalk-sonoff-ewelink/tree/oauth2
GitHub
GitHub - sbender9/signalk-sonoff-ewelink at oauth2
Signal K Plugin For Sonoff/eWeLink devices. Contribute to sbender9/signalk-sonoff-ewelink development by creating an account on GitHub.
Scott Bender
Scott BenderOP4mo ago
cd ~/.signalk
npm install signalk-sonoff-ewelink@2.0.0-beta10
cd ~/.signalk
npm install signalk-sonoff-ewelink@2.0.0-beta10
Greg Young
Greg Young4mo ago
I have following sonoff devices S26 (wall socket switch) POW Mini Mini R2 .. are any of these of interest for testing?
Scott Bender
Scott BenderOP4mo ago
Since I have not tested them, yes. What’s the POW? Probably don’t need you to test them all. Just one of the switches will be fine. (The switch api’s are the same for everything)
Greg Young
Greg Young4mo ago
POW is like a basic, but reports power also i recall 15A switching (higher power relay i guess) .. with "accurate power measurements" ..
Scott Bender
Scott BenderOP4mo ago
I don’t currently read the power data, so it would be nice to get that working with your help…
Greg Young
Greg Young4mo ago
FYI, will be a week or so before i can get to testing the devices, I have them in my “cruising project box” … for when i get to the marina…. now have the system locked down, no fiddling! lots of ‘spare’ time in marinas coming up for ‘projects’ and some learning/programming. @Scott Bender S26 plug Mini both working … well they both create a single path , and manually switching the button on sonoff device changes the path state from 0 to 1. Im assuming that there is only one path created. FYI after i added a second device into my ewelink app/account I had to disable & then re-enable plugin for it to show up.. Im assuming this is because that forces it to recheck the ewelink account to “discover” the additional device? (this is kinda described on the github page ) Q: so how do i get SK /WSK to change switch state? ! my marina “project box” is now open 🙂 also confirming PowR2 also creates a single path (“state”) & changes its state based on its switch
Greg Young
Greg Young4mo ago
No description
Greg Young
Greg Young4mo ago
this is what native ewelinlk shows for sonoff PowR2 … so there are presumably 3 additional peices of data available from device .. (power/current/voltage) .. let me know what i can do to help capture this ok making progress i suspect .. server debug log yields the following.. Im assuming from that you can decode its json? for the additional data
Greg Young
Greg Young4mo ago
No description
Scott Bender
Scott BenderOP4mo ago
Can you send me your ~/.signalk/plugin-config-data/signalk-sonoff-ewelink/devices-cache-v2.json ? Add a "Switch" gauge
Greg Young
Greg Young4mo ago
added a switch with Led guage type. set the path for BOTH to the one path in server. both its status (led ) and switch work as expected. however when i operate the switch (in wsk) or when it changes status from using switch on device, i get the following error
Greg Young
Greg Young4mo ago
No description
Greg Young
Greg Young4mo ago
and same error if i use just a “switch” guage type. but no errors showing in server log and to note, both PowR2 AND S26 devices produce same error msg in WSK per above . (its not specific to Pow device)
Scott Bender
Scott BenderOP4mo ago
Can you turn on debug for signalk-server:put under Server Logs.
Greg Young
Greg Young4mo ago
no error in server log, assuming you need ~/.signalk/plugin-config-data/signalk-sonoff-ewelink/devices-cache-v2.json ?
Greg Young
Greg Young4mo ago
No description
Greg Young
Greg Young4mo ago
this is what you meant I assume
Scott Bender
Scott BenderOP4mo ago
Yes, you should debug messages when you flip the switch in wsk
Greg Young
Greg Young4mo ago
server log
Greg Young
Greg Young4mo ago
No description
Scott Bender
Scott BenderOP4mo ago
And the switch does not actually change?
Greg Young
Greg Young4mo ago
it all works correctly switch operates sonoff device, switch status updates (ffrom no color, yellow when pushed, green when on) just gets that error message each time
Scott Bender
Scott BenderOP4mo ago
Ah. Ok. I think I know why…
Greg Young
Greg Young4mo ago
.. will be back in ~1hr from now im back if you need further testing
Scott Bender
Scott BenderOP4mo ago
I’m just about to publish a new version… ok, published 2.0.0-beta11 you should not see that error message now and you should see power, voltage and curent and all should have units meta set
Greg Young
Greg Young4mo ago
on it… 👍 no errors, switch & led indicator working as expecxted. new paths now created for sonoff power (volt/current/watts) testing complete.
Scott Bender
Scott BenderOP4mo ago
Thanks!!

Did you find this page helpful?