I tried to convert the 2 Loxone sensors to the same format as the Zwave sensors through a helper. But there is no helper that creates a open / closed format.
Does anyone have an idea how I can have 2 Loxone door sensors use the same options (open / close) as the Zwave sensors so all 4 sensors use the same format?
Pretty sure you can just edit the entities in the UI, and change the ‘Show as’ to garage/door. This should change states to be open/closed instead of on/off.
It may still work through the user interface, but you only gave screenshots for the related entities tab, not the settings tab. Try to click settings again.
The settings tab on your screenshot above should have a dropdown option for ‘Show as’ where you can select the device class for the entity. That’s assuming you are running a recent version of HA as this feature was only added recently I think. No need for customizing entities which is now yaml only.
This screen? (there is indeed a bug as it’s something showing the wrong “settings” page)
There is no “Show as” - My HA is 2022.6.6 and all integrations are also all up to date.
Have checked some of my other entities (door contacts) where the “Show As” option is being displayed. So it seems this entity in question is not supported.
To change the appearance of the entity’s icon you should use the icon option not entity_picture.
I doubt you’ll be able to set either entity’s device_class to door or garage_door because they are meant for binary_sensor entities not sensors. The available device_classes for sensors is quite different from binary_sensors.
Now the 2 sensors are shown on my UI the same way as others:
Was a long way to get here but a nice little research project. Thanks to all contributors who helped me come to this solution, couldn’t have made it otherwise
Hi Paddy, yes I’ve reversed the on/off state as that type of door sensor goes to ON while closed while my other door sensors go to OFF while closed. Thanks