Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DT24 bluetooth Voltmeter #975

Merged
merged 3 commits into from
Jun 8, 2021
Merged

DT24 bluetooth Voltmeter #975

merged 3 commits into from
Jun 8, 2021

Conversation

NorthernMan54
Copy link
Collaborator

Support for DT24 Bluetooth digital display DC Power APP Voltmeter
Ammeter Battery Capacity Tester Fuel Gauge voltage detector Meter

https://www.aliexpress.com/item/4000835324129.html?spm=a2g0o.productlist
.0.0.5aa96393c4qWIg&algo_pvid=dd8f4348-fad0-43e3-b3c0-e711180ed13e&algo_
expid=dd8f4348-fad0-43e3-b3c0-e711180ed13e-0&btsid=0bb062441622503466970
1271e3fb6&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_

For reference, these were the compiler definitions I used

; *** ble flags ***
  '-DZgatewayBT="BT"'
;  '-DLED_RECEIVE=2'
;  '-DLED_RECEIVE_ON=0'
  '-DTimeBtwRead=0'
  '-DScan_duration=20000'
  '-DAttemptBLECOnnect=true'
  '-DPublishOnlySensors=true'
;  '-DLOG_LEVEL=LOG_LEVEL_TRACE'

@1technophile
Copy link
Owner

Thanks, one last thing can you add also the model here please
https://github.com/1technophile/OpenMQTTGateway/blob/development/docs/prerequisites/devices.md#for-ble-devices

@1technophile 1technophile added this to the v0.9.7 milestone Jun 2, 2021
@1technophile
Copy link
Owner

Could you add also the auto-discovery functions for this sensor please, here is an example:
#972

@1technophile
Copy link
Owner

@NorthernMan54 we are planning to do some modifications on the BLE parts, do you think we could go further with this PR or should I integrate it like this?

@NorthernMan54
Copy link
Collaborator Author

I have the home assistant discovery bits mostly complete and am just wrapping up my testing. I had been running things without discovery enabled, as my testing devices kept appearing in my production environment. And once I enabled discovery and the gatewaybt module caused my home automation to crash.

I’m not running home assistant but homebridge with a plugin ( homebridge-tasmota) that leverages home assistant mqtt discovery messages to automatically integrate tasmota and other devices into Homebridge. And once I enabled openmqttgateway discovery with Bluetooth devices everything crashed on homebridge. And I’m adding some defensive code ( my homebridge code didn’t like the topic wild cards in the discovery message) to stabilize my setup and ensure device discovery is working.

I’m about 90% complete

@NorthernMan54
Copy link
Collaborator Author

This is my WIP which is 90% complete, and likely just needs some minor tweaks before publishing. I would recommend merging, and I will rebase myself for any further tweaks required.

@h2zero
Copy link
Collaborator

h2zero commented Jun 8, 2021

I would recommend merging, and I will rebase myself for any further tweaks required.

Agreed, the upcoming BLE changes will change a lot of this. If this is working as is, then merging now and updating it against the new base would make the most sense.

@1technophile
Copy link
Owner

Thanks

@1technophile 1technophile merged commit 6bb65ca into 1technophile:development Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants