home-assistant / ui-schema

A schema to define a user interface for Home Assistant.
Apache License 2.0
41 stars 6 forks source link

Entity type rows should support tap_action #238

Closed ghost closed 5 years ago

ghost commented 5 years ago

@SeanPM5 commented on Feb 17, 2019, 5:45 AM UTC:

Home Assistant release with the issue:

0.87.1

Description of problem:

Lovelace entity rows do not support tap_action or hold_action according to the docs, I feel they should. The feature set should be consistent where it makes sense.

Here is an example use case. This image is from my default_view showing a few key statistics, and I want to link the "Time Driving Today" row to my Cars view.

Lovelace feature request

Example config:

        - type: entities
          entities:
            - sensor.time_away_today
            - entity: sensor.time_driving_today
              name: Time Driving Today
              tap_action:
                action: navigate
                navigation_path: /lovelace/cars/

Instead of navigating it simply opens the more-info popup. This same code works in a glance card, but not an entities type card.

This issue was moved by iantrich from home-assistant/home-assistant-polymer#2774.

iantrich commented 5 years ago

agreed and I want this feature so I'm going to probably implement it this weekend 😄

iantrich commented 5 years ago

Forgot I had made the same issue https://github.com/home-assistant/ui-schema/issues/228