Blockly Events and Channels?

test

Hi @cdstaley, the “Hue Tap Switch” does not do “item state changes” but provide “events” which are not automatically stored in items. First you need to find out the values which a “event” provides.

rule configuration:

to find out the “event” values leave the “Event” field in the rule empty and enter the following blockly commands into the “THEN” area of the rule (this rule prints the event values into the log, when you press all the keys of the switch).

After you found the provided “event” values you can start to modify your rule for every key pressed (example for key2 pressed):

The Hue Tap Switch provide the following event values:
key1 pressed: 1000
key2 pressed: 2000
key3 pressed: 3000
key4 pressed: 4000

I hope this helps to solve your request

… for the “Hue Dimmer Switch” the procedere is nearly the same

  • start the rule with empty “Event” field
  • get the “event” values for the pressed keys
  • modify your rule by setting event values in “Trigger” … or analyse the event values within the “Then” area of the rule

The following event values are provided by the “Hue Dimmer Switch”:

  • ON key pressed: 1000
  • ON key immediately released: 1002
  • ON key hold down after pressed: 1001 (several times)
  • ON key released after hold down: 1003
  • INCREASE key pressed: 2000
  • INCREASE key immediately released: 2002
  • INCREASE key hold down after pressed: 2001 (several times)
  • INCREASE key released after hold down: 2003
  • DECREASE key pressed: 3000
  • DECREASE key immediately released: 3002
  • DECREASE key hold down after pressed: 3001 (several times)
  • DECREASE key released after hold down: 3003
  • OFF key pressed: 4000
  • OFF key immediately released: 4002
  • OFF key hold down after pressed: 4001 (several times)
  • OFF key released after hold down: 4003