Closed ruhrgebietler closed 5 years ago
"Ruhrgebietler" hört sich Deutsch an, oder?
Yep, the values are case-sensitive. This is not an issue with MQTT itself, but with gBridge. Thats likely the issue with Tasmota.
I'm going to implement a first fix (making the values case-insensitive) this weekend.
Thanks for the quick reply! I'll report back when your fix is deployed.
PS: Ja, ich bin aus dem Ruhrpott :-)
Fix is implemented, now uppercase values for the OnOff trait are supported. Please re-open the issue if the problem persists.
I can report back that the issue is resolved. Much appreciated!
@peterkappelt hi i tried with many configurations and still cant make it work :( is ther any logs for gbridge? mosquito is connecting but its not working in goolge home, any reaction.
Hi Peter,
great work with gBridge, I really do enjoy the experience!
Here's a problem that came up when I integrated my Tasmota-enabled Sonoff S20 power plugs with gBridge. I have a similar setup as the user in #11 and my problem might also have to do with the interpretation of topics between Tasmota and gBridge.
Here's my basis setup: Tasmota-enabled device <--MQTT-unencrypted--> Mosquitto-Bridge <--MQTT-TLS--> gBridge <---> Google Home
Setup
Here are my configs:
Tasmota
As mentioned in #11 the prefix can be
cmnd
orstat
and there is also the suffixPOWER.
Therefore, the resulting topics of my Tasmota aregBridge/uXX/cmnd/wallsocket/POWER
andgBridge/uXX/stat/wallsocket/POWER
as verified in the log of Tasmota and in the log of the Mosquitto bridge.Mosquitto
Nothing spectacular here. Compared to the section on bridge configuration in the gBridge Docs I only changed the
topic
to match my topic format.gBridge
gBridge was configured to match the Tasmota topics. I hope that I interpreted it correctly that cmnd is the action topic and stat is the status topic, see https://github.com/arendst/Sonoff-Tasmota/wiki/MQTT-Overview
Google Home Has been linked with gBridge and sees the device.
Problem
The setup described above seems to work just fine. Google Home sees the device in gBridge. The bridge also works and successfully connecty the Tasmota to gBridge. I can toggle the light in the Google Home app or via voice commands.
However, Google Home always reports the light as being turned on. I can toggle it off but as soon as i close the Home app and reopen the device it is again shown as switched on. Therefore, I think the issue is with the status topic.
Possible things that could be wrong:
MQT: gBridge/uXX/stat/wallsocket/POWER = OFF
. I know that topics are case senstive. But are results also case-sensitive?Do you know what could be the issue? Can you suggest ways how I can better debug what went wrong?
Thanks in advance!