Would love to get pixometer data integrated in Home Assistant. As I don’t have enough python experience myself, I was wondering if anyone would have plans to do so? The free app let’s you easily scan and recognize meter reading and upload it into your pixometer account.
I know openHAB has this data integrated, so probably the openHAB approach and code could be used to make the same in Home Assistant?
Will also look forward into this topic to learn develop my own first custom integration, but for sure all assistant would be welcome
Found some time to look into this, if anyone interested, see below. Feel free to suggest improvements, still trying out myself…
Install Pixometer app to easily scan your meter reading with smartphone camera
Add your Pixometer credentials in json payload format into your secrets.yaml, should look like: pixometer_credentials: '{ "username" : "[email protected]", "password": "XXXXXXXXXXXXX" }'
If I try this, I get the log entry Template variable error: list object has no element 0 when rendering '{{ value_json.results[0].value }}. If I try the REST resource url of the meter reading in my Firefox Rested Addon, I get the following result
It seems, the reading list is empty. However, if I browse the Pixometer Django API sites, there the full list is visible. At least a list that covers all meters, i.e., the result of https://pixometer.io/api/v1/readings/ without further arguments.
Any hints on this?
Another question: Why do you need the additional template sensor? The value of the reading is already stored in the rest sensor, isn’t it?
true, I do some further calculations on it which I removed in the post, but for simple use it’s indeed not needed. I’ll remove it to simplify it in my original post
The app can scan (manually) scan any meter type by holding the camera in front of the meter. All the meters registered in your pixometer account are integrated in HA with this integration.