devices.esphome.io

electriQ IQOOL SMART12HP

electriQ IQOOL SMART12HP

Device Type: misc
Electrical Standard: uk
Board: esp8266

Product Images

Product Image

GPIO Pinout

PinFunction
GPIO13UART Tuya RX
GPIO15UART Tuya TX

Basic Configuration

# Basic Config
substitutions:
device_name: "electriqaircon"
friendly_name: "Electriq air con"
esphome:
name: "${device_name}"
friendly_name: "${friendly_name}"
on_boot:
priority: 800
then:
- select.set:
id: mode
option: "Heating"
- select.set:
id: fanspeed
option: "Medium"
esp8266:
board: esp01_1m
# Enable Home Assistant API
api:
ota:
mdns:
disabled: false
web_server:
port: 80
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: .lan
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${friendly_name} Hotspot"
password: ""
captive_portal:
# Make sure logging is not using the serial port
logger:
baud_rate: 0
uart:
rx_pin: GPIO13
tx_pin: GPIO15
baud_rate: 9600
# Register the Tuya MCU connection
tuya:
on_datapoint_update:
- sensor_datapoint: 3 # current temperature
datapoint_type: int
then:
- lambda: |-
ESP_LOGD("main", "current_temperature %d", x);
binary_sensor:
- platform: status
name: "${friendly_name} Status"
sensor:
- platform: uptime
name: "${friendly_name} Uptime"
- platform: "tuya"
name: "Current Temperature"
sensor_datapoint: 3
climate:
- platform: tuya
name: "${friendly_name} Climate"
supports_heat: True
supports_cool: true
switch_datapoint: 1
target_temperature_datapoint: 2
current_temperature_datapoint: 3
switch:
- platform: "tuya"
name: "${friendly_name} Sleep Mode"
switch_datapoint: 101
- platform: "tuya"
name: "${friendly_name} Oscillating air paddle"
switch_datapoint: 104
select:
- platform: "tuya"
name: "${friendly_name} Mode"
id: mode
enum_datapoint: 4
optimistic: true
options:
0: Cooling
1: Fan Only
2: De-Humidify
3: Heating
- platform: "tuya"
name: "${friendly_name} Fan Speed"
id: fanspeed
enum_datapoint: 5
optimistic: true
options:
0: Low
1: Medium
2: High
- platform: "tuya"
name: "${friendly_name} Temperature Unit"
id: temperatureunit
enum_datapoint: 19
optimistic: true
options:
0: C
1: F
Edit this page on GitHub