FIXED - BRUH Multisensor - Serialmonitor shows data, wifi and mqtt connected - no sensor information in HA

Hi guys,

Im lost. I made the multi-sensor from BRUH Automation, the arduino ide shows results (using dht11 instead of dht22 which in a other topic gets fixed).

 {"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"1254.40","motion":"motion detected","ldr":"14","temperature":"1092.38","heatIndex":"-818882.00"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"1228.80","motion":"motion detected","ldr":"14","temperature":"1092.38","heatIndex":"-755173.00"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"1203.20","motion":"motion detected","ldr":"14","temperature":"1092.38","heatIndex":"-693427.06"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"1203.20","motion":"motion detected","ldr":"14","temperature":"1092.92","heatIndex":"-694568.44"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"1203.20","motion":"motion detected","ldr":"14","temperature":"1092.38","heatIndex":"-693427.06"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"1228.80","motion":"motion detected","ldr":"14","temperature":"1092.38","heatIndex":"-755173.00"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"1228.80","motion":"motion detected","ldr":"14","temperature":"1093.46","heatIndex":"-757623.50"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"1228.80","motion":"motion detected","ldr":"14","temperature":"1092.38","heatIndex":"-755173.00"}

When i hit the LED switch in HA front end, the result on the monitor is =

Message arrived [bruh/sensornode1/set] {"state": "ON", "brightness": 194}
{"state":"ON","color":{"r":255,"g":255,"b":255},"brightness":194,"humidity":"1228.80","motion":"motion detected","ldr":"14","temperature":"1092.02","heatIndex":"-754357.00"}
Setting LEDs:
r: 194, g: 194, b: 194
Message arrived [bruh/sensornode1/set] {"state": "ON", "brightness": 255}
{"state":"ON","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"1228.80","motion":"motion detected","ldr":"14","temperature":"1092.02","heatIndex":"-754357.00"}
Setting LEDs:
r: 255, g: 255, b: 255
Message arrived [bruh/sensornode1/set] {"state": "ON"}
{"state":"ON","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"1228.80","motion":"motion detected","ldr":"14","temperature":"1092.02","heatIndex":"-754357.00"}
Setting LEDs:
r: 255, g: 255, b: 255

The problem:
I get no other information like temperature etc.
The Led is always on (white), I cannot change the color only change the brightness and the sensor in the front end automatically switches off?

Any ideas? I copied Bens .yaml stuff to my own and followed the video and Wiring Diagram

you are at the point in the project where you will need to “listen” to your mqtt traffic to see if the communication is happening, will help troubleshooting HA config…

mosquitto_sub -v -t ‘#’

https://www.baldengineer.com/mqtt-tutorial.html

Thanks for your reply.

When i use mosquitto_sub -v -t ‘#’ nothing happens.

To test i use the build in publishtool from HA and i use the lightswitch from BRUH. Both give feedback.

pi@hassbian:~ $ mosquitto_sub -v -t '#'
hello/world Hallo dit is een test
bruh/sensornode1/set {"state": "ON"}

Does this meen my Multisensor doesn’t send messages?

I don’t know how. I went to eat dinner and came back and now i can change the colors of the LED…
And its not turning off automatically… Still no other sensors.

Message arrived [bruh/sensornode1/set] {"state": "ON", "color": {"r": 0, "b": 255, "g": 0}}
{"state":"ON","color":{"r":0,"g":0,"b":255},"brightness":255,"humidity":"50.00","motion":"motion detected","ldr":"24","temperature":"71.60","heatIndex":"70.81"}
Setting LEDs:
r: 0, g: 0, b: 255
Message arrived [bruh/sensornode1/set] {"state": "ON", "color": {"r": 0, "b": 255, "g": 0}}
{"state":"ON","color":{"r":0,"g":0,"b":255},"brightness":255,"humidity":"50.00","motion":"motion detected","ldr":"24","temperature":"71.60","heatIndex":"70.81"}
Setting LEDs:
r: 0, g: 0, b: 255
Message arrived [bruh/sensornode1/set] {"state": "ON", "color": {"r": 255, "b": 63, "g": 0}}
{"state":"ON","color":{"r":255,"g":0,"b":63},"brightness":255,"humidity":"50.00","motion":"motion detected","ldr":"24","temperature":"71.60","heatIndex":"70.81"}
Setting LEDs:
r: 255, g: 0, b: 63
Message arrived [bruh/sensornode1/set] {"state": "ON", "color": {"r": 255, "b": 0, "g": 0}}
{"state":"ON","color":{"r":255,"g":0,"b":0},"brightness":255,"humidity":"50.00","motion":"motion detected","ldr":"24","temperature":"71.60","heatIndex":"70.81"}
Setting LEDs:
r: 255, g: 0, b: 0
Message arrived [bruh/sensornode1/set] {"state": "ON", "color": {"r": 255, "b": 0, "g": 0}}
{"state":"ON","color":{"r":255,"g":0,"b":0},"brightness":255,"humidity":"50.00","motion":"motion detected","ldr":"24","temperature":"71.60","heatIndex":"70.81"}
Setting LEDs:
r: 255, g: 0, b: 0

Edit:
When i go to entities (frontend) and manually set the state to ‘on’. It turns on and i can change the colors of the LED. When i monitor the mqtt messages trough putty, result:

bruh/sensornode1/set {"state": "ON"}
bruh/sensornode1/set {"state": "ON", "color": {"r": 0, "b": 255, "g": 0}}
bruh/sensornode1/set {"state": "ON", "color": {"r": 0, "b": 255, "g": 0}}
bruh/sensornode1/set {"state": "ON", "color": {"r": 0, "b": 255, "g": 0}}
bruh/sensornode1/set {"state": "ON", "color": {"r": 0, "b": 255, "g": 0}}
bruh/sensornode1/set {"state": "ON", "color": {"r": 255, "b": 63, "g": 0}}
bruh/sensornode1/set {"state": "ON", "color": {"r": 255, "b": 0, "g": 0}}
bruh/sensornode1/set {"state": "ON", "color": {"r": 255, "b": 0, "g": 0}}
bruh/sensornode1/set {"state": "OFF"}
bruh/sensornode1/set {"state": "ON"}

IT WORKS!! :tada:

I reinstalled Arduino IDE + libraries.
Now it works like a charm!

The problem was in the MQTT_MAX_PACKET_SIZE. I did edit it to 512 but somehow it didn’t load the change.
The portable install works great like BRUH explains in his video. Only side note would be to manually add the Adafruit_Sensor.h to the DHT sensor library.

Knipsel

Awesome! Thank you for your post, i’ve had exactly the same problem. Now it’s working fine :smiley:

1 Like