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

Add support for single-click toggling menu entities #74

Closed
dermotduffy opened this issue Sep 13, 2021 · 7 comments · Fixed by #111
Closed

Add support for single-click toggling menu entities #74

dermotduffy opened this issue Sep 13, 2021 · 7 comments · Fixed by #111

Comments

@dermotduffy
Copy link
Owner

As requested by @tbrausch in blakeblackshear/frigate#1590 (comment)

I don't know if this is possible, but is there a chance that you could add another option per entity that would allow the default "click" option to toggle the state of the entity rather than displaying the more-info card? This would allow detection to be turned on and off with a single click. For example:

webrtc:
  entity: camera.patio
entities:
  - entity: switch.frigate_patio_detect
    toggle: true
  - entity: binary_sensor.frigate_patio_person_motion
    show: false          
@alexdelprete
Copy link

Personally, I will use it for my doorbell at the external gates, to unlock the switches through two entities (shelly switches).

Looking forward to this. Thanks a lot.

@dermotduffy
Copy link
Owner Author

Quick update on this: My plan is to resolve this as part of #77 which I'm working on right now.

@thundergreen
Copy link

I tried adding entities in my config but instead of toggleling my script it opens more info ... i guess this will be changed?

@dermotduffy
Copy link
Owner Author

Yes, it will be configurable.

@thundergreen
Copy link

thundergreen commented Oct 5, 2021

so i guess for the moment the option toggle does not work? :) Would it also be possible to show sensor values like temperature?

@tbrausch
Copy link

tbrausch commented Oct 5, 2021 via email

@dermotduffy
Copy link
Owner Author

dermotduffy commented Oct 6, 2021

Thanks @tbrausch !

@thundergreen Correct -- no option for toggle right now. Once #77 is complete you'll be able to include ~anything a picture elements card can add, and any action it supports. The menu will only support icons / state icons (i.e. no temperature values in the menu), but you could add a state badge to show temperature to the main card if you wanted.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants