Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.46 KB

button-switch.md

File metadata and controls

49 lines (30 loc) · 1.46 KB

Button switch

The button switch node is used after a remote node. It redirects the message to it's own seperate output by the button_type property of the message payload.

The are currently the following button_type values supported:

  • pressed
  • hold
  • released
  • double (Only the SONOFF touch button supports this type right now)

img

Configuration

To use the button switch, you have to enable the outputs you need. You also can define a custom msg.payload for each button_type. You can define the following types:

  • string
  • number
  • boolean
  • json

img

Repeatedly send hold message

In some cases, you may want to send multiple messages while a button is held down. If that is the case, you can enable it after you enabled the output for hold. The released output has not to be enabled for this to work.

To not end up in an endless loop, you have to specify a maximum amount of messages! If your amount is 0 or less, it will not produce any output!

img

Support remote devices

- Ikea Dimmer
- Ikea Remote
- Sonoff Touch Button
- Scenic Friend of Hue
- Hue Dimmer switch

Future implementations

- Hue Smart button
- Tint Color remote

Or join our Discord server and suggest a device we should support :)

← back to the index