question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

solar power sensor unavailable

See original GitHub issue

Version of the custom_component

v2.4.1

Configuration

logger:
  default: critical
  logs:
    custom_components.tesla_custom: debug
    teslajsonpy: debug

Describe the bug

Solar power sensor unavailable, however still able to view history

image

image

Debug log


This error originated from a custom integration.

Logger: custom_components.tesla_custom
Source: custom_components/tesla_custom/__init__.py:288
Integration: Tesla Custom Integration (documentation, issues)
First occurred: 4:03:59 PM (6 occurrences)
Last logged: 4:04:50 PM

Unexpected error fetching tesla_custom data: 'grid_status'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh
    self.data = await self._async_update_data()
  File "/config/custom_components/tesla_custom/__init__.py", line 288, in _async_update_data
    return await self.controller.update()
  File "/usr/local/lib/python3.10/site-packages/teslajsonpy/controller.py", line 1074, in update
    return any(await asyncio.gather(*tasks))
  File "/usr/local/lib/python3.10/site-packages/teslajsonpy/controller.py", line 991, in _get_and_process_energysite_data
    if response["grid_status"] == "Active":
KeyError: 'grid_status'


Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
ylwmambacommented, Aug 30, 2022

@ylwmamba Version 2.4.2 is out so please give that a shot and let me know if it does or does not fix the issue.

It looks like this may have fixed the issue. It’s no longer showing unavailable and nothing showing up on the logs. I’ll take a look tomorrow to see if the data is coming through. Thanks for all the hard work!

image

0reactions
shred86commented, Aug 30, 2022

@ylwmamba Version 2.4.2 is out so please give that a shot and let me know if it does or does not fix the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Reasons Why Your Solar Lights Not Working & How To Fix
There are many reasons why your solar lights are not working such as broken wires, dead batteries, no sufficient sunlight, and many more....
Read more >
Solar Lights Are Not Working - How To Fix Outdoor Solar ...
Solution: Check the solar light motion sensor or solar panel on some models to be sure there is no sticker or something obstructing...
Read more >
A Guide How To Fix Your Solar Light Sensor In 5 Easy Steps
One way to tell if your solar light sensor is broken is to check the light itself. If the light is not coming...
Read more >
How to Fix Motion Sensor Security Floodlight Not Working?
- If the light does not work in all modes, please check if the solar panel can charge the light or not. Please...
Read more >
Why Solar Lights not Working - Common Reasons
The sensors of your solar light can be tested quite easily by putting your hand on top of your solar light. If the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found