Hello All.
I managed to setup Solarman via API, is working but still is using the cloud, I am not a big fan of cloud services.
I found a way to obtain data from the logger via a curl command:
curl -s -u admin:admin http://10.0.0.70/status.html | grep -E "\webdata_now_p(\s|$)" | cut -d'"' -f 2
And if you want to get all the data from the logger here are the variables you need to grep:
</script>\r\n<script type="text/javascript">\r\
nvar webdata_sn = "I0120C007166";\r\
nvar webdata_msvn = "V2.41.76";\r\
nvar webdata_ssvn = "V2.41.76";\r\
nvar webdata_pv_type = "";\r\
nvar webdata_rate_p = "";\r\
nvar webdata_now_p = "1175";\r\
nvar webdata_today_e = "9.92";\r\
nvar webdata_total_e = "108.3";\r\
nvar webdata_alarm = "";\r\
nvar webdata_utime = "0";\r\
nvar cover_mid = "1753292631";\r\
nvar cover_ver = "LSW3_14_8401_1.17";\r\
nvar cover_wmode = "APSTA";\r\
nvar cover_ap_ssid = "AP_1753292631";\r\
nvar cover_ap_ip = "10.10.100.254";\r\
nvar cover_ap_mac = "30:EA:E7:36:5F:0C";\r\
nvar cover_sta_ssid = "Home";\r\
nvar cover_sta_rssi = "100%";\r\
nvar cover_sta_ip = "10.0.0.70";\r\
nvar cover_sta_mac = "34:EA:E7:36:5F:0C";\r\
nvar status_a = "1";\r\
nvar status_b = "0";\r\
nvar status_c = "0";\r\n\r\
Is any way to create a sensor using curl and add this data to HA.