heinemannj / huawei_solar_hems

Huawei Solar Home Energy Management System (HEMS)
Apache License 2.0
14 stars 2 forks source link

Design issues: 'prediction_end_time' based on 'sun_elevation' to be replaced by 'sun_azimuth' #2

Open heinemannj opened 4 weeks ago

heinemannj commented 4 weeks ago

All sensors based on sun_elevation related to

needs to be replaced by calculations based on

heinemannj commented 3 weeks ago

Calculations based on sun_azimuth are also a path to a dead end.

A working solution seems to be the following calculations by the usage of sunrise, sunset and daylight:

image

image

image

heinemannj commented 3 weeks ago

I've introduced a script blueprint to setup related values for corresponding input_numbers:

image