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!