logo elektroda
logo elektroda
X
logo elektroda

SendGet Unknown Command Error on ECR6600 Tuya WiFi Smart Plug Firmware 1.18.220

askiev31 246 2
ADVERTISEMENT
  • #1 21767594
    askiev31
    Level 2  
    Hello.
    Can somebody help with my problem?

    "SendGet..." - Unknown command - on ECR6600 Tuya Wi-Fi Smart Plug with Energy Measurement.

    My software version is 1.18.220

    OpenECR6600 tool interface showing command error and system info
  • ADVERTISEMENT
  • Helpful post
    #2 21767606
    p.kaczmarek2
    Moderator Smart Home
    Welcome to forum. I think this is disabled on ECR by default. Still, no problem - you can enable and build it online, no toolchain required.
    You need:
    Code: C / C++
    Log in, to see the code

    in obk_config.h in ECR section.
    See our online building system for more information: https://www.elektroda.com/rtvforum/topic4033833.html
    Helpful post? Buy me a coffee.
  • #3 21768196
    askiev31
    Level 2  
    @p.kaczmarek2, thanks!

    Now it (sendGET/POST) works! But I have another question.

    1)
    How can you manage channel states by receiving data from responses from a third-party HTTP server?
    For example, I make request
    sendGET https://mysite.com/openbkn_get_instructions/

    and server sends an answer with raw (i.e. "Channel1=1&Channel2=0") or JSON (i.e. {"Channel1": "1"}), so how can I interpret server responses to change channel status on my device?

    2)
    How can I send some JSON data to third-party HTTP server?
    For example, if I enter this in my browser http://192.168.1.95/cm?cmnd=Status 8 it returns some data in JSON:
    {"StatusSNS":{"Time":"2025-12-01T18:41:07","ENERGY":{"Power": 0.000000,"ApparentPower": 0.000000,"ReactivePower": 0.000000,"Factor":1.000000,"Voltage":231.583771,"Current":0.000000,"Frequency":0.000000,"ConsumptionTotal":38.524380,"Yesterday": 2.533750,"ConsumptionLastHour":0.001772},"ESP32":{"Temperature": 46.0},"TempUnit":"C"}}


    How can I send this JSON data (POST or GET) to my server on URL https://mysite.com/openbkn_status/
ADVERTISEMENT