Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: add type: row #80

Open
Mariusthvdb opened this issue Mar 14, 2022 · 1 comment
Open

FR: add type: row #80

Mariusthvdb opened this issue Mar 14, 2022 · 1 comment

Comments

@Mariusthvdb
Copy link

please consider adding type: row to the available options, so we can use state-switch inside an entities card:

  type: entities
  entities:
      - type: custom:state-switch
        entity: binary_sensor.zomertijd
        states:
          'on':
             type: row
             entity: binary_sensor.zomertijd
          'off':
             type: row
             entity: binary_sensor.wintertijd

this would be way more elegant than having to use the condition in each row in core Lovelace:

    entities:
      - type: conditional
        conditions:
          - entity: binary_sensor.zomertijd
            state: 'on'
        row:
          entity: binary_sensor.zomertijd
      - type: conditional
        conditions:
          - entity: binary_sensor.wintertijd
            state: 'on'
        row:
          entity: binary_sensor.wintertijd
@ildar170975
Copy link

ildar170975 commented Mar 16, 2022

I do not know whether it is possible or not for the current implementation.
But from the user's point of view - it would be great to use state-switch for rows (it has much more features that the stock conditional card/row).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants