bruhautomation / ESP-MQTT-JSON-Multisensor

(OBSOLETE) ESP MQTT JSON Multisensor for Home Assistant. Supported sensors include the TEMT6000 light, AM312 PIR, DHT22 temperature/humidity sensors. RGB led supports flash, fade, and transition. Over-The-Air (OTA) uploading, too!
https://youtu.be/jpjfVc-9IrQ
Apache License 2.0
340 stars 152 forks source link

I don't see any MQTT messages in a client. #44

Closed RaJeronimo closed 6 years ago

RaJeronimo commented 6 years ago

Hi, I Like this multisensor a lot! I have one problem. ik don't see the messages in an MQTT client. like MQTT spy. When i subscribe to topic # i don't get any messages. I have owntracks on my phone and that works great in HASSIO mosquitto.

Can anybody help what to look for?

This is the serial monitor in arduino IDE.

...
WiFi connected
IP address: 
192.168.1.13
Ready
IPess: 192.168.1.13
Attempting MQTT connection...connected
Setting LEDs:
r: 0, g: 0, b: 0
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"0.00","motion":"","ldr":"0","temperature":"0.00","heatIndex":"nan"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"0.00","motion":"standby","ldr":"0","temperature":"0.00","heatIndex":"nan"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"0.00","motion":"standby","ldr":"60","temperature":"0.00","heatIndex":"nan"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"0.00","motion":"standby","ldr":"60","temperature":"21.60","heatIndex":"nan"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"67.70","motion":"standby","ldr":"60","temperature":"21.60","heatIndex":"16.64"}
RaJeronimo commented 6 years ago

Never mind. I now use this source. https://github.com/ShawnCorey/ESP-MQTT-Multisensor-Authdiscovery

redparchel commented 6 years ago

just wanted to follow up on this in case anyone else has this issue. as I had a similar issue and found my issue to be that I hadn't modified the PubSubClient.h from the PubSubClient library modifying the MQTT_MAX_PACKET_SIZE to be '512' as mentioned in Ben's video: https://youtu.be/jpjfVc-9IrQ?t=10m42s

from: #define MQTT_MAX_PACKET_SIZE 128 to: #define MQTT_MAX_PACKET_SIZE 512