Control OpenEVSE over ZigBee using Smartthings

463 views
Skip to first unread message

Ryan Press

unread,
Dec 14, 2015, 7:51:28 PM12/14/15
to OpenEVSE
Hi guys, I just built my kit and it's great.  Thanks to Chris and everyone for the OpenEVSE!

It doesn't seem like anyone else has implemented ZigBee control on OpenEVSE, so I put something together.

This can be controlled through the SmartThings hub or anything else for that matter if you write the interface for it.  I like ZigBee because it is a mesh network and is generally more reliable and longer range than WiFi.  I have a bunch of other ZigBee stuff like light bulbs, etc, in my home automation setup so all these devices act as nodes on the mesh network.

There are lots of CC2530 modules, any of them should work fine.  The module I am using is (almost) this one: http://www.goodluckbuy.com/cc2530-zigbee-sz2-wireless-transmission-board-transmit-receive-module-wsn.html  It has a power amplifier and onboard antenna, or optional U.FL antenna.  I added a 3.3V regulator, and a resistor for level shifting the RX into the CC2530.  The blue wires are for the programming interface.

I'm still finishing up the code, but anyone that wants a copy is free to have it when it's done.

Ryan




chris1howell .

unread,
Dec 14, 2015, 8:23:31 PM12/14/15
to OpenEVSE

Ryan, Looks Awesome! I may have to get a SmartThings hub just to play around.

The app interface looks really nice.

--
You received this message because you are subscribed to the Google Groups "OpenEVSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openevse+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan Press

unread,
Dec 15, 2015, 8:19:41 AM12/15/15
to open...@googlegroups.com
Thanks.  SmartThings is a bit buggy at the moment, but I'm hoping they can get it together.  It does have a nice interface and it's pretty easy to get something working quickly.

Ryan

lincomatic

unread,
Dec 15, 2015, 12:00:50 PM12/15/15
to open...@googlegroups.com

Very cool!

--

Ryan Press

unread,
Jan 1, 2016, 2:47:16 PM1/1/16
to OpenEVSE
Here's the source code; I've tested it out for a bit and it seems to work.  Included is a HEX file which can be burned using a $10 CC Debugger from eBay.

It's built with Z-Stack Home 1.2.2a, and the folder is placed in the Projects\zstack\HomeAutomation folder.  There are a couple of small changes to the EVSE firmware which I've submitted pull requests for.

One interesting automation solves the electrical problem I have with my clothes dryer.  The dryer and the EVSE share a circuit, and if the car is charging and the dryer is started it can overload the circuit, trip the breaker, etc.  I have it set up now so if the dryer is started while the EVSE is charging, it will disable the EVSE.  With SmartThings integration there are a lot of possibilities.

I'm sure I'll be improving on this more in the future but you guys can check it out.

Ryan

OpenEVSE.groovy
OpenEVSE_0.5.zip

Ryan Press

unread,
Feb 20, 2016, 10:02:13 AM2/20/16
to OpenEVSE

Behnam Shakibafar

unread,
Apr 12, 2016, 12:03:11 PM4/12/16
to OpenEVSE
Hi Ryan
You have done nice job, 
I'm trying same project want to connect a Wulian gateway, as I found problem is in Trust Center Key that is reconfigured on wulian devices and I don't have access to it. Have not you any problem in connecting the SmartThings hub? 

Thank you so much
Behnam

Ryan Press

unread,
Apr 12, 2016, 11:39:00 PM4/12/16
to open...@googlegroups.com

Thanks.  There is no problem with the SmartThings hub, it uses the standard "ZigBeeAlliance09" TC link key.  I'm not sure how you can find the Wulian key, maybe you can look inside the firmware file.

Ryan

Thai Pham

unread,
Jul 14, 2016, 11:39:33 PM7/14/16
to OpenEVSE
Hi Ryan,
can you share the setting in IAR to generate the hex file.
i try to regen your hex file from IAR and burnt in to my cc2530 but it didnt work. 
your original hex file work well
Thanks

Vào 22:02:13 UTC+7 Thứ Bảy, ngày 20 tháng 2 năm 2016, Ryan Press đã viết:

Ryan Press

unread,
Jul 18, 2016, 7:38:23 AM7/18/16
to open...@googlegroups.com

The settings for the project are on GitHub, it should be all you need.  But I thought of something that might be causing your problem.  I have updated the project file on GitHub, try it and let me know.

Ryan


--
Reply all
Reply to author
Forward
0 new messages