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
71.03k stars 29.7k forks source link

Entity not updating via Automation when marked as not Visible #110265

Closed miiisch closed 3 months ago

miiisch commented 6 months ago

The problem

I have an automation that updates a Switch (switch.turn_on) This automation works perfectly and how it should, as long as the target switch is Visible.

I wanted to mark the Switch not visible, because I don't want it to appear on my Area Card ("Hidden entities will not be shown on your dashboard or included when indirectly referenced (ie via an area or device). Their history is still tracked and you can still interact with them with services."). Hiding the switch works as it should, but now the automation does not seem to be able to trigger the switch anymore. I see in the traces that the automation is executed, but the state of the switch does not change.

As soon as I make the switch visible again, everything works again.

What version of Home Assistant Core has the issue?

core-2024.2.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tasmota

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

service: switch.turn_on
data: {}
target:
  device_id:
    - xyz

Anything in the logs that might be useful for us?

Automation trace timeline for successful call (switch configured as visible):

Triggered by the state of binary_sensor.water_pump_target at February 11, 2024 at 3:02:40 PM
Call a service 'Switch: Turn on' on Socket Water Pump
(switch.water_pump) turned on
Finished at February 11, 2024 at 3:02:40 PM (runtime: 0.01 seconds)

Automation trace timeline for unsuccessfull call (switch configured as not visible):
Triggered by the state of binary_sensor.water_pump_target at February 11, 2024 at 3:01:57 PM
Call a service 'Switch: Turn on' on Socket Water Pump
Finished at February 11, 2024 at 3:01:57 PM (runtime: 0.01 seconds)

Additional information

No response

issue-triage-workflows[bot] commented 3 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.