Page 1 of 1

Newbie question about intents

Posted: 10 Oct 2015 19:08
by MikeFrizz
Hello,
In Tasker it is possible to send intents to any application.
It works in that way:

Task function:send intent
Action: eu.power_switch.action
extra:Room:Room1
extra:Receiver:switch1
Button:On

This receiver is working with a Brematic GWY 443 and switch connectors on and off.
How can I realize the same action with automagic?

Re: Newbie question about intents

Posted: 12 Oct 2015 19:02
by Martin
Hi,

You can send broadcast intents with action Send Broadcast and activity intents with Start Activity.

Options would be:
Action: eu.power_switch.action
Extras:

Code: Select all

putString("Room", "Room1");
putString("Receiver", "switch1");
Is Button:On also an extra?

Regards,
Martin

Re: Newbie question about intents

Posted: 12 Oct 2015 22:16
by MikeFrizz
Yes. It is an extra.

In the last row stands a directive:
Ziel:
Broadcast Receiver

But it doesn't work in that way.

Re: Newbie question about intents

Posted: 13 Oct 2015 14:20
by Martin
OK, then you have to use action Send Broadcast.
Also add the third extra:
putString("Button", "On");

Please also check the spelling of each extra and verify that upper/lower case is correct.

Where did you get the information about the intent from? If you have a link to a page where the intent is described, I can take a look if it needs to be changed somehow.

Re: Newbie question about intents

Posted: 13 Oct 2015 14:51
by MikeFrizz
OK. I got it.
very good, I'm satisfied.