You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m able to reproduce the issue by disabling the SOC feed too. The issue seems to be due to
if (config.app.battery_soc.value)
evaluating to true when battery_soc has been disabled in the settings page. For me this then disabled access to the settings view when subsequently trying to access the app.
I managed to get access back to the settings view by modifying line 381 in mysolarpvbattery.php to set the optional property to false instead of true.
“battery_soc”:{“optional”:false, “type”:“feed”, “autoname”:“battery_soc”, “engine”:“5”, “description”:“Battery state of charge %”},
My Solar PV Battery - Undefined object error when SOC field disabled
Reported by Neil Oakley
EmonCMS Error
Message: TypeError: undefined is not an object (evaluating ‘feeds[config.app.battery_soc.value].value’)
Route: app/view?name=My+Solar+Battery2
Line: 722
Column: 71
The text was updated successfully, but these errors were encountered: