benct / lovelace-multiple-entity-row

Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI
MIT License
786 stars 59 forks source link

Support slider(s) #163

Open tom-erik-l opened 3 years ago

tom-erik-l commented 3 years ago

It would be neat to be able to combine multiple entities per row, where some of them might be sliders.

See the below repository for usage of the slider-entity-row custom card: https://github.com/thomasloven/lovelace-slider-entity-row

A possible example could be having a brightness slider and a color temperature slider side-by-side.

benct commented 3 years ago

Setting the type field would indicate rendering another card inside the row, which neither this card or slider-entity-row is designed to do. A better solution is to actually support HA sliders when specified by a some config option. Not sure I'll have the time to implement that in near future, but I'll leave the issue open as a FR.

GerdBlomb commented 3 years ago

Not sure if this is the same topic (i think so):

I have a number_input defined as slider with min, max and step. When i use that in an "entities" card i get the value and the slider to modify that value. Thats ok.

When i use the same number_input in multiple-entity-row i get only the value and no slider. I can not change the value. Issue.

bjeanes commented 2 years ago

I'd love support for input_numbers in general, but in lieu of that I have done something like:

Screen Shot 2022-02-16 at 5 46 14 pm

The basic pattern for each of those is:

  - entity: sensor.tent_reservoir_ph
    name: pH
    type: custom:multiple-entity-row
    show_state: false
    secondary_info:
      entity: sensor.tent_reservoir_ph
      name: false
      unit: false
    entities:
      - icon: mdi:chevron-down
        styles:
          margin: 0
        tap_action:
          action: call-service
          service: input_number.decrement
          service_data:
            entity_id: input_number.minimum_ph
      - entity: input_number.minimum_ph
        name: min
        unit: false
        styles:
          margin: 0
      - icon: mdi:chevron-up
        tap_action:
          action: call-service
          service: input_number.increment
          service_data:
            entity_id: input_number.minimum_ph
      - icon: mdi:chevron-down
        styles:
          margin: 0
        tap_action:
          action: call-service
          service: input_number.decrement
          service_data:
            entity_id: input_number.maximum_ph
      - entity: input_number.maximum_ph
        styles:
          margin: 0
        name: max
        unit: false
      - icon: mdi:chevron-up
        tap_action:
          action: call-service
          service: input_number.increment
          service_data:
            entity_id: input_number.maximum_ph