Hi, I uploaded Tasmot to the garage module, but nowhere can I see the Tasmot settings for the module. Type DY-CK400A / board 8266 TYWE1S /
Tasmota only works error setting correctly. Please help with setting up Tasmota.
well thank you
Tasmota devices have a web page. That’s where the settings are.
I did not find this model on the Tasmot website
No, once you flashed it, open the web interface of the device.
Hi, I would like to flash the same device with Tasmota. Do you have the bin file with the template for this garage opener?
I have the same device, I successfully flashed ESPHome on it:
packages:
common: !include common.yaml
esphome:
project:
name: Tuya.DY-CK400A
version: "1.0"
esp8266:
board: esp_wroom_02
uart:
rx_pin: GPIO13
tx_pin: GPIO15
baud_rate: 9600
tuya:
ignore_mcu_update_on_datapoints:
# useless information
- 1
globals:
# https://github.com/esphome/issues/issues/6503
- id: initial_state
type: bool
restore_value: no
initial_value: 'true'
binary_sensor:
- platform: tuya
id: contact
sensor_datapoint: 101
on_state:
if:
condition:
lambda: 'return id(initial_state);'
then:
lambda: 'id(initial_state) = false;'
- platform: template
id: cover_state
lambda: 'return id(initial_state) || id(contact).state;'
switch:
- platform: tuya
id: relay
switch_datapoint: 1
cover:
- platform: template
device_class: garage
name: ""
lambda: 'return id(cover_state).state ? COVER_OPEN : COVER_CLOSED;'
open_action:
if:
condition:
lambda: 'return !id(cover_state).state;'
then:
# crazy stuff but this is how the relay works
if:
condition:
lambda: 'return id(contact).state;'
then:
switch.turn_on: relay
else:
switch.turn_off: relay
close_action:
if:
condition:
lambda: 'return id(cover_state).state;'
then:
if:
condition:
lambda: 'return id(contact).state;'
then:
switch.turn_on: relay
else:
switch.turn_off: relay
Unfortunately, it has an issue: the sensor will not report its real state on initialization: Tuya MCU: `Initialization failed. Current init_state: 4` · Issue #6503 · esphome/issues · GitHub.
Otherwise works great. But if I knew this device used a Tuya MCU (meaning ESPHome cannot do much with it), I’d probably have sticked with Tuya Local.