A Forum run by Enthusiasts of MidNite Solar

General Category => General Discussion => Topic started by: ebenbayer on January 22, 2019, 12:26:44 PM

Title: Approach to reading SOC to third party device to control I/O in smart home?
Post by: ebenbayer on January 22, 2019, 12:26:44 PM
Hi,

looking for suggestions on best way to take SOC reading and interface it to my smart home (currently Smartthings via Webcore for logic handling).

Right now I'm using a z-wave I/o Device to get a "high" and "low" state (via AUX output on two separate classics) for rough diversion load handling (AC, Hot water heaters, etc) and turning off of devices.

What would be ideal is to read SOC directly from the unit to give me a bit more fidelity (and stop misfires when we get a shot of sun spiking voltage).

I'm assuming the answer is ModBus something something... any pointers on where to look or anyone do something similar?

Thank you

Eben
Title: Re: Approach to reading SOC to third party device to control I/O in smart home?
Post by: bee88man on January 22, 2019, 05:51:42 PM
Arduino in a PV Router can handle the diversion part...goggle is your friend.
Title: Re: Approach to reading SOC to third party device to control I/O in smart home?
Post by: ClassicCrazy on January 22, 2019, 06:25:55 PM
Look up the forum topic about Red Node and how to read the Classic with it . You can have Node Red do all kinds of stuff .

Larry
Title: Re: Approach to reading SOC to third party device to control I/O in smart home?
Post by: ebenbayer on January 22, 2019, 08:43:48 PM
Thanks ClassicCrazy-- thats exactly the direction I was looking for! My goal is dynamic addressing of a variety of loads (Diversion High, Diversion Low) based on SOC and that looks like pretty straightforward path.
Title: Re: Approach to reading SOC to third party device to control I/O in smart home?
Post by: ClassicCrazy on January 22, 2019, 09:01:46 PM
I guess  you didn't say if you are using the Classic or the Kid .
Here is what I wrote up for hooking up Classic for Red Node
http://midniteftp.com/forum/index.php?topic=4081.0

Larry
Title: Re: Approach to reading SOC to third party device to control I/O in smart home?
Post by: ebenbayer on January 23, 2019, 06:27:29 PM
Thanks Larry! Thats perfect. Nice work! Can't wait to put into action. I'm using the Classic (4 units total; 3 solar, 1 devoted to our hydro) as we are totally off grid. I do have a kid on the shelf I'm looking to deploy, likely on the hydro end of the system (which is .5 miles from the house)
Title: Re: Approach to reading SOC to third party device to control I/O in smart home?
Post by: ClassicCrazy on January 23, 2019, 07:34:45 PM
Quote from: ebenbayer on January 23, 2019, 06:27:29 PM
Thanks Larry! Thats perfect. Nice work! Can't wait to put into action. I'm using the Classic (4 units total; 3 solar, 1 devoted to our hydro) as we are totally off grid. I do have a kid on the shelf I'm looking to deploy, likely on the hydro end of the system (which is .5 miles from the house)
I noticed that Node Red is already installed in current Raspberry Pi  operating system. I have not tried it with a Pi yet - was using it on my Windows 10  computer. But a Pi would be a nice low power controller compared to computer if it is stable enough to run long time.

Please stop back on the Node Red post I made if you get any control things running and share your code for it  ( called flows in Node Red).  I am just a beginner at that and haven't put much more time into - I should get back at it one of these days.

Larry