This demo uses Hubitat Maker API to retrieve the device's battery reading, and display the value in a gauge using Google Chart.
Follow the steps below to enable Maker API in Hubitat admin page. Maker API
- Select the devices that can be controlled using this Maker API
- Enable "Allow Access via Remote/Cloud"
- Add "https://run.sharptools.app" in the Allowed Hosts (for CORS) field
- Scroll down and copy one of the example cloud endpoints
- Make sure to press "Done" to save your changes!
- Go to Developer Tools in SharpTools user dropdown
- Create a custom tile
- Select "HTML" as Type
- Copy & paste the code from here
- Tap out of the code editor and accept the new settings