smartthings-mqtt-bridge icon indicating copy to clipboard operation
smartthings-mqtt-bridge copied to clipboard

Access log shows 404

Open rayjohnson opened this issue 7 years ago • 2 comments

I think I followed the directions correctly... but things are not working.

Looking at the access.log I see the hub is calling the bridge. However, it only gets a 404: 2018-01-26T06:02:24.187Z - info: HTTP GET / statusCode=404, url=/, host=127.0.0.1:9888, connection=keep-alive, accept-encoding=gzip, deflate, accept=/, user-agent=python-requests/2.11.1, method=GET, httpVersion=1.1, originalUrl=/, , responseTime=10

I'm running the bridge via docker with this image: stjohnjohnson/smartthings-mqtt-bridge

What am I doing wrong?

Ray

rayjohnson avatar Jan 26 '18 06:01 rayjohnson

I solved this - did not have the SmartApp properly installed or deployed...

I have another problem though. I have an HomeSeer WD100+ connected to the SmarterThings. (I had to use a different device handler for that... as it supports a bunch of additional options.)

However, on the MQTT bus I only see it publish on or off. Not the level. I can see in the logs that it is publishing the level to the bridge - but it ignores it. I'd like to also have it send the other button types but for now I'd like to understand why it doesn't send the level. Any ideas?

rayjohnson avatar Jan 29 '18 08:01 rayjohnson

Glad you resolved the 404. Regarding custom devices, the bridge only understands things based on their capabilities you put them in. https://github.com/stjohnjohnson/smartthings-mqtt-bridge/blob/518678790d4fef061f0a7b9fe4e79a267401ec0d/smartapps/stj/mqtt-bridge.src/mqtt-bridge.groovy#L24

stjohnjohnson avatar Jan 29 '18 17:01 stjohnjohnson