tdvtdv / ha-tdv-bar

A Home Assistant lovelace card to display bar chart oriented to display power sensors
55 stars 1 forks source link

Suggestion: History data #9

Open Firenza69 opened 6 months ago

Firenza69 commented 6 months ago

Hi there I have two suggestions.

Can you make it that if you click on the state icon not to popup the button switch but rather just switch the device on or off.

On the history side to have an option to set it to display only today’s data.

AlainPeccable commented 5 months ago

It would be even beter if the card would support actions when clicking on the device icon ()

That why you can setup the action you wantn, then you'll be able to do what you want with:

        tap_action:
          action: call-service
          service: switch.toggle
          service_data:
            entity_id: switch.your_device

In today config:

So yes it's clickable due to the state & the fact you use your switch state but personally not the best option either.