swartjean / ha-eskom-loadshedding

Fetches loadshedding data from Eskom
Apache License 2.0
71 stars 19 forks source link

Not allowing installation #28

Closed StanderHome closed 1 year ago

StanderHome commented 1 year ago

Just tried the instalation. Thanks for opening up an integration rather tha trying to figure out API for newbies...

Once I add the integration it brings up a block to submit something. Its not staying what it needs. I assumed your Key from ESP but if I enter and submit it just blanks it out and I need to re-enter.

I cannot get any further

swartjean commented 1 year ago

Hi, that's a bit strange. I wonder if it isn't a translation/localization issue. Is your home assistant configured for English?

The first text block should be your API token yes. If it blanks it out it should be because the token wasn't valid or maybe had run out of quota for the day. Is this a new token from their Gumroad site?

The second text box would be for your area, after which you should see a list of areas to choose from.

StanderHome commented 1 year ago

Hey Jean

Thanks for this. After I added the issue I kept on trying to see what was happening and what the issues are.

I finally got it right where it showed the area but I tested it with the wrong info. I then had to wait 1 more day before I could action the area again as it just came up with an error the whole time.

All good now though, so I am a happy chappy. Its works brilliantly.

Is there a way to set the check to be hourly? Or will that throw out the number of pings you have available on the free API

[Logo]https://www.theaccountrepreneur.co.za/ Shaan Stander CA(SA) Director mobile: 073 460 6350 email: @.**@.> [Facebook icon]https://web.facebook.com/TheAccountrepreneur/ [LinkedIn icon] https://www.linkedin.com/in/shaan-stander-ca-sa-a0925896/ [Google Plus icon] https://www.theaccountrepreneur.co.za/ Disclaimer Statement: This e-mail and any file transmitted with it contain confidential information, which is intended only for use by the addressee. If you have received this e-mail in error then copying, distributing, disclosing or otherwise acting in reliance upon this e-mail is strictly prohibited. If you have received this message in error, please notify The Accountrepreneur immediately. Any views expressed in this message are those of the individual sender and The Accountrepreneur accepts no liability for the content of this message except where the sender specifically states them to be the views of The Accountrepreneur.

From: Jean Swart @.> Sent: Thursday, 17 November 2022 22:21 To: swartjean/ha-eskom-loadshedding @.> Cc: Shaan Stander @.>; Author @.> Subject: Re: [swartjean/ha-eskom-loadshedding] Not allowing installation (Issue #28)

Hi, that's a bit strange. I wonder if it isn't a translation/localization issue. Is your home assistant configured for English?

The first text block should be your API token yes. If it blanks it out it should be because the token wasn't valid or maybe had run out of quota for the day. Is this a new token from their Gumroad site?

The second text box would be for your area, after which you should see a list of areas to choose from.

— Reply to this email directly, view it on GitHubhttps://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1319156261, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A24G7JFF5VZR4COYFQ43LTLWI2HURANCNFSM6AAAAAAR6HCPNQ. You are receiving this because you authored the thread.Message ID: @.**@.>>

StanderHome commented 1 year ago

Hi Jean

Hope all is well.

The last 3 days or so I dont get any updates. Is it on the App side or the integration? Is yours fine

swartjean commented 1 year ago

Hey there, that is weird - mine seems to be working fine. My sensor has been updating today and the my test automations seem to have been firing. What is your API quota sensor reporting?

StanderHome commented 1 year ago

HI Jean

It was quite strange. It all started up again yesterday and seems to be working fine now

Thanks for the response

[Logo]https://www.theaccountrepreneur.co.za/ Shaan Stander CA(SA) Director mobile: 073 460 6350 email: @.**@.> [Facebook icon]https://web.facebook.com/TheAccountrepreneur/ [LinkedIn icon] https://www.linkedin.com/in/shaan-stander-ca-sa-a0925896/ [Google Plus icon] https://www.theaccountrepreneur.co.za/ Disclaimer Statement: This e-mail and any file transmitted with it contain confidential information, which is intended only for use by the addressee. If you have received this e-mail in error then copying, distributing, disclosing or otherwise acting in reliance upon this e-mail is strictly prohibited. If you have received this message in error, please notify The Accountrepreneur immediately. Any views expressed in this message are those of the individual sender and The Accountrepreneur accepts no liability for the content of this message except where the sender specifically states them to be the views of The Accountrepreneur.

From: Jean Swart @.> Sent: Monday, 12 December 2022 19:25 To: swartjean/ha-eskom-loadshedding @.> Cc: Shaan Stander @.>; Author @.> Subject: Re: [swartjean/ha-eskom-loadshedding] Not allowing installation (Issue #28)

Hey there, that is weird - mine seems to be working fine. My sensor has been updating today and the my test automations seem to have been firing. What is your API quota sensor reporting?

— Reply to this email directly, view it on GitHubhttps://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1346920228, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A24G7JAX5TNPYDMGC52MG5TWM5NVXANCNFSM6AAAAAAR6HCPNQ. You are receiving this because you authored the thread.Message ID: @.**@.>>

StanderHome commented 1 year ago

Hi there

Happy to assist with this if youd like,

Send me your number. A call might be easier

[Logo]https://www.theaccountrepreneur.co.za/ Shaan Stander CA(SA) Director mobile: 073 460 6350 email: @.**@.> [Facebook icon]https://web.facebook.com/TheAccountrepreneur/ [LinkedIn icon] https://www.linkedin.com/in/shaan-stander-ca-sa-a0925896/ [Google Plus icon] https://www.theaccountrepreneur.co.za/ Disclaimer Statement: This e-mail and any file transmitted with it contain confidential information, which is intended only for use by the addressee. If you have received this e-mail in error then copying, distributing, disclosing or otherwise acting in reliance upon this e-mail is strictly prohibited. If you have received this message in error, please notify The Accountrepreneur immediately. Any views expressed in this message are those of the individual sender and The Accountrepreneur accepts no liability for the content of this message except where the sender specifically states them to be the views of The Accountrepreneur.

From: dharmeshbhana @.> Sent: Friday, 13 January 2023 15:25 To: swartjean/ha-eskom-loadshedding @.> Cc: Shaan Stander @.>; Author @.> Subject: Re: [swartjean/ha-eskom-loadshedding] Not allowing installation (Issue #28)

Also tried via HACS - installed Eskom load shedding interface. Shows up under custom config folder, but dosent allow to proceed to UI...

— Reply to this email directly, view it on GitHubhttps://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1381847102, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A24G7JFVP3H63ZWRYIXS7GLWSFJRRANCNFSM6AAAAAAR6HCPNQ. You are receiving this because you authored the thread.Message ID: @.**@.>>

dharmeshbhana commented 1 year ago

Thanks.

Sorted....

On Mon, 16 Jan 2023, 09:54 StanderHome, @.***> wrote:

Hi there

Happy to assist with this if youd like,

Send me your number. A call might be easier

[Logo]https://www.theaccountrepreneur.co.za/ Shaan Stander CA(SA) Director mobile: 073 460 6350 email: @.**@.> [Facebook icon]https://web.facebook.com/TheAccountrepreneur/ [LinkedIn icon] https://www.linkedin.com/in/shaan-stander-ca-sa-a0925896/ [Google Plus icon] https://www.theaccountrepreneur.co.za/ Disclaimer Statement: This e-mail and any file transmitted with it contain confidential information, which is intended only for use by the addressee. If you have received this e-mail in error then copying, distributing, disclosing or otherwise acting in reliance upon this e-mail is strictly prohibited. If you have received this message in error, please notify The Accountrepreneur immediately. Any views expressed in this message are those of the individual sender and The Accountrepreneur accepts no liability for the content of this message except where the sender specifically states them to be the views of The Accountrepreneur.

From: dharmeshbhana @.> Sent: Friday, 13 January 2023 15:25 To: swartjean/ha-eskom-loadshedding @.> Cc: Shaan Stander @.>; Author @.> Subject: Re: [swartjean/ha-eskom-loadshedding] Not allowing installation (Issue #28)

Also tried via HACS - installed Eskom load shedding interface. Shows up under custom config folder, but dosent allow to proceed to UI...

— Reply to this email directly, view it on GitHub< https://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1381847102>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/A24G7JFVP3H63ZWRYIXS7GLWSFJRRANCNFSM6AAAAAAR6HCPNQ>.

You are receiving this because you authored the thread.Message ID: @.**@.>>

— Reply to this email directly, view it on GitHub https://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1383618962, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQWZDP3YAWDA7CRU6X3DV4LWST5EBANCNFSM6AAAAAAR6HCPNQ . You are receiving this because you commented.Message ID: @.***>

StanderHome commented 1 year ago

I have mine hooked up to my solar so it can push batteries to start force charge if below a certain %, 2 hours before loadshedding in Home Assistant, backing up with Solar Assistant…

Quite nifty to have the ESP pull in to make the above happen.

Have a lekker week

[Logo]https://www.theaccountrepreneur.co.za/ Shaan Stander CA(SA) Director mobile: 073 460 6350 email: @.**@.> [Facebook icon]https://web.facebook.com/TheAccountrepreneur/ [LinkedIn icon] https://www.linkedin.com/in/shaan-stander-ca-sa-a0925896/ [Google Plus icon] https://www.theaccountrepreneur.co.za/ Disclaimer Statement: This e-mail and any file transmitted with it contain confidential information, which is intended only for use by the addressee. If you have received this e-mail in error then copying, distributing, disclosing or otherwise acting in reliance upon this e-mail is strictly prohibited. If you have received this message in error, please notify The Accountrepreneur immediately. Any views expressed in this message are those of the individual sender and The Accountrepreneur accepts no liability for the content of this message except where the sender specifically states them to be the views of The Accountrepreneur.

From: dharmeshbhana @.> Sent: Monday, 16 January 2023 10:12 To: swartjean/ha-eskom-loadshedding @.> Cc: Shaan Stander @.>; Author @.> Subject: Re: [swartjean/ha-eskom-loadshedding] Not allowing installation (Issue #28)

Thanks.

Sorted....

On Mon, 16 Jan 2023, 09:54 StanderHome, @.<mailto:@.>> wrote:

Hi there

Happy to assist with this if youd like,

Send me your number. A call might be easier

[Logo]https://www.theaccountrepreneur.co.za/ Shaan Stander CA(SA) Director mobile: 073 460 6350 email: @.**@.mailto:***@***.******@***.***> [Facebook icon]https://web.facebook.com/TheAccountrepreneur/ [LinkedIn icon] https://www.linkedin.com/in/shaan-stander-ca-sa-a0925896/ [Google Plus icon] https://www.theaccountrepreneur.co.za/ Disclaimer Statement: This e-mail and any file transmitted with it contain confidential information, which is intended only for use by the addressee. If you have received this e-mail in error then copying, distributing, disclosing or otherwise acting in reliance upon this e-mail is strictly prohibited. If you have received this message in error, please notify The Accountrepreneur immediately. Any views expressed in this message are those of the individual sender and The Accountrepreneur accepts no liability for the content of this message except where the sender specifically states them to be the views of The Accountrepreneur.

From: dharmeshbhana @.<mailto:@.>> Sent: Friday, 13 January 2023 15:25 To: swartjean/ha-eskom-loadshedding @.<mailto:@.>> Cc: Shaan Stander @.<mailto:@.>>; Author @.<mailto:@.>> Subject: Re: [swartjean/ha-eskom-loadshedding] Not allowing installation (Issue #28)

Also tried via HACS - installed Eskom load shedding interface. Shows up under custom config folder, but dosent allow to proceed to UI...

— Reply to this email directly, view it on GitHub< https://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1381847102>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/A24G7JFVP3H63ZWRYIXS7GLWSFJRRANCNFSM6AAAAAAR6HCPNQ>.

You are receiving this because you authored the thread.Message ID: @.**@.mailto:***@***.******@***.***>>

— Reply to this email directly, view it on GitHub https://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1383618962, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQWZDP3YAWDA7CRU6X3DV4LWST5EBANCNFSM6AAAAAAR6HCPNQ . You are receiving this because you commented.Message ID: @.<mailto:@.>>

— Reply to this email directly, view it on GitHubhttps://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1383639037, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A24G7JEDGOUNQ6U4XEAIPM3WST7FTANCNFSM6AAAAAAR6HCPNQ. You are receiving this because you authored the thread.Message ID: @.**@.>>

dharmeshbhana commented 1 year ago

Thanks

Thanks, interesting. I wanted to do the same with SUnsynk inverter but at this point I cannot get data.API for that. Suppose go to go the Solar assistant route.

Maybe question your integration. I'm using NodeRed for automations and trying to get the future next load shedding time so I can run some automations. I see it shows up on the calendar but there isn't entity that states next load shedding time? Unless I am not reading it correctly.

Thanks

On Mon, 16 Jan 2023 at 10:14, StanderHome @.***> wrote:

I have mine hooked up to my solar so it can push batteries to start force charge if below a certain %, 2 hours before loadshedding in Home Assistant, backing up with Solar Assistant…

Quite nifty to have the ESP pull in to make the above happen.

Have a lekker week

[Logo]https://www.theaccountrepreneur.co.za/ Shaan Stander CA(SA) Director mobile: 073 460 6350 email: @.**@.> [Facebook icon]https://web.facebook.com/TheAccountrepreneur/ [LinkedIn icon] https://www.linkedin.com/in/shaan-stander-ca-sa-a0925896/ [Google Plus icon] https://www.theaccountrepreneur.co.za/ Disclaimer Statement: This e-mail and any file transmitted with it contain confidential information, which is intended only for use by the addressee. If you have received this e-mail in error then copying, distributing, disclosing or otherwise acting in reliance upon this e-mail is strictly prohibited. If you have received this message in error, please notify The Accountrepreneur immediately. Any views expressed in this message are those of the individual sender and The Accountrepreneur accepts no liability for the content of this message except where the sender specifically states them to be the views of The Accountrepreneur.

From: dharmeshbhana @.> Sent: Monday, 16 January 2023 10:12 To: swartjean/ha-eskom-loadshedding @.> Cc: Shaan Stander @.>; Author @.> Subject: Re: [swartjean/ha-eskom-loadshedding] Not allowing installation (Issue #28)

Thanks.

Sorted....

On Mon, 16 Jan 2023, 09:54 StanderHome, @.<mailto:@.>> wrote:

Hi there

Happy to assist with this if youd like,

Send me your number. A call might be easier

[Logo]https://www.theaccountrepreneur.co.za/ Shaan Stander CA(SA) Director mobile: 073 460 6350 email: @.**@.mailto:***@***.******@***.***> [Facebook icon]https://web.facebook.com/TheAccountrepreneur/ [LinkedIn icon] https://www.linkedin.com/in/shaan-stander-ca-sa-a0925896/ [Google Plus icon] https://www.theaccountrepreneur.co.za/ Disclaimer Statement: This e-mail and any file transmitted with it contain confidential information, which is intended only for use by the addressee. If you have received this e-mail in error then copying, distributing, disclosing or otherwise acting in reliance upon this e-mail is strictly prohibited. If you have received this message in error, please notify The Accountrepreneur immediately. Any views expressed in this message are those of the individual sender and The Accountrepreneur accepts no liability for the content of this message except where the sender specifically states them to be the views of The Accountrepreneur.

From: dharmeshbhana @.<mailto:@.>> Sent: Friday, 13 January 2023 15:25 To: swartjean/ha-eskom-loadshedding @.<mailto:@.>> Cc: Shaan Stander @.<mailto:@.>>; Author @.<mailto:@.>> Subject: Re: [swartjean/ha-eskom-loadshedding] Not allowing installation (Issue #28)

Also tried via HACS - installed Eskom load shedding interface. Shows up under custom config folder, but dosent allow to proceed to UI...

— Reply to this email directly, view it on GitHub<

https://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1381847102>,

or unsubscribe<

https://github.com/notifications/unsubscribe-auth/A24G7JFVP3H63ZWRYIXS7GLWSFJRRANCNFSM6AAAAAAR6HCPNQ>.

You are receiving this because you authored the thread.Message ID: @.**@.mailto:***@***.******@***.***>>

— Reply to this email directly, view it on GitHub < https://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1383618962>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AQWZDP3YAWDA7CRU6X3DV4LWST5EBANCNFSM6AAAAAAR6HCPNQ>

. You are receiving this because you commented.Message ID: @.<mailto:@.>>

— Reply to this email directly, view it on GitHub< https://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1383639037>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/A24G7JEDGOUNQ6U4XEAIPM3WST7FTANCNFSM6AAAAAAR6HCPNQ>.

You are receiving this because you authored the thread.Message ID: @.**@.>>

— Reply to this email directly, view it on GitHub https://github.com/swartjean/ha-eskom-loadshedding/issues/28#issuecomment-1383641812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQWZDPYJDKO2FB53HAJ3EKLWST7N5ANCNFSM6AAAAAAR6HCPNQ . You are receiving this because you commented.Message ID: @.***>

swartjean commented 1 year ago

Hi @dharmeshbhana, I am also generally using Node Red for automation but I have been using the native HA automation system for its calendar trigger functionality. I haven't really played around with getting upcoming calendar events into Node Red.

You're right that there isn't a standalone entity displaying the time of the next loadshedding event. Easiest way to get this is probably by pulling the start time of the next loadshedding event out of the calendar using a template sensor along the lines of:

{{as_timestamp(states.calendar.loadshedding_local_events.attributes.start_time)}}

Or if you want something more like a countdown:

{{as_timestamp(states.calendar.loadshedding_local_events.attributes.start_time) - as_timestamp(now())}}

You might just need to add some default values in case the templates break when loadshedding is suspended.

Closing this issue since it isn't really related anymore and the original problem was resolved, feel free to open another if needed 👍