BRUH DIY Multisensor


#487

Would be nice of you! Thanks


#488

Here you go:

# turn off if no motion for 20 minutes
- alias: Dennis lights off after 20 minutes
  trigger: 
    platform: state
    entity_id: sensor.dennis_office_pir
    to: 'standby'
    for:
      minutes: 20  
  action:
    - service: light.turn_off
      entity_id: light.1_dennis
    - service: light.turn_off
      entity_id: light.2_dennis

This turns off the lights in my office if the sensor has been in status “standby” for 20 minutes.


#489

@DDK Optimized for ya :wink:

# turn off if no motion for 20 minutes
- alias: Dennis lights off after 20 minutes
  trigger: 
    platform: state
    entity_id: sensor.dennis_office_pir
    to: 'standby'
    for:
      minutes: 20  
  action:
    - service: light.turn_off
      entity_id: 
        - light.1_dennis
        - light.2_dennis

#490

Anyone know of a way to add a web server to the Node with ability to change MQTT server address, username,password and WiFi SSID and password via web GUI?

and put it in AP mode when it loses WiFi?

I had to change my wifi password recently and it was quite painful updating via OTA as I have lots of custom versions of the original code to include reed sensors and multiple PIRs in some locations.

Bit like how @stelgenhof AiLight works:


#491

@revz any luck designing the .stl ?


#492

hey guys im having problems with the temperature sensor is only showing 0.0 on both temperature and humidity i try to unplugged it and plugged but no luck so far this start happening after update from 49 to 51


#493

Did you change the mqtt packet size as per BRUHs video before uploading the code to your esp8266?


#494

yes it was working before but after upgrade from hass.io 49 to hass.io 51 thats when i get this problem
i have to two sensors and both are showing the same problem


#495

i reflash the nodemcu with the new firmware i thing i was using an old version thanks @bachoo786 for your help


#496

Hi @lambtho

Just wanted to ask you regarding connecting the PIR sensor to nodemcu. Could you please tell me which one is VCC, GND and DATA on the pir sensor that bruh is using?

Thanks.


#497

They’re labeled on the PCB, it will have a tiny - for the ground and a S for signal/data, then the last one is your VCC.
Hint: Be sure to check both sides of the PCB.


#498

Thanks but mine doesn’t have anything so it’s a lil hard.

I have noticed that the rgb doesnt turn red or yellow. Do you experience the same?


#499

I did not build a sensor with an RGB LED, odd that it has no markings. I’ll check the ones I have and post a pin out picture if someone else doesn’t first.


#500

Thanks buddy will wait for the picture


#501

Here’s the picture, you can see the - 0 and + printed on the PCB.
0 is Data/Signal.

Hope this helps.


#502

Hi @lambtho

So I finally uploaded your modified code and its impressive. The readings change as soon as I blow on the DHT22 sensor. However I have noticed that the temperature in the room is higher by 2-3 degrees celsius.

Do you think this is something to do with the code? Because in the original code the readings from the DIY multisensor was higher by 0.3-0.5 degrees celsius.


#503

Thanks for the pic buddy. My sensor clearly does not have any markings for the VCC, GND and DATA.


#504

Hi Lambtho
Can you please share the code.
Thanks


#505

No explanation for the higher temperature from software side.
My guesses are that, either it is too close to the nodeMCU (as the nodeMCU generates a bit of heat), or there is not enough air circulation where it stands, or it is in direct sunlight or next to some sort of heat.

If it is not any of those things, I do not know what causes this difference. If the difference you record is constant, just substract it from the value returned in HA (or transmitted by the nodeMCU).


#506

I am still in the cleaning process of all my codes, and I did not have a whole lot of time to do it recently. I will try to get it done by the end of august so that I can uplaod everything to github)