Skip to content

Motion sensor do not appear in Security panel #28501

@BBE-FR

Description

@BBE-FR

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.

Image

I tried to change the "display as" in the UI also, without effect.

Image

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

  1. 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
  1. attribute it to an area
  2. 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 reported

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions