genielabs / HomeGenie

HomeGenie, the programmable automation intelligence
https://homegenie.it
GNU General Public License v3.0
389 stars 155 forks source link

Any support for WeMo devices? #327

Closed KrunchMuffin closed 5 years ago

KrunchMuffin commented 6 years ago

Curious as I have a few,

tuicemen commented 5 years ago

@KrunchMuffin Ok thanks for chiming in! I had hoped you had HG running for other things maybe.

noliono commented 5 years ago

@tuicemen You seems to use my program version. @genemars write a best version. Can you try this new version ? 1014-WeMo.zip i only adapt @genemars version to :

tuicemen commented 5 years ago

@noliono I just got back from a vacation so I'll test your version tonight. I also have been running a modified version of Genies last build so I'll compare the two. I also suppressed the things you did but I also had to reverse the order for ON and Off status for my modules so a brief On wasn't seen. That would trigger any events I had watching for an On status even though the module was actually Off.

genemars commented 5 years ago

@tuicemen @noliono let me know when the script is working so I can include it in next HG release.

tuicemen commented 5 years ago

@noliono I'm testing your version now, it works with one WeMo however if I add a second I get false ON events. Playing with the order of code for the status update seems to resolve my issues just as it did for @genemars last build. However I don't want to jump the gun saying everything is 100% working till I've fully tested this. Seems devices don't update if the status is changed for the Wemo locally till they've been turned on & off from inside HG.

I've loaded my changes to a second RPi so I can see if things are consistent.

tuicemen commented 5 years ago

@noliono can you test this with your system? 1015-WeMo.zip I had to change the order things were carried out as well I had to separate the responce2 from the Module.IsOn/Off using the && made my setup misbehave. I have this working reliably (so far) on two RPi Zero W boards with HG v1.3-beta.2

noliono commented 5 years ago

@noliono can you test this with your system? 1015-WeMo.zip I had to change the order things were carried out as well I had to separate the responce2 from the Module.IsOn/Off using the && made my setup misbehave. I have this working reliably (so far) on two RPi Zero W boards with HG v1.3-beta.2

I try to use your program but my HomeGenie have an abnormal CPU usage (describe here : #374) and i test to disable it to solve my issue. But that didn't solve my issue and so i think the lag for switch on/off is due to my CPU usage ... In brief, i can't be sure 100% your program work fine ... :/

tuicemen commented 5 years ago

@noliono I had to revert to version 1.2-Stable.39 with one of my RPI as I lost control of many other things. Maybe it was the issue your seeing. The other Pi with 1.3-beta.2 runs fine for me thus far though I don't have the same things configured on it. The modified WeMo program I posted continues to work reliably for me from both RPIs

tuicemen commented 5 years ago

@genemars I believe this is stable enough to be added to HG with the changes I made and posted last. The modified WeMo program I posted continues to work reliably for me from both my RPIs. The only time it stopped working was when my router rebooted. And when that happened HG reported the error of not being able to communicate to said WeMo devices. Setting the WeMo IPs to my routers IP reserved list has fixed that. ;)

genemars commented 5 years ago

@tuicemen ok, I will add this to next hg release.

tuicemen commented 5 years ago

@genemars that will be great thanks.

genemars commented 5 years ago

The WeMo program is now included in v1.3-stable.3. :)

noliono commented 5 years ago

After a long time to solve my CPU use in homegenie, I can say that the program work fine on my side too!