Broadlink RM Switch - how to send multiple IR packet & keep on/off state

I noticed some of you were sort of asking how to have a smarter on / off switch for your TV.

Here is some code that will add a smart toggle switch for your TV that knows whether the TV is on / off.

Requirements are:

  1. TV is connected to the network (via WiFi or ethernet cable) so that you can ping it.
  2. Your set your TV to a fixed IP address on your network

Optional requirement:

  1. Discrete on / off IR codes for your TV are preferable, but not essential.

Here is the post with instructions:

1 Like