I am attempting to use statelessPowerToggle
in a presentation for a custom capability. It is referenced here: Display Types | SmartThings Developers
When trying to create the presentation I am seeing this error:
Error: Request failed with status code 422:
{"requestId":"XXXXXX","error":{"code":"4000000","message":"Invalid displayType. This is not permitted. at detailView[]","details":[]}}
I am looking for a simple stateless button and label to put in the detail view. There is no ‘off’ action which is why I want it to be stateless. The action can be triggered, but not stopped. It auto-stops.
For reference, here is the relevant portion of the presentation:
detailView:
- label: Blink
displayType: statelessPowerToggle
statelessPowerToggle:
command:
name: blink
on: active
off: standby
state:
value: state.value
valueType: string
on: active
off: standby
label: '{{state.value}}'
alternatives:
- key: disabled
value: Disabled
type: inactive
- key: standby
value: Standby
type: inactive
- key: active
value: Active
type: active