Input_number with secondary line, how to keep the slider

after having removed secondaryinfo-entity-row card, because it explicitly needs to load the card-tools in resources, I’ve yet found another reason to re-install it again…
It seems to be the only card that can show a secondary line with another entity, without losing the slider of the main input_number entity. See below:

      - input_number.front_room_lux
      - type: custom:multiple-entity-row
        entity: input_number.front_room_lux
        secondary_info:
          entity: sensor.front_room_sensor_light_level
          unit: lx
      - type: custom:template-entity-row
        entity: input_number.front_room_lux
        secondary: >
          {{states('sensor.front_room_sensor_light_level')}} lx
      - type: custom:secondaryinfo-entity-row
        entity: input_number.front_room_lux
        secondary_info: >
          Current: [[ sensor.front_room_sensor_light_level.state ]] lx

which shows as:

maybe I am incorrectly using the yaml configs, so that’s why I post here, maybe anyone could spot an error. Or simply have another suggestion?

If not, this is for reference and help to other forum members seeking what I did.

btw, not visibile here: as often the sliders don’t show their states, the quick test with this secondaryinfo card above always kept showing it, while the others showed a blank state position.

see:

      - type: custom:secondaryinfo-entity-row
        entity: input_number.front_room_lux
        secondary_info: >
          Front room: {{states('sensor.front_room_sensor_light_level')}} lx
      - entity: input_number.high_lux
        secondary_info: true
        card_mod:
          style:
            hui-generic-entity-row$: |
              .secondary::after {
                content: "Mean indoor: {{states('sensor.mean_indoor_lux')}} lx"
                }

which solves this. :wink: