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
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?
I have a 4chpro and a BASICR2, so any other devices would help.
ok will dig into my box ….
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.
I have following sonoff devices
S26 (wall socket switch)
POW
Mini
Mini R2
.. are any of these of interest for testing?
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)
POW is like a basic, but reports power also i recall
15A switching (higher power relay i guess) .. with "accurate power measurements" ..
I don’t currently read the power data, so it would be nice to get that working with your help…
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

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

Can you send me your ~/.signalk/plugin-config-data/signalk-sonoff-ewelink/devices-cache-v2.json ?
Add a "Switch" gauge
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

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)
Can you turn on debug for signalk-server:put under Server Logs.
no error in server log,
assuming you need
~/.signalk/plugin-config-data/signalk-sonoff-ewelink/devices-cache-v2.json ?

this is what you meant I assume
Yes, you should debug messages when you flip the switch in wsk
server log

And the switch does not actually change?
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
Ah. Ok. I think I know why…
.. will be back in ~1hr from now
im back if you need further testing
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
on it…
👍
no errors, switch & led indicator working as expecxted.
new paths now created for sonoff power (volt/current/watts)
testing complete.
Thanks!!