Skip to content

Instantly share code, notes, and snippets.

@zaxbux
Last active February 17, 2025 22:08
Show Gist options
  • Save zaxbux/f64e268d6d83b51a2b0914ed14a3e071 to your computer and use it in GitHub Desktop.
Save zaxbux/f64e268d6d83b51a2b0914ed14a3e071 to your computer and use it in GitHub Desktop.
433 MHz Desk Lamp Remote ESPHome ESP32-C6-WROOM-1

This is for some generic LED desk lamp.

Protocol: Princeton 24-bit 433.92 AM

Button Binary Key
Power 01001110 10100101 00000001 00 4E A5 01
Temperature 01001110 10100101 00000010 00 4E A5 02
Brightness 01001110 10100101 00000011 00 4E A5 03
Timer 01001110 10100101 00000100 00 4E A5 04
esphome:
name: 433mhz-lamp
friendly_name: 433MHz Lamp
esp32:
board: esp32-c6-devkitc-1
flash_size: 8MB
variant: esp32c6
framework:
type: esp-idf
version: 5.2.1
platform_version: 6.6.0
sdkconfig_options:
CONFIG_OPENTHREAD_ENABLED: n
CONFIG_USE_MINIMAL_MDNS: y
CONFIG_ESPTOOLPY_FLASHSIZE_8MB: y
logger:
web_server:
port: 80
version: 3
api:
encryption:
key: !secret encryption_key
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
power_save_mode: LIGHT
# remote_receiver:
# - id: rc_receiver
# pin:
# number: GPIO19
# rmt_channel: 3
# dump: rc_switch
# tolerance: 60%
remote_transmitter:
pin: GPIO12
rmt_channel: 0
carrier_duty_percent: 100%
# '010011101010010100000001' Power
# '010011101010010100000010' Temperature
# '010011101010010100000011' Brightness
# '010011101010010100000100' Timer
button:
- platform: template
name: Lamp Power
id: lamp_power
icon: "mdi:power"
on_press:
then:
- remote_transmitter.transmit_rc_switch_raw:
code: '010011101010010100000001'
protocol: 1
repeat:
times: 2
wait_time: 0s
- platform: template
name: Lamp Temperature
id: lamp_temp
icon: "mdi:sun-thermometer-outline"
on_press:
then:
- remote_transmitter.transmit_rc_switch_raw:
code: '010011101010010100000010'
protocol: 1
repeat:
times: 2
wait_time: 0s
- platform: template
name: Lamp Brightness
id: lamp_brightness
icon: "mdi:brightness-5"
on_press:
then:
- remote_transmitter.transmit_rc_switch_raw:
code: '010011101010010100000011'
protocol: 1
repeat:
times: 2
wait_time: 0s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment