Amazon Echo integration

My Nissan Leaf Forum

Help Support My Nissan Leaf Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

palmermd

Well-known member
Joined
Apr 23, 2010
Messages
2,653
Location
Hermosa Beach, CA
Does anyone know how to do this?

I'd love to have this for Nissan Connect. Just ask Echo to turn on the heat/AC a few minutes before we leave. The other thing that would be nice would be to charge to 100%. We have charge timers set so that it always charges to 80%, and to get 100% we have to go out and hit the timer override. It would be nice to just say "Alexa, charge the leaf to 100%".

[youtube]http://www.youtube.com/watch?v=FiPiPlm9Pa8[/youtube]
 
Nissan Connect/Carwings lets you charge to 100% with the timer set to 80% - I do it all the time. Just click on "Start Charging" with the car plugged in.
 
LeftieBiker said:
Nissan Connect/Carwings lets you charge to 100% with the timer set to 80% - I do it all the time. Just click on "Start Charging" with the car plugged in.

I realize that but the app is a pain in the ***. It's actually faster to walk into the garage and push the button. I'm curious if this could be integrated with Echo so that all I have to do is ask Alexa and she can deal with all the lag/delays in Connect/Carwings.
 
It'a all about the integration. I hove one running every device in my home via a custom control4 driver.
 
Any luck with this guys? This is super cool. I wonder if commands like, "Alexa, how much charge my leaf has?" will be of help too.
 
Nissan would have to open up the NissanConnect API to third parties in order for this to work. Then someone could make a IFTTT integration that tied into that.

Maybe the developer of Leaf Manager could put something together? https://play.google.com/store/apps/details?id=no.darkspawns.leafmanager
 
See: Dashbot.

https://www.kickstarter.com/projects/1598272670/dashbot-a-49-robot-for-your-dashboard?ref=user_menu

I believe this is what you really want. And it has an ODB2 interface. I've got one on order.
 
I wrote an Alexa skill to integrate the Nissan Carwings API to Alexa. It can do things like answer the following questions

Q: Alexa, ask <my skill> if my car is charged
A: your car is charged to 50%... A complete charge will take 2 hours 30 minutes; do you want me to start charging?

Q: Alexa, ask <my skill> to turn on (or off) the HVAC
A: I'll attempt to turn on (or off) the HVAC

I haven't registered the skill with Amazon, but I certainly could if there's interest, though I don't know the legality of using the Nissan Carwings API. I'm aware there are other home automation programs out there utilizing it. But just as likely Amazon doesn't approve it or it gets shut down.

Due to the asynchronous nature of the carwings communication and the fact that developers can't call back to Alexa to notify users when an event has occurred (timers and alarms are special and only offered through Amazon) certain things that would be really userful/logical aren't currently possible with Alexa as a 3rd party developer. E.g. you can't ask Alexa to tell you when your car is done charging (or charged to a certain degree). Or more annoyingly if you just want to check your car's charge / hvac status, the exchange will be more like:

Q: Alexa, ask <my skill> do I need to charge my car?
A: My info in not up to date. Let me check, then ask me in a few minutes
<-- initiate process to get updates from car, which takes 30-60 seconds -->
< user must wait 30 to 60 seconds >
Q: Alexa, ask <my skill> do I need to charge my car?
A: your car is charged to 50%... A complete charge will take 2 hours 30 minutes; do you want me to start charging?

Right now I have status, HVAC on/off, charge on/off implemented. I haven't explored the API too thoroughly to see if there is other stuff that could be made available through Alexa.

Cheers,
John
 
Sorry, by Carwings I meant Nissan Connect, or whatever the current incarnation of their API is called. I built it for my dad's car as a Christmas present. I don't actually own a LEAF so I'm a little unfamiliar with the terminology.
 
Jhovell do you have that code on github or somewhere? I was planning to do this and have done a terminal app with carwings but, as a software engineer, would love to not have to do anything if I can!
 
@mayo @mdhawley

Great, I'll see if I can carve out some time tonight. It's not on Github yet; I'd need to do some code clean-up first. It's using AWS Lambda as a backend so you'd need to have an AWS account to host it yourself.

Cheers,
John
 
OMG!

Is there anyone out there left that is willing to do things for themselves??

We are going to end up like the fat whales on the movie "Wall-e" on the ship "Axiom"........
 
By way of update, I was cleaning things up last night and couldn't get the car to connect. Realize my dad never did the 3G upgrade so his car is toast for Nissan Connect unless he pays $199 for a service at the Nissan dealership, and the car's lease is ending soon so he's unlikely to want to do it. As a result, I don't have an effective way to test anymore.

http://www.greencarreports.com/news/1107682_nissan-offers-2g-leaf-owners-a-199-3g-upgrade-with-just-24-days-left

Nevertheless, I can clean up the code & maybe with an alpha tester make sure it's still working... or open source it and someone else can give it a try.

As an aside, I build my implementation using the Alexa Custom Skill API. Though it occurred to me last night I maybe could have used the Smart Home API instead (as it comes with built in directives for on/off command requests like "Alexa turn on the X in Y") but not sure it would be a perfect fit as there wouldn't be a way to ask questions like how charged is the battery or add custom speech.

https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/understanding-the-different-types-of-skills

Anyway, sorry for the delay, I should definitely have a lot more free time this weekend so other than the lack of a car that can connect to Nissan Connect right now should have no problem getting this set up for folks that are interested.
 
powersurge said:
OMG!

Is there anyone out there left that is willing to do things for themselves??

We are going to end up like the fat whales on the movie "Wall-e" on the ship "Axiom"........

Right on, Powersurge! I agree with you 100%
 
Back
Top