Smart toiletroll holder.

Nothing can be as much as a burden, as finding yourself without toilet paper. With the power of ESP and Home Assistant, I was able to create a “smart toiletroll holder”.

video
play-sharp-fill

The video above shows the outcome. It basically consists of a typical toiletroll holder, with some slight adjustments to the base. With the help of a ESP32,  an HX711 module and a loadcell, we put together the hardware.

Through Home Assistant, we uploade the following code:

esphome:
name: loadcell
platform: ESP8266
board: nodemcuv2

wifi:
ssid: yourssid
password: yourpasswd
manual_ip:
static_ip: 192.168.3.21
gateway: 192.168.3.254
subnet: 255.255.255.0
# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

sensor:
- platform: hx711
name: HX711 Value
dout_pin: D0
clk_pin: D1
gain: 128
update_interval: 3s
filters:
- calibrate_linear:
- 72750 - > 0
- 120750 - > 1
- 170750 - > 2
- 220750 - > 3
- 270750 - > 4
- 320750 - > 5
unit_of_measurement: rolls
icon: mdi:paper-roll

Leave a Reply