more G-Labs products

Author Topic: WeMo  (Read 5418 times)

November 12, 2015, 09:24:55 PM
Reply #15

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Hi,
After a lot of debugging, I found the problem !!!!
I just comment the following line (i use only for debugg) :
Code: [Select]
Program.Notify("WeMo", result);And now, it work ! I don't know why but i suppose the data return by the function "GetData()" has change ...

So the new script (only with a line commented ;)).
Bye

November 13, 2015, 11:57:24 AM
Reply #16

roger.wills

  • ***
  • Information
  • Full Member
  • Posts: 53
Great job nolio, from my limited testing so far this is working!

Strangely though the on or off status seems to be working in reverse. Not a great show stopper but odd non the less. Is that handled in the code?

November 13, 2015, 09:30:38 PM
Reply #17

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Strangely though the on or off status seems to be working in reverse. Not a great show stopper but odd non the less. Is that handled in the code?
Pretty weird because the difference between on and off is only a "1" for "on", and "0" for "off".
So the code send a request with 1 for on and 0 for off (line 17) and variable ONOFF....
And on my side it work fine.

June 08, 2016, 12:35:04 AM
Reply #18

boblablah

  • *
  • Information
  • Newbie
  • Posts: 6
Can you outline the method to support multiple wemo switches?

June 09, 2016, 12:21:14 AM
Reply #19

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Probably not the best way, but it should work ... Can you try ?

July 27, 2016, 10:55:54 PM
Reply #20

boblablah

  • *
  • Information
  • Newbie
  • Posts: 6
will do tonight!  i have a few switches, so I will replace one or two and see if they work as I expect them to... Now that I see your code and where you added things, it makes sense to me a little more.   If it works, i can make the necessary modifications to enable a few switches and see how well it works.

February 12, 2017, 10:46:47 AM
Reply #21

batman

  • *
  • Information
  • Newbie
  • Posts: 1
Did anyone manage to get multiple Wemo's to work?

February 12, 2017, 11:00:02 PM
Reply #22

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Probably not the best way, but it should work ... Can you try ?
Did you try my latest script ? I can't test it because, I only have one wemo switch.