Home Assistant auto-discovery #1599
Replies: 6 comments 4 replies
|
I wanted something similar (including control of the vehicle), so I have written this: https://github.com/sillyfrog/teslabuddy It is another container, but it reads the info from TeslaMate (via MQTT), and publishes it for Home Assistant, including aggregating the GPS info into a single JSON payload so it'll work with auto-discovery. |
|
Has there been any thought on this? Personally, I think this would be a great addition to TeslaMate. Might it be better to implement in addition to existing MQTT approaches? Im sure there are many users using MQTT a certain way already. Feels like there needs to be an attribute map to identify the prefixes required for each of the sensors. It also allows for sensor types (temperature, location, etc). An example of how this presents to the user is as follows: |
|
I'd love to know whether @adriankumpf is interested in an external contribution for this. In an attempt to iron out all of the payload contents (there's a fair bit of |
|
Any update on this? A native solution would be great. |
|
i know its not mqtt related but the truth is I have not figured out how to send a DM on GitHub I was wondering what the level of difficulty would likely be in updating the amcrest integration so that it can function in GUI instead of being a legacy integration and if anybody's actually working on that already cuz I'm kind of thinking about learning how to do it myself I'm really really tired of ymal config and I have about 30 cameras that I use with home assistant. I a very aware of the fact that it would be a monumental undertaking for someone at my skill level and much harder than continuing to use the legacy integration but i want it... |
|
Now implemented: https://github.com/teslamate-org/teslamate/releases#release-v4.1.0 |


Uh oh!
There was an error while loading. Please reload this page.
One feature that Home Assistant exposes is the ability to use discovery to find sensors that are published via MQTT. Using MQTT discovery means that users would not need to define all of the sensors manually in the
sensors.yamlfile, and furthermore all of the sensors would be associated with the same Device in Home Assistant. All that is needed for autodiscovery is to publish messages like<prefix>/sensor/<nodeid>/<objectid>/configthat contains the data that would otherwise be present in the yaml config files. These could be sent as retained messages at start-up. One possible way to configure this would be to set a configuration variableHOME_ASSISTANT_PREFIXthat would configure the autodiscovery prefix to use.I am not too familiar with Elixir or where to look to add this sort of functionality, but would be happy to help figure out the right format for the messages.
All reactions