Edit: itâs also important to note that gbridge switches the action and status topics by default. So the action topic should be:
slaapkamer-dimmer/onoff/set
And the status topic:
slaapkamer-dimmer/onoff
Default is the other way around!
Thx, switched those around.
In MQTT Explorer I only see two elements in the treeview: gBridge and $SYS. Shouldnât Homey be showing there as well?
This is what Iâm seeing in the log after starting mosquitto
1550701196: mosquitto version 1.4.14 (build date 2017-07-10 23:55:18+0100) starting
1550701196: Config loaded from mosquitto.conf.
1550701196: Opening ipv6 listen socket on port 1883.
1550701196: Opening ipv4 listen socket on port 1883.
1550701196: Bridge local.broker1 doing local SUBSCRIBE on topic #
1550701196: Connecting bridge bridge-01 (192.168.1.184:1883)
1550701196: Bridge broker1 sending CONNECT
1550701196: Bridge local.gbridge-u796-sdjlnsdbkdshjsd doing local SUBSCRIBE on topic gBridge/u796/+/+
1550701196: Bridge local.gbridge-u796-sdjlnsdbkdshjsd doing local SUBSCRIBE on topic gBridge/u796/+/+/set
1550701196: Connecting bridge kappelt-gbridge (mqtt.gbridge.io:8883)
1550701196: Bridge gbridge-u796-sdjlnsdbkdshjsd sending CONNECT
1550701196: Received CONNACK on connection local.gbridge-u796-sdjlnsdbkdshjsd.
1550701196: Bridge local.gbridge-u796-sdjlnsdbkdshjsd sending SUBSCRIBE (Mid: 2, Topic: gBridge/u796/+/+, QoS: 0)
1550701196: Bridge local.gbridge-u796-sdjlnsdbkdshjsd sending SUBSCRIBE (Mid: 3, Topic: gBridge/u796/+/+/set, QoS: 0)
1550701196: Received PUBACK from local.gbridge-u796-sdjlnsdbkdshjsd (Mid: 1)
1550701196: Received SUBACK from local.gbridge-u796-sdjlnsdbkdshjsd
1550701196: Received SUBACK from local.gbridge-u796-sdjlnsdbkdshjsd
Shouldnât there be a mention of Homey subscribing too?
When I for instance try to switch the light on through Google Home, I see the following
1550701612: Received PUBLISH from local.gbridge-u796-sdjlnsdbkdshjsd (d0, q0, r0, m0, âgBridge/u796/slaapkamer-dimmer/onoff/setâ, ⊠(1 bytes))
1550701612: Sending PUBLISH to mqttjs_332f7476 (d0, q0, r0, m0, âgBridge/u796/slaapkamer-dimmer/onoff/setâ, ⊠(1 bytes))
It gets published to MQTT Explorer, but not to Homey. When switching through Homey I see the following
1550701771: Received PUBLISH from homey_276051ba (d0, q0, r1, m0, âgBridge/u796/slaapkamer-dimmer/onoffâ, ⊠(4 bytes))
1550701771: Sending PUBLISH to local.gbridge-u796-sdjlnsdbkdshjsd (d0, q0, r1, m0, âgBridge/u796/slaapkamer-dimmer/onoffâ, ⊠(4 bytes))
1550701771: Sending PUBLISH to mqttjs_332f7476 (d0, q0, r0, m0, âgBridge/u796/slaapkamer-dimmer/onoffâ, ⊠(4 bytes))
Like I said, iâm very new at this, but it seems as if Homey is only sending MQTT commands out, but not receiving them and acting on them. Iâve already looked through the settings of the MQTT Client and MQTT Hub on Homey, but canât find a setting/option that might affect this.