Finding device a certain entity belongs to?

Hi

I have a daylight sensor that is connected to HA via RFXTRX.

I find an entity belonging to the sensor, the entity is

binary_sensor.daylightsensor

I want to use this in an Automation, but in the automation I need to specify the device, and I don’t know which device this is.

How can I find which device a certain entity belongs to?

EDIT:

This sensor controls a light switch which is also RFXTRX and it seems this entity belongs to the light switch rather than the daylight sensor. And the sensor controls the switch directly, not via HA. But HA detects the auto detects the units when they communicate, so I guess actually HA has detected the sensor rather than the light switch. Hmmm, I guess this is the answer I was looking for. So actually in HA what is named as the light switch is actually the sensor.

Thanks!

image

click on three dots and click device info.

1 Like

Beware that the usage of devices can put you in some weird situation.
If you can then always use entities.