Newbie question about intents

Post your questions and help other users.

Moderator: Martin

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

Newbie question about intents

Post by MikeFrizz » 10 Oct 2015 19:08

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?

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

Re: Newbie question about intents

Post by Martin » 12 Oct 2015 19:02

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

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

Re: Newbie question about intents

Post by MikeFrizz » 12 Oct 2015 22:16

Yes. It is an extra.

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

But it doesn't work in that way.

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

Re: Newbie question about intents

Post by Martin » 13 Oct 2015 14:20

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.

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

Re: Newbie question about intents

Post by MikeFrizz » 13 Oct 2015 14:51

OK. I got it.
very good, I'm satisfied.

Post Reply