Component to integrate with leafspy.
This component will set up the following platforms.
Platform | Description |
---|---|
device_tracker |
Track a Nissan Leaf using the Leaf Spy app. Data about the vehicle sent from Leaf Spy will be viewable under Attributes |
configuration.yaml
).custom_components
directory (folder) there, you need to create it.custom_components
directory (folder) create a new folder called leafspy
.custom_components/leafspy/
directory (folder) in this repository.Using your HA configuration directory (folder) as a starting point you should now also have this:
custom_components/leafspy/translations/en.json
custom_components/leafspy/__init__.py
custom_components/leafspy/config_flow.py
custom_components/leafspy/const.py
custom_components/leafspy/device_tracker.py
custom_components/leafspy/manifest.json
custom_components/leafspy/strings.json
Open the Leaf Spy app, go to Menu
-> Settings
and scroll down to Server
.
Change the following settings:
Enable
: YesSend Interval
can be whatever you prefer.ID
: <Car Name>
PW
: secret generated when the integration was installedHttp
or Https
depending on the access to your Home Assistant install.URL
: webhook url generated when the integration was installed
If you want to contribute to this please read the Contribution guidelines