I have a problem with RFLink and aliases for sensors.
I have a temperature sensor that shows up ass more than one sensor in Home Assistant.
When I add one of the detected sensors as a alias to the other it still shows as a separate sensor.
When I add a switch as a alias it disappears, that’s what I want even for the sensors, I don’t want to se four separate sensors, I want to see it as one.
For the temperature sensor I, for the temperature, get the codes
Mabye, but I haven’t added it in my codes more than what you see above. They aren’t added as their own sensors.
Can I hide them anyway? And why does the sensors still show even if they’re added as a alias when the light and switches disappears when they are added as alias? Shouldn’t they behave in a similar maner?
I don’t use alias, I always hardcode my switch/sensor/light in my files, I don’t like using automatic_add
The rfl page has this to say…
HIDING/IGNORING SENSORS
Sensors are added automatically when the RFLink gateway intercepts a wireless command in the ether. To prevent cluttering the frontend use any of these methods:
Disable automatically adding of unconfigured new sensors (set automatic_add to false ).
But I don’t want to ignore the sensor. I whant it to show as one sensor since it alternates between which it sends the data to. Sometimes it sends to one of them the other time it sends to the other one. Thats why you use alias.
For switches you mabye have two remotes controlling the same switch then you can add one remote as an alias to the other, either of which you use the switch changes and HA recognises it.
It seems like it actually syncs its data when added as an alias, but it still shows. It worked to hide it in customize. The question is why it still shows when added as an alias. The alias should be used when a device is known as more than one ID. In this case the sensor alternates between different device IDs so I have to use all of them to get all the data.
That’s actually also a question why it dose like that.
This is making that HA creates a device every time that signal is recived. That’s the reason device is added.
But if I’m right, alias data should not be synchronized in the other device. That is the behavior that I observe in my devices.
But it doesn’t do that for switches, only sensors. The switches doesn’t show up as an own entity if its added as an alias wich it should do if its a problem with the alias function.
I’m pretty sure that sensor device is not initializing aliases configuration, but I can’t say wich behavior will have when it’s well configured.
If switches don’t add alias entities, I think that would be the same for sensors.
You can test yourself with a RFLink sensor custom_component.