BangleApps/apps/hasensors
Richard de Boer f38518fb63
New app: hasensors: Home Assistant Sensors
Creates battery level+state sensors in Home Assistant over HTTP
2023-02-12 19:17:16 +01:00
..
ChangeLog New app: hasensors: Home Assistant Sensors 2023-02-12 19:17:16 +01:00
README.md New app: hasensors: Home Assistant Sensors 2023-02-12 19:17:16 +01:00
boot.js New app: hasensors: Home Assistant Sensors 2023-02-12 19:17:16 +01:00
custom.html New app: hasensors: Home Assistant Sensors 2023-02-12 19:17:16 +01:00
ha.png New app: hasensors: Home Assistant Sensors 2023-02-12 19:17:16 +01:00
lib.js New app: hasensors: Home Assistant Sensors 2023-02-12 19:17:16 +01:00
metadata.json New app: hasensors: Home Assistant Sensors 2023-02-12 19:17:16 +01:00

README.md

Home Assistant Sensors

Sends sensor values to Home Assistant using the Android Integration.
It doesn't use the Home Assistant app on your phone, but posts directly to Home Assistant, so it only works if Home Assistant can be reached from your phone.

Setup

You need to fill out these fields:

  • Sensor ID: This is prefixed to sensor IDs in Home Assistant.
    If you set this to banglejs, the battery sensor will be named sensor.banglejs_battery_level.
  • Sensor Name: This is prefixed to human-friendly sensor names. If you set this to Bangle.js, the battery sensor will show as Bangle.js Battery Level.
  • Home Assistant URL: The URL of your Home Assistant Installation.
  • Authentication Token: You need to generate a Long-Lived Access Token in Home Assistant, at the bottom of your profile page.

Features

Currently creates these sensors:

  • <sensor id>_battery_level: Your watch battery level as percentage
  • <sensor id>_battery_state: charging or discharging