Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger "homeassistant": Error doing job: Task exception was never retrieved (None) #76

Open
MickLesk opened this issue Aug 28, 2024 · 2 comments

Comments

@MickLesk
Copy link

I get this error quite often in the log. Unfortunately, I don't know why. I have already had a rough look at the location, but could not see any direct error.

# Google Nest Hub Integration
continuously_casting_dashboards:
  logging_level: warning 
  cast_delay: 3600 
  start_time: "07:00" 
  end_time: "22:00" 
  devices:
    "Nest Hub": 
      - dashboard_url: "http://192.***.**.***:****/dashboard-google/google?kiosk" #Required: Dashboard URL to be casted (This must be the local IP address of your HA instance, not homeassistant.local)
        volume: 5 
        start_time: "07:00" 
        end_time: "23:00" 
  state_triggers:
    "Push 1":
      - entity_id: "media_player.nest_hub"
        to_state: "idle"
        dashboard_url: "http://192.***.**.***:****/dashboard-google/google?kiosk"
        time_out: 60
        force_cast: true
shell_command:
  cast_weather: catt -d "Nest Hub" cast_site http://192.***.**.***:****/dashboard-google/google?kiosk
Logger: homeassistant
Source: custom_components/continuously_casting_dashboards/dashboard_caster.py:229
Integration: Continuously Cast Dashboards (documentation)
First occurrence: 09:13:55 (16 occurrences)
Last logged: 11:22:41

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/config/custom_components/continuously_casting_dashboards/dashboard_caster.py", line 125, in handle_state_change_event
    media_playing = await self.check_media_state(device_name)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/continuously_casting_dashboards/dashboard_caster.py", line 229, in check_media_state
    media_state_name = self.device_map[device_name]["media_state_name"]
                       ~~~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'Push 1'
@ENT108
Copy link

ENT108 commented Sep 29, 2024

Same here

@Jimfizz
Copy link

Jimfizz commented Nov 24, 2024

I have the same issue... I tried 2 different cast devices and encountered the error on both

=== Configuration ===

continuously_casting_dashboards:
  logging_level: warning
  cast_delay: 45
  switch_entity_id: "input_boolean.scheduled_cast_on_nest_hub_2"
  devices:
    "Nest Hub 2":
      - dashboard_url: "https://............./dashboard-nesthubcast"
        start_time: "07:00"
        end_time: "23:30" 
  state_triggers:
    "Nest Hub 1": 
      - dashboard_url: "https://........../dashboard-nesthubcast"
        entity_id: "input_boolean.cast_on_nest_hub_1"
        to_state: "on"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants