voiding:klup1

Koogeek KLUP1

Flashable OTA with tuya-convert. (edit: not anymore in 2021)

Extremely difficult. I've physically damaged a smart plug trying to access the ESP8266-C1. See https://notenoughtech.com/featured/hacking-koogeek-smart-plug/ for a video + writeup of a disassembly + flashing instructions.

{"NAME":"Koogeek-KLUP1","GPIO":[0,0,0,32,2720,2656,0,0,2624,320,224,0,0,0],"FLAG":0,"BASE":18}

Based on https://templates.blakadder.com/kogeek_KLUP1.html

substitutions:
  friendly_name: "My KLUP1 Plug"

esphome:
  name: klup1
  platform: ESP8266
  board: esp01_1m

# define wifi/api/ota/mqtt/...

logger:

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO3
      mode: INPUT_PULLUP
      inverted: True
    name: "KLUP1 Button"
    on_press:
      - switch.toggle: relay
    internal: true
  - platform: status
    name: "${friendly_name} Status"

switch:
  - platform: gpio
    pin: 14
    id: relay
    name: "${friendly_name}"

output:
  # Register the green LED as a dimmable output ....
  - platform: esp8266_pwm
    id: s20_green_led
    pin:
      number: GPIO13
      inverted: True

light:
  # ... and then make a light out of it.
  - platform: monochromatic
    name: "KLUP1 Green LED"
    id: led
    output: s20_green_led
    restore_mode: ALWAYS_ON
    internal: true

    
sensor:
  - platform: hlw8012
    sel_pin: 12
    cf_pin: 4
    cf1_pin: 5
    current:
      name: "${friendly_name} Current"
    voltage:
      name: "${friendly_name} Voltage"
    power:
      name: "${friendly_name} Power"
    update_interval: 2s
    change_mode_every: 8
  • Last modified: 2021/02/08 11:12
  • by Harley Watson