Tmbao / amberelectric-usages

MIT License
5 stars 1 forks source link

Failed to setup, will retry; Invalid statistic_id #7

Open adamk125 opened 2 months ago

adamk125 commented 2 months ago

image

Error when trying to initiate the addin with a correct/new API Token/Key

Kawobei commented 1 month ago

I have same error, did you work out how to fix this?

olishi commented 1 month ago

Make sure there are no spaces in the name when adding the integration

Kawobei commented 1 month ago

OFFICIAL

CONF_SITE_NAME = "Arnolds Home" is that a problem?

OFFICIAL From: Oliver @.> Sent: Wednesday, 7 August 2024 3:32 PM To: Tmbao/amberelectric-usages @.> Cc: Brenton Arnold @.>; Comment @.> Subject: EXTERNAL: Re: [Tmbao/amberelectric-usages] Failed to setup, will retry; Invalid statistic_id (Issue #7)

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Make sure there are no spaces in the name when adding the integration

- Reply to this email directly, view it on GitHubhttps://github.com/Tmbao/amberelectric-usages/issues/7#issuecomment-2272650445, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABUH37OVXC6OFD5UHLOWEULZQGWLJAVCNFSM6AAAAABJX3HOZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZSGY2TANBUGU. You are receiving this because you commented.Message ID: @.***>


RTO Code: 4693 CRICOS no. 01985A This email and any attachments may contain privileged and confidential information. If you are not the intended recipient, you may not distribute reproduce this e-mail or the attachments. If you have received this message in error, please notify us by return e-mail.

Please consider the environment before printing this email.

adamk125 commented 1 month ago

I have same error, did you work out how to fix this?

I did mate, all you need to do is delete the entity and re-add a new entity but dont use capitals or spaces. e.g. just "home" or "streetname"

adamk125 commented 1 month ago

OFFICIAL CONF_SITE_NAME = "Arnolds Home" is that a problem? OFFICIAL From: Oliver @.> Sent: Wednesday, 7 August 2024 3:32 PM To: Tmbao/amberelectric-usages @.> Cc: Brenton Arnold @.>; Comment @.> Subject: EXTERNAL: Re: [Tmbao/amberelectric-usages] Failed to setup, will retry; Invalid statistic_id (Issue #7) CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. Make sure there are no spaces in the name when adding the integration - Reply to this email directly, view it on GitHub<#7 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABUH37OVXC6OFD5UHLOWEULZQGWLJAVCNFSM6AAAAABJX3HOZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZSGY2TANBUGU. You are receiving this because you commented.Message ID: @.***> ____ RTO Code: 4693 CRICOS no. 01985A This email and any attachments may contain privileged and confidential information. If you are not the intended recipient, you may not distribute reproduce this e-mail or the attachments. If you have received this message in error, please notify us by return e-mail. Please consider the environment before printing this email.

Try "arnoldshome"

Kawobei commented 1 month ago

OFFICIAL

Which entity did you delete sorry?

OFFICIAL From: adamk125 @.> Sent: Wednesday, 7 August 2024 3:34 PM To: Tmbao/amberelectric-usages @.> Cc: Brenton Arnold @.>; Comment @.> Subject: EXTERNAL: Re: [Tmbao/amberelectric-usages] Failed to setup, will retry; Invalid statistic_id (Issue #7)

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

I have same error, did you work out how to fix this?

I did mate, all you need to do is delete the entity and re-add a new entity but dont use capitals or spaces. e.g. just "home" or "streetname"

- Reply to this email directly, view it on GitHubhttps://github.com/Tmbao/amberelectric-usages/issues/7#issuecomment-2272652422, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABUH37OV4OXV6OP3F7BNKLTZQGWS7AVCNFSM6AAAAABJX3HOZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZSGY2TENBSGI. You are receiving this because you commented.Message ID: @.***>


RTO Code: 4693 CRICOS no. 01985A This email and any attachments may contain privileged and confidential information. If you are not the intended recipient, you may not distribute reproduce this e-mail or the attachments. If you have received this message in error, please notify us by return e-mail.

Please consider the environment before printing this email.

adamk125 commented 1 month ago

OFFICIAL Which entity did you delete sorry? OFFICIAL From: adamk125 @.> Sent: Wednesday, 7 August 2024 3:34 PM To: Tmbao/amberelectric-usages @.> Cc: Brenton Arnold @.>; Comment @.> Subject: EXTERNAL: Re: [Tmbao/amberelectric-usages] Failed to setup, will retry; Invalid statistic_id (Issue #7) CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. I have same error, did you work out how to fix this? I did mate, all you need to do is delete the entity and re-add a new entity but dont use capitals or spaces. e.g. just "home" or "streetname" - Reply to this email directly, view it on GitHub<#7 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABUH37OV4OXV6OP3F7BNKLTZQGWS7AVCNFSM6AAAAABJX3HOZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZSGY2TENBSGI. You are receiving this because you commented.Message ID: @.***> ____ RTO Code: 4693 CRICOS no. 01985A This email and any attachments may contain privileged and confidential information. If you are not the intended recipient, you may not distribute reproduce this e-mail or the attachments. If you have received this message in error, please notify us by return e-mail. Please consider the environment before printing this email.

The one the integration created? Settings -> Integrations -> Amber Electic - Usages. Three dots next to the "Arnolds Home" and delete. Reconfigure and add your API Key then name the entity "arnoldshome". Setup the Energy page's configuration to use "amberelectic_usages:arnoldshome_usages - E1" as the Consumed Energy entity and then "amberelectic_usages:arnoldshome_usages_costs - E1" as the 'Use an entity tracking the total costs' option. Then scroll back a day or so and see the past energy usage data in Home Assistant.

Dont forget its historical so wont see live data.

I've also built a nice dashboard using this and the Amber plugin for forecasts in Home Assistant - can share the YAML if you want.

image

Kawobie commented 1 month ago

Yes please that would be awesome.