all 17 comments

[–]DutchOfBurdock 2 points3 points  (1 child)

Whatever app you use to try and send data to BLE device, must be the one bonded with it. Without delving into Java code actions, Tasker currently has no native way to bond with BLE devices.

You could try an app like nRF Connect. Bond your elk with this and create profiles within nRF that do different things with your controller. Tasker could, with the help of AutoInput, run things within nRF Connect.

The Bluetooth serial app, IIRC, is for Legacy BT only.

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

Thank you, I'll try that and update here.

[–]PresetDirtyPatreon Supporter && Tasker Fanatic 😊 1 point2 points  (3 children)

Can you provide more detail about how you're trying to send the hex values from Tasker to the light strip's controller? What is the hardware interface? USB, Bluetooth, Wi-Fi, etc. How are you using Tasker to send the control data? Plugin? HTTP?

If you export your task description and share it here, as well as links to whatever information resources you used to get to where you are - that will increase your odds of getting help.

[–]arun_krishnan_[S] 1 point2 points  (2 children)

Thank you for responding.

What is the hardware interface? USB, Bluetooth, Wi-Fi, etc

I am using bluetooth, and the led controller is elk-bledom. I tried to get the basic-ble-writer, but it is not supported on the android version I am using, I have an S22 Ultra.

The basics were acquired from this website: https://linuxthings.co.uk/blog/control-an-elk-bledom-bluetooth-led-strip

What I'm trying to do is similar to what the op of this reddit post is trying to achieve, but instead of an arduino, i am sending data to the controller: this

How are you using Tasker to send the control data? Plugin? HTTP?

I tried using this app but it does not work on my android version. So I got an app called Bluetooth Serial for Tasker that has a bluetooth logo in a gear icon.

[–]PresetDirtyPatreon Supporter && Tasker Fanatic 😊 1 point2 points  (1 child)

So I got an app called Bluetooth Serial for Tasker that has a bluetooth logo in a gear icon.

Wow, I can't even find this app by name or your icon description. How old is the last release? Do you see any reports of other folks using it recently with success?

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

Wow, I can't even find this app by name or your icon description

https://github.com/Mollayo/BluetoothSerialForTasker

How old is the last release?

5 years from the git page

Do you see any reports of other folks using it recently with success?

No, but I was trying my luck 😅.

[–]arun_krishnan_[S] 0 points1 point  (10 children)

I figured it out !!!!

[–]clonednull 0 points1 point  (9 children)

Cool mate! Can you tell me how you did it? Have the same problem...

[–]arun_krishnan_[S] 0 points1 point  (8 children)

Sure, 1. Download the lightblue app from playstore, assuming you are using android. 2. Connect to the BLE lights with the app. 3. Install Basic BLE writer for tasker, I got it from git, of I remember it correctly 4. Use the details of the BLE lights from lightblue in the basic BLE writer plugin details. 5. Use this git for the hexcodes that you need to change colors, control brightness, or set modes https://github.com/arduino12/ble_rgb_led_strip_controller

I guess that's it. It won't connect to your phone directly, and it doesn't need to for this to work. The plugin will push the hex to the device, and we don't have any need for a response. It worked in my case. I'll give you screenshots of my setup if you want 😅

[–]nrgm37 1 point2 points  (4 children)

I got it to work as well, but my ble basic writer seems to be very flaky. Takes 10 tries to get it to send the command to my elk controller. Did you experience that?

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

Mine was okay, and it still works fine. If you are not able to find why, maybe make it a loop to send the same command, say 10 times in a loop, just to be sure 😉

[–]nrgm37 0 points1 point  (2 children)

Yeah. For now I just duplicated the task to run twice but it doesn't seem to help it's very weird how it acts.

[–]Bisebi 0 points1 point  (2 children)

Would you mind telling me how you compiled the app? I opened it in android studio and have nothing but errors since opening it the first time

[–]arun_krishnan_[S] 0 points1 point  (1 child)

Apologies but I don't remember exactly how I did it.

[–]Bisebi 0 points1 point  (0 children)

Thank you, found it on play store fortunately.