i did this but with a glade air freshener instead. I replaced the entire PCB that came with it and replaced it with a h-bridge controller (MX1508). The glade air freshener motor is driven forward to push the spray can nozzle down, then reverses the motors direction to release it instead of letting it rise on its own. Wasn't a good way of tapping in to the existing PCB even after removing it's MCU. But works works great with HA also. Good video
Hi there, very tasty videos!!! Would you consider adding an LDR to spray each time there is a light transition from on to off, so immediately after someone leaves the toilet?!? Thanks for your videos and effort
That is a cool idea. You will need to use the analog input for that as LDR changes resistance based on light levels. More info can be found here: esphome.io/components/sensor/resistance.html If I ever revisit the project I'll add it as well.
use this timer search for "DROK Time Delay Relay" set it to p1, for .7 seconds, now set a loop to the relay of the timer board, I used a adjustable voltage to give me 3 volts, unhook the motor wires from the sprayer, setup a 3 volt loop 3v+ through the rely of the timer to the positive of the motor,common ground for all, I put in a mini float search for "Liyafy 5 Pcs Right Angle White Plastic PP Float Switch Fish Tank Liquid Water Level Control Sensor XSL-3508-P" to toilet the toilet flush which flips relay on my home automation controller for 1 second to flip the timer board for .7 seconds, now when someone trigger the toilet it sprays the bathroom.
I can"t write the code, i"m getting the same error everytime: Can you give me some directions? INFO ESPHome 2024.8.3 INFO Reading configuration /config/esphome/air-freshner.yaml... Failed config output.gpio: [source /config/esphome/air-freshner.yaml:33] platform: gpio id: pin1 pin:
Cannot resolve pin name 'D1' for board esp01_1m. number: D1 inverted: True
You need to set the right board for ESPHome. D2 is a pin reference for NodeMCU and you can set that with this directive: esp8266: board: nodemcuv2 If you are using a esp01_1m board then you need to use the pin numbers instead.
i did this but with a glade air freshener instead. I replaced the entire PCB that came with it and replaced it with a h-bridge controller (MX1508). The glade air freshener motor is driven forward to push the spray can nozzle down, then reverses the motors direction to release it instead of letting it rise on its own. Wasn't a good way of tapping in to the existing PCB even after removing it's MCU. But works works great with HA also. Good video
Thanks! That might be a good option. Thanks for sharing!
Hi there, very tasty videos!!!
Would you consider adding an LDR to spray each time there is a light transition from on to off, so immediately after someone leaves the toilet?!?
Thanks for your videos and effort
he can add air quality sensor also :D ... jokes aside .... nice system :)
That is a cool idea. You will need to use the analog input for that as LDR changes resistance based on light levels. More info can be found here: esphome.io/components/sensor/resistance.html If I ever revisit the project I'll add it as well.
@@J0stik Thanks! With the air quality sensor, you can also know when it is safe to enter again 🤣🤣🤣
What air freshener did you use? Be cool to see using the light sensor too
use this timer search for "DROK Time Delay Relay" set it to p1, for .7 seconds, now set a loop to the relay of the timer board, I used a adjustable voltage to give me 3 volts, unhook the motor wires from the sprayer, setup a 3 volt loop 3v+ through the rely of the timer to the positive of the motor,common ground for all, I put in a mini float search for "Liyafy 5 Pcs Right Angle White Plastic PP Float Switch Fish Tank Liquid Water Level Control Sensor XSL-3508-P" to toilet the toilet flush which flips relay on my home automation controller for 1 second to flip the timer board for .7 seconds, now when someone trigger the toilet it sprays the bathroom.
I can"t write the code, i"m getting the same error everytime:
Can you give me some directions?
INFO ESPHome 2024.8.3
INFO Reading configuration /config/esphome/air-freshner.yaml...
Failed config
output.gpio: [source /config/esphome/air-freshner.yaml:33]
platform: gpio
id: pin1
pin:
Cannot resolve pin name 'D1' for board esp01_1m.
number: D1
inverted: True
You need to set the right board for ESPHome. D2 is a pin reference for NodeMCU and you can set that with this directive:
esp8266:
board: nodemcuv2
If you are using a esp01_1m board then you need to use the pin numbers instead.
Lo hice hace dos años y Zigbee2mqtt. Pero solo dura 1 semana la batería con 2x18650
It need to be plugged it if it is on all the time. An old mobile phone adapter can do the trick.