Would be nice of you! Thanks
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.
@DDK Optimized for ya
# 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
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:
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
Did you change the mqtt packet size as per BRUHs video before uploading the code to your esp8266?
i reflash the nodemcu with the new firmware i thing i was using an old version thanks @bachoo786 for your help
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?
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.
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?
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.
Thanks buddy will wait for the picture
Here’s the picture, you can see the - 0 and + printed on the PCB.
0 is Data/Signal.
Hope this helps.
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.
Thanks for the pic buddy. My sensor clearly does not have any markings for the VCC, GND and DATA.
Can you please share the code.
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).
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)