How to trigger OTA button in SmartThings App

Hi there,

I got a problem, I’m developing a project using ESP32 with Direct Connected.
I plan to add the OTA feature, update the firmware automatically from SmartThings app

So, i found this topic and i follow their instructions.

But, after following all the instructions, the Firmware update card in SmartThings App has not appeared.


this log result:

I (10807) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“firmwareUpdate”,“attribute”:“currentVersion”,“value”:“out_v2”,“providerData”:{“sequenceNumber”:1,“timestamp”:“1659684648725”}}]}
Sequence number return : 1
value is NULL
value is NULL
value is NULL
I (10837) [IoT]: iot_cap_call_init_cb(1105) > Call init_cb for switch capability
I (10847) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“switch”,“attribute”:“switch”,“value”:“off”,“providerData”:{“sequenceNumber”:2,“timestamp”:“1659684648768”}}]}
Sequence number return : 2
I (10877) [IoT]: iot_cap_call_init_cb(1105) > Call init_cb for powerMeter capability
I (10887) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“powerMeter”,“attribute”:“power”,“value”:0,“unit”:“W”,“providerData”:{“sequenceNumber”:3,“timestamp”:“1659684648805”}}]}
Sequence number return : 3
I (10917) [IoT]: _do_cmd_tout_check(1041) > New state updated for 8
I (10927) [IoT]: _do_cmd_tout_check(1048) > previous error code
Connection closed,all data received
isNewVersion : 1
I (34587) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“firmwareUpdate”,“attribute”:“availableVersion”,“value”:“out_v4”,“providerData”:{“sequenceNumber”:4,“timestamp”:“1659684672502”}}]}
Sequence number return : 4
I (112707) [IoT]: iot_cap_sub_cb(844) > command : {“commands”:[{“id”:“c4c150ad-4afb-479d-9c5a-d974a2f00418”,“component”:“main”,“capability”:“switch”,“command”:“on”,“arguments”:}]}
called [caps_switch_cmd_on_cb] func with num_args:0
I (112717) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“switch”,“attribute”:“switch”,“value”:“on”,“providerData”:{“sequenceNumber”:5,“timestamp”:“1659684750635”}}]}
Sequence number return : 5
I (127347) [IoT]: iot_cap_sub_cb(844) > command : {“commands”:[{“id”:“16b477a9-0b4a-4e5f-9dcf-4aa1c5a75c3f”,“component”:“main”,“capability”:“switch”,“command”:“off”,“arguments”:}]}
called [caps_switch_cmd_off_cb] func with num_args:0
I (127357) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“switch”,“attribute”:“switch”,“value”:“off”,“providerData”:{“sequenceNumber”:6,“timestamp”:“1659684765276”}}]}
Sequence number return : 6

So, anyone can resolve this issue?
Regards,
Thank you

Hi, @gramdhan.

I see you’re sending the update event:

So, let me check with the engineering team to see what can be causing the issue or if it’s a known bug.

I’ll keep you updated :smiley:

2 Likes

Okay, thank you. I am waiting for your answer

Hi, @nayelyz .
I want to follow up on this issue.
Is there an answer to this problem?

Thank You

Hi, @gramdhan
Sorry for the delay, the team had a heavy workload in the past few days.
Could you provide the following, please?

  1. Confirm if your email here is the same one you use for SmartThings. (if not, please share the email with me over DM or sending an email to build@smartthings.com)
  2. Provide access to your device’s data:
    1. Go to the SmartThings Web (my.smartthings.com)
    2. Log in to your Samsung Account
    3. Select Menu (⋮) and choose Settings
    4. Toggle on Account Data Access
    5. Select the time period and confirm - In this step, please select “Until turned off”, once the team finishes, we’ll let you know so you can disable it again.
  3. Share the complete logs from the direct-connected integration, since you install the device until the firmware update event. (you can send it to the email above as well)

Hello, @nayelyz .

  1. Ok, I’ve sent to build@smartthings.com
  2. I have given access to my device data
  3. Same, I’ve sent to build@smartthings.com
1 Like

Yeah, I got it.

We’ll continue the support through that channel because it’s highly possible we need to discuss particular information regarding your integration,.

Thanks!

Hi @gramdhan, did you ever figure this out? Can you share what fixed it?

This issue was because the button to update the firmware update didn’t appear due to an issue in the app but in the new version, this button appears correctly, so it is a different case.
@gramdhan, I sent you an email on the previous thread asking for your help to check if it works for you in the latest version of the app. Thanks!