Hi,
I always wanted to see some usage data of my custom integrations. Here my solution, do you have a better one?
Solution:
The HA analytics functionality delivers data about the custom_components too. I used a REST sensor to get the total installations.
Requirement:
- the integration has submitted a brand image
sensor:
- platform: rest
name: MBAPI2020 Users
scan_interval: 60000
resource: https://analytics.home-assistant.io/custom_integrations.json
value_template: >-
{{ value_json.mbapi2020.get("total") }}