Hi, I am currently trying to solve the following problem
the task
I have a camera that takes a image of my oil tank, and I want to read out the fill level as a sensor.
what I achieved
I have developed a python script that can achieve that. However, I want to execute the code on the **home assistant **server to improve maintainability. My idea is to write a proper integration.
What I struggle with
This integration does not work and it's my first integration. Maybe someone with more experience can give me a hint, because I think I got 80% the way, but I am missing a few simple steps which I can't resolve with only the documentation.
explicit issue description
When creating a new instance of the integration (after installing through HACS), the sensor does not appear. However, there is also no error, warning or anything in the logs. I am clueless how to debug that.
the structure of the integration
the integration consists of a switch, a sensor, and a service/action. Once the service is called with the image as a parameter, the switch state is read and a new sensor measurement is computed, and the sensor should be updated accordingly.
Contribute to stheid/ha-tank-level development by creating an account on GitHub.