Closed timtheGoat closed 8 months ago
Is the Octopus integration working, have you overridden/ manually setup rates in apps.yaml?
Could you please share the log file and apps.yaml config of your rates
On 19 Dec 2023, at 10:05, timtheGoat @.***> wrote:
Describe the bug Changed to Error - metric_octopus_import not set correctly or no energy rates can be read
Expected behavior I expected Predbat to run without an error.
Predbat version
v7.14.15
Environment details
Inverter and battery - Givenergy 5kW gen 2 Hybrid 2 9.5 kWh batteries Standard HAOS installer — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.
Hi, The octopus integration seems to be working. I think that the following could be the cause: my octopus integration sensor is: sensor.electricity_20j0041185_1415491290001_current_rate and in the configuration it has the prefix octopus_energy: metric_octopus_import: 're:(sensor.(octopusenergy|)electricity[0-9a-z]+[0-9a-z]+_current_rate)'
Best Regards
Tim Smith
Unit 46 Queens Court Trading Estate Greets Green Road West Bromwich West Midlands B70 9EQ T: 0121 557 3837 F: 0121 520 6226 M: 07747025415 W: www.gotronic.co.uk
For all accounts inquiries, please contact the accounts team at @.***
Gotronic Ltd is a company registered in England & Wales with company number 3776064
Registered Office: As Above Vat No. 729 9424 92
IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only.
If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.
On Tue, 19 Dec 2023 at 11:21, Geoffrey Coan @.***> wrote:
Is the Octopus integration working, have you overridden/ manually setup rates in apps.yaml?
Could you please share the log file and apps.yaml config of your rates
On 19 Dec 2023, at 10:05, timtheGoat @.***> wrote:
Describe the bug Changed to Error - metric_octopus_import not set correctly or no energy rates can be read
Expected behavior I expected Predbat to run without an error.
Predbat version
v7.14.15
Environment details
Inverter and battery - Givenergy 5kW gen 2 Hybrid 2 9.5 kWh batteries Standard HAOS installer — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.
— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/498#issuecomment-1862579210, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMAVSCSVAEXRNFIZJMEKILYKF2FBAVCNFSM6AAAAABA242WH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSGU3TSMRRGA . You are receiving this because you authored the thread.Message ID: @.***>
My regular expression is the same but my sensors are all named octopus_energy_electricity...
I think the regular expression should cope with this but how about you delete the (octopusenergy|) bit from the expression and the same in the export line and see if it works.
In the app daemon log it should say if it matches ok
Cheers Geoffrey On 19 Dec 2023 at 13:14 +0000, timtheGoat @.***>, wrote:
Hi, The octopus integration seems to be working. I think that the following could be the cause: my octopus integration sensor is: sensor.electricity_20j0041185_1415491290001_current_rate and in the configuration it has the prefix octopus_energy: metric_octopus_import: 're:(sensor.(octopusenergy|)electricity[0-9a-z]+[0-9a-z]+_current_rate)'
Best Regards
Tim Smith
- Technical Director
Unit 46 Queens Court Trading Estate Greets Green Road West Bromwich West Midlands B70 9EQ T: 0121 557 3837 F: 0121 520 6226 M: 07747025415 W: www.gotronic.co.uk
For all accounts inquiries, please contact the accounts team at @.***
Gotronic Ltd is a company registered in England & Wales with company number 3776064
Registered Office: As Above Vat No. 729 9424 92
IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only.
If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.
On Tue, 19 Dec 2023 at 11:21, Geoffrey Coan @.***> wrote:
Is the Octopus integration working, have you overridden/ manually setup rates in apps.yaml?
Could you please share the log file and apps.yaml config of your rates
On 19 Dec 2023, at 10:05, timtheGoat @.***> wrote:
Describe the bug Changed to Error - metric_octopus_import not set correctly or no energy rates can be read
Expected behavior I expected Predbat to run without an error.
Predbat version
v7.14.15
Environment details
Inverter and battery - Givenergy 5kW gen 2 Hybrid 2 9.5 kWh batteries Standard HAOS installer — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.
— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/498#issuecomment-1862579210, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMAVSCSVAEXRNFIZJMEKILYKF2FBAVCNFSM6AAAAABA242WH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSGU3TSMRRGA . You are receiving this because you authored the thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Hi, I have tried deleting that bit, it's still the same. I've also tried putting the actual sensor name between the '', still the same.
On Tue, 19 Dec 2023, 13:31 Geoffrey Coan, @.***> wrote:
My regular expression is the same but my sensors are all named octopus_energy_electricity...
I think the regular expression should cope with this but how about you delete the (octopusenergy|) bit from the expression and the same in the export line and see if it works.
In the app daemon log it should say if it matches ok
Cheers Geoffrey On 19 Dec 2023 at 13:14 +0000, timtheGoat @.***>, wrote:
Hi, The octopus integration seems to be working. I think that the following could be the cause: my octopus integration sensor is: sensor.electricity_20j0041185_1415491290001_current_rate and in the configuration it has the prefix octopus_energy: metric_octopus_import:
're:(sensor.(octopusenergy|)electricity[0-9a-z]+[0-9a-z]+_current_rate)'
Best Regards
Tim Smith
- Technical Director
Unit 46 Queens Court Trading Estate Greets Green Road West Bromwich West Midlands B70 9EQ T: 0121 557 3837 F: 0121 520 6226 M: 07747025415 W: www.gotronic.co.uk
For all accounts inquiries, please contact the accounts team at @.***
Gotronic Ltd is a company registered in England & Wales with company number 3776064
Registered Office: As Above Vat No. 729 9424 92
IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only.
If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.
On Tue, 19 Dec 2023 at 11:21, Geoffrey Coan @.***> wrote:
Is the Octopus integration working, have you overridden/ manually setup rates in apps.yaml?
Could you please share the log file and apps.yaml config of your rates
On 19 Dec 2023, at 10:05, timtheGoat @.***> wrote:
Describe the bug Changed to Error - metric_octopus_import not set correctly or no energy rates can be read
Expected behavior I expected Predbat to run without an error.
Predbat version
v7.14.15
Environment details
Inverter and battery - Givenergy 5kW gen 2 Hybrid 2 9.5 kWh batteries Standard HAOS installer — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.
— Reply to this email directly, view it on GitHub < https://github.com/springfall2008/batpred/issues/498#issuecomment-1862579210>,
or unsubscribe < https://github.com/notifications/unsubscribe-auth/AZMAVSCSVAEXRNFIZJMEKILYKF2FBAVCNFSM6AAAAABA242WH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSGU3TSMRRGA>
. You are receiving this because you authored the thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/498#issuecomment-1862765072, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMAVSATHKHOYGCSOWPGC7TYKGJKDAVCNFSM6AAAAABA242WH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSG43DKMBXGI . You are receiving this because you authored the thread.Message ID: @.***>
Can you snapshot these two, the event and the sensor?
And then post your log?
Hi, Where do I find the log that you need?
On Tue, 19 Dec 2023, 14:06 Trefor Southwell, @.***> wrote:
And then post your log?
— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/498#issuecomment-1862821723, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMAVSCJPWDBFCQORLECJVDYKGNORAVCNFSM6AAAAABA242WH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSHAZDCNZSGM . You are receiving this because you authored the thread.Message ID: @.***>
Hi, I hope this is what you are looking for. I do not have a sensor for the second item with the octopus_energy prefix.
Best Regards
Tim Smith
Unit 46 Queens Court Trading Estate Greets Green Road West Bromwich West Midlands B70 9EQ T: 0121 557 3837 F: 0121 520 6226 M: 07747025415 W: www.gotronic.co.uk
For all accounts inquiries, please contact the accounts team at @.***
Gotronic Ltd is a company registered in England & Wales with company number 3776064
Registered Office: As Above Vat No. 729 9424 92
IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only.
If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.
On Tue, 19 Dec 2023 at 14:06, Trefor Southwell @.***> wrote:
Can you snapshot these two, the event and the sensor?
image.png (view on web) https://github.com/springfall2008/batpred/assets/48591903/a9def13a-b576-4a80-85f2-ea3a56481aed image.png (view on web) https://github.com/springfall2008/batpred/assets/48591903/64d89e85-ef57-41d1-8acf-425c21d714fb
— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/498#issuecomment-1862821262, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMAVSHL3PFIDSVO354RCCDYKGNNRAVCNFSM6AAAAABA242WH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSHAZDCMRWGI . You are receiving this because you authored the thread.Message ID: @.***>
state_class: total mpan: "1415491290001" serial_number: 20J0041185 is_export: false is_smart_meter: true tariff: E-1R-INTELLI-VAR-22-10-14-E start: "2023-12-19T05:30:00+00:00" end: "2023-12-19T23:30:00+00:00" is_capped: false is_intelligent_adjusted: false current_day_min_rate: 0.074999 current_day_max_rate: 0.299037 current_day_average_rate: 0.243027 data_last_retrieved: "2023-12-19T14:00:56.822665+00:00" last_evaluated: "2023-12-19T14:23:56.823638+00:00" unit_of_measurement: GBP/kWh device_class: monetary icon: mdi:currency-gbp friendly_name: Electricity 20J0041185 1415491290001 Current Rate
event_types:
I do not have a sensor for the second item with the octopus_energy prefix.
This would explain the issue, the sensor name is used to figure out the event name.
Can I suggest you remove the Octopus add-in, reboot home assistant, delete the old sensor and then install it again and hopefully the names will be fixed?
Hi, I'll give it a try.
On Tue, 19 Dec 2023, 14:41 Trefor Southwell, @.***> wrote:
I do not have a sensor for the second item with the octopus_energy prefix.
This would explain the issue, the sensor name is used to figure out the event name.
Can I suggest you remove the Octopus add-in, reboot home assistant, delete the old sensor and then install it again and hopefully the names will be fixed?
— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/498#issuecomment-1862884841, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMAVSAILW77FF2KQE3CIRDYKGRRPAVCNFSM6AAAAABA242WH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSHA4DIOBUGE . You are receiving this because you authored the thread.Message ID: @.***>
Hi, Thanks, that's sorted it out.
On Tue, 19 Dec 2023, 14:41 Trefor Southwell, @.***> wrote:
I do not have a sensor for the second item with the octopus_energy prefix.
This would explain the issue, the sensor name is used to figure out the event name.
Can I suggest you remove the Octopus add-in, reboot home assistant, delete the old sensor and then install it again and hopefully the names will be fixed?
— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/498#issuecomment-1862884841, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMAVSAILW77FF2KQE3CIRDYKGRRPAVCNFSM6AAAAABA242WH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSHA4DIOBUGE . You are receiving this because you authored the thread.Message ID: @.***>
I'll add something to the FAQ's to cover this in case anyone else gets it happen to them On 19 Dec 2023 at 14:57 +0000, timtheGoat @.***>, wrote:
Hi, Thanks, that's sorted it out.
On Tue, 19 Dec 2023, 14:41 Trefor Southwell, @.***> wrote:
I do not have a sensor for the second item with the octopus_energy prefix.
This would explain the issue, the sensor name is used to figure out the event name.
Can I suggest you remove the Octopus add-in, reboot home assistant, delete the old sensor and then install it again and hopefully the names will be fixed?
— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/498#issuecomment-1862884841, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMAVSAILW77FF2KQE3CIRDYKGRRPAVCNFSM6AAAAABA242WH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSHA4DIOBUGE . You are receiving this because you authored the thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Describe the bug Changed to Error - metric_octopus_import not set correctly or no energy rates can be read
Expected behavior I expected Predbat to run without an error.
Predbat version
v7.14.15
Environment details