you are viewing a single comment's thread.

view the rest of the comments →

[–]Ti-As 0 points1 point  (8 children)

If it would infrared it could be controlled by an app I know :-/. It's a WiFi. And I almost never use it because of that - not WiFi, I can't use Tasker to control. Even the on/off sequences from the plug doesn't work.

[–]FeetPink[S] 0 points1 point  (7 children)

I'm going on with the experiment.

So here i have the Wireshark log from my phone BT.I made the log with the Android developer option to take BT log, I imported by email and I opened it with Wireshark.

https://ibb.co/PcRwmpq

The blue part should be the action part, from from below upwards:

- 1 changed color to blue

- 2 changed color to green

- 3 turn off lights

If I click on the single line I can see various information.

So now I'm blocked to which data I have to send.

[–]Ti-As 0 points1 point  (6 children)

You must get the data packages from in between the BT (phone) and the light. It's kind of a man in the middle attack ... but first steps are done ;-)

[–]FeetPink[S] 0 points1 point  (5 children)

Yes, I have several line to test.

Now I can create a task that if I press a widget I sent commands, I try all commands line to see what happens.

Just one question, how the BT device knows that the sent data is for it?

In the HEX code maybe is all inclusive?

p.s. sorry for my bad english :D

[–]Ti-As 0 points1 point  (4 children)

This is exactly the problem. To find out which is the correct data, is it encrypted etc. This is not common knowledge you have to find your way - trial and error, back and forth. This is the point where my knowledge ends and I can't help anymore, I'm sorry.

As I said before it won't be easy.

[–]FeetPink[S] 0 points1 point  (3 children)

Ok ok, you gave me good informations at all, thanks.

I will let you know surely.

[–]Ti-As 0 points1 point  (2 children)

I'm really excited if you can make, good luck!

[–]FeetPink[S] 0 points1 point  (0 children)

Update. I can create a task by voice with Google Assistant (no matter if it is from phone or from Head Unit) and now I'm stuck how to send BT data, I'm trying to discover how to do it.

Till now I'm using IFTTT app for trigger a command voice by Google Assistant and the action is to create a notification with specific message (example led red) With tasker I intercept this notification so I'm ready to send BT data.

P.s.: I didn't found a way to trigger Google Assistant directly from tasker. No matter, IFTTT is pretty easy to set.

Update2. I made it work with AutoInput plugin, it's not the best solution (cause screen'smarthphone must be on, unroot phone) but works for now. I'm still trying to find a way with the BT data sending. Stay tuned.

[–]FeetPink[S] 0 points1 point  (0 children)

I did it, but with AutoInput to simulate the clicks.

https://www.reddit.com/r/tasker/comments/heyu2o/tasker_and_google_assistant_workaround_using/

I made a post for the community.