stjohnjohnson / smartthings-mqtt-bridge

Bridge between SmartThings and MQTT
https://hub.docker.com/r/stjohnjohnson/smartthings-mqtt-bridge/
MIT License
363 stars 241 forks source link

Access log shows 404 #124

Open rayjohnson opened 6 years ago

rayjohnson commented 6 years ago

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 commented 6 years ago

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?

stjohnjohnson commented 6 years ago

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