Skip to content

StatelessProgrammableSwitch

Martin Patfield edited this page Nov 16, 2025 · 4 revisions
Field Required Description
topicEventButtonPress Yes Event for button press
valueSinglePress No Single press event
valueDoublePress No Double press event
valueLongPress No Long press event
labelType No For changing the ServiceLabelNamespace. Either ARABIC_NUMERALS (default) or DOTS

Values may be comma-separated lists to create a multiple-button accessory. Press events will be grouped based on their index.

For example, if you set the following values:

{
  "topicEventButtonPress": "some/press/topic"
  "valueSinglePress": [1,2,3],
  "valueDoublePress": ["a","b"],
  "valueLongPress": "x"
}

Then the accessory will contain three buttons with the following trigger values:

Button 1:
- single = 1
- double = "a"
- long = "x"

Button 2:
- single = 2
- double = "b"

Button 3:
- single = 3

Clone this wiki locally