button.flic#

class platypush.message.event.button.flic.FlicButtonEvent(btn_addr, sequence, *args, **kwargs)[source]#

Bases: Event

Event triggered when a sequence of user short/long presses is detected on a Flic button (https://flic.io).

__init__(btn_addr, sequence, *args, **kwargs)[source]#
Parameters:
  • btn_addr (str) – Physical address of the button that originated the event

  • sequence (list[str]) – Detected sequence, as a list of Flic button event types (either “ShortPressEvent” or “LongPressEvent”)

matches_condition(condition)[source]#
Parameters:

condition – Condition to be checked against, as a sequence of button presses (“ShortPressEvent” and “LongPressEvent”)