tgsoverly / smart-things

Custom device type handlers for the SmartThings platform
MIT License
3 stars 2 forks source link

Timer button doesn't work #4

Open dantera333 opened 7 years ago

dantera333 commented 7 years ago

Great and useful handler, thank you! However, tapping on the timer tile doesn't increase the value.

jterrace commented 6 years ago

I noticed this too while doing development. I thought I broke the button but it doesn't seem like it ever worked. The state change trying to change the widget from a status to a button doesn't seem to work.

@tgsoverly did this ever work?

tgsoverly commented 6 years ago

I think so it did. I can fix if someone can provide the output of the controller and what to send to get the timer to change.

jterrace commented 6 years ago

That's interesting. I'm not sure what's going on then. This is the part that doesn't seem to work:

            tileAttribute("device.statusOfUpdate", key: "SECONDARY_CONTROL") {
                attributeState "ready", label:'+ Timer', action:"addTime"
                attributeState "updating", label:'Updating...'
            }

When the tile is in its default state (with the label "+ Timer"), clicking on it doesn't seem to do anything. The addTime method is not being called. I added some log statements in there and it never triggers. It kind of seems like the tile is not becoming a button for some reason.

hollapm commented 5 years ago

SECONDARY_CONTROL | Used to display textual information.

I'm wondering if VALUE_CONTROL or SLIDER_CONTROL would work better?

To change the timer, you can only increase it. here's the value getSendCodeAction(2)