basking-in-the-sun2000 / solar-logger

A datalogger for a solar inverter. Stores data in influxdb and displays it in grafana. Has load diverting capability, to use the inverter's excess power
GNU General Public License v3.0
99 stars 32 forks source link

Hassio - Home Assitant integration #11

Closed johanvh83 closed 3 years ago

johanvh83 commented 3 years ago

Hi, is this an integration into Hassio (Home Assitant)? I plan to buy/install a solar installation with this specific converter and an additonal battery, so basically at least the solar panel logging should work.

basking-in-the-sun2000 commented 3 years ago

Never looked into integrating it with other systems. Basically I thought of it as a self contained unit

Also don't have a battery, so didn't add that. We could work on it to include battery info

basking-in-the-sun2000 commented 3 years ago

If you could provide some feedback could take a look, don't want to add the battery info since I have no way to test it.

jhoms commented 3 years ago

I have an LG Battery attached and I managed to find 2 addresses that work:

    'S_C_n_D':    {'addr': '37001', 'registers': 2,  'name': 'Storage charge and discharge',     'scale': 1,    'type': 'I32',  'units': 'W'   , 'use': 'data',  'method': 'hold'},  
    'S_SOC':      {'addr': '37004', 'registers': 1,  'name': 'Storage_State Of Charge',          'scale': 10,   'type': 'U16',  'units': '%'   , 'use': 'data' , 'method': 'hold'},  
basking-in-the-sun2000 commented 3 years ago

Thanks. Will be adding a battery related section to the registers. Would guess there are a bit more, but maybe one day :)

My guess is that there are some at 37002-3, 37006-14

Will try to push the changes soon

if (config.has_ESU) : _register_map.update({ 'ESU_status': {'addr': '37000', 'registers': 1, 'name': 'ESU status', 'scale': 1, 'type': 'U16', 'units': '' , 'use': 'status', 'method': 'hold'},
'ESU_power': {'addr': '37001', 'registers': 2, 'name': 'ESU power', 'scale': 1, 'type': 'I32', 'units': 'W' , 'use': 'data', 'method': 'hold'},
'ESU_soc': {'addr': '37004', 'registers': 2, 'name': 'ESU SOC', 'scale': 10, 'type': 'U16', 'units': '%' , 'use': 'data', 'method': 'hold'}, 'ESU_charge': {'addr': '37015', 'registers': 2, 'name': 'ESU Current Charge', 'scale': 100, 'type': 'U32', 'units': 'kWh' , 'use': 'data', 'method': 'hold'}, 'ESU_discharge':{'addr': '37017','registers': 2, 'name': 'ESU Current Discharge', 'scale': 100, 'type': 'U32', 'units': 'kWh' , 'use': 'data', 'method': 'hold'}})

On Jun 27, 2021, at 01:52, jhoms @.***> wrote:

I have an LG Battery attached and I managed to find 2 addresses that work:

'S_C_n_D':    {'addr': '37001', 'registers': 2,  'name': 'Storage charge and discharge',     'scale': 1,    'type': 'I32',  'units': 'W'   , 'use': 'data',  'method': 'hold'},  
'S_SOC':      {'addr': '37004', 'registers': 1,  'name': 'Storage_State Of Charge',          'scale': 10,   'type': 'U16',  'units': '%'   , 'use': 'data' , 'method': 'hold'},  

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/basking-in-the-sun2000/solar-logger/issues/11#issuecomment-869112309, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOV7SP2YQ75XRQSWUJPBE5DTU3DDVANCNFSM4WOPKWKQ.be

basking-in-the-sun2000 commented 3 years ago

should be included in the current version (https://github.com/basking-in-the-sun2000/solar-logger/commit/5af778af5cf01908f954668fb8213202f7b75f40)