EpEver Solar Controller into Domoticz
Posted: Monday 12 October 2020 18:16
epever.tracert.to.domoticz.sh
Tested on : EpEver Tracer 3210AN 30A MPPT Solar Controller
Date : 12-10-2020
Version : 00,00.00,000.2
Requirements : apt install bc sed
Created by ILoveIOT 2020
Updated by ILoveIOT & Micha123 2022
- Added battery temp
- Added SOC value
- Correcting the actual voltage on the battery side
- Changed some small things in this script
- Added Real Battery Curent (Charging and Discharging) it wile be calculated from PVPOWER - LOADPOWER
- Fixed Batterycharging Power, now its calculating PVARRAYPOWER - LOADPOWER (bevore it shows the same as PVARRAYPOWER)
- Add a check if Values in $OUTPUTFILE are present, if there are no values then ihe script wil stop and dont send ZERO value to domoticz
This script will execute the /root/scripts/epevertracer/epever.tracer.php file put the output to a file,
get the value's from the output file, show them on console if needed, and send them to Domoticz, this is super simple, easy to change.
Many thanks to Toggio https://github.com/toggio/PhpEpsolarTracer
For console use : /root/scripts/epevertracer/epever.tracert.to.domoticz.sh
For crontab use : /root/scripts/epevertracer/epever.tracert.to.domoticz.sh >> /dev/null 2>&1
For all the info : php /root/scripts/epevertracer/example_cli.php
1. Change the serial port /root/scripts/epevertracer/epever.tracer.php line 26 ('/dev/ttyUSB1')
2. Change the Domoticz IP & Port (see below)
3. Add/Change the acording Domoticz IDX's (see below)
4. Optional : Change the working directory, where you wanna place the files
5. Optional : If you need more info from the controller compare epever.tracer.php vs example_cli.php
6. Optional : Maybe make 2 cronjobs, with no sunhours just poll once a hour, with sun every min.
Just make a normal network cable for this controller, I believe blue and green between a ch940 rs485 to usb converter or buy the 10$ org cable, org cable had problems on linux, buy cheap ones, ch940, and maybe with ground, me in testing mode.
Tested on : EpEver Tracer 3210AN 30A MPPT Solar Controller
Date : 12-10-2020
Version : 00,00.00,000.2
Requirements : apt install bc sed
Created by ILoveIOT 2020
Updated by ILoveIOT & Micha123 2022
- Added battery temp
- Added SOC value
- Correcting the actual voltage on the battery side
- Changed some small things in this script
- Added Real Battery Curent (Charging and Discharging) it wile be calculated from PVPOWER - LOADPOWER
- Fixed Batterycharging Power, now its calculating PVARRAYPOWER - LOADPOWER (bevore it shows the same as PVARRAYPOWER)
- Add a check if Values in $OUTPUTFILE are present, if there are no values then ihe script wil stop and dont send ZERO value to domoticz
This script will execute the /root/scripts/epevertracer/epever.tracer.php file put the output to a file,
get the value's from the output file, show them on console if needed, and send them to Domoticz, this is super simple, easy to change.
Many thanks to Toggio https://github.com/toggio/PhpEpsolarTracer
For console use : /root/scripts/epevertracer/epever.tracert.to.domoticz.sh
For crontab use : /root/scripts/epevertracer/epever.tracert.to.domoticz.sh >> /dev/null 2>&1
For all the info : php /root/scripts/epevertracer/example_cli.php
1. Change the serial port /root/scripts/epevertracer/epever.tracer.php line 26 ('/dev/ttyUSB1')
2. Change the Domoticz IP & Port (see below)
3. Add/Change the acording Domoticz IDX's (see below)
4. Optional : Change the working directory, where you wanna place the files
5. Optional : If you need more info from the controller compare epever.tracer.php vs example_cli.php
6. Optional : Maybe make 2 cronjobs, with no sunhours just poll once a hour, with sun every min.
Just make a normal network cable for this controller, I believe blue and green between a ch940 rs485 to usb converter or buy the 10$ org cable, org cable had problems on linux, buy cheap ones, ch940, and maybe with ground, me in testing mode.