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.

Multiple errors in log

See original GitHub issue

I’m receiving multiple errors in the log:

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/adaptive_lighting/switch.py:1220
Integration: Adaptive Lighting
First occurred: July 1, 2021, 5:59:50 PM (66 occurrences)
Last logged: 8:08:07 AM

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/adaptive_lighting/switch.py", line 1220, in turn_on_off_event_listener
    entity_ids = cv.ensure_list_csv(service_data[ATTR_ENTITY_ID])
KeyError: 'entity_id'

I do have a motion sensor setup that I may believe could be the culprit.

Any suggestions on debugging?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
barberiocommented, Aug 8, 2021

I also saw this error, and have identified that it is caused by automations calling light.turn_on or light.turn_off against a device. A work around is to change this to a call against an entity instead.

Possibly caused by the control detection code expecting to always see an entity?

(It may also be occurring with areas being turned on and off, but I don’t use areas.)

1reaction
systemcrashcommented, Aug 15, 2021

Yeah, I get this:

ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/adaptive_lighting/switch.py", line 1228, in turn_on_off_event_listener
    entity_ids = cv.ensure_list_csv(service_data[ATTR_ENTITY_ID])
KeyError: 'entity_id'

When I trigger an automation.

Configure like so: Action: Call service: light.turn_off: pick device(s)… : transition, 5 sec Action: Call service: light.turn_on: pick device(s)… : transition, 5 sec

no properties set when I use turn_on (except transition)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Logging Multiple Errors on Single Line - Stack Overflow
I'm trying to log some expected errors. Initially, I wrote my script like: except (BadZipFile, MemoryError) as e: logger.error(f ...
Read more >
Terraform errors are swallowed with "error" log level and run-all
Terraform errors are swallowed with "error" log level and run-all #1626 ... errors: Hit multiple errors: exit status 1 > terragrunt run-all ......
Read more >
Question: Use Document Cache for Logging Multiple Errors
I have to combine all these errors into one (say concatenate them into one string) and log the error and processed status (Yes...
Read more >
Multiple Errors VIs - NI - National Instruments
Multiple Errors VIs ; Write Error Cluster Attribute, Updates the value of an attribute stored in an error cluster. If the specified attribute ......
Read more >
Handle errors in ASP.NET Core Blazor apps - Microsoft Learn
NET Core Blazor manages unhandled exceptions and how to develop apps that ... Not all errors should be treated as incidents for logging....
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