ESP Projects

Use a WiZ remote in Home Assistant: blinds, fans, scenes and more

By Ross · Updated November 18, 2026

Disclosure: As an Amazon Associate I earn from qualifying purchases. Links to parts on this page are affiliate links, some through brand partnerships, so I may earn a commission at no extra cost to you. It never changes which parts I recommend.

The WiZ remote (WiZmote) is a cheap, battery-powered remote that most people buy for WiZ bulbs or WLED. It doesn't have to stop there. With one ESP32 running ESPHome, every button becomes an event in Home Assistant, so you can have the remote close the blinds, turn on a ceiling fan, run a bedtime routine or start a movie scene, with no hub and no cloud.

What you need: a WiZ remote and an ESP32 running ESPHome that's on your Wi-Fi and powered all the time. It can be a board you already run, like a presence sensor, or a spare ESP32 plugged into a USB charger. ESP-NOW is ESP32-only in ESPHome, so an ESP8266 won't work as the receiver.

Cost
$15–25 for the remote, plus an ESP32 if you don't have one spare
Time
30–60 minutes
Difficulty
Beginner to intermediate
Skills
Flashing ESPHome, editing an automation in YAML

How it works

The WiZ remote isn't a Wi-Fi device in the usual sense. It never joins your network. When you press a button, it sends a short ESP-NOW broadcast, a tiny radio message that any ESP32 in range can pick up. That's how WLED and WiZ bulbs hear it without any setup on your router.

ESPHome has a built-in ESP-NOW component that can listen for those broadcasts. The config in this guide does three things with each one:

  • Checks it's your remote by its MAC address, so a neighbor's remote does nothing.
  • Drops the repeats. The remote sends each press more than once to make sure it gets through. Each press carries a counter, so the ESP32 only acts on a counter it hasn't seen.
  • Passes the button to Home Assistant as an event entity, with a name like button_1 or dim_up. Your automations do the rest.

Parts

Step 1: find your remote's MAC address

Flash an ESP32 with this added to its config. It logs every ESP-NOW broadcast it hears, along with the sender's MAC address and the raw bytes:

espnow:
  on_broadcast:
    - then:
        - logger.log:
            format: "ESP-NOW from %s: %s"
            args:
              - format_mac_address_pretty(info.src_addr).c_str()
              - format_hex_pretty(data, size).c_str()

Open the device's logs in ESPHome and press a few buttons on the remote. Each press shows up as a line starting with ESP-NOW from and a MAC address. Write that address down; it's the same for every button on that remote.

The bytes after it are the message. Counting from zero, byte 0 is 91 for the On button and 81 for every other button, bytes 1 to 4 are the press counter, and byte 6 is the button. These are the button codes WLED uses for the remote:

ButtonCode (decimal)Byte 6 in the log (hex)Event name in this guide
On101on
Off202off
Night (moon)303night
Dim down808dim_down
Dim up909dim_up
11610button_1
21711button_2
31812button_3
41913button_4

Press each button once and check byte 6 against the table. If your remote sends different codes, change the numbers in the next step to match what you see.

Step 2: the ESPHome config

Swap the logging block for this. Put your remote's MAC address in place of AA:BB:CC:DD:EE:FF:

globals:
  - id: wizmote_last_seq
    type: uint32_t
    initial_value: '0'

event:
  - platform: template
    id: wizmote_button
    name: "WiZ remote"
    device_class: button
    event_types:
      - "on"
      - "off"
      - "night"
      - "dim_down"
      - "dim_up"
      - "button_1"
      - "button_2"
      - "button_3"
      - "button_4"

espnow:
  on_broadcast:
    - address: "AA:BB:CC:DD:EE:FF"   # your remote's MAC from step 1
      then:
        - lambda: |-
            if (size < 7) return;
            // The remote repeats each press. Bytes 1-4 are a press counter,
            // so skip any packet whose counter we've already handled.
            uint32_t seq = data[1] | (data[2] << 8) | (data[3] << 16) | ((uint32_t) data[4] << 24);
            if (seq == id(wizmote_last_seq)) return;
            id(wizmote_last_seq) = seq;
            switch (data[6]) {
              case 1:  id(wizmote_button).trigger("on"); break;
              case 2:  id(wizmote_button).trigger("off"); break;
              case 3:  id(wizmote_button).trigger("night"); break;
              case 8:  id(wizmote_button).trigger("dim_down"); break;
              case 9:  id(wizmote_button).trigger("dim_up"); break;
              case 16: id(wizmote_button).trigger("button_1"); break;
              case 17: id(wizmote_button).trigger("button_2"); break;
              case 18: id(wizmote_button).trigger("button_3"); break;
              case 19: id(wizmote_button).trigger("button_4"); break;
              default: ESP_LOGD("wizmote", "Unknown button code %u", data[6]);
            }

This goes under your existing esphome:, esp32:, wifi:, api: and ota: sections, the same as any other ESPHome device. The espnow: block uses whatever channel your Wi-Fi is on, so there's nothing to set there.

More than one remote? Add a second on_broadcast entry with the other remote's MAC address, its own globals counter, and its own event entity, such as "Bedroom remote". Then each remote can do different things.

Step 3: check it in Home Assistant

After the ESP32 updates, open its device page under Settings → Devices & services → ESPHome. You'll see a new WiZ remote event entity. Press a button, and the entity's last-changed time updates, with the button's name in its event_type attribute. You can watch that under Developer tools → States.

Step 4: make the buttons do things

One automation can handle the whole remote. It runs every time the event entity changes and picks an action based on which button was pressed. Create a new automation, switch to Edit in YAML, and paste this. Then swap in your own entity IDs:

alias: "WiZ remote: living room"
mode: queued
triggers:
  - trigger: state
    entity_id: event.wiz_remote_bridge_wiz_remote
    not_from: unavailable
actions:
  - variables:
      button: "{{ trigger.to_state.attributes.event_type }}"
  - choose:
      # 1: close the blinds
      - conditions: "{{ button == 'button_1' }}"
        sequence:
          - action: cover.close_cover
            target:
              entity_id: cover.living_room_blinds
      # 2: open the blinds
      - conditions: "{{ button == 'button_2' }}"
        sequence:
          - action: cover.open_cover
            target:
              entity_id: cover.living_room_blinds
      # 3: ceiling fan on or off
      - conditions: "{{ button == 'button_3' }}"
        sequence:
          - action: fan.toggle
            target:
              entity_id: fan.living_room_fan
      # 4: movie scene
      - conditions: "{{ button == 'button_4' }}"
        sequence:
          - action: scene.turn_on
            target:
              entity_id: scene.movie_time
      # Dim up/down: fan speed
      - conditions: "{{ button == 'dim_up' }}"
        sequence:
          - action: fan.increase_speed
            target:
              entity_id: fan.living_room_fan
      - conditions: "{{ button == 'dim_down' }}"
        sequence:
          - action: fan.decrease_speed
            target:
              entity_id: fan.living_room_fan
      # Moon: bedtime routine
      - conditions: "{{ button == 'night' }}"
        sequence:
          - action: script.turn_on
            target:
              entity_id: script.bedtime
      # On/Off: the room's lights
      - conditions: "{{ button == 'on' }}"
        sequence:
          - action: light.turn_on
            target:
              area_id: living_room
      - conditions: "{{ button == 'off' }}"
        sequence:
          - action: light.turn_off
            target:
              area_id: living_room
  • Find your entity ID on the event entity's settings page. Since Home Assistant 2026.11 names entities after their device, yours will look something like event.your_device_name_wiz_remote.
  • mode: queued makes quick presses run one after another, so tapping dim up three times really does step the fan up three times.
  • not_from: unavailable stops the automation from firing when the ESP32 reboots and the entity comes back online.
  • Delete any branch you don't need. A button with no branch does nothing.

More ideas for the buttons

  • A bedside remote: moon starts a bedtime script that turns off every light and sets the thermostat back; On turns on a dim path light for a night-time bathroom trip.
  • TV and media: one button runs a scene that dims the lights and closes the blinds, another pauses whatever's playing with media_player.media_play_pause.
  • Heating and cooling: dim up and dim down nudge the thermostat by a degree with climate.set_temperature and a template.
  • The shop or garage: turn on the dust collector, a heater or the compressor from across the room.
  • Kids' rooms: a remote that only controls their own fan and night light, with no app to lose.
  • Change what a button does by room: because the event goes to Home Assistant, the same button can do different things depending on a mode helper, the time of day or who's home.

Keep it to comfort and convenience. The remote's messages aren't secret, and its MAC address is sent in the open, so don't use it to unlock doors, open the garage or disarm an alarm.

Using it with WLED at the same time

The ESP32 only listens, so it doesn't stop the remote working anywhere else. That cuts both ways: if the remote is also on a WLED controller's remote list, every press does both jobs, so button 1 would close the blinds and load WLED preset 1. If you want the remote for Home Assistant only, remove it from the remote list on WLED's WiFi Setup page.

No spare ESP32? The WLED shortcut

If you already run WLED and have the remote paired to it, there's a rougher way that needs no new hardware. Buttons 1 to 4 load WLED presets 1 to 4, and the WLED integration in Home Assistant shows the current preset as a select entity. An automation can trigger when that preset changes. The catch is that the LEDs change too, because the preset really loads, so this works best when the strip's lights are part of what the button is supposed to do anyway.

Frequently asked questions

Can a WiZ remote control things in Home Assistant?

Yes, with an ESP32 running ESPHome. The remote sends ESP-NOW broadcasts, and ESPHome's ESP-NOW component can receive them and pass each button press to Home Assistant as an event entity.

Does the WiZ remote need to join my Wi-Fi?

No. It never joins a network. It broadcasts each press over ESP-NOW, and any ESP32 in range can pick it up.

Can I use the WiZ remote with WLED and Home Assistant at the same time?

Yes. The ESPHome receiver only listens, so WLED keeps responding too. Every press then does both jobs, so remove the remote from WLED's list if you want it for Home Assistant only.

Is the WiZ remote secure enough for door locks?

No. Its messages aren't encrypted and its MAC address is sent in the open, so use it for lights, fans, blinds and scenes, not locks, garage doors or alarms.

Troubleshooting

SymptomLikely cause and fix
Nothing shows in the log when you press a buttonMove the ESP32 closer and try again, and put fresh batteries in the remote. Make sure the espnow: block is in the config that's actually on the board.
The log shows presses but Home Assistant gets no eventThe MAC address under address: doesn't match the remote. Copy it again from the step 1 log, with colons, exactly as shown.
One press runs the automation twiceThe repeat filter is missing or each remote shares one counter. Give every remote its own globals counter.
The log says Unknown button codeYour remote sends a different code for that button. Add a case for the number in the log.
The automation fires when the ESP32 rebootsAdd not_from: unavailable to the state trigger.