-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Description
Checklist
- I have updated to the latest available Home Assistant version.
- I have cleared the cache of my browser.
- 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
My template security type sensor do not appear in security pannel.
I tried to change the device class from motion to occupancy, but the resut is the same.
The code of the sensor (based on a switch manipulated by other automation means), in my templates.yaml file:
- binary_sensor:
- name: "Echo salon mouvement"
unique_id: sensor.echo_salon_mouvement
state: "{{ is_state('switch.echo_salon_presence', 'on') }}"
device_class: motion
Worth mentioning, in the area subview, they appear under the "other" category, not the security section.
I tried to change the "display as" in the UI also, without effect.
Describe the behavior you expected
I would have expected to see in the security part all sensor related to security, including the templates.
Steps to reproduce the issue
- create a template:
- template:
- binary_sensor:
- name: "fake motion sensor"
unique_id: sensor.fake_motion_sensor
state: "{{ is_state('switch.any_convenient_switch', 'on') }}"
device_class: motion
- attribute it to an area
- look into the attributed area view of the home dashboard or the security panel to check if the fake motion sensor appear
What version of Home Assistant Core has the issue?
2025.12.2
What was the last working version of Home Assistant Core?
none
In which browser are you experiencing the issue?
all of them
Which operating system are you using to run this browser?
window (not related)
State of relevant entities
on or off show same result.Problem-relevant frontend configuration
home dashboard (no yaml, no customisation)JavaScript errors shown in your browser console/inspector
no error reportedAdditional information
No response
Metadata
Metadata
Assignees
Labels
No labels