BobRak / OpenHAB-Smartthings

53 stars 54 forks source link

All things failing with No custom converter exists #31

Closed silverman10 closed 4 years ago

silverman10 commented 6 years ago

All of my things started to fail with this message. I havent made any changes to the system in the last couple of days and it all started to throw these errors.

Note : i updated to the latest 2.2 SNAPSHOT this weekend.

19:02:35.776 [DEBUG] [org.openhab.binding.smartthings      ] - BundleEvent STARTED - org.openhab.binding.smartthings
19:02:35.794 [DEBUG] [org.openhab.binding.smartthings      ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory, org.osgi.service.event.EventHandler}={event.topics=org/openhab/binding/smartthings/state, component.name=binding.smartthings, component.id=228, service.id=359, service.bundleid=232, service.scope=bundle} - org.openhab.binding.smartthings
19:02:35.824 [DEBUG] [org.openhab.binding.smartthings      ] - ServiceEvent REGISTERED - {javax.servlet.http.HttpServlet}={service.pid=org.openhab.smartthings, service.config.category=binding, service.config.label=Smartthings Servlet, component.name=org.openhab.binding.smartthings, component.id=229, service.config.description.uri=binding:smartthings, service.id=360, service.bundleid=232, service.scope=bundle} - org.openhab.binding.smartthings
19:02:35.862 [DEBUG] [org.openhab.binding.smartthings      ] - ServiceEvent REGISTERED - {javax.servlet.ServletContext}={osgi.web.symbolicname=org.openhab.binding.smartthings, osgi.web.version=2.2.0.201801151705, osgi.web.contextname=default, osgi.web.contextpath=/, service.id=361, service.bundleid=232, service.scope=singleton} - org.openhab.binding.smartthings
19:02:35.873 [INFO ] [artthings.internal.SmartthingsServlet] - Started Smartthings servlet at /smartthings
19:02:35.943 [DEBUG] [gs.internal.SmartthingsHandlerFactory] - SmartthingsHandlerFactory is now processing ThingTypeUID smartthings:smartthings
19:02:35.952 [DEBUG] [discovery.SmartthingsDiscoveryService] - Initializing discovery service
19:02:35.957 [DEBUG] [discovery.SmartthingsDiscoveryService] - SmartthingsDiscoveryService.activate() called
19:02:35.963 [DEBUG] [org.openhab.binding.smartthings      ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=362, service.bundleid=232, service.scope=singleton} - org.openhab.binding.smartthings
19:02:35.973 [DEBUG] [org.openhab.binding.smartthings      ] - ServiceEvent REGISTERED - {org.osgi.service.event.EventHandler}={event.topics=org/openhab/binding/smartthings/discovery, service.id=363, service.bundleid=232, service.scope=singleton} - org.openhab.binding.smartthings
19:02:36.013 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'smartthings:smartthings:Home' changed from UNINITIALIZED to INITIALIZING
19:02:36.032 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'smartthings:smartthings:Home' changed from INITIALIZING to ONLINE
19:02:36.032 [DEBUG] [gs.internal.SmartthingsHandlerFactory] - SmartthingsHandlerFactory is now processing ThingTypeUID smartthings:button
19:02:36.039 [DEBUG] [gs.internal.SmartthingsHandlerFactory] - Creating thing handler for smartthings:button
19:02:36.049 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'smartthings:button:Home:ButtonThing' changed from UNINITIALIZED to INITIALIZING
19:02:36.059 [INFO ] [hings.handler.SmartthingsThingHandler] - No Custom converter exists for button (org.openhab.binding.smartthings.internal.converter.SmartthingsButtonConverter)
19:02:36.067 [INFO ] [hings.handler.SmartthingsThingHandler] - Using converter default
19:02:36.073 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'smartthings:button:Home:ButtonThing' changed from INITIALIZING to ONLINE
19:02:36.074 [DEBUG] [gs.internal.SmartthingsHandlerFactory] - SmartthingsHandlerFactory is now processing ThingTypeUID smartthings:button
19:02:36.083 [DEBUG] [gs.internal.SmartthingsHandlerFactory] - Creating thing handler for smartthings:button
19:02:36.092 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'smartthings:button:Home:Button2' changed from UNINITIALIZED to INITIALIZING
19:02:36.095 [INFO ] [hings.handler.SmartthingsThingHandler] - No Custom converter exists for button (org.openhab.binding.smartthings.internal.converter.SmartthingsButtonConverter)
19:02:36.102 [INFO ] [hings.handler.SmartthingsThingHandler] - Using converter default
19:02:36.108 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'smartthings:button:Home:Button2' changed from INITIALIZING to ONLINE
19:02:36.109 [DEBUG] [gs.internal.SmartthingsHandlerFactory] - SmartthingsHandlerFactory is now processing ThingTypeUID smartthings:motionSensor
19:02:36.116 [DEBUG] [gs.internal.SmartthingsHandlerFactory] - Creating thing handler for smartthings:motionSensor
19:02:36.132 [INFO ] [hings.handler.SmartthingsThingHandler] - No Custom converter exists for motion (org.openhab.binding.smartthings.internal.converter.SmartthingsMotionConverter)
19:02:36.132 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'smartthings:motionSensor:Home:MSense' changed from UNINITIALIZED to INITIALIZING
19:02:36.137 [INFO ] [hings.handler.SmartthingsThingHandler] - Using converter default
19:02:36.151 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'smartthings:motionSensor:Home:MSense' changed from INITIALIZING to ONLINE
19:02:36.151 [DEBUG] [gs.internal.SmartthingsHandlerFactory] - SmartthingsHandlerFactory is now processing ThingTypeUID smartthings:temperatureMeasurement
19:02:36.159 [DEBUG] [gs.internal.SmartthingsHandlerFactory] - Creating thing handler for smartthings:temperatureMeasurement
19:02:36.169 [INFO ] [hings.handler.SmartthingsThingHandler] - No Custom converter exists for temperature (org.openhab.binding.smartthings.internal.converter.SmartthingsTemperatureConverter)
19:02:36.170 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'smartthings:temperatureMeasurement:Home:TempSensor' changed from UNINITIALIZED to INITIALIZING
19:02:36.176 [INFO ] [hings.handler.SmartthingsThingHandler] - Using converter default
19:02:36.183 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'smartthings:temperatureMeasurement:Home:TempSensor' changed from INITIALIZING to ONLINE

Things

      Thing button         ButtonThing           [ smartthingsName="Button1" ]
      Thing button         Button2               [ smartthingsName="Button2" ]
      Thing motionSensor   MSense                [ smartthingsName="Sensor1" ]
      Thing temperatureMeasurement     TempSensor            [ smartthingsName="Temperature Sensor" ]

Items

String  BButton   { channel="smartthings:button:Home:ButtonThing:button" }
String  Button2   { channel="smartthings:button:Home:Button2:button" }

String  Sensor "Hallway Sensor status [%s]"  { channel="smartthings:motionSensor:Home:MSense:motion" }

String  TempSensor "Temperature [%.0f]"  { channel="smartthings:temperatureMeasurement:Home:TempSensor:temperature" }
silverman10 commented 6 years ago

Checked the status and looks like the smartthings platform was down. Its come back online and its working.

Would it be possible to add a more appropriate error in cases like these?

BobRak commented 6 years ago

Hi: Sorry for the delayed response. I've given some thought to you question and when time permits I'll see what can be done. Commands are sent to the hub with html requests. According to the html standard the receiving device should provide a response. But, that's not the way the hub work. It does not respond. That right there makes it somewhat difficult. One possibility would be to have something that runs on the hub that sends "I'm alive" messages to openHab. Then maybe I could code something in openHab that expects a response every so often and if it doesn't get one it could log an error message.

Right now I am in the process of moving and my time for anything else is quite limited. I'll keep thinking of solutions but probably won't have time to try to implement anything for at least a couple of months.

silverman10 commented 6 years ago

Thanks. Appreciated