Eco / PV Divert not working after upgrade to v4

Didn’t know what Demandshaper was but it seems it has my openevse unit in there so I’ve deleted it.

Hopefully sunny again tomorrow and I’ll try again.

Mmm that’s strange, the UI still shows ‘Eco’ mode switched on, while the unit is still reporting ev_divertmode_status=1 to emoncms.org.

According to the logged data eco mode was only enabled ev_divertmode_status=2 for a short time period around 3pm.

Could you copy and paste the JSON output of http://192.168.1.10/status and http://192.168.1.10/config ?

Deleting the openevse from Demandshaper removed my feeds - only realised just now so have restored them using the cog (which also put it back in demandshaper - but I’ve ensured the ‘off’ is set).

JSON below …

{"mode":"STA","wifi_client_connected":1,"eth_connected":0,"net_connected":1,"ipaddress":"192.168.1.10","emoncms_connected":1,"packets_sent":30702,"packets_success":30511,"mqtt_connected":1,"ohm_hour":"NotConnected","free_heap":159780,"comm_sent":1674291,"comm_success":1674266,"rapi_connected":1,"evse_connected":1,"amp":0,"voltage":239.47,"pilot":32,"wh":491674,"temp":260,"temp1":260,"temp2":false,"temp3":false,"temp4":false,"state":254,"vehicle":0,"colour":5,"manual_override":0,"freeram":159780,"divertmode":1,"srssi":-74,"elapsed":9151,"wattsec":6.167148e7,"watthour":491674,"gfcicount":0,"nogndcount":0,"stuckcount":0,"solar":0,"grid_ie":6,"charge_rate":6,"divert_update":9,"ota_update":0,"time":"2021-06-10T09:55:28Z","offset":"+0000"}
{"firmware":"7.1.3.EU","protocol":"-","espflash":4194304,"version":"4.0.1","diodet":0,"gfcit":0,"groundt":0,"relayt":0,"ventt":0,"tempt":0,"service":2,"scale":0,"offset":0,"mqtt_supported_protocols":["mqtt","mqtts"],"http_supported_protocols":["http","https"],"ssid":"Pantry","pass":"_DUMMY_PASSWORD","www_username":"greentangerine","www_password":"_DUMMY_PASSWORD","hostname":"openevse-2d71","sntp_hostname":"pool.ntp.org","time_zone":"Europe/London|GMT0BST,M3.5.0/1,M10.5.0","emoncms_server":"https://emoncms.org","emoncms_node":"openevse","emoncms_apikey":"_DUMMY_PASSWORD","emoncms_fingerprint":"","mqtt_server":"192.168.1.84","mqtt_port":1883,"mqtt_topic":"emon/openevse","mqtt_user":"emonpi","mqtt_pass":"_DUMMY_PASSWORD","mqtt_solar":"","mqtt_grid_ie":"emon/emontx3cm16/P3","mqtt_vrms":"emon/emontx3cm15/Vrms","mqtt_announce_topic":"openevse/announce/2d71","ohm":"","divert_PV_ratio":1.1,"divert_attack_smoothing_factor":0.4,"divert_decay_smoothing_factor":0.05,"divert_min_charge_time":300,"tesla_username":"","tesla_password":"","tesla_vehidx":-1,"led_brightness":128,"flags":523,"emoncms_enabled":true,"mqtt_enabled":true,"mqtt_reject_unauthorized":true,"ohm_enabled":false,"sntp_enabled":true,"tesla_enabled":false,"divert_enabled":true,"pause_uses_disabled":false,"mqtt_protocol":"mqtt","charge_mode":"fast"}

Thanks, I can see from the /status output that divertmode": 1 which means eco mode is switched off. Does the UI also reflect this?

At the time, yes.

There’s little sun today and the car won’t charge on Eco but I’ve just plugged it in and switched to Eco to see what happens!

Demandshaper exists but is most definitely off.

As an update, both the MG5 and Zoe have been charged several times over the past few days using the Eco mode with no sign of it switching back to 32A charging so I’m assuming it was the Demandshaper causing the issue. I don’t recall doing any configuration or using that module and it seems the OpenEVSE is added automatically when you follow the instructions to generate the feeds.

The only pain is having to remove the timer schedule before it’ll start Eco and then put it back later but hopefully that’ll get changed so the timer only has effect in ‘Normal’ mode.

That’s great to hear, sorry it took so long to resolve this. I will investigate how demand shaper may have automatically started communicating with the OpenEVSE. This should not happen. Have you got any thoughs @TrystanLea?

Noted, I agree this is sub-optimal. I’ve opened an issue to get the resolved:

No idea.

I removed the openevse last week from Demandshaper and then realised it also deleted the feeds so re-installed using the cog from inputs and then explicitly set the module to off - i.e. the button is now marked in red but wasn’t until I did that so maybe the default state is wrong.

I don’t know what state it was in before I deleted it (other than the off button wasn’t red) nor if when I installed the OpenEVSE around August last year if I inadvertently did something whilst looking around on the emonpi - possible I guess.

(Sorry, probably the above probably doesn’t help much)