#Solar Forecast / Solarman Battery state conditions to control Ewelink switch(es)

1 messages · Page 1 of 1 (latest)

regal tide
#

Hi all. I have a Deye / Solarman PV/Battery system, and some ewelink controlled smart switches. I want to combine the battery State-of-Charge from Solarman, and the predicted PV output from my solar panels and the time of day to control one or more of these switches which run power heavy water pumps. I can't use the actual PV output because when the batteries are full the PV output = electricity used and NOT the amount the PV panels could be producing.

I know that HA has an integration Forecast.Solar which can preidtc my PV output. I have an API key for Solarman which can get the battery State-of-Charge, and EWElink has an API which can be called to query and control the switches. So the building blocks exist.

I have a Linux server with limited memory which could run HA as a Docker instance, but that won't run HA plugins (like the EWElink plugin). There are not currently integrations with Solarman and EWElink that will run on HA Container - but I have Python skills and given an existing integration to use as a starting point I can probably create integrations for both of these and contribute to the HA ecosystem.

So, here are my questions:

  1. Are there any existing integrations for EWELink and Solarman which are not in the online integrations database?

  2. If not, are there any decent integration sources that I can tweak to make Solarman / Ewelink integrations?

  3. Or would I be better off just writing a CRON initiated batch script to query the Solar forecast and Solarman APIs, decide whether to turn the switch(es) on or off and then call the EWElink API to make any switching actions?

deft arch
#

Did you check for HACS integrations?

#

I would advise against controlling a device based on multiple cloud APIs

regal tide
#

Yes - I worked out late last night to install HACS and then I get both Ewelink and Solarman logger integrations.