ELEGRP dimmer switch…is it HA compatible?

for anyone interested, I did get these flashed with esphome after running the tuya-cloudcutter on them. I used ipchiptool to get a starting yaml and modified it to the below:


esphome:
  name: esp-dimmer-1

bk72xx:
  board: generic-bk7231n-qfn32-tuya

logger:

# Enable Home Assistant API
api:
  encryption:
    key: ""

ota:
  password: ""

web_server:

captive_portal:

mdns:


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  ap:
    ssid: "Esp-Dimmer-1 Fallback Hotspot"
    password: ""

button:
  - platform: restart
    name: Restart

debug:
  update_interval: 30s

text_sensor:
  - platform: debug
    reset_reason:
      name: Reset Reason
  - platform: libretiny
    version:
      name: LibreTiny Version
  #- platform: tuya
  #  sensor_datapoint: 109
  #  name: Hardware Version
  #- platform: tuya
  #  sensor_datapoint: 113
  #  name: Firmware Version

uart:
  rx_pin: RX1
  tx_pin: TX1
  baud_rate: 9600

tuya:
  # DPIDs processed from schema model: 000004ngxw

switch:
  #- platform: tuya
  #  switch_datapoint: 1
  #  name: Switch
  #- platform: tuya
  #  switch_datapoint: 110
  #  name: Countdown Action
  - platform: tuya
    switch_datapoint: 114
    name: Set Brightness Min

number:
  #- platform: tuya
  #  number_datapoint: 2
  #  name: Brightness
  #  min_value: 10
  #  max_value: 1000
  #  step: 1
  - platform: tuya
    number_datapoint: 3
    name: Brightness Min 1
    min_value: 0
    max_value: 500
    step: 1
  - platform: tuya
    number_datapoint: 5
    name: Brightness Max 1
    min_value: 550
    max_value: 1000
    step: 1
  #- platform: tuya
  #  number_datapoint: 6
  #  name: Countdown 1
  #  unit_of_measurement: S
  #  min_value: 0
  #  max_value: 86399
  #  step: 1
  - platform: tuya
    number_datapoint: 101
    name: Indicator Brightness
    min_value: 0
    max_value: 100
    step: 1
  - platform: tuya
    number_datapoint: 108
    name: Longpress Brightness
    min_value: 10
    max_value: 1000
    step: 1
  #- platform: tuya
  #  number_datapoint: 111
  #  name: Countdown Total
  #  unit_of_measurement: S
  #  min_value: 0
  #  max_value: 86399
  #  step: 1

select:
  - platform: tuya
    enum_datapoint: 4
    name: Led Type
    optimistic: true
    options:
      0: Cfl
      1: Incandescent
      2: Halogen
      3: Led
  - platform: tuya
    enum_datapoint: 103
    name: Fade On Speed
    optimistic: true
    options:
      0: Immediate
      1: Fast
      2: Medium
      3: Slow
  - platform: tuya
    enum_datapoint: 104
    name: Fade Off Speed
    optimistic: true
    options:
      0: Immediate
      1: Fast
      2: Medium
      3: Slow

light:
  - platform: tuya
    name: dimmer1
    dimmer_datapoint: 2
    min_value_datapoint: 2
    max_value: 1000
    switch_datapoint: 1
1 Like