home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.94k stars 29.03k forks source link

The automation "LIGHT: Back Porch OFF midnight" has an action that calls an unknown service: light.turn_off. #110768

Closed JDMBIRD83 closed 4 months ago

JDMBIRD83 commented 4 months ago

The problem

After a core update to homeassistant, all of my automations involving the light service are not working. I'm getting the above errors from my automations, and my entities for these devices are throwing error: "This entity is no longer being provided by the switch_as_x integration. If the entity is no longer in use, delete it in settings."

What version of Home Assistant Core has the issue?

core-2024.2.2

What was the last working version of Home Assistant Core?

core-2024.1.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Automations using lights on or lights off commands

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.automation.light_porch_dim_off_10pm_worknights
Source: helpers/script.py:1805
Integration: Automation (documentation, issues)
First occurred: 10:00:00 PM (1 occurrences)
Last logged: 10:00:00 PM

💡LIGHT: Porch Dim & Off 10pm 💼Worknights: Error executing script. Service not found for call_service at pos 1: Service light.turn_off not found.

------------------------------------

Logger: homeassistant.core
Source: core.py:473
First occurred: 5:14:56 PM (1 occurrences)
Last logged: 5:14:56 PM

Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at https://github.com/home-assistant/core/issues: shopping_list, geo_location, wyoming, iss, smartthings, airthings.sensor, unifi.switch, gdacs.geo_location, sense, auth, androidtv_remote, unifiprotect.binary_sensor, braviatv.remote, local_todo.todo, hassio.sensor, logbook, homeassistant_alerts, map, schedule, shopping_list.todo, cync_lights.fan, hassio, alarm_control_panel, hassio.binary_sensor, zha.binary_sensor, unifiprotect.text, usb, default_config, select, matter, input_datetime, nest, script, unifi.update, unifiprotect, airthings, openuv.sensor, vesync.humidifier, recorder, hacs, google_translate, zha.alarm_control_panel, calendar, openuv, openuv.binary_sensor, conversation, met.weather, lock, wyoming.tts, search, nws, wyoming.stt, fan, ipp.sensor, vesync.fan, braviatv.button, local_todo, energy.sensor, mobile_app.notify, text, unifiprotect.lock, update, dlna_dmr.media_player, braviatv, unifi.sensor, input_number, switch_as_x, ipp, spotify.media_player, input_text, persistent_notification, dhcp, timer, vesync.binary_sensor, ssdp, sun.sensor, media_source, braviatv.media_player, unifi.button, image_upload, opower, unifiprotect.sensor, hardware, gdacs, zha.cover, zha.lock, thread, http, met, tplink.sensor, application_credentials, mobile_app.device_tracker, history, zha.fan, hacs.update, pi_hole, spotify, stream, flume, aurora, sun, zha.update, sense.sensor, zha.sensor, homeassistant, device_tracker, zha.number, system_log, image, mobile_app.binary_sensor, analytics, hassio.update, remote, unifi.image, counter, my, repairs, onboarding, scene, ffmpeg, homeassistant_sky_connect, websocket_api, input_select, lovelace, sense.binary_sensor, system_health, button, unifiprotect.media_player, dlna_dmr, zone, cast.media_player, config, workday, energy, iss.sensor, notify, cloud.tts, google_assistant, vesync.number, number, cloud, diagnostics, logger, tts, camera, wake_word, blueprint, switch, zeroconf, automation, zha.select, gdacs.sensor, unifi.device_tracker, network, moon.sensor, flume.sensor, homeassistant.scene, holiday, radio_browser, tuya, holiday.calendar, unifiprotect.camera, tplink.switch, cloud.binary_sensor, zha, climate, assist_pipeline, media_player, person, mobile_app, device_automation, trace, cync_lights, webhook, tplink, google_translate.tts, cloud.stt, homeassistant_green, sensor, input_button, hacs.sensor, zha.device_tracker, moon, cover, unifiprotect.number, vesync.sensor, siren, frontend, cast, stt, file_upload, waqi, unifiprotect.select, unifiprotect.switch, zha.button, homeassistant_hardware, todo, unifi, cync_lights.switch, mobile_app.sensor, flume.binary_sensor, vesync, wyoming.wake_word, group, tag, unifiprotect.button, humidifier, api, roomba, group.binary_sensor, binary_sensor, bluetooth, cync_lights.binary_sensor, zha.switch, workday.binary_sensor, zha.climate, weather, zha.siren, input_boolean

Additional information

I have encountered a similar issue once before, and reinstalled the os, and reconfigured my homeassistant. Everything was working as intended for some time before the issue came up again during core update. This is the same way it came up during the previous instance if this issue.

mib1185 commented 4 months ago

"This entity is no longer being provided by the switch_as_x integration. If the entity is no longer in use, delete it in settings."

this is the root cause here - please provide details about the entities which are used by switch_as_x to provide the entities for your automation

issue-triage-workflows[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

JDMBIRD83 commented 4 months ago

I updated to the latest version and am continuing to encounter this issue

On Sat, Mar 9, 2024, 6:06 AM issue-triage-workflows[bot] < @.***> wrote:

Closed #110768 https://github.com/home-assistant/core/issues/110768 as not planned.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/110768#event-12062937474, or unsubscribe https://github.com/notifications/unsubscribe-auth/BE4U3CUOKQ7TE66NQTIMLMTYXLUKFAVCNFSM6AAAAABDM7HEYCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGA3DEOJTG42DONA . You are receiving this because you authored the thread.Message ID: @.***>