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.

need some tips /ideas how to create a dim flow using a on/off switch

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?

Comments

Sign In or Register to comment.