frontend
frontend copied to clipboard
Logbook: "triggered by" changes after F5 to a wrong reason
Checklist
- [X] I have updated to the latest available Home Assistant version.
- [X] I have cleared the cache of my browser.
- [X] I have tried a different browser to see if it is related to my browser.
- [ ] I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.
Describe the issue you are experiencing
Consider a template binary sensor:
template:
- binary_sensor:
- name: testing_sensor
state: >-
{{ states('input_boolean.test_boolean') }}
Open Logbook for this sensor in some browser's tab.
In another tab open Settings -> Entities, find a source input_boolean.test_boolean entity & open a more-onfo window:
Then start turning the helper ON/OFF. Switch to the Logbook tab - it shows a correct reason "triggered by service input_boolean.turn_on/off":
Press F5 / reload the page. Now the reason becomes "triggered by state of testing_switch turned on/off":
This switch.testing_switch is just another test entity which was not directly involved:
switch:
- platform: template
switches:
testing_switch:
icon_template: >-
{% if is_state(this.entity_id,'on') -%}
mdi:radiobox-marked
{%- else -%}
mdi:radiobox-blank
{%- endif %}
value_template: >-
{{ is_state('input_boolean.test_boolean', 'on') }}
turn_on:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.test_boolean
turn_off:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.test_boolean
Describe the behavior you expected
A reason should be correct ("triggered by service input_boolean.turn_on/off") even after F5.
Steps to reproduce the issue
see above
What version of Home Assistant Core has the issue?
2024.7.1
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Chrome 126.0.6478.127
Which operating system are you using to run this browser?
Win10x64
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response