OH4.3.M4 HTTP Binding THING Status Unknown

Hi All

EDIT: I have updated to M4 and still same issue. Cannot get the THING to come online

I am trying to read the status of a device using the HTTP Binding. No authentication etc is required.

I have set the Thing as follows:

UID: http:url:SunSynk_Log_API
label: SunSynk Log API
thingTypeUID: http:url
configuration:
  authMode: BASIC
  ignoreSSLErrors: true
  baseURL: http://10.163.199.233/loginfo.cgi
  delay: 0
  stateMethod: GET
  refresh: 300
  commandMethod: GET
  timeout: 3000
  bufferSize: 2048
channels:
  - id: last-failure
    channelTypeUID: http:request-date-time
    label: Last Failure
    configuration: {}
  - id: last-success
    channelTypeUID: http:request-date-time
    label: Last Success
    configuration: {}

The response from the Web Site should be something like:

System start
Wi-Fi STA Got IP
AP Opened
ukiot.sunsynk.net
Receive server login response ok
AP Opened
AP Opened

However I am unable to get the THING Online.

Not getting much useful in logs, even with TRACE enabled:

14:19:26.104 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'http:url:SunSynk_Log_API' changed from UNINITIALIZED (DISABLED) to INITIALIZING
14:19:26.105 [INFO ] [inding.http.internal.HttpThingHandler] - Using the insecure client for thing 'http:url:SunSynk_Log_API'.
14:19:26.105 [DEBUG] [inding.http.internal.HttpThingHandler] - No authentication configured for thing 'http:url:SunSynk_Log_API'
14:19:26.106 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'http:url:SunSynk_Log_API' changed from INITIALIZING to UNKNOWN

Any suggestions on what I might be missing?

Thanks
Mark

So I found my issue.

When creating the THING, the default two channels are not enough to bring the TNING online.

I had to add a String Channel and then it came ONLINE

Worked out by using a demo.thing file from the docs and duplicating the config in teh code tab of my UI created THING.

1 Like