A Home Assistant Script to auto-discover MQTT topics populated by the Teslamate application
- Edit variables on lines 20-24 per your own setup.
- Modify, add, or delete any sensors as necessary.
- Save file into your configuration.yaml, or if you use packages save it into the packages folder as a separate yaml file.
- In Home Assistant, go to developer tools and reload scripts.
- In Home Assistant, go to scripts and run "Teslamate - Create Entities".
- (Optional) Create an automation to re-run the script every time the software version sensor has a state change. This will keep the software version shown in the device details in-sync with the actual version.