It’s fairly easy to roll your own EnergyID integration:
-
In EnergyID > Apps choose ‘Incoming Webhook’ and activate it. You’ll receive an URL to send POST-requests to. Use that URL in the code-block below.
-
Add a
rest_commandin yourconfiguration.yaml. The example below posts the “Total Yield” field of my solar inverter. For other types, you’ll need to refer to the documentation to find the correctmetricandunit):
rest_command:
energyid:
url: "https://hooks.energyid.eu/services/WebhookIn/...."
method: POST
content_type: application/json
payload: >-
{
"remoteId": "<choose an id>",
"remoteName": "<choose a name>",
"metric": "solarPhotovoltaicProduction",
"unit": "kWh",
"readingType": "counter",
"data": [
["{{ now() }}", {{states.sensor.total_yield.state | int }}],
]
}
- Create an automation that calls the service
rest_command.energyidwhen convenient. In my case, I chose to call this service every morning at 3AM.
For keeping track of the number of trash cans, you can use a ‘Counter’ helper in HA, and call the rest_command.energyid service everytime you change that value.