devices.esphome.io

DETA Mechanism Switch (6014HA)

DETA Mechanism Switch (6014HA)

Device Type: switch
Electrical Standard: au
Board: esp8266

General Notes

A smart switch that does not require a neutural, needs a minumum 20w load or a load correction device

Available from Bunnings

Deta 6014 Switch

GPIO Pinout

PinFunction
GPIO12Blue LED (Inverted: true)
GPIO14Button
GPIO16Relay

Conversion

To use ESPHome, replace the WB3S with a ESP12F.

  • Link GPIO15 to Gnd (recommended via 10k resistor)
  • Link EN to Vcc (recommended via 10k resistor)

Due to limited space, conversion below ommited the resistors. No issues but it is outside specifications. Deta converted

Configuration

substitutions:
name: "deta-6014-01"
friendly_name: "DETA 1G"
project_name: "DETA.60141HA"
project_version: "1.0"
device_description: "Deta 6014HA Light Switch"
esphome:
name: "${name}"
comment: "${device_description}"
project:
name: "${project_name}"
version: "${project_version}"
esp8266:
board: esp12e
# OTA flashing
ota:
- platform: esphome
wifi: # Your Wifi network details
# Enable fallback hotspot in case wifi connection fails
ap:
# Enabling the logging component
logger:
# Enable Home Assistant API
api:
# Enable the captive portal
captive_portal:
output:
# Button
- platform: gpio
pin: GPIO16
id: relay1
light:
# Top (or only) button
- platform: binary
name: "${friendly_name} Light"
output: relay1
id: light1
on_turn_on:
- light.turn_on: status1
on_turn_off:
- light.turn_off: status1
- platform: status_led
id: status1
pin:
number: GPIO12
inverted: true
# Buttons
binary_sensor:
# Button
- platform: gpio
pin:
number: GPIO14
mode:
input: true
pullup: true
inverted: True
name: "${friendly_name} Button"
#toggle relay on push
on_press:
- light.toggle: light1
button:
- platform: restart
id: restart_button
name: "${friendly_name} Restart"
disabled_by_default: true
Edit this page on GitHub