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

Blue light on sensor startup #38

Open sjorsjes opened 6 years ago

sjorsjes commented 6 years ago

I've got 7 BRUH multisensors up and running and I love them and I have 0 problems with them so far!

The only thing that bothers me is that I can't get rid of the blue light. It lights up when I'm connecting it to power but also on, which feels, random times. I could not find anything about this in the code so I was hoping you could push me in the right direction. I noticed some people in the youtube comments have the same issues.

Thanks and keep up the awesome work!

VegasIOT commented 6 years ago

I had the same issue, I added this to the code to make it go away

void setup() {

Serial.begin(115200);

pinMode(PIRPIN, INPUT); pinMode(DHTPIN, INPUT); pinMode(LDRPIN, INPUT);

//new code to turn LED on then off analogWrite(redPin, 1); analogWrite(greenPin, 1); analogWrite(bluePin, 1); analogWrite(redPin, 0); analogWrite(greenPin, 0); analogWrite(bluePin, 0);

delay(10);

mr-sneezy commented 6 years ago

Withdrawn.

BertrumUK commented 5 years ago

You can also stop it by moving the Blue LED leg from D3 to D4 and changing the code to match.

I like the affect as it lets me know if there is an issue with Hassio or MQTT that I need to look into.