stromer.py can be innitiated with appdeamon. see https://www.home-assistant.io/docs/ecosystem/appdaemon/ Don't forget to add your login details and api secrets in the python script. password = "PASSWORD-Here" username = "[email protected]" client_id = "Clientid-here" client_secret = "Secret-here"
The client_id and client_secret can be 'sniffed' with tools like MitM proxy.
sensor.yaml, add this to your sensor.yaml. see how to create a sensor.yaml as split config instead of your configuration.yaml. https://www.home-assistant.io/docs/configuration/splitting_configuration/
Add the sensors to your dashboard: