Closed macflyhub closed 2 months ago
The README lists all supported entities. The actual entities that are exposed are dependant on the 'features' that the API says your car supports. Basically if you can do it in the app, you should be able to do it through the integration.
If you enable debug logging then restart home assistant, you'll see a list of features in the log.
For example with my Leaf (UK) I see:
2024-05-01 14:21:02.627 DEBUG (MainThread) [custom_components.nissan_connect] Finding vehicles
2024-05-01 14:21:03.472 DEBUG (SyncWorker_9) [custom_components.nissan_connect.kamereon] Active features: [<Feature.MY_CAR_FINDER: '12'>, <Feature.MIL_ON_NOTIFICATION: '15'>, <Feature.VEHICLE_HEALTH_REPORT: '18'>, <Feature.APP_DOOR_LOCKING: '27'>, <Feature.FLEET_ASSET_INFORMATION: '29'>, <Feature.PAY_AS_YOU_DRIVE: '34'>, <Feature.APP_BASED_NAVIGATION: '35'>, <Feature.DESTINATION_SEND_TO_CAR: '37'>, <Feature.GOOGLE_PLACES_SEARCH: '40'>, <Feature.PREMIUM_TRAFFIC: '43'>, <Feature.MOBILE_INFORMATION: '74'>, <Feature.PERSONAL_DATA_SYNC: '80'>, <Feature.THEFT_BURGLAR_NOTIFICATION_APP: '87'>, <Feature.HORN_AND_LIGHTS: '97'>, <Feature.CURFEW_ALERT: '98'>, <Feature.VEHICLE_SOFTWARE_UPDATES: '107'>, <Feature.VEHICLE_STATUS_CHECK: '202'>, <Feature.NAVIGATION_FACTORY_RESET: '208'>, <Feature.VEHICLE_WIFI: '213'>, <Feature.NAVIGATION_MAP_UPDATES: '217'>, <Feature.LAST_MILE_NAVIGATION: '227'>, <Feature.GOOGLE_STREET_VIEW: '229'>, <Feature.GOOGLE_SATELITE_VIEW: '230'>, <Feature.DYNAMIC_EV_ICE_RANGE: '232'>, <Feature.ECO_ROUTE_CALCULATION: '233'>, <Feature.DRIVING_JOURNEY_HISTORY: '235'>, <Feature.ONLINE_PARKING_INFO: '243'>, <Feature.ONLINE_RESTAURANT_INFO: '244'>, <Feature.ONLINE_SPEED_RESTRICTION_INFO: '245'>, <Feature.WEATHER_INFO: '246'>, <Feature.VEHICLE_ACCESS_TO_MUSIC: '249'>, <Feature.VEHICLE_ACCESS_TO_CONTACTS: '262'>, <Feature.ZONE_ALERT: '281'>, <Feature.SPEEDING_ALERT: '282'>, <Feature.CHARGING_START: '299'>, <Feature.CLIMATE_ON_OFF_NOTIFICATION: '311'>, <Feature.CHARGING_SPOT_SEARCH: '312'>, <Feature.PLUG_IN_REMINDER: '314'>, <Feature.CHARGING_STOP_NOTIFICATION: '317'>, <Feature.BATTERY_STATUS: '319'>, <Feature.BATTERY_HEATING_NOTIFICATION: '320'>, <Feature.VEHICLE_STATE_OF_CHARGE_PERCENT: '322'>, <Feature.DRIVING_ANALYSIS: '340'>, <Feature.CO2_GAS_SAVINGS: '341'>, <Feature.ELECTRICITY_FEE_CALCULATION: '342'>, <Feature.CHARGING_CONSUMPTION_HISTORY: '344'>, <Feature.BATTERY_MONITORING: '345'>, <Feature.BATTERY_DATA: '347'>, <Feature.CHARGING_SPOT_UPDATES: '354'>, <Feature.RECHARGEABLE_AREA: '358'>, <Feature.NO_CHARGING_SPOT_INFO: '359'>, <Feature.EV_RANGE: '360'>, <Feature.CLIMATE_ON_OFF: '366'>, <Feature.LOCK_STATUS_CHECK: '2021'>, <Feature.TEMPERATURE: '2042'>, <Feature.VEHICLE_DATA: '2121'>, <Feature.VEHICLE_DATA_2: '2122'>]
If the integration doesn't recognise a feature (the API just returns a list of numbers), you'll also see messages like
Unknown feature x
.
Its possible that your 'free' access to certain features has expired, or potentially this is a continuation of #10 - the Ariya seems to use a different set of API endpoints for certain things.
Firstly - thank you for the reply and the code! Secondly - Like magic some more entities have shown up an hour later. So now there are 19! I didn't pay their ransom for the app when it went from free to paywall. So when you mentioned that - I was thinking 2 entities is the max ill ever get unless I pay up. So just for reference here are the 19 that are showing up now..
Out of interest, are they all working as expected? You get a nice overview if you go into the 'device' view from Settings > Devices and Services.
Sure - this is it! The climate thing doesn't seem to pass over to the car if you turn it on/off. And the rest is as you see it. The home/away also does work and so does the charging. Happy to do any testing you ever need!
Glad its working now - some of the unknown entities are a known issue, and it sounds like the climate control thing could either be related or an entitelement/subscription needed. Let me know if you come across any other bugs :)
With the EU/UK Ariya - I only get "Charging" and "Plugged In" as the only 2 entities.
Should there be more?
I really just want battery % ideally at minimum.
A bonus would be Climate, Temp and Tracker.