Files
2023-12-26 14:56:48 -08:00
..
2023-12-26 14:56:48 -08:00
2023-12-26 14:56:48 -08:00
2023-12-26 14:56:48 -08:00
2023-12-26 14:56:48 -08:00

magic switch

A component attempting to support the magic switch option of the Sonoff Basic R4. GPIO5 seems to be the correct pin.

Example:

magic_switch:
  pin: 5
  timeout: 13000us  #optional, default is 12000us
  on_switch:
    # do something