hoylabs / OpenDTU-OnBattery

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters, VE.Direct devices, battery management systems, and related peripherals
GNU General Public License v2.0
301 stars 63 forks source link

[Request] Generic Device Control via HTTP requests i.e. Shelly Plugs by configureable trigger conditions #1310

Open Andrix82 opened 4 days ago

Andrix82 commented 4 days ago

Is your feature request related to a problem? Please describe.

Controlling devices like shelly plugs manually while monitoring openDTUonBattery data is getting exhausting :)

Describe the solution you'd like

OpenDTUonBattery has many informations/intelligence directly avaiblable (Hoymiles, Smart Meter, MPPT, Huawei, Battery ) ( and now plenty ressources for new features. I feel a very usefull extension would be the possibility to trigger generic http requets based on configureable trigger conditions to control all devices which support http requests like i.e. Shelly Plugs ( http://192.168.X.X/relay/0?turn=on/off )

Feature could look like that:

Define several http requests by IP adress ( like http://192.168.X.X/relay/0?turn=on )

Define for each of them trigger conditions: Combination of at least 2 maybe 3 trigger conditions with && (AND) OR ||(OR) logic

Trigger Conditions can be: Smart Meter Value MPPT actual power Hoymiles actual power Huawei actual power Battery Level ( both SoC or Voltage )

=> larger or smaller threshold

and additional a debounce paramter for each (combined) trigger

With such a feature very powerful smart home control could be done for all devices supporting common http requests!

Someone interested or like to take up ?

I could also start or support but would need following help/infos:

-Reference to an Issue where a new feature "Tab" ( Level like DPL, Huawei... ) has been added to have code changes (mainly UI and scheduler) as reference -Infos about the scheduling details (how often are tasks on those level executed ) to implement a debouncing counter. -Triggering http request I would take over from Smart Meter http implementation... ?!

Describe alternatives you've considered

No response

Additional context

No response