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

Feature Request: Option switchOnScene #112

Closed
danejur opened this issue Nov 17, 2023 · 4 comments
Closed

Feature Request: Option switchOnScene #112

danejur opened this issue Nov 17, 2023 · 4 comments

Comments

@danejur
Copy link

danejur commented Nov 17, 2023

Love this add-on and all of the improvements that you've made to it! One handy thing I would love is for toggling a card's switch to the on position to always set a specific scene. I have a few physical switches that I have configured to always turn on to max brightness regardless of what the lights were set to before they were turned off. I'd love to replicate this functionality with the hue-like card! I imagine it word work something like this:

  1. User sets lights to a custom scene, brightness, color, etc.
  2. User turns off lights
  3. User turns lights back on via hue-like card on switch, which sets the light to the predefined "default state" instead of the previous state.

If this is already in the card and I'm not seeing it in the configuration, I apologize! I might try to poke around the JS myself if I get some time, but I figured I'd log this request regardless.

@Gh61
Copy link
Owner

Gh61 commented Nov 17, 2023

You can already achieve similar behaviour with this settings:

type: custom:hue-like-light-card
entities:
  - light.some_light1
  - light.some_light2
offClickAction: scene
offClickData:
  scene: scene.some_lights_bright

See Click action for more info about the Action settings.

With this setting if you click the card (not the switch) when all lights are off, it will activate the some_lights_bright scene.

It probably isn't exactly what you wanted (the switch will still be working the same), but maybe it can fit your needs?

@danejur
Copy link
Author

danejur commented Nov 17, 2023

I was thinking about this pattern as well, but my biggest issue is that clicking the card would no longer bring up the hue-like settings (with the different scenes and individual lights). This wouldn't be an issue for me personally, but I'm trying to make it as painless as possible for my wife. If its alright with you, I'll leave this issue open and try my hand at making the necessary modifications at some point in the near future. Thank you for the suggestion, though!

@Gh61
Copy link
Owner

Gh61 commented Nov 17, 2023

I thought this would be an issue. But as you pointed out with the analogy to physical switches (I am using them the same way), the
onScene (or some better name, that I could not figure out now) option makes sense.
So lets leave this issue opened and whoever gets to it first can implement it.

@Gh61 Gh61 added this to the v 1.6.0 - Last 2023 release milestone Nov 28, 2023
Gh61 added a commit that referenced this issue Nov 30, 2023
Gh61 added a commit that referenced this issue Dec 2, 2023
Gh61 added a commit that referenced this issue Dec 2, 2023
@Gh61
Copy link
Owner

Gh61 commented Dec 2, 2023

Will be in the next release.

@Gh61 Gh61 closed this as completed Dec 2, 2023
@Gh61 Gh61 changed the title Feature Request: Default "On Scene" Feature Request: Option switchOnScene Dec 3, 2023
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