We need this!

Started by openplanet, October 28, 2023, 04:02:19 PM

Previous topic - Next topic

openplanet

Has anyone written a simple program whose only purpose is to query a number of Classics and return the TOTAL kWh? If you have numerous arrays and Classics it can be cumbersome to connect to each with LocalApp and then tally up the kWh. I'm not a programmer, but...could it be that hard?
_______________________________________
We are star dust [on a] pale blue dot.
[And yes,] there is grandeur in this view of life.
Joni Mitchell, Carl Sagan, Charles Darwin

https://www.youtube.com/watch?v=cIANk7zQ05w

boB

#1
All it takes is a modbus application talking to those Classics.

The app could read the watt-hours produced that day or just read the watts/kWatts and calculate the combined energy on its own.  Probably best to add up the kW-Hours from the different Classics.

The kW-Hours in each Classic accumulates until midnight, Classic time.

There is a Classic modbus register definition on our web site.

https://www.midnitesolar.com/firmware/classic_register_map_Rev-C5-December-8-2013.pdf

Yeah, it's kind of old but still relevant for what you are wanting to do and even more.

My favorite way to set up communications with multiple Classics is to plug the Ethernet into the local router or Ethernet switch.

There may be others chiming in on this subject because some, I think, have done what you are talking about.  Lettuce know if you have any luck with this.

boB

K7IQ 🌛  He/She/Me

Wizbandit

The COMBOX will do this. I just started reworking code to add Classics to the CANBUS charge controllers (test code was unstable).  This shot is some of my Hawkes bays and Barcelona. Classics are not in yet, maybe tomorrow.  I'm working code that can tally the instantaneous AMPS & WATTS, the test code showed all my charge controllers added up at 328 amps DC and around 20,000 watts peak.  tally for Kwh was a bit over 100Kwh per day peak with a 30 day graph.

ClassicCrazy

Quote from: openplanet on October 28, 2023, 04:02:19 PMHas anyone written a simple program whose only purpose is to query a number of Classics and return the TOTAL kWh? If you have numerous arrays and Classics it can be cumbersome to connect to each with LocalApp and then tally up the kWh. I'm not a programmer, but...could it be that hard?

 Grahams Classic Monitoring app does this. It is on the Energy tab and you can select System tab and it adds up the Classics , you also have option there to just select the controller you are looking at too by selecting Controller.
It is an Android app which you can get on the Play Store .https://play.google.com/store/apps/details?id=ca.farrelltonsolar.classic&hl=en_US&gl=US
It connects to the Classics via IP so no connections needed. Just keep in mind that you can have only one Ip connection to Classic at a time so you have to close Midnite monitoring app to get the Android app to connect ( and vice versa).
https://github.com/ClassicDIY/ClassicMonitor/wiki
Just in case you don't have an android phone or tablet - you can usually find one free from friends, electronic recycle bins, or a used one cheap on ebay.
Larry

system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal 24v pack , Outback 3524 inverter
 5s 135w Kyocero , 3s3p 270w Kyocera   Classic 150 ,8s2p  Kyocera 225w to Hawkes Bay Jakiper 48v 20kwh  ,Gobel 16 kwh  lifepo4 Outback VFX 3648  8s2p 380w Rec pv EG4 6000XP

SteveK

#4
I use Home Assistant for such things. Read the Modbus and tally, display, store and graph. Simple things like a charge deficit gauge or an "It's OK to do a load of laundry today, Honey!" indicator for my wife are pretty straight forward.

My wife just does a dry erase board "To Do" list for me.... :D

Hoping the Commbox ties things together better like completely closing the loop with the Classic, batteries and XW Pro. If not it'll have to continue to be an evolving kludge using Home Assistant.

boB

Quote from: SteveK on October 29, 2023, 01:56:58 AMI use Home Assistant for such things. Read the Modbus and tally, display, store and graph. Simple things like a charge deficit gauge or an "It's OK to do a load of laundry today, Honey!" indicator for my wife are pretty straight forward.



You mean you use the Google Home with the screen ?

Are you pointing it to a web site and your web site is displaying on its screen ?

Tell me more....

I thought an Alexa app might be nice but GHome might be way better because of the graphics.

boB
K7IQ 🌛  He/She/Me

ClassicCrazy

#6
Quote from: boB on October 29, 2023, 08:14:44 PM
Quote from: SteveK on October 29, 2023, 01:56:58 AMI use Home Assistant for such things. Read the Modbus and tally, display, store and graph. Simple things like a charge deficit gauge or an "It's OK to do a load of laundry today, Honey!" indicator for my wife are pretty straight forward.



You mean you use the Google Home with the screen ?

Are you pointing it to a web site and your web site is displaying on its screen ?

Tell me more....

I thought an Alexa app might be nice but GHome might be way better because of the graphics.

boB
Bob - I think he is talking about Home Assistant
"Open source home automation that puts local control and privacy first......Works with over 1000 brands
Home Assistant integrates with over a thousand different devices and services.
Once started, Home Assistant will automatically scan your network for known devices and allow you to easily set them up. "
https://www.home-assistant.io/
Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal 24v pack , Outback 3524 inverter
 5s 135w Kyocero , 3s3p 270w Kyocera   Classic 150 ,8s2p  Kyocera 225w to Hawkes Bay Jakiper 48v 20kwh  ,Gobel 16 kwh  lifepo4 Outback VFX 3648  8s2p 380w Rec pv EG4 6000XP

boB

#7
So, would Home Assistant allow devices in the house to transcend the home's internet to the outside world too ?

I went to the site and saw an example local link.   http://homeassistant.local:8123

I was thinking that maybe this product might allow devices that are normally not port forward able to get out with ISPs like T-Mobile and Star-Link.

This might just be a pretty cool product.  Will have to learn more !

boB

PS
Just saw this.  How much is the cloud service ?

* Home Assistant Cloud subscription is recommended for seamless integration with Google Home and Amazon Alexa voice assistants.
K7IQ 🌛  He/She/Me

SteveK

#8
Yes, the cloud service does allow internet access through those types of connections. I have one instance where we use a Pepwave dual cellular modem with failover for our RV using T-Mobile and Verizon. The cloud service traverses those flawlessly. I have several instances of Home Assistant from remote monitoring and control, commercial office automation, to our home.

They use AWS so if AWS goes down the web service goes down but it's not often. The cloud service just went up from $5 to $6.99 per month.

The cloud service is the only compensation Home Assistant developers get. Home Assistant is otherwise free and open source. It's quite a bargain. Seamless integration with Graphana, Node-Red, ESPHome, Tasmota, and a s-l-e-w of other integrations and add-ons.

Home Assistant is quite versatile and only limited by one's imagination. It also gives you a full blown mobile app with full control and development options too directly on your mobile device.....no limitations. You only need to register for a free domain name at DuckDNS or similar.