I wanted to share a small custom integration I built for Home Assistant and LaMetric.
It creates a JSON feed for LaMetric’s My Data DIY app directly from Home Assistant entities, so you can configure the content in Home Assistant instead of maintaining separate scripts.
The idea is pretty simple:
you select a few entities, define how they should be shown on the LaMetric, and the integration writes the feed file for you.
Right now it supports:
up to 8 rotating frames per feed
per-frame icon, duration, prefix and suffix
formats for power, percent, energy, raw values and time
a dedicated current-time option for clock frames
automatic refresh when entity states change
automatic minute refresh for time frames
output as a static JSON file inside Home Assistant’s local/www area
I originally built it because I wanted an easy way to show a few values from my own setup on the LaMetric, like solar power, battery level and some energy-related stats, without keeping a custom script around.
Thank you very much for your integration. I’ve successfully set up the integration in HA.
I’ve also entered the HTTP Poll protocol type in the ‘My Data DIY’ section of the LaMetric app and added the HA URL. In the LaMetric app’s poll log, I can see 200 and 303 responses containing the expected sensor data. However, on the LaMetric device itself, I only see the My Data DIY icon with an arrow pointing to a zero or an O?
I’ve managed to sort out the problem. Under ‘Data Format’, it needs to be set to ‘Predefined (LaMetric Format)’.
Is authentication for the JSON file poll already on the roadmap?
Or is it possible to send the JSON file directly via MQTT?