Smart Home Automation Forum
Custom ESPHome firmware and Tuya integration - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A6 (https://www.kincony.com/forum/forumdisplay.php?fid=22)
+--- Thread: Custom ESPHome firmware and Tuya integration (/showthread.php?tid=6289)

Pages: 1 2 3 4


RE: Custom ESPHome firmware and Tuya integration - admin - 10-13-2025

that need to use tuya license.


RE: Custom ESPHome firmware and Tuya integration - alexps70 - 10-13-2025

(10-13-2025, 10:18 AM)admin Wrote: that need to use tuya license.

I have license for KC868-A6 
I use example in  GitHub - hzkincony/esphome-tuya-iot 
change   ref: v1.2.0 to  ref: v1.2.1
external_components:
  - source:
      type: git
      url: https://github.com/hzkincony/esphome-tuya-iot
      ref: v1.2.1


and get error in 

src/esphome/components/tuya_iot/tuya_iot_component.cpp: In member function 'virtual void esphome::tuya_iot::TuyaIotComponent::update()':
src/esphome/components/tuya_iot/tuya_iot_component.cpp:292:19: error: 'esp_mqtt_client_config_t' {aka 'struct esp_mqtt_client_config_t'} has no member named 'username'
292 | mqtt_cfg_.username = username;


my mqtt correct
mqtt:
  broker: !secret mqtt_host
  username: !secret mqtt_username
  password: !secret mqtt_password
  id: mqtt_client