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

Suggestion: History data #9

Open
Firenza69 opened this issue Mar 12, 2024 · 1 comment
Open

Suggestion: History data #9

Firenza69 opened this issue Mar 12, 2024 · 1 comment

Comments

@Firenza69
Copy link

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
Copy link

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:

  • if you use a binary sensor to define the state it will pop you the binary sensor history.
  • Using nothing it determine the icon based on power consumption which is great but then it's not clickable.
  • With the state and your switch value it colors the icon based on the switch status even if the device don't use any power...

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

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