Hi @admin
Today I got KC868-M16v12 and add the provided yaml in you forum and while compiling getting below error
Compiling .pioenvs/m16v2/src/esphome/components/tuya_iot/tuya_iot_component.cpp.o
src/esphome/components/tuya_iot/tuya_iot_component.cpp: In lambda function:
src/esphome/components/tuya_iot/tuya_iot_component.cpp:167:96: error: invalid initialization of reference of type 'const json_parse_t&' {aka 'const std::function<bool(ArduinoJson6185_D1::ObjectRef)>&'} from expression of type 'esphome::tuya_iot::TuyaIotComponent:
ubscribe_json(const string&, const mqtt_json_callback_t&, uint8_t)::<lambda(const string&, const string&)>::<lambda(ArduinoJson::JsonObject)>'
json::parse_json(payload, [topic, callback](JsonObject root) { callback(topic, root); });
^
In file included from src/esphome/core/string_ref.h:10,
from src/esphome/core/entity_base.h:5,
from src/esphome/components/sensor/sensor.h:5,
from src/esphome/components/adc/adc_sensor.h:3,
from src/esphome.h:3,
from src/esphome/components/tuya_iot/tuya_iot_component.h:3,
from src/esphome/components/tuya_iot/tuya_iot_component.cpp:1:
src/esphome/components/json/json_util.h:26:6: note: in passing argument 2 of 'bool esphome::json::parse_json(const string&, const json_parse_t&)'
bool parse_json(const std:
tring &data, const json_parse_t &f);
^~~~~~~~~~
*** [.pioenvs/m16v2/src/esphome/components/tuya_iot/tuya_iot_component.cpp.o] Error 1
========================= [FAILED] Took 163.48 seconds =========================
I used the same yaml as provided here
https://www.kincony.com/forum/showthread.php?tid=3088
No change in yaml