Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A Home Assistant integration to receive live data sent from the LeafSpy app

License

NotificationsYou must be signed in to change notification settings

jesserockz/ha-leafspy

Repository files navigation

GitHub ReleaseGitHub ActivityLicense

hacsProject Maintenance

This Home Assistant component enables you to get information from your Nissan Leaf car into Home Assistant by integrating with the LeafSpyAndroid oriOS apps.

Plug a Bluetooth OBD2 adapter (likethis one) into your Nissan Leaf. Open up LeafSpy and pair your phone with the adapter. It will then read information from your car. This integration will allow your phone to submit that info to Home Assistant.

Installation and configuration

  1. Install HACS.
  2. Add this to HACS as acustom repository by pressing this button and pressing "Download" in the bottom right.

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

  1. Restart Home Assistant
  2. Add the Leaf Spy integration by pressing this button.

Open your Home Assistant instance and start setting up a new integration.

  1. Configure your LeafSpy app settings using the information below, which will also be displayed on screen. If you don't have the app in front of you, copy down the password. The generated password will only be shown this once; if you don't copy it down, you'll have to uninstall the integration, restart, and reinstall. Open the LeafSpy app, go toMenu ->Settings.
  • In theUnits section:
    • Choose°C
    • Convert Outside Temperature:On
    • CAN Odometer in Miles:On (if you see the option and if your car odometer displays in miles)
  • In theServer section:
    • Enable:On
    • Send Interval: Whatever frequency you prefer
    • Server:A
    • A: Enable:On
    • PW:<Generated and displayed during setup>
    • Http:// orHttps://: Depends on your Home Assistant installation
    • URL:<Displayed during setup>
      • (Do not include the http or https prefix in the URL field.)

Entities

SeeLeafSpy manual for more details on the data that the app sends.

Device tracker

Entity IDNote
device_tracker.leafTracks latitude, longitude, GPS accuracy, and battery level

Binary sensor

Entity ID
binary_sensor.leaf_power

Sensors

Entity IDUnit reported by LeafSpyNote
sensor.leaf_ambient_temperature°C (You must set this in the LeafSpy app; see instructions above.)Unit adjustable in HA UI.
sensor.leaf_battery_capacityAh
sensor.leaf_battery_conductance%Referred to as Hx in the LeafSpy manual.
sensor.leaf_battery_currentA
sensor.leaf_battery_health%
sensor.leaf_battery_state_of_charge%
sensor.leaf_battery_stat_of_charge_gidsGids
sensor.leaf_battery_temperature°C (You must set this in the LeafSpy app; see instructions above.)Unit adjustable in HA UI.
sensor.leaf_battery_voltageV
sensor.leaf_charge_mode---Reports "Not charging" or "Level 1/2/3 charging."
sensor.leaf_charge_powerWNot very accurate. For example, when charging via level 2 charging, it just guesses 6,000 W.
sensor.leaf_elevationmUnit adjustable in HA UI
sensor.leaf_front_wiper_status---To get this information you may need to make a custom screen in LeafSpy to read wiper status.
sensor.leaf_motor_speedRPM
sensor.leaf_odometerkm (You must indicate in LeafSpy if your displayed car odometer is in mi; see instructions above.)Unit later adjustable in HA UI.
sensor.leaf_phone_battery%
sensor.leaf_plug_status---Reports "Not plugged", "Partial Plugged", or "Plugged."
sensor.leaf_sequence_number---A number that increments with each report from LeafSpy.
sensor.leaf_speedkm/hUnit adjustable in HA UI.
sensor.leaf_trip_number---Tracks total number of trips taken.
sensor.leaf_vin---Car unique identifier.

[8]ページ先頭

©2009-2025 Movatter.jp