Powerswitch

Post your questions and help other users.

Moderator: Martin

Post Reply
TML
Posts: 8
Joined: 09 Jan 2014 12:54

Powerswitch

Post by TML » 28 Jan 2014 12:50

Hello together,

yesterday I bought an HomeAutomation module, that can control wireless sockets via network:
Amazon link:
http://www.amazon.de/Brennenstuhl-Brema ... automation

To control this gateway there is an app available, it is called: PowerSwitch
http://power-switch.eu/

So powerswitch provide a "interface" to control the app via android intends, there is also a tuturial how to use it with Tasker or Llama.
I tried to add this activity to Automagic, but it is not working properly.

Can anybody help me to add these Activity to Automagic?
The tutorial:
http://fotoallerlei.com/powerswitch-aut ... skerllama/

Activity to turn switch ON:
Action: de.ressel.powerswitch.action.Switch.ON
Extra : Switch:room:Wohnzimmer;switch:Schrank;;
Target: Broadcast Receiver

Activity to turn switch OFF:
Action: de.ressel.powerswitch.action.Switch.OFF
Extra : Switch:room:Wohnzimmer;switch:Schrank;;
Target: Broadcast Receiver

Thank you and best regards,
Tim

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Powerswitch

Post by Martin » 28 Jan 2014 19:27

Hi,

According to the tutorial you can use action Send Broadcast in Automagic to send the intent.

Action: de.ressel.powerswitch.action.Switch.ON
Extras: putString("Switch", "room:Wohnzimmer;switch:Schrank;;");

Regards,
Martin

TML
Posts: 8
Joined: 09 Jan 2014 12:54

Re: Powerswitch

Post by TML » 29 Jan 2014 14:38

Hi Martin,

thank you for your fast reply.
But I tested it this morning and it din't worked...

is it possible to use this "Broadcast" another way?

Thank you and best regards,
Tim

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Powerswitch

Post by Martin » 29 Jan 2014 18:21

Hi,

Difficult to say what's going wrong, since I don't have the required equipment to make a proper test.
Is there some kind of log available in the PowerSwitch-app that indicates if the app received the broadcast-intent at all?
Did you use the correct room-name and switch-name in the intent extras?

Regards,
Martin

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Powerswitch

Post by Martin » 29 Jan 2014 19:19

I have installed the PowerSwitch-app then added a room called "Raum1" and a switch called "Test".
Judging from the system log, following configuration worked for me (the PowerSwitch-app seems to send a bunch of network packets):

Send Broadcast
Action: de.ressel.powerswitch.action.Switch.ON
Extras: putString("Switch", "room:Raum1;switch:Test;;");

Please ensure that the action is typed correctly. The values are case sensitive. Please also ensure that no leading or trailing white space characters are added when pasting the values from the clipboard.

Regards,
Martin

TML
Posts: 8
Joined: 09 Jan 2014 12:54

Re: Powerswitch

Post by TML » 30 Jan 2014 09:08

Hi Martin,

thank you! I had a spelling mistake, now it is working well.

Thank you!

best regards,
Tim

MikeFrizz
Posts: 8
Joined: 10 Oct 2015 18:54

Re: Powerswitch

Post by MikeFrizz » 10 Oct 2015 19:22

I have the same problem, but I can't find the german function. Only "Genereller Broadcast" is to see.
Ich kann keinen "sende Broadcast finden. Mit dem generellen Broadcast habe ich ebenso einige Probleme,
da es keine Zeile gibt, in der ich zu sendende Parameter eintragen kann. Es gibt da die Datapath Glob Liste und die Data Type Liste. Die restlichen haben Auswahlfelder für Funktionen.
Danke
Michael

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Powerswitch

Post by Martin » 12 Oct 2015 19:05

Hi,

Send Broadcast respektive Boadcast senden ist eine Action.
In einem Flow kannst du den Trigger auswählen, danach das (+)-Icon unterhalb des Triggers an eine freie Position ziehen, Action auswählen und Broadcast senden verwenden.

Freundliche Grüsse
Martin

Post Reply