I use custom API to control devices via a Hook Home Automation hub. For those of you not familiar with the Hook, it is a device that’s based on a Particle.io heart that allows control over RF-based devices (315 and 433 mhz frequencies). The API for this device that I’m using can be found at: https://github.com/beckyricha/smartthings-hook
I’ve found that recently, the buttons in the Smartthings app that are associated with these connections are no longer working. I’m familiar with the fact that these “toggle” buttons don’t keep track of the state of the device (since there’s no backward check in from the device or the Hook).
The buttons in the Smartthings app no longer flip to the “Off” state of the button. I noticed that the buttons on the home screen of the app operated in this fashion. Now the switches are behaving in the same fashion. They no longer update to an “off” state and this behavior reflects in the loss of control of these switches from the Smartthings app. The functions still work under automations, Google Assistant as well as Alexa skills so I know the API is good for functionality.
Does anyone else have the same issues or concerns?
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
2
Buttons are supposed to represent the real current state of the associated Attribute, not necessarily the “nextState” setting in the Tile definition.
While nextState is helpful to make the button react “immediately”, it is meant purely for temporary display and not for any functionality.
That’s all well and good except that - because the button no longer changes
state when pressed, the nextstate of ON doesn’t exist. Here’s a transcript
of the behavior.
Previously: button toggles. It’s default state is on, so:
button state = On/ outlet on>button press >button state=off, the outlet
turns off.
If the button state is on but the outlet is off, pressing it twice= button
on = outlet on.
Now:
Button state=ON, button press>button state=on but outlet DOES turn off.
But because the button state doesn’t change to off, the next state of ON
isn’t available.
Can you make any suggestions on getting a non - toggle switch(one ON
switch, one OFF button)? I have very little groovy (or for that matter any)
programming language experience (except for very limited vb experience).
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
4
Sure…
First; If you have existing Device Type Handler code; link it here, since it is easier than starting from scratch.
Second; Using 2 “standardTiles()” - one that calls on(), one that calls off() … is pretty trivial. You even ignore the “nextState” parameter then.
You may want to add a “valueTile()” that shows the presumed state, but if you can’t be certain of knowing the state, then… no need to bother.
Same here. Discussed with Smartthings support and they’re not willing to assist. Likely a push to sell more of their own outlets. This worked so well for so long. -.-