Hasty Briefsbeta

Bilingual

IKEA TRÅDFRI for Rebooting a Server or Modem - Bert Hubert's writings

a day ago
  • The author needed an automated solution to power cycle a problematic modem and used IKEA TRÅDFRI equipment.
  • Required hardware: TRÅDFRI remote control, wireless control outlet, and gateway; plus a phone/tablet app.
  • Initial setup involves pairing the remote control with the gateway via the app, then pairing the power outlet.
  • From a Linux computer, install libcoap with DTLS support to control the outlet via CoAP commands.
  • A preshared key (PSK) is obtained from the gateway and stored; it expires after 6 weeks but is renewed automatically in the provided script.
  • The bash script listed in the article can check device status and toggle power on/off for a specific outlet.