This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
need some tips /ideas how to create a dim flow using a on/off switch
B3rt
Member
How can i create the best way the following flow with the following hardware present:
1x klik aan klik uit wandschakelaar (on/of switch)
1x zigbee ikea e27 dimmable bulb
What i want:
1x click on 'ON' button of the switch the bulb switches on at level 100%
an other click on 'ON the bulb dims to 75%
an other click on 'ON' the bulb dims to 50%
then to 25% and next click on 'ON' it goes back to 100% level
So each ON click it dims from 100,75,50,25 and back to 100% again.
1x click on 'OFF' the bulb goes always OFF.
The off part is NO problem at all, just ON at 100% is also not a proglem
The problem for me is that i am not sure how i can create a easy/simple flow that dims the light from 100, to 75, to 50 to 25 and back to 100% again.
I was thinking to use 'logica' and tag cards from my betterlogic app, but it seems i cannot do any math in the 'and colom' and use the math results in the 'then' colom so set the dim level without saving it first and then use an other flow to execute it.
Who has a really great idea/suggestion how i can make this work?
1x klik aan klik uit wandschakelaar (on/of switch)
1x zigbee ikea e27 dimmable bulb
What i want:
1x click on 'ON' button of the switch the bulb switches on at level 100%
an other click on 'ON the bulb dims to 75%
an other click on 'ON' the bulb dims to 50%
then to 25% and next click on 'ON' it goes back to 100% level
So each ON click it dims from 100,75,50,25 and back to 100% again.
1x click on 'OFF' the bulb goes always OFF.
The off part is NO problem at all, just ON at 100% is also not a proglem
The problem for me is that i am not sure how i can create a easy/simple flow that dims the light from 100, to 75, to 50 to 25 and back to 100% again.
I was thinking to use 'logica' and tag cards from my betterlogic app, but it seems i cannot do any math in the 'and colom' and use the math results in the 'then' colom so set the dim level without saving it first and then use an other flow to execute it.
Who has a really great idea/suggestion how i can make this work?
Comments
https://github.com/athombv/homey/issues/547#issuecomment-326493503
But nevermind i found a solution and now i can press the wall button and each press dimms the light in my bathroom with 25% on each click.
So problem solved.
When the button it pressed activate the default dim level flow, in my case 100%
The flows itself load each other etc, see attachments.