-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Octopus all_rates attribute warning #1684
Comments
Is this a new install or an upgrade? Are the Octopus sensors that Predbat is looking for populated correctly and what's in your apps.yaml, is Predbat configured correctly to find the Octopus sensors? If its a new install, you follow the instructions about enabling specific events that Predbat needs |
Thanks @gcoan for the response. It's a new install of predbat. The Octopus sensors and events are enabled as per the instructions. The apps.yaml relating to octopus minus the comments are:
|
Thanks for the extra info. The apps.yaml looks correct. If you look at the sensor sensor.octopus_energy_electricity_MPAN_METERSERIAL_current_rate what do you see, is it populated OK? Can you share your logfile please, am guessing it's either a problem with not picking up your Octopus details properly. |
Looks like the event is firing OK. Let's see what's in the actual import sensor |
https://gist.github.com/zaheerm/f550ffb3f766ce2eec4855faee9c8c53 is the log file |
There's something wrong here as the Event shown doesn't have the mpan in its name? |
I think the problem is that your import energy sensor is named in a way that Predbat doesn't expect. From the logfile it finds your import sensor: 2024-12-03 09:02:10.818563: Regular expression argument metric_octopus_import matched ^(sensor.(octopus_energy_|)electricity_[0-9a-z]+_[0-9a-z]+_current_rate)$ with sensor.electricity_METER_NUMBER_current_rate Whereas on mine the sensor name is sensor.octopus_energy_electricity_METER_NUMBER_current_rate Predbat uses the import sensor to then find the names of other sensors it needs, and it's not finding them. Guessing that there is a mis-match and the other sensors have the octopus_energy_ prefix whereas current_rate doesn't. Did you rename this sensor? Simplest thing to try is to rename the sensor you have to the name it should normally be. If you want to rename it then you'll also need to rename the other sensors that Predbat is looking for so they all have matching name structure |
Good spot, All my sensors seem to be sensor.electricity_ while my events seem to be event.octopus_energy_electricity. I may set the sensors and events manually in predbat config and give that a go rather than doing renames. |
👍 I think that's your problem. Without checking the code I think Predbat expects the events and sensors to be named consistently. You may have to do some renaming. Curious as to why your new install ended up like this. Maybe something changed in the Octopus Integration |
Describe the bug
Log shows:
Expected behaviour
A clear and concise description of what you expected to happen.
Predbat version
Latest (zip file shows 8.8.1)
Environment details
Screenshots
If applicable, add screenshots to help explain your problem. The most useful ones can be your battery chart, the Predbat HTML plan and your current settings in HA.
Log file
Can you capture a log file from the time of the issue, debug mode is not normally required.
If you are not keeping the full logs then please enable this in appdaemon.yaml (see the installation instruction in the Predbat docs area for details on how to do this)
The text was updated successfully, but these errors were encountered: