anyone know how to get my mqtt and bridge talk to each other
so my setup is using docker to run my homeassisant Home Assistant 0.100.2 on linux computer 18.04 LTS
this are the docker images I’m using
my mqtt bridge
图片:stjohnjohnson /聪明things-mqtt-bridge
my mqtt broker
image: matteocollina/mosca
homeassisant
image: homeassistant/home-assistant:stable
so my question is my setup appeared to be communicating well. I see the homeassisant login and get connected with my mqtt broker same as for my mqtt bridge and other sonoff switches log in and get connected successfully
my mqtt bridges log is this
info: Starting SmartThings MQTT Bridge - v3.0.0 info: Loading configuration info: Loading previous state info: Perfoming configuration migration fo: Saving current state info: Connecting to MQTT at mqtt://192.168.1.197 fo: Configuring autosave info: Configuring API info: Listening at http://localhost:8080 info: Incoming message from SmartThings: smartthings/Lock/lock = unlocked info: Incoming message from SmartThings: smartthings/Lock/lock = locked info: Incoming message from SmartThings: smartthings/Lock/lock = unlocked info: Incoming message from SmartThings: smartthings/Lock/lock = locked fo: Saving current state fo: Saving current state
my mqtt log is
{"pid":1,"hostname":"b71191ec0d94","name":"mosca","level":30,"time":1571591230102,"msg":"client connected","client":"mqttjs_797451a4","v":1} {"pid":1,"hostname":"b71191ec0d94","name":"mosca","level":30,"time":1571591131324,"msg":"client connected","client":"homeassisant","v":1} {"pid":1,"hostname":"b71191ec0d94","name":"mosca","level":30,"time":1571591141240,"msg":"client connected","client":"sonoff_kmc_2","v":1} {"pid":1,"hostname":"b71191ec0d94","name":"mosca","level":30,"time":1571591131828,"msg":"subscribed to topic","topic":"smartthings/Lock/battery","qos":0,"client":"homeassisant","v":1} {"pid":1,"hostname":"b71191ec0d94","name":"mosca","level":30,"time":1571591131828,"msg":"subscribed to topic","topic":"smartthings/Lock/lock","qos":1,"client":"homeassisant","v":1}
我homeasisstant日志
2019-10-20 10:50:28 DEBUG (MainThread) [homeassistant.components.mqtt] Transmitting message on smartthings/Lock/lock: locked 2019-10-20 10:50:28 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on smartthings/Lock/lock: b'locked' 2019-10-20 10:50:28 DEBUG (MainThread) [homeassistant.components.mqtt] Transmitting message on smartthings/Lock/lock: locked 2019-10-20 10:50:28 DEBUG (MainThread) [homeassistant.components.mqtt] Transmitting message on smartthings/Lock/lock: unlocked 2019-10-20 10:50:28 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on smartthings/Lock/lock: b'locked' 2019-10-20 10:50:28 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on smartthings/Lock/lock: b'unlocked'
my question is regarding my schalage lock.
i see the lock being connected when manually locked and unlocked the doour using the know. The log “Incoming message from SmartThings: smartthings/Lock/lock = locked” but when i use my homeasssiant frontend to send the message to the mqtt or bridge i see nothing.
all other switches that are mqtt switches doesnt have any problem being controlled by my homeassisant frontend
- platform: mqtt name: "Deadbolt Lock" state_topic: smartthings/Lock/lock command_topic: smartthings/Lock/lock payload_lock: "locked" payload_unlock: "unlocked" optimistic: false qos: 1 retain: false #value_template: '{{ value.x }}'
my setup used to work when i use my pi as my mqtt broker and bridge but theres alot of lag so i am migrating
anyhelp or set of eyes that can see my mistake would be appreciate it. thanks