87
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 11 Nov 2023
87 points (94.8% liked)
homeassistant
11802 readers
5 users here now
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
founded 1 year ago
MODERATORS
Sick! Can you elaborate on the setup and devices used?
Yeah it's not rocket appliances, it's simply a ZigBee water sensor from Tuya hooked into ZigBee2MQTT. The contacts on the wire are set just below my overflow on the bath.
In Node Red (because that's what I use, not because it's required) I have a very simple flow. If the leak sensor is "on" trigger a notification and "turn on" the lights in "these areas" with a short flash.
Simple as that.
Works with standard HomeAssistant automation and the various "notify" channels as well. If you've got a smart/wifi speaker of some sort you could also use Piper to send custom TTS messages like "the bathtub is full"
Great setup
Just tried it out, had lights flashing as I went up to check on it and apparently the TTS notification when haywire, so I need set it to fire once lol
You can set the automation to fire after a reasonable delay, so that if something is firing continuously you aren't getting constant/overlapping messages.
Yeah I've edited it to activate after 20 seconds now and added a Boolean that also activates with a delay of 2 hours before the Boolean turns off. I've also added a node to check if the Boolean is off before the notification.
So now it activates if the sensor has been submerged for 20 seconds and the notification hasn't fired for 2 hours.
I may have another edit and have the Boolean turn off if the sensor hasn't activated for a while instead.
I'm also considering adding the sensor to the light automation in my kids bathroom to stop the lights going out. I already have a motion and door sensor doing this, but the kids keep managing to knock the door sensor off with their heavy handed door use.
I believe there's a throttle node in node-red to only let the flow continue once in a settable amount of time. I use it to keep security camera motion notifications at bay.
I've just set it to trigger after a delay, seems to have done the trick
Say, are you planning to update the stock firmware of the device with Tasmota? Will you keep on top of updates? Is there a need to?
No need, it's ZigBee so it's just hooked in via my ZigBee usb, no Tuya involved except in its manufacturing.
Do you not need to update the firmware for newer versions of Zigbee?
Not with any of the ones I've bought recently (also from AExpress)