2020-06-05, 11:54 AM
(This post was last modified: 2020-06-05, 11:55 AM by leif_klasson@hotmail.com.)
(2020-06-05, 03:05 AM)denderah Wrote: Hi,Hi, as previous post noted, check mqtt connection in signalk log. Also, if you install MQTT Publisher/Subscriber, you can easily see what is coming in.
So tonight I setup ESP Easy as per Leif's values/exemple : typed in exactly the same stuff as per the various pictures, to the letter!
In SignalK's Plugin config, I setup "Signal K - MQTT Gateway" :
- Checked "Active"
- Checked "Run local server (publish...)"...............
In EspEasy, the device and controller are enabled? And, the device need to be "connected" to the correct controller?
Try this one in your raspberry:
mosquitto_sub -v -h localhost -t "#"
First you need to install the mosquitto_sub, ( https://appcodelabs.com/introduction-to-...spberry-pi).
-v means you will see the path and value.
-t "#" is wildcard for any topic.
Should give something ike this:
vessels/self/environment.inside.main.relativeHumidity 36
vessels/self/environment.inside.mainCabin.temperature 295
you can of course also publish to MQTT to test the signalk/MQTT function
Are you using any any MQTT user/pwd? I guess not.
In Espeasy log you should see:
12125489: DHT : Temperature: 21.00
12125489: DHT : Humidity: 35.00
12125495: EVENT: DHT11#environment.inside.mainCabin.temperature=294.15
12125501: EVENT: DHT11#environment.inside.main.relativeHumidity=35.00
The first two rows "DHT" is from the sensor itself, the last one are the actual EVENT that are sent to MQTT.
/Leif