-
Notifications
You must be signed in to change notification settings - Fork 3
[old draft] Find MAC address automatically + add option to deactivate proximity scanner #32
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
base: main
Are you sure you want to change the base?
Conversation
|
I took a completely different approach with a Expect scripts - it's an all-in-one app. Here's a snippet of the available settings. I just added tons of more comments so you understand better. - The MQTT topics have pre/post options but those 2 aren't implemented. I wanted to have a discussion w/ you guys on what makes sense. After the settings, an explanation of the current script's features. Settings:Current features:
Todo:
Question:Why is the presence value currently defined as ON & OFF instead of a bool True & False? With the live listening implementation, I had 0 BLE dongle issues at all and it's something I've been doing very very often .. and even let it run overnight. ... Any suggestions / comments / questions? I am available tomorrow for Discord or WhatsApp audo or video. Not sure if Discord does video or audio? I think it would be easier to discus over voice/video than chat. |
|
In case someone read the above comment minutes ago, I just updated it. |
Regarding the credit for using sha1sum, I also got the idea from https://teslabtapi.lexnastin.com/docs/start#vehicle-ble-name so that seems good unless @BogdanDIA or @baylanger have another reference |
|
Keeping this one as draft until tesla-local-control/tesla_ble_mqtt_core#12 is merged |
Implement dedicated function to find MAC from VIN:
Add option to activate/deactivate proximity sensing.
Rule:
listen_to_blefunction will be called as in v0.0.8calc_ble_from_vinwill be used to find the mac address to enable calls tolisten_to_ble. It is tried at container startup and periodically if the MAC cannot be detected.