Comments (9)
First I had to identify how to count the baby diapers.
I used an Aqara open/close sensor and stuck it to the axle, I had to identify a spot where it could easily be mounted and it would not be in the way of the mechanism.
from home-assistantconfig.
I love this. Such a simple application and use of these sensors. It's also a great example of proactive chore maintenance and I bet great for WAF π
from home-assistantconfig.
I created a counter in Home-assistant to keep track of the diapers. and then an automation to increment it on every state change that is either close and open
(do not track EVERY state change since a disconnection or a battery update would increment the counter)
Counter
---
counter:
diaper_counter:
initial: 0
step: 1
icon: mdi:emoticon-poop
Automation
---
- id: '1579629145305'
alias: Increment diapers counter
description: ''
trigger:
- entity_id: binary_sensor.openclose_19
from: 'on'
platform: state
to: 'off'
- entity_id: binary_sensor.openclose_19
from: 'off'
platform: state
to: 'on'
condition: []
action:
- entity_id: counter.diaper_counter
service: counter.increment
from home-assistantconfig.
Whenever the bin is emptied the counter needs to be reset. I've thought about automating it but found no effective way to do it, so I just added an Aqara button which on a button press resets the counter via an automation
Automation:
- id: '1579629681167'
alias: Reset diaper counter
description: ''
trigger:
- device_id: 98bb594b8fff4e4ca78656d95a266519
domain: deconz
platform: device
subtype: turn_on
type: remote_button_short_press
condition: []
action:
- entity_id: counter.diaper_counter
service: counter.reset
from home-assistantconfig.
Whenever a defined threshold (15) has been reached a notification should be sent to our phones as well as on each additional item until the counter has been reset
Notifications
This is done via NodeRed
Threshold Reached
from home-assistantconfig.
Do you need to lift the lid to empty it? If so could you automate based on the sensor being open
for a period longer than you would when normally using it?
from home-assistantconfig.
Do you need to lift the lid to empty it? If so could you automate based on the sensor being
open
for a period longer than you would when normally using it?
Yes but i canβt take that into account or iβd have to add a second open/close sensor Since the bin works in both positions so
Open -> 1st diaper
Close -> 2nd diaper
Open -> 3rd diaper
from home-assistantconfig.
Display diaper count on switch
This one is a bit more tricky to explain. The bin stands next to one of our KNX light switches. These have a screen to display additional information like time, temperature or whatever additional data one would like to display.
here you can see a demo video
I won't explain how KNX works but basically you have to set up a group address like "4/2/30" and the specific function of that switch will be added to that group. I then exposed the value of the "counter" to KNX into the specific group
knx:
expose:
- type: 'percent'
entity_id: counter.diaper_counter
address: '4/2/30'
I had to use percent since the switch wouldn't allow for a plain text field
from home-assistantconfig.
Flash red light on the wall switch when threshold reached
As explained in the previous comment these switches can display some nice information. You can also define the LEDs.
Here I used Node-Red again since I had it already set up for my mobile notifications and I didn't want to create an additional entity in HA. (see here)
In Node-Red I used a Plugin called UltimateKnx. Used a switch node to change the value "15" to "true" and value 0 to "false"
from home-assistantconfig.
Related Issues (20)
- have Google assitant give me the outside temperature of a sensor HOT 1
- 3D Printer turn LED only on when printing HOT 1
- Desk Light with Presence HOT 2
- View For newly added ovens
- move temperature values to floorplan HOT 1
- review automation conditions
- Add a welcome message with various statuses
- Esphome controlling garage HOT 1
- Check if doors are locked
- Fix temperature value for Garage HOT 1
- Check water hose valve state HOT 1
- Notify about open doors HOT 1
- Notify when leaving home if a door/wi dow is open
- add control relay to my tower fans
- add log level automation as per comunity recommendation
- Lock door when going to bed
- Light with doors
- Light with garage Door
- modify good night routine
- lovelace : question
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistantconfig.