Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intelligent Octopus rate triggers when car is charging but dispatch not set #1626

Open
chris-y opened this issue Nov 15, 2024 · 21 comments
Open
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@chris-y
Copy link

chris-y commented Nov 15, 2024

Describe the bug
Predbat activates the cheaper rate during the day as soon as the car starts charging, and triggers the battery to charge up in this slot - even though it is not the scheduled dispatch slot, and the car was only charging momentarily before the smart charge kicked in

Expected behaviour
Predbat should not use the car charging as a trigger to set the slot as cheap rate, unless it is specified in the IOG dispatched or dispatch is on.

Predbat version

Latest

Environment details

  • Solis inverter
  • Add-on version

Screenshots
Didn't get a screenshot sorry. Next time I plug it in I'll quickly grab one before stopping it.

Log file
225962024-11-15 18:46:08.528351: Warn: Historical day 4 has 10 minutes of gap in the data, filled from 19.81 kWh to make new average 19.95 kWh (percent 99%)225952024-11-15 18:46:08.511991: Warn: Historical day 3 has 150 minutes of gap in the data, filled from 24.68 kWh to make new average 27.55 kWh (percent 90%)225282024-11-15 18:45:49.975563: Watched event: sensor.xx20xxx_charge_state = {'entity_id': 'sensor.xx20xxx_charge_state', 'state': 'waiting_for_a_planned_charge', 'attributes': {'options': ['not_in_charge', 'waiting_for_a_planned_charge', 'charge_ended', 'waiting_for_current_charge', 'energy_flap_opened', 'charge_in_progress', 'charge_error', 'unavailable'], 'device_class': 'enum', 'friendly_name': 'XX20XXX Charge state'}, 'last_changed': '2024-11-15T18:45:49.969218+00:00', 'last_reported': '2024-11-15T18:45:49.969218+00:00', 'last_updated': '2024-11-15T18:45:49.969218+00:00', 'context': {'id': '01JCRJAMRHK4M27BF99C55C3N0', 'parent_id': None, 'user_id': None}} will trigger re-plan224332024-11-15 18:45:26.589288: Warn: Inverter 0: Using inverter type MINE - not all features are available224272024-11-15 18:45:26.278369: Warn: Historical day 7 has 65 minutes of gap in the data, filled from 19.73 kWh to make new average 20.66 kWh (percent 95%)224262024-11-15 18:45:26.242734: Warn: Historical day 6 has 175 minutes of gap in the data, filled from 18.73 kWh to make new average 21.32 kWh (percent 88%)224252024-11-15 18:45:26.224759: Warn: Historical day 5 has 70 minutes of gap in the data, filled from 17.73 kWh to make new average 18.63 kWh (percent 95%)224242024-11-15 18:45:26.217579: Warn: Historical day 4 has 10 minutes of gap in the data, filled from 19.81 kWh to make new average 19.95 kWh (percent 99%)224232024-11-15 18:45:26.201303: Warn: Historical day 3 has 150 minutes of gap in the data, filled from 24.68 kWh to make new average 27.55 kWh (percent 90%)223082024-11-15 18:45:09.382735: Warn: Inverter 0: Using inverter type MINE - not all features are available221962024-11-15 18:44:38.836414: Warn: Inverter 0: Using inverter type MINE - not all features are available221902024-11-15 18:44:38.54419
21534 2024-11-15 18:39:09.210274: Warn: Historical day 3 has 150 minutes of gap in the data, filled from 24.68 kWh to make new average 27.54 kWh (percent 90%)
21466 2024-11-15 18:38:49.640848: Watched event: sensor.xx20xxx_charge_state = {'entity_id': 'sensor.xx20xxx_charge_state', 'state': 'charge_in_progress', 'attributes': {'options': ['not_in_charge', 'waiting_for_a_planned_charge', 'charge_ended', 'waiting_for_current_charge', 'energy_flap_opened', 'charge_in_progress', 'charge_error', 'unavailable'], 'device_class': 'enum', 'friendly_name': 'XX20XXX Charge state'}, 'last_changed': '2024-11-15T18:38:49.634925+00:00', 'last_reported': '2024-11-15T18:38:49.634925+00:00', 'last_updated': '2024-11-15T18:38:49.634925+00:00', 'context': {'id': '01JCRHXT92FC46WAK6VM0E21W1', 'parent_id': None, 'user_id': None}} will trigger re-plan
21427 2024-11-15 18:38:41.113189: Warn: Inverter 0: Using inverter type MINE - not all features are available
21314 2024-11-15 18:38:08.947502:

Another bit of log:

2024-11-15 18:40:03.314887: Warn: Historical day 7 has 65 minutes of gap in the data, filled from 19.73 kWh to make new average 20.66 kWh (percent 95%)
2024-11-15 18:40:03.610245: Warn: Inverter 0: Using inverter type MINE - not all features are available
2024-11-15 18:40:09.822624: Info: record_status Charging target 35%-56%
2024-11-15 18:41:53.836650: Warn: Historical day 3 has 150 minutes of gap in the data, filled from 24.68 kWh to make new average 27.55 kWh (percent 90%)
2024-11-15 18:41:53.854338: Warn: Historical day 4 has 10 minutes of gap in the data, filled from 19.81 kWh to make new average 19.94 kWh (percent 99%)
2024-11-15 18:41:53.861594: Warn: Historical day 5 has 70 minutes of gap in the data, filled from 17.7 kWh to make new average 18.61 kWh (percent 95%)
2024-11-15 18:41:53.879516: Warn: Historical day 6 has 175 minutes of gap in the data, filled from 18.75 kWh to make new average 21.35 kWh (percent 88%)
2024-11-15 18:41:53.915132: Warn: Historical day 7 has 65 minutes of gap in the data, filled from 19.73 kWh to make new average 20.66 kWh (percent 95%)
2024-11-15 18:41:54.198903: Warn: Inverter 0: Using inverter type MINE - not all features are available
2024-11-15 18:42:25.083227: Warn: Inverter 0: Using inverter type MINE - not all features are available
2024-11-15 18:42:28.828604: Info: record_status Charging target 33%-51%
2024-11-15 18:44:38.462056: Warn: Historical day 3 has 150 minutes of gap in the data, filled from 24.68 kWh to make new average 27.55 kWh (percent 90%)
2024-11-15 18:44:38.479969: Warn: Historical day 4 has 10 minutes of gap in the data, filled from 19.81 kWh to make new average 19.94 kWh (percent 99%)
2024-11-15 18:44:38.488079: Warn: Historical day 5 has 70 minutes of gap in the data, filled from 17.7 kWh to make new average 18.61 kWh (percent 95%)
2024-11-15 18:44:38.508696: Warn: Historical day 6 has 175 minutes of gap in the data, filled from 18.75 kWh to make new average 21.35 kWh (percent 88%)
2024-11-15 18:44:38.544197: Warn: Historical day 7 has 65 minutes of gap i

@mpartington
Copy link

I think I had this issue, and Trefor recommend not using car charging now unless you have issues with IO.

I assume you've set this up in apps.yaml, so best to hash it out. If it sees the car charging, it sets the slot as.a 7p and the battery charge kicks off.

@chris-y
Copy link
Author

chris-y commented Nov 15, 2024

Yes, I've commented it out now. I have car_charging_planned too - is that needed? There's a comment which says it isn't for Intelligent.
I'll see what happens next time I plug in.

@mpartington
Copy link

mpartington commented Nov 15, 2024 via email

@springfall2008
Copy link
Owner

Yeh car_charging_now is probably the issue, best avoided as it tells predbat that if the car is charging its cheap rate

@springfall2008 springfall2008 added the documentation Improvements or additions to documentation label Nov 16, 2024
@chris-y
Copy link
Author

chris-y commented Nov 17, 2024

Thanks, I'm sure that will fix it.

I have a follow-up question. When the car is scheduled to charge on the middle of the regular cheap slot in the night, predbat is suspending charging (house battery already at 100%), and the car charges from battery - even though I have allow car charge from battery switched off.

Car was scheduled between 4.30 and 5.00. At 4.30 predbat set the inverter to do a 0A charge (ie, don't discharge) from 5.00 until 5.30. I would expect that behaviour when the car was charging, not for when it had finished?

@chris-y
Copy link
Author

chris-y commented Nov 19, 2024

Schedule tonight hasn't exhibited the same, so I'm not sure what was happening yesterday.
Commenting out car_charging_now has fixed the original issue too. Thanks!

@mpartington
Copy link

mpartington commented Nov 20, 2024

I've a follow up question. My IOG has been terribly temperamental and is not detecting and therefore not planning a charge.

I am therefore just setting it to scheduled over night. Last night Predbat clearly didn't know the car was charging and discharged the battery.

There doesn't seem an easy way to switch between IOG controlled charge and manual scheduled charge within Predbat, to ensure the charge is held.

Am I missing something, or is the only way to either comment in or out the car charging now setting in apps.yaml? If so, maybe this would be better exposed as a switch in HA

@gcoan
Copy link
Collaborator

gcoan commented Nov 20, 2024

There doesn't seem an easy way to switch between IOG controlled charge and manual scheduled charge within Predbat, to ensure the charge is held.

Have you tried turning switch.predbat_octopus_intelligent_charging to Off to swap between IOG and Predbat-led charging?

https://springfall2008.github.io/batpred/car-charging/

You have to tell Predbat one way or the other when you are charging your car, otherwise (depending on where your CT clamps are fitted to your house wiring) the inverter is likely to see this as house load and the battery discharge into your car

@mpartington
Copy link

mpartington commented Nov 20, 2024 via email

@chris-y
Copy link
Author

chris-y commented Nov 20, 2024

Related question/problem. Last night my car decided to continue to charge until past the off-peak period, even though it wasn't originally scheduled to do so. I checked the "completed dispatches" in the Octopus integration and these new time periods were present. However they don't appear to have appeared in planned dispatches, and it looks like predbat wasn't aware of them, as my battery was being drained throughout.
Screenshot_20241120-175137.png

It looks like the intelligent dispatching binary sensor was off during the time period too, so I doubt there's anything that can be done about this.

Maybe it's something odd/broken with the Renault integration.

Very strange. I guess I need to check my bill to ensure it was actually charged at the cheaper rate!

@mpartington
Copy link

It's the Renault integration I'm having trouble with as well. The mobilize app seems to keep loosing contact with the octopus app. I normally can't get it to recognise the mobilize app has started a smart charge and the car is plugged in to set the slots.

I'm trying to find anyone at Octopus who knows enough to help, I think it's a back end issue between the apps

@chris-y
Copy link
Author

chris-y commented Nov 20, 2024

That communication seems fine here - it's just that it added some extra slots for some reason and the Octopus API didn't show them (or the Octopus integration didn't pick them up, but I suspect it's the API). I might raise this on the Octopus integration GitHub.

@mpartington
Copy link

Does seem a different issue then. I've been given a slot at 19.30, dispatching sensor has triggered, but mobilize app isn't charging the car.

@chris-y
Copy link
Author

chris-y commented Nov 20, 2024

Yeah, it's opposite to what I have. In my case, the Mobilize app is charging the car, it has just added extra slots to the end (I'm not sure why, as it ended up above the target I had set!) - which the integration isn't picking up. Presumably Octopus did know about them or they wouldn't have been in my completed dispatches.

BottlecapDave/HomeAssistant-OctopusEnergy#1088

@chris-y
Copy link
Author

chris-y commented Nov 21, 2024

Although actually overnight last night I think I may have had the same problem - it had scheduled a charge but didn't charge. I changed my leave by time this morning and it immediately scheduled a slot and started charging.

@chris-y
Copy link
Author

chris-y commented Nov 22, 2024

I started a smart charge and then disabled smart charging. It's confused the Octopus integration as the slots are still showing and it thinks smart charging is enabled still. I think this is a bug/missing feature with the Renault integration.

I'm now seeing this in the plan: (I've forced idle on the slots to ensure the battery doesn't kick in)
Screenshot_20241122-192858-812.png

As the integration thinks the car is plugged in (it is), when it gets to these slots will it still think it is charging? Where does it get that information from? As obviously car_charging_now isn't used as per above.

@mpartington
Copy link

mpartington commented Nov 22, 2024

Is the dispatching sensor still switched on? I assume Predbat is pulling the times from that as the mobilize app hasn't synced the change properly. If I'm lucky enough for it to work, I find they stop syncing after a few hours.

This is my experience at the moment, it just carries on charging but sets no slots 😞

Screenshot_2024-11-22-20-00-30-639_com renault zesmartcharge~2
Screenshot_2024-11-22-20-00-25-375_energy octopus octopusenergy android

@chris-y
Copy link
Author

chris-y commented Nov 22, 2024

Dispatching sensor still shows the slots coming up - I'll find out tomorrow whether it switched itself on during them or not.

Did you put your Octopus account number into Mobilize? Looks like they aren't properly linked.

@mpartington
Copy link

Yeah, it's all individually set up ok. Octopus smart tariffs specialist has been going over my data and has promised to get back to me tomorrow. I doubt it will be an easy fix

This was the other night, when it decided to work
Screenshot_2024-11-20-12-40-41-708_energy octopus octopusenergy android

@chris-y
Copy link
Author

chris-y commented Nov 22, 2024

Weird. What I did notice when I set mine up is that it only works on "phase 2" Zoes from October 2020. I don't know if that's relevant, because, mine's an earlier one and it seems fine!

Maybe it's related to the BMS fix, which mine has had, and they are covering themselves as any with the old software won't work?

@mpartington
Copy link

mpartington commented Nov 23, 2024

Mine was registered Nov 20, but not sure of the build date. It also has the BMS update. Must admit I assumed the phase 2 just meant ze50s. I think I read somewhere it needs the newer navigation screen.

I think I've found that I need to re-enter the octopus account every time I use it. That seems to force a sync of the 2 apps, although it didn't stop at the end of a slot earlier.

Octopus has taken my data and I'm being told the developers are analysing it, so hopefully improvements will be made that benefit everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants