WTH, Why cant we use Show as on an input_boolean?

want to make a clear distinction between some binary sensors on the left and the toggle (boolean) in the right

type: picture-glance
title: Vijver
image: /local/images/areas/vijver.png
state_filter:
  'off': grayscale(72%)
entity: binary_sensor.vijverpompen
entities:
  - sensor.vijver_thermometer_temperature
  - sensor.pond_buiten_sensor_temperature
  - binary_sensor.vijverpompen
  - binary_sensor.vijverpompen_alterneren
  - binary_sensor.vijver_donker_koud
  - switch.vijverpomp_links
  - switch.vijverpomp_rechts
  - input_boolean.vijverpompen_toggle_override

as set Show as to ‘switch’, or some other available class. However, that is not available for the booleans in the UI?

So, please add that to the UI options

Can you elaborate a bit? I don’t follow the request

love to have that Show as option here on the boolean:

and set it to a eg switch icon, like we can on the other toggle able’s

because currently there’s almost no distinction between a binary and a boolean

Ah ok, you’re asking for device_classes on input_booleans.

well, I am not sure if these really are the device_classes. Ive asked that before, and got the answer they weren’t the same, so from that moment on I ask for ‘Show as’ when talking about the front-end, and device_class when talking about the backend…

eg I also asked for Presence to be set allows for switches, and recall that distinction being made.

see:

Id love to set the Show as to Motion, but thats not available, so I have to keep using custom-ui for that :wink:

homeassistant:

  customize_glob:

    switch.*motion_sensor_switches*:
#      device_class: motion
       templates:
         icon: >
           return (state === 'on') ? 'mdi:motion-sensor' : 'mdi:motion-sensor-off';

device_class: motion can’t be set on a switch unfortunately…

likewise for boolean:

homeassistant:

  customize:

    input_boolean.vijverpompen_toggle_override:
#       device_class: switch
       templates:
         icon: >
           return (state === 'on') ? 'mdi:toggle-switch' : 'mdi:toggle-switch-off';

does fix it:

which is a better indicator for manual input imho. Unfortunately, when I made that frontend PR for the icon, it was assessed the icon should not mimic the actionable toggle. With this as a consequence, most obvious in the Glance cards