leeyuentuen / tibber_ev

Tibber EV - Home Assistant Component
MIT License
7 stars 1 forks source link

Connection Lost #8

Closed Birdman86 closed 9 months ago

Birdman86 commented 10 months ago

Since updating to latest 0.2.2, it is no longer updating the data. No even reloading the integration will reconnect it. Only way it works is if I remove it and re-add the integration.

Worked just fine on 0.1

leeyuentuen commented 10 months ago

maybe give me some log?

Birdman86 commented 10 months ago

No error shown in the logs.

leeyuentuen commented 10 months ago

No error shown in the logs.

normally on the integration, you can select start logging debug. everything will be logged from the integration. and if you stop them, it will download the log will all the results

leeyuentuen commented 10 months ago

Screenshot_2023-11-18-12-07-46-97_c3a231c25ed346e59462e84656a70e50~2

Birdman86 commented 10 months ago

home-assistant_tibber_ev_2023-11-18T11-55-05.696Z.log

leeyuentuen commented 10 months ago

home-assistant_tibber_ev_2023-11-18T11-55-05.696Z.log

hi,

from the information that i see in the log, it is still polling the data:

2023-11-18 12:54:38.149 DEBUG (MainThread) [custom_components.tibber_ev.tibber_api] Response {'data': {'me': {'homes': [{'electricVehicles': [{'id': '6dd5d570-4137-40a4-b810-e877f4e251cc', 'name': '2023 Polestar 2 Space', 'shortName': 'Polestar 2', 'lastSeen': '2023-11-18T11:46:25.000+00:00', 'lastSeenText': 'Last updated: 8 minutes ago', 'isAlive': True, 'hasNoSmartChargingCapability': True, 'imgUrl': 'https://resources.tibber.com/vehicles/Polestar_Space.png', 'schedule': {'isEnabled': True, 'isSuspended': False, 'localTimeTo': '07:00:00', 'minBatteryLevel': None}, 'batteryText': '41%', 'chargingText': None, 'consumptionText': 'Charging at home in November:', 'consumptionUnitText': '238 kWh', 'energyCostUnitText': '115 kr', 'chargeRightAwayButton': None, 'chargeRightAwayAlert': None, 'backgroundStyle': 'default', 'energyDealCallToAction': None, 'settingsScreen': {'settings': [], 'settingsLayout': [{'uid': None, 'type': 'header', 'title': 'Smart Charging', 'description': "This Power-up doesn't work with your current version of the Tibber app. Please update the app on your phone.", 'valueText': None, 'imgUrl': None, 'iconName': None, 'isUpdated': None, 'isEnabled': None, 'callToAction': None, 'childItems': None, 'settingKey': None, 'settingKeyForIsHidden': None}]}, 'settingsButtonText': 'How to smart charge this car?', 'settingsButton': {'text': 'How to smart charge this car?', 'url': 'https://support.tibber.com/en/articles/6675026-smart-charge-your-polestar-volvo-recharge-with-tibber', 'redirectUrlStartsWith': None, 'link': None, 'action': None, 'enabled': False}, 'enterPincode': False, 'message': None, 'scheduleSuspendedText': None, 'faqUrl': None, 'battery': {'percent': 41, 'percentColor': '#FFFFFF', 'isCharging': False, 'chargeLimit': 100}}]}]}}}
2023-11-18 12:54:53.172 DEBUG (MainThread) [custom_components.tibber_ev.tibber_api] Response <ClientResponse(https://app.tibber.com/v4/gql) [200 OK]>
<CIMultiDictProxy('Date': 'Sat, 18 Nov 2023 11:54:53 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'X-Powered-By': 'Express', 'Access-Control-Allow-Origin': '*', 'Etag': 'W/"62b-CjCCfkhMqJ762EZfGWiRRse3Wzc"', 'Vary': 'Accept-Encoding', 'Content-Encoding': 'gzip')>

2023-11-18 12:54:53.172 DEBUG (MainThread) [custom_components.tibber_ev.tibber_api] Response {'data': {'me': {'homes': [{'electricVehicles': [{'id': '6dd5d570-4137-40a4-b810-e877f4e251cc', 'name': '2023 Polestar 2 Space', 'shortName': 'Polestar 2', 'lastSeen': '2023-11-18T11:46:25.000+00:00', 'lastSeenText': 'Last updated: 8 minutes ago', 'isAlive': True, 'hasNoSmartChargingCapability': True, 'imgUrl': 'https://resources.tibber.com/vehicles/Polestar_Space.png', 'schedule': {'isEnabled': True, 'isSuspended': False, 'localTimeTo': '07:00:00', 'minBatteryLevel': None}, 'batteryText': '41%', 'chargingText': None, 'consumptionText': 'Charging at home in November:', 'consumptionUnitText': '238 kWh', 'energyCostUnitText': '115 kr', 'chargeRightAwayButton': None, 'chargeRightAwayAlert': None, 'backgroundStyle': 'default', 'energyDealCallToAction': None, 'settingsScreen': {'settings': [], 'settingsLayout': [{'uid': None, 'type': 'header', 'title': 'Smart Charging', 'description': "This Power-up doesn't work with your current version of the Tibber app. Please update the app on your phone.", 'valueText': None, 'imgUrl': None, 'iconName': None, 'isUpdated': None, 'isEnabled': None, 'callToAction': None, 'childItems': None, 'settingKey': None, 'settingKeyForIsHidden': None}]}, 'settingsButtonText': 'How to smart charge this car?', 'settingsButton': {'text': 'How to smart charge this car?', 'url': 'https://support.tibber.com/en/articles/6675026-smart-charge-your-polestar-volvo-recharge-with-tibber', 'redirectUrlStartsWith': None, 'link': None, 'action': None, 'enabled': False}, 'enterPincode': False, 'message': None, 'scheduleSuspendedText': None, 'faqUrl': None, 'battery': {'percent': 41, 'percentColor': '#FFFFFF', 'isCharging': False, 'chargeLimit': 100}}]}]}}}
2023-11-18 12:55:08.159 DEBUG (MainThread) [custom_components.tibber_ev.tibber_api] Response <ClientResponse(https://app.tibber.com/v4/gql) [200 OK]>
<CIMultiDictProxy('Date': 'Sat, 18 Nov 2023 11:55:08 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'X-Powered-By': 'Express', 'Access-Control-Allow-Origin': '*', 'Etag': 'W/"62b-IvVUGw3agFauc5N0BUdrem5VP5M"', 'Vary': 'Accept-Encoding', 'Content-Encoding': 'gzip')>

2023-11-18 12:55:08.159 DEBUG (MainThread) [custom_components.tibber_ev.tibber_api] Response {'data': {'me': {'homes': [{'electricVehicles': [{'id': '6dd5d570-4137-40a4-b810-e877f4e251cc', 'name': '2023 Polestar 2 Space', 'shortName': 'Polestar 2', 'lastSeen': '2023-11-18T11:46:25.000+00:00', 'lastSeenText': 'Last updated: 9 minutes ago', 'isAlive': True, 'hasNoSmartChargingCapability': True, 'imgUrl': 'https://resources.tibber.com/vehicles/Polestar_Space.png', 'schedule': {'isEnabled': True, 'isSuspended': False, 'localTimeTo': '07:00:00', 'minBatteryLevel': None}, 'batteryText': '41%', 'chargingText': None, 'consumptionText': 'Charging at home in November:', 'consumptionUnitText': '238 kWh', 'energyCostUnitText': '115 kr', 'chargeRightAwayButton': None, 'chargeRightAwayAlert': None, 'backgroundStyle': 'default', 'energyDealCallToAction': None, 'settingsScreen': {'settings': [], 'settingsLayout': [{'uid': None, 'type': 'header', 'title': 'Smart Charging', 'description': "This Power-up doesn't work with your current version of the Tibber app. Please update the app on your phone.", 'valueText': None, 'imgUrl': None, 'iconName': None, 'isUpdated': None, 'isEnabled': None, 'callToAction': None, 'childItems': None, 'settingKey': None, 'settingKeyForIsHidden': None}]}, 'settingsButtonText': 'How to smart charge this car?', 'settingsButton': {'text': 'How to smart charge this car?', 'url': 'https://support.tibber.com/en/articles/6675026-smart-charge-your-polestar-volvo-recharge-with-tibber', 'redirectUrlStartsWith': None, 'link': None, 'action': None, 'enabled': False}, 'enterPincode': False, 'message': None, 'scheduleSuspendedText': None, 'faqUrl': None, 'battery': {'percent': 41, 'percentColor': '#FFFFFF', 'isCharging': False, 'chargeLimit': 100}}]}]}}}

as my previous screenshot, did you saw "1 device, 11 entities" or dit you see "2 device, 11 entities"?

Birdman86 commented 10 months ago

The change you did regarding "friendly name" forced it to create a new one, so I had 2 devices, one of which was the old one. I deleted both devices and downloaded version 0.2.2 and created a new one, so now I only have one device, but still same issue.

I'll try a hard reboot.

leeyuentuen commented 10 months ago

The change you did regarding "friendly name" forced it to create a new one, so I had 2 devices, one of which was the old one. I deleted both devices and downloaded version 0.2.2 and created a new one, so now I only have one device, but still same issue.

I'll try a hard reboot.

if still issue, send me again a new log file, the previous one it look like it has no issue on it

leeyuentuen commented 9 months ago

i've create a new beta version, can you see if this solve the fetch data issue?

@Birdman86

BonnyLindberg commented 9 months ago

I can confirm that I have the same issue. Testing Beta right now to see if it works.

leeyuentuen commented 9 months ago

I can confirm that I have the same issue. Testing Beta right now to see if it works.

just wait a minute, I see that there is still an issue on it

edit: try this: https://github.com/leeyuentuen/tibber_ev/releases/tag/0.2.5

BonnyLindberg commented 9 months ago

Tested and verified, now it works fine! 😊👍🏻

Birdman86 commented 9 months ago

Yeah, seems to be working fine.

wiljums commented 9 months ago

I still have the issue with the latest release.

BonnyLindberg commented 9 months ago

I have seen that it stops working after a while. image After a reload of the integration it updates the data again.

leeyuentuen commented 9 months ago

can you try again this new beta? https://github.com/leeyuentuen/tibber_ev/releases/tag/0.2.6

image

BonnyLindberg commented 9 months ago

Ok, I have installed it now and will do tests during the day. 😊👍

BonnyLindberg commented 9 months ago

Looks like it is working now. 🏆👍😊

leeyuentuen commented 9 months ago

released