I believe it should be
while(notToLevel){
commands.add getSendCodeAction(1)
For the timer not working, I am still playing with this. I believe the issue is that its listed in SECONDARY_CONTROL which only displays text and is not a hot-link (hence doesn't do anything).
I'm not sure how to fix this (I'm a novice), and am also running Android Q (beta) and have to use the new smart-things app vs classic.
Note in the new smartthings app, it displays a dimmer and the value goes to 100, it should go in increments of 10 vs 1. (If I have the fan at 8, the dimmer is set to 8, if the fan is at 3, the dimmer is at 3) . Note that I have not figured out how to change the dimmer as it gives me an error when I do try to change it. If I go to the original app and change the speed, this is how I am able to see the dimmer setting change.
I was playing with the code and noticed it only goes to 7. Many of the newer fans go to 10. I updated your code with:
Also for the Max button to work, I believe there is an error in the code.
while(notToLevel){ commands.add getSendCodeAction(code)
I believe it should be while(notToLevel){ commands.add getSendCodeAction(1)
For the timer not working, I am still playing with this. I believe the issue is that its listed in SECONDARY_CONTROL which only displays text and is not a hot-link (hence doesn't do anything).
I'm not sure how to fix this (I'm a novice), and am also running Android Q (beta) and have to use the new smart-things app vs classic.
Note in the new smartthings app, it displays a dimmer and the value goes to 100, it should go in increments of 10 vs 1. (If I have the fan at 8, the dimmer is set to 8, if the fan is at 3, the dimmer is at 3) . Note that I have not figured out how to change the dimmer as it gives me an error when I do try to change it. If I go to the original app and change the speed, this is how I am able to see the dimmer setting change.
I would love to help out, ;-)