You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.
I have a Wiz light configured in HA using this integration. I can turn it on/off and set the brightness using the standard “Light” card in Lovelace so it seems I have it set up correctly.
What I’m trying to setup is the ability to use an IR remote to toggle the light on/off and be able to set the brightness level. I have an ESP01 with an IR receiver and have it configured to capture IR codes to trigger different actions.
So far it can successfully toggle the light on/off using the following:
What I can’t figure out is how to set the brightness. I’d like to use 2 different buttons on the remote to increase/decrease the brightness by 5% steps per button press. I know the ‘Light’ integration has a ‘brightness’ property that can be used to set the brightness, but to inc/dec the current level by 5 I would first need to know what the current level is and that’s where I’m stuck.
How do I get the current brightness value and how then would I add/subtract 5 and send that as the new level?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a Wiz light configured in HA using this integration. I can turn it on/off and set the brightness using the standard “Light” card in Lovelace so it seems I have it set up correctly.
What I’m trying to setup is the ability to use an IR remote to toggle the light on/off and be able to set the brightness level. I have an ESP01 with an IR receiver and have it configured to capture IR codes to trigger different actions.
So far it can successfully toggle the light on/off using the following:
What I can’t figure out is how to set the brightness. I’d like to use 2 different buttons on the remote to increase/decrease the brightness by 5% steps per button press. I know the ‘Light’ integration has a ‘brightness’ property that can be used to set the brightness, but to inc/dec the current level by 5 I would first need to know what the current level is and that’s where I’m stuck.
How do I get the current brightness value and how then would I add/subtract 5 and send that as the new level?
Thanks
Ed
Beta Was this translation helpful? Give feedback.
All reactions