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

MQTT Bridge issues #36

Open rdrivas123 opened 8 years ago

rdrivas123 commented 8 years ago

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?

stjohnjohnson commented 8 years ago

I would take a look at two logs:

rdrivas123 commented 8 years ago

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

From: St. John Johnson [mailto:notifications@github.com] Sent: Friday, April 22, 2016 6:52 PM To: stjohnjohnson/smartthings-mqtt-bridge smartthings-mqtt-bridge@noreply.github.com Cc: Robert Rivas robert@rsvx.net; Author author@noreply.github.com Subject: Re: [stjohnjohnson/smartthings-mqtt-bridge] MQTT Bridge issues (#36)

I would take a look at two 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 commented 8 years ago

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:notifications@github.com] Sent: Friday, April 22, 2016 6:52 PM To: stjohnjohnson/smartthings-mqtt-bridge smartthings-mqtt-bridge@noreply.github.com Cc: Robert Rivas robert@rsvx.net; Author author@noreply.github.com Subject: Re: [stjohnjohnson/smartthings-mqtt-bridge] MQTT Bridge issues (#36)

I would take a look at two 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

stjohnjohnson commented 8 years ago

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"
rdrivas123 commented 8 years ago

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 notifications@github.com<mailto:notifications@github.com> wrote:

This is an example of my config:

light:

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

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

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'

rsissons commented 7 years ago

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