w35l3y
(Wesley Menezes)
January 18, 2023, 11:32am
1
state
pushButton + state
Works as expected
Works only the push button State is always -
dashboard: states: [] actions: [] detailView: - label: Info displayType: state state: label: “{{value.value}}” id: valleyboard16460.info version: 1
dashboard: states: [] actions: [] detailView: - label: Info displayType: pushButton pushButton: command: clear state: label: “{{value.value}}” id: valleyboard16460.info version: 1
How can I update the state when there is a pushButton ?
It always keep -
I expected the command would be the same for both, but it only update when there isn’t pushButton (first case).
device:emit_event(capabilities["valleyboard16460.info"].value("..."))
1 Like
nayelyz
(SmartThings Developer Support)
January 20, 2023, 10:53pm
2
Hi, @w35l3y
Someone made the request to add a state for the pushButton
display because it didn’t show any text.
In the documentation, only the property of “command” is included for that display type, so, I’ll check with the team if this was implemented and if so, how to configure it.
This is the original post just as a reference:
Is there a way to create a capability with a pushButton display type that also has a label? I’m looking to create something similar to a momentary button, but the capability is rendered differently. I copied the momentary presentation, so I am assuming ST is doing something custom here. In my simplest case, I just want a label and a button that performs a command. See my capability vs momentary with the same presentation. I don’t see any way to add the additional status next to the button, or why the button is styled differently.
[button-diff]
2 Likes