question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BLE Transmitter turn_off doesn't reflect in the sensor state

See original GitHub issue

Is your feature request related to a problem? Please describe.

Currently the amazing feature of Ble Transmitter supports a command to turn it on an off. Which indeed turns it on and off. But once It’s been turned on and you proceed to turn it off with the command the Application won’t change the state of the ble_transmitter sensor because what the command actually did was disable the sensor.

Describe the solution you’d like

Ideally turning off the sensor from the command should stop transmitting but report to the application that It’s not transmitting. So we can use the state of the ble transmitter for automation logic.

Describe alternatives you’ve considered, if any

I think a good idea would be adding a toggle inside the sensor which determines if It’s transmitting or not. Or maybe add another option to the transmit power that is 0 power, so no transmitting.

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
dshokouhicommented, Mar 9, 2021

Fixed in #1413

1reaction
Alfiegernercommented, Mar 7, 2021

@dshokouhi - yeah it’s a tricky one. If enabled did not start the trasnmitter by default we wouldn’t need the enable all switch. But that would be a bit counter intuitive.

I’ll see what it looks like with both options.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BLE Transmitter stopped advertising #1855 - GitHub
You need to go back to the sensor and disable/enable. It won't auto grant it.
Read more >
Home Assistant Companion App BLE Presence Detection + ...
I'm running ESP Home on an ESP32 Dev Kit C, and the home assistant companion app on a Samsung S20. I've enabled the...
Read more >
Android 13: Unable to reconnect reliably to bonded peripheral
We've tried to clear the GATT database cache by calling BluetoothGatt.refresh() via reflection, but this didn't seem to have an effect on the...
Read more >
Futuristic, Advanced Automations with Room Assistant
Select “Manage Sensors” under the Sensors section. Scroll down to the “Bluetooth Sensor” section and select “BLE Transmitter”; Enable that, and ...
Read more >
Bluetooth LE | Reference - Particle docs
Getting started with Bluetooth LE (BLE) on Particle IoT devices. ... typically low-power devices like heart rate sensors, body weight scales, thermometers, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found