sensor.greenely icon indicating copy to clipboard operation
sensor.greenely copied to clipboard

API fails to get price

Open fn87 opened this issue 2 years ago • 2 comments

2022-06-23 11:43:08 ERROR (SyncWorker_8) [custom_components.greenely.api] Failed to get price data,

Happens on both the accounts I have. Tried setting debug log level but it didn't give any feedback.

fn87 avatar Jun 23 '22 09:06 fn87

500 error from the API. The app doesn't use this endpoint anymore.

A simple solution if anybody needs it is to use a template sensror like this: greenly_price_sek: unique_id: '4198402987928173' value_template: >- {% for i in states.sensor.greenely_prices.attributes.current_day %} {%if i.time.split(":")[0]|int == now().hour %} {{i.price|float/100}} {% endif%} {% endfor %} unit_of_measurement: SEk/kWh

fn87 avatar Jun 28 '22 09:06 fn87

This issue should be fixed now. @fn87 can you try again and let me know if it's resolved?

linsvensson avatar Jul 01 '22 09:07 linsvensson

Closed due to lack of response

linsvensson avatar Dec 16 '22 22:12 linsvensson