-
Notifications
You must be signed in to change notification settings - Fork 242
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
I cant get this figured out.. #188
Comments
This is the exact same issue I am having. Maby Samsung changed something so the smartapp cannot send the command that is receives from mqtt to the smartthings hub. |
I can add that i have had this smartapp running for the past year and a half without issue and now suddenly it stopped working. |
Usually when this happens, the IP/MAC address is wrong.
I’m afraid I don’t know what else could be causing this.
On Sun, Jan 13, 2019 at 15:26 Johan Lindström ***@***.***> wrote:
I can add that i have had this smartapp running for the past year and a
half without issue and now suddenly it stopped working.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#188 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAl98cvsg2B4OG0NPX38bCa4bThElPEAks5vC8CmgaJpZM4ZnTwh>
.
--
- St. John
|
In your logs, I don’t see any messages from MQTT to the bridge. Also
include your device and smart app logs.
On Sun, Jan 13, 2019 at 19:24 St. John Johnson <[email protected]>
wrote:
Usually when this happens, the IP/MAC address is wrong.
I’m afraid I don’t know what else could be causing this.
On Sun, Jan 13, 2019 at 15:26 Johan Lindström ***@***.***>
wrote:
> I can add that i have had this smartapp running for the past year and a
> half without issue and now suddenly it stopped working.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#188 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAl98cvsg2B4OG0NPX38bCa4bThElPEAks5vC8CmgaJpZM4ZnTwh>
> .
>
--
- St. John
--
- St. John
|
Here i have an example. The first is a incoming message from Home assistant via MQTT to the bridge. It received the package as seen in the log but the light did not turn on. The second and third message is me turning on and off the light from the Smartthings app. Has there been a change in what topic is used for cmd?
|
If i check live logging on the smartthings ide i see nothing when I send messages via MQTT. The only thing related to the brigde is data sent from smartthings to the brige (notifications). And those work. |
Hmm, very strange. I don't think anything has changed. Did you get a new version of the container or is the the same as before? |
You should try to resave the settings in the smartthings app and device |
I have this exact same issue. Because I had to nuke my entire ST and HA setup last time, I've installed Hass.io in a hypervisor and have been taking snapshots along the way. I restored a working configuration after it died this time and it was still dead. I was able to get this working again by going to marketplace > SmartApps > and creating a new automation app and readding all the lights. |
Is the smartapp the thing that is telling Smartthings to command a device to do something? I will try to add a new smartapp and see if that fixes it. |
I've removed the old Smartapp and added it again but still same error for me. I can see that the bridge receives the mqtt message but it does not seem to relay it to the Smartthings hub. |
So, I just spent another dozen hours battling this issue when it happened again.
Note:
|
hmmm that was it. when i only add a switch i can control it. So there is a maximum number of devices this smartapp can handle. |
@stjohnjohnson reducing the number of devices on the bridge seem to fix the problem. Any idea why this is? |
No idea. That took me at least 30 hours and 8 jillion rollbacks to figure out though lol. |
My only thought could be some payload limit on express or smart things
side.
On Thu, Jan 24, 2019 at 20:07 YellowGTO ***@***.***> wrote:
No idea. That took me at least 30 hours and 8 jillion rollbacks to figure
out though lol.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#188 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAl98R_gGHcLDyLzDGJ-4RhT57fmmPyAks5vGoMLgaJpZM4ZnTwh>
.
--
- St. John
|
In my case, running homeassistant, mosquitto and the bridge on the same host, I could read the states and sensors of SmartThings from Homeassistant / MQTT, but I could not trigger the ST switches. I tracked it down to mqtt-bridge giving me the duplicate subscriptions (and I think I just saw the PR for it)
but not actually subscribing with mosquitto. I figured that string is way too long. I created multiple SmartApps on my Android ST - one app for motion sensor, one for switches, etc and subscriptions now being sent out and brifge is "open" in both directions now :-) |
I know this is almost a year old, however I was doing some network reconfiguration at home and ran into this same issue of one-way traffic only occurring from ST->HASS(Mqtt-broker) I ended up looking at this for a solid multiple days and I think I ended up figuring out my solution and thought I would add in my experience: I ended up setting up different VLANs on my network recently (Management / IoT / Guest / Main / etc..) After doing so and changing IPs and such, I could not for the life of me get the Smart Things hub to execute any commands via the MQTT bridge. Everything would work from ST -> HASS but not the other way around HASS -> ST. Everything always seemed to lead back to the Mac / IP address. Looking into obtaining the mac address via "arp" I discovered that ARP only works on the local subnet (from my limited google knowledge). I changed the ST hub over to the same subnet as my HASS / MQTT-broker instance and it worked. I can only assume the ST hub MAC address verification relies perhaps on something similar or exactly the same as ARP to verify the message. This was blocking all my communication due to it being on a different subnet. Hope this helps someone... I now have a headache. |
I am stuck. My setup is as follows:
Hass.io RPi w/ Mosquitto broker Addon <-> Bridge RPi w/ Docker Based mqtt-bridge & MQTT Client <-> Smartthings w/ MQTT Bridge device Handler and SmartApp
switch:
name: "Christmas Tree"
icon: 'mdi:pine-tree'
state_topic: "smartthings/Christmas Tree/switch"
command_topic: "smartthings/Christmas Tree/switch"
payload_on: "on"
payload_off: "off"
retain: true
name: 'Desk'
state_topic: "smartthings/Desk/switch"
command_topic: "smartthings/Desk/switch"
payload_on: "on"
payload_off: "off"
retain: true
pi@RasPi-4:~$ mosquitto_sub -V mqttv311 -h 192.168.1.97 -p 1883 -u user -P pass -v -t "smartthings/#" -c -q 2 --id mqtt-test
smartthings/Christmas Tree/switch off
smartthings/Desk/switch off
smartthings/Desk/switch on
smartthings/Christmas Tree/switch on
smartthings/Desk/switch off
smartthings/Christmas Tree/switch off
info: Starting SmartThings MQTT Bridge - v3.0.0
info: Loading configuration
info: Loading previous state
info: Perfoming configuration migration
info: Saving current state
info: Connecting to MQTT at mqtt://192.168.1.97:1883
info: Configuring autosave
info: Configuring API
info: Listening at http://localhost:8080
info: Saving current state
info: Subscribing to smartthings/Garage Door/door/cmd, smartthings/Garage Door/door/set_state, smartthings/Contacts/notify/cmd, smartthings/Contacts/notify/set_state, smartthings/System/notify/cmd, smartthings/System/notify/set_state, smartthings/Garage Workbench Light/switch/cmd, smartthings/Garage Workbench Light/switch/set_state, smartthings/Kitchen Sink/switch/cmd, smartthings/Kitchen Sink/switch/set_state, smartthings/OutDoor_Lights_1/switch/cmd, smartthings/OutDoor_Lights_1/switch/set_state, smartthings/Christmas Tree/switch/cmd, smartthings/Christmas Tree/switch/set_state, smartthings/Attic Fan/switch/cmd, smartthings/Attic Fan/switch/set_state, smartthings/Desk/switch/cmd, smartthings/Desk/switch/set_state
info: Saving current state
info: Saving current state
info: Subscribing to smartthings/Garage Door/door/cmd, smartthings/Garage Door/door/set_state, smartthings/Contacts/notify/cmd, smartthings/Contacts/notify/set_state, smartthings/System/notify/cmd, smartthings/System/notify/set_state, smartthings/Garage Workbench Light/switch/cmd, smartthings/Garage Workbench Light/switch/set_state, smartthings/Kitchen Sink/switch/cmd, smartthings/Kitchen Sink/switch/set_state, smartthings/OutDoor_Lights_1/switch/cmd, smartthings/OutDoor_Lights_1/switch/set_state, smartthings/Christmas Tree/switch/cmd, smartthings/Christmas Tree/switch/set_state, smartthings/Attic Fan/switch/cmd, smartthings/Attic Fan/switch/set_state, smartthings/Desk/switch/cmd, smartthings/Desk/switch/set_state
I can actually see what looks like proper communications from Smartthings to the Bridge and from HA to the Bridge but something is not letting the communications go all the way from HA to ST. If anyone has any Ideas it would be very appreciated. I solved most of my issues thus far and frankly I am stuck on this last little bit.
--------------- Bridge Config ----------------
mqtt:
host: mqtt://192.168.1.97:1883
preface: smartthings
state_read_suffix: state
state_write_suffix: set_state
command_suffix: cmd
username: user
password: pass
port: 8080
--------------- Hassio Config ----------------
mqtt:
broker: '192.168.1.97'
keepalive: 60
port: 1883
client_id: HA-MQTT
username: user
password: pass
discovery: true
discovery_prefix: smartthings
The text was updated successfully, but these errors were encountered: