BangleApps/apps/bthome
thyttan 2a959a787b chore: rm cmnts at end of some settings/clkinfos
as to not trigger the sanitychecker when it looks to see if the file
ends with `)`.
2024-12-31 14:04:01 +01:00
..
ChangeLog Auto generate button number 2024-07-03 21:16:25 +03:00
README.md Added BTHome app for firing off BTHome events to HomeAssistant 2024-02-06 16:15:19 +00:00
app-icon.js Added BTHome app for firing off BTHome events to HomeAssistant 2024-02-06 16:15:19 +00:00
app.js 0.03: Cope with identical duplicate buttons (fix #3260) 2024-04-02 16:22:56 +01:00
boot.js Use `ble_advert` module 2024-05-24 17:21:23 +01:00
clkinfo.js chore: rm cmnts at end of some settings/clkinfos 2024-12-31 14:04:01 +01:00
icon.png Added BTHome app for firing off BTHome events to HomeAssistant 2024-02-06 16:15:19 +00:00
metadata.json Auto generate button number 2024-07-03 21:16:25 +03:00
settings.js Minor fix on the accerec, pebbleapp and bthome 2024-07-09 18:00:06 +03:00

README.md

BTHome

This uses BTHome (https://bthome.io/) to allow easy control of Home Assistant via Bluetooth advertisements.

Other apps like the Home Assistant app communicate with Home Assistant via your phone so work from anywhere, but require being in range of your phone.

Usage

When the app is installed, go to the BTHome app and click Settings.

Here, you can choose if you want to advertise your Battery status, but can also click Add Button.

You can then add a custom button event:

  • Icon - the picture for the button
  • Name - the name associated with the button
  • Action - the action that Home Assistant will see when this button is pressed
  • Button # - the button event 'number' - keep this at 0 for now

Once you've saved, you will then get your button shown in the BTHome app. Tapping it will make Bangle.js advertise via BTHome that the button has been pressed.

ClockInfo

When you've added one or more buttons, they will appear in a ClockInfo under the main Bangle.js heading. You can just tap to select the ClockInfo, scroll down until a BTHome one is visible and then tap again. It will immediately send the Advertisement.