Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Bridge issues #36

Open
rdrivas123 opened this issue Apr 22, 2016 · 8 comments
Open

MQTT Bridge issues #36

rdrivas123 opened this issue Apr 22, 2016 · 8 comments

Comments

@rdrivas123
Copy link

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
Copy link
Owner

I would take a look at two logs:

@rdrivas123
Copy link
Author

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:


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

@rdrivas123
Copy link
Author

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:


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

@stjohnjohnson
Copy link
Owner

stjohnjohnson commented Apr 26, 2016

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
Copy link
Author

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//issues/36#issuecomment-214785351

@rdrivas123
Copy link
Author

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
Copy link
Author

rdrivas123 commented Apr 28, 2016

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants