I’ve got a few Sonoff devices knocking about, but am awful at soldering.
In looking for an easy alternative, I found this:
And also this
Has anyone seen something similar done in OH?
Seems relatively easy as an alternative to flashing - and would really make extensions to existing Home setups quick cheap and easy for people who are more code comfy than solder comfy?
There was a Sonoff Binding started at some point. I don’t know what happened to it but a search of the forum should be informative.
Use pogo pins. Then all you need is a moderately steady hand or a helping hands. I’m going to have to do this tonight actually because I broke the cardinal rule and tried to fix what wasn’t broke (i.e. tried to update the firmware and now two out of three won’t come back online).
The second Python script could be called from the Exec binding or executeCommandLine or perhaps converted to Jython Rules.
I stupidly bought a bunch of s26es - pin positions on these suck- so I have to solder for those(at least gnd & bcc anyway) . The basics I bought before worked with the old hold and hope trick
@rlkoshak - if I have time to play, I’ll try get this working via exec and post a how to. Of course, since I’m running OH in Docker… it’s bound to be a little more fun than usual - hoping to find time for one approach or the other. In the mean time, Ib am having to bypass OH and use the ghastly EWeLink cloud so Alexa can manage my Christmas lights
I wrote the exec plug-in on my https://github.com/rkoshak/sensorReporter for just such a purpose. I don’t like modifying the official Docker containers so I just publish an MQTT message to sensorReporter which publishes the result of the command back. If that Python script runs as a command line program (i.e. it’s self contained) you don’t even need to write anything. Just configure it and you are good to go.