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

Clickable Switches and Lights Showing in 3D based on Switch and Bulb State. #22

Closed
timothylarson opened this issue Jul 7, 2021 · 2 comments

Comments

@timothylarson
Copy link

I love the clickable lights and light groups. It would be great to also be able to click objects (and object groups) to be able to control switches as well as to run scripts/automations/scenes.

To go along with this, I would also love to be able to set a condition as to whether a light appears illuminated in the 3d model based on a switch state and bulb state.

Here's a little more contest to this request: Because I have other people in the house who prefer to use physical switches on the wall to control my lights, I have installed smart switches along with my Zigbee smart bulbs. I have automations set so when a switch is powered on it activates a scene that makes sure the bulbs come on at full brightness and a specific set color temp. I also have an automation so when all the lights have been shut off via Zigbee, the smart switch on the wall turns off as well.

The problem I'm having is when a wall switch gets shut off, Home Assistant and zigbee2mtqq just see the bulb as unreachable but the state is still registering as "ON" since that was its state before the power was cut. Since Home Assistant sees the state of the bulb as "ON" it stays on in the 3D card.

Eventually I'd like to swap out all of my wall switches for a smart switch that keeps the bulbs powered but I am waiting for the
Inovelli Zigbee Dimmer Switch (Blue Series) but that isn't available yet.

@adizanni
Copy link
Owner

adizanni commented Jul 9, 2021

Hello Timothy, you can use the gesture to do an action on an object to trigger any type of service. Otherwise I would suggest to put device complexity in the backend, not in the card. Your use case with a phisycal switch and a connected bulb can be better managed by a input boolean https://www.home-assistant.io/integrations/input_boolean/ where you control the combination of phisycal and logical states. Maybe I misunderstood your goal...

@adizanni
Copy link
Owner

Please let me know if my answer gives you a workaround to your problem or try to better put additional clarifications. If no answer before the end of Sunday I will close the bug

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