BT Connection event

27 views
Skip to first unread message

Manivannan Shanmugavel

unread,
Jun 3, 2020, 11:01:10 AM6/3/20
to Tasker
I have a "BT connection" event that does not have any parameters set. I determine actions when %bt_connected is set to "true" or "false".
When "false" (i.e. the BT connection was disconnected"), I want to display the "BT Battery Level". 

I'm finding that the event triggers even when I'm not connecting or disconnecting from a BT device. So, I get a notification that just shows the variable in text as "%bt_battery_level" (not the value contained in it). 

Why is this happening and how can I determine a BT disconnect without using complex logic?

Philip Schaffer

unread,
Jun 4, 2020, 7:06:08 PM6/4/20
to Tasker
You could use an "if" within the notification task with %bt_battery_level "Is Set".

Manis

unread,
Jun 4, 2020, 8:47:08 PM6/4/20
to Tasker
Yeah, that's what I ended up doing. But still don't understand why the event is triggered randomly like that. Maybe because Bluetooth scanning is on...

Thanks

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/73fe2410-4c35-4dbd-915d-d9bd09be85d9o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages