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

MQTT Bridge issues

Open rdrivas123 opened this issue 8 years ago • 8 comments

Hello,

I am not sure that my issues is with the MQTT, it seems to be running, but how do I tell it is communicating to my hub?

rdrivas123 avatar Apr 22 '16 21:04 rdrivas123

I would take a look at two logs:

  • MQTT Bridge event.log
  • SmartThings Live Logger: https://graph.api.smartthings.com/ide/logs

stjohnjohnson avatar Apr 22 '16 22:04 stjohnjohnson

I see nothing in the Live logger at all, where would the MQTT log be located?

From: St. John Johnson [mailto:[email protected]] Sent: Friday, April 22, 2016 6:52 PM To: stjohnjohnson/smartthings-mqtt-bridge [email protected] Cc: Robert Rivas [email protected]; Author [email protected] Subject: Re: [stjohnjohnson/smartthings-mqtt-bridge] MQTT Bridge issues (#36)

I would take a look at two logs:

  • MQTT Bridge event.log
  • SmartThings Live Logger: https://graph.api.smartthings.com/ide/logs

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://github.com/stjohnjohnson/smartthings-mqtt-bridge/issues/36#issuecomment-213616834

rdrivas123 avatar Apr 23 '16 03:04 rdrivas123

OK, I now see things logging and coming to and from the hub, but I cant control my lights or see anything working. I suspect it is because I have the wrong info in my configuration.yaml

Light: Platform: mqtt Name: “Kitchen Bar 1” state_topic: “smartthings/Kitchen Bar 1/switch” command_topic: “smartthings/Kitchen Bar 1/switch”

How do I identify my devices in home assistant now that the MQTT seems to be pushing data around?

From: St. John Johnson [mailto:[email protected]] Sent: Friday, April 22, 2016 6:52 PM To: stjohnjohnson/smartthings-mqtt-bridge [email protected] Cc: Robert Rivas [email protected]; Author [email protected] Subject: Re: [stjohnjohnson/smartthings-mqtt-bridge] MQTT Bridge issues (#36)

I would take a look at two logs:

  • MQTT Bridge event.log
  • SmartThings Live Logger: https://graph.api.smartthings.com/ide/logs

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://github.com/stjohnjohnson/smartthings-mqtt-bridge/issues/36#issuecomment-213616834

rdrivas123 avatar Apr 23 '16 04:04 rdrivas123

This is an example of my config:

light:
  - platform: mqtt
    name: "Backyard Lights"
    state_topic: "smartthings/Backyard Lights/switch"
    command_topic: "smartthings/Backyard Lights/switch"
    payload_on: "on"
    payload_off: "off"

stjohnjohnson avatar Apr 26 '16 15:04 stjohnjohnson

So I see the broker subscribe to the information in the config, the device shows up in homeassistant now, but when I turn it on or off nothing happens at all.

On Apr 26, 2016, at 11:35 AM, St. John Johnson <[email protected]mailto:[email protected]> wrote:

This is an example of my config:

light:

  • platform: mqtt name: "Backyard Lights" state_topic: "smartthings/Backyard Lights/switch" command_topic: "smartthings/Backyard Lights/switch" payload_on: "on" payload_off: "off" optimistic: true

You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://github.com/stjohnjohnson/smartthings-mqtt-bridge/issues/36#issuecomment-214785351

rdrivas123 avatar Apr 27 '16 02:04 rdrivas123

So I set my lights to off, then on again via Homeassistant, and here is what i get for a device command log:

archivable true commandId 168907 date 2016-04-28 7:35:17.150 PM EDT (2016-04-28T23:35:17.150Z) description deviceId 2aa34a3b-45a3-463f-a78e-9162a27c4d17 displayed true eventSource APP_COMMAND hubId 5c157cfa-6335-4714-8620-6be7e072da6f id dd124be0-0d99-11e6-92fc-125a5f873be3 installedSmartAppId b7eac426-6fc6-41fc-aaab-76ccd173314d isStateChange true isVirtualHub false linkText MQTT Bridge locationId 50264796-314f-48ab-bb35-900757c6e0da rawDescription MQTT Bridge sent deviceNotification command to SH smartAppId 55ec89dc-950c-4a00-83fd-cb7e7e5b1ee9 smartAppVersionId b472088a-36aa-4ad6-97d0-1f05c11f2e6f translatable false unixTime 1461886517150 value deviceNotification viewed false

rdrivas123 avatar Apr 28 '16 23:04 rdrivas123

I also get this in the live log:

2aa34a3b-45a3-463f-a78e-9162a27c4d17 7:47:54 PM: debug Parsing 'index:17, mac:B827EBBDD262, ip:AC150231, port:1F90, requestId:2dcbe449-45c6-477e-ac7b-70b1c6447fe8, headers:SFRUUC8xLjEgMjAwIE9LDQpYLVBvd2VyZWQtQnk6IEV4cHJlc3MNCkNvbnRlbnQtVHlwZTogYXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA0KQ29udGVudC1MZW5ndGg6IDE1DQpFVGFnOiBXLyJmLURIZHBsNU0rdGdnenMzdnE5RGdVeUEiDQpEYXRlOiBUaHUsIDI4IEFwciAyMDE2IDIzOjQ3OjU0IEdNVA0KQ29ubmVjdGlvbjoga2VlcC1hbGl2ZQ==, body:eyJzdGF0dXMiOiJPSyJ9'

rdrivas123 avatar Apr 28 '16 23:04 rdrivas123

Did you figure this out? I have it setup in Home Assistant and can see when the switch in on or off after triggering the toggle on the home assistant page, but nothing happens. I have nothing in the smartthings logs. Thanks

rsissons avatar Jan 26 '17 00:01 rsissons