Hi,
Not sure if it possible or if it is already available.
I was looking for a condition that checks if a BLE device is connected to my device.
I know that latest update has the new condition that checks the battery level of a BLE device but my device (fitbit) unfortunatly doesn't work with that condition (i think fitbit block access from non fitbit apps).
I think thou if there is a condition in automagic to simply check if a BLE device is connected.
Thanks Sam
BLE Connected Condition
Moderator: Martin
Re: BLE Connected Condition
Hi,
I'm not really sure if this applies to all devices but did you try to use the trigger Bluetooth Device Connected/Disconnected to see if this trigger fires also for fitbit?
Regards,
Martin
I'm not really sure if this applies to all devices but did you try to use the trigger Bluetooth Device Connected/Disconnected to see if this trigger fires also for fitbit?
Regards,
Martin
-
- Posts: 96
- Joined: 27 Jul 2014 10:40
Re: BLE Connected Condition
Hi Martin,
Thank for replying.
I tried, as you said, to set the trigger bluetooth device connected.
Because the fitbit device doesn't pair with my phone i had to select all devices then have a notification telling me which device triggered the flow.
As the fitbit is a BLE device it only connects to my phone when it's syncing, and then triggers the flow only when it syncs.
What am i trying to achieve is; i have a flow, as we have previously discussed, that opens my fitbit app and forces my fitbit device to sync, triggered by a periodic timer. I don't want this flow to execute if my phone and fitbit are not within range of each other.
The new condition you added to automagic (Batterly Level BLE) unfortunatly doesn't work with my fitbit, i suspect it's my fitbit not and not the new condition.
Sam
Thank for replying.
I tried, as you said, to set the trigger bluetooth device connected.
Because the fitbit device doesn't pair with my phone i had to select all devices then have a notification telling me which device triggered the flow.
As the fitbit is a BLE device it only connects to my phone when it's syncing, and then triggers the flow only when it syncs.
What am i trying to achieve is; i have a flow, as we have previously discussed, that opens my fitbit app and forces my fitbit device to sync, triggered by a periodic timer. I don't want this flow to execute if my phone and fitbit are not within range of each other.
The new condition you added to automagic (Batterly Level BLE) unfortunatly doesn't work with my fitbit, i suspect it's my fitbit not and not the new condition.
Sam
-
- Posts: 96
- Joined: 27 Jul 2014 10:40
Re: BLE Connected Condition
Hi Martin,
Just thought I'd give you an update.
Using the condition bluetooth device connected (any) and then searching for the string, being the name of the device, in the connected devices supplied variable. I was able to successfully detect whether my fitbit was connected at the time the flow is executing.
The only problem is that the fitbit app needs to be open for it to determine if the fitbit device is connected.
Sam
Just thought I'd give you an update.
Using the condition bluetooth device connected (any) and then searching for the string, being the name of the device, in the connected devices supplied variable. I was able to successfully detect whether my fitbit was connected at the time the flow is executing.
The only problem is that the fitbit app needs to be open for it to determine if the fitbit device is connected.
Sam
- Attachments
-
- Screenshot_2014-09-19-08-27-23.png (246.21 KiB) Viewed 13992 times
-
- Posts: 2
- Joined: 07 Oct 2014 13:30
Re: BLE Connected Condition
Hi Sam!
I'm try to remote control my Yeelight blue with Automagic.
Do you still got the code that looks for a specific BLE connected device?
Will i be able to push packets to my Yeelight with automagic?
http://www.yeelight.com/download/yeelig ... e_v1.0.pdf
I'm try to remote control my Yeelight blue with Automagic.
Do you still got the code that looks for a specific BLE connected device?
Will i be able to push packets to my Yeelight with automagic?
http://www.yeelight.com/download/yeelig ... e_v1.0.pdf
-
- Posts: 96
- Joined: 27 Jul 2014 10:40
Re: BLE Connected Condition
Hi kelemenlajos,
As far as I'm aware, there is only the condition to check the battery level of BLE device that is specific to BLE devices.
What i did is use the condition any bluetooth device connected, then ran a script and expression to check the device name of the connected bluetooth device as my device isn't a paired device.
A long way to do it, but it works.
Give it a try, I'm not sure if that's what you want.
If you need any extra help Martin is the guy you need to talk to.
Sam
As far as I'm aware, there is only the condition to check the battery level of BLE device that is specific to BLE devices.
What i did is use the condition any bluetooth device connected, then ran a script and expression to check the device name of the connected bluetooth device as my device isn't a paired device.
A long way to do it, but it works.
Give it a try, I'm not sure if that's what you want.
If you need any extra help Martin is the guy you need to talk to.
Sam