Re:Show HN: TrashEmail – Telegram-based disposable mail service
by veeableful on Friday May 29, 2020 @09:42AM
(#23349869)
Sorry if it’s off-topic but how does it know if the bathroom window open or not? Did you build some kind of device and connect it to the home assistant?
Re:Show HN: TrashEmail – Telegram-based disposable mail service
by MrGilbert on Friday May 29, 2020 @09:51AM
(#23349952)
I'm happy to answer. :)
I'm using a ready-made sensor for this. It's the same system I'm using for temperature and humidty measurement. It's proprietary [0], but someone reverse engineered it [1], so I can send the data via MQTT to home-assistent. I then wrote an automation using Node-RED. It get's triggered when the window opens. After an initial timeout of five minutes, it will compare the inside temperature and humidity with the outside temperature and humidty, and decide if it should wait another five minutes or fire off a notification. If you close the window before, it will stop everything and reset itself.
[0]: https://mobile-alerts.eu/ [1]: https://github.com/sarnau/MMMMobileAlerts
Re:Show HN: TrashEmail – Telegram-based disposable mail service
by veeableful on Friday May 29, 2020 @10:13AM
(#23350171)
Thanks for the answer! I didn't know there are already ready-made sensors for such use-cases (though I'm not familiar with Home Assistant itself either, only heard of what it is).
Re:Show HN: TrashEmail – Telegram-based disposable mail service
by milgrim on Friday May 29, 2020 @09:48AM
(#23349921)
You can easily integrate Zigbee devices. The Aqara or Xiaomi door/window sensors for example are cheap and pretty nice.
Re:Show HN: TrashEmail – Telegram-based disposable mail service
by veeableful on Friday May 29, 2020 @10:14AM
(#23350182)
Thanks! I didn't know Xiaomi made such sensors too. They are definitely one of the brands that I recognize.
Re:Show HN: TrashEmail – Telegram-based disposable mail service
by dylz on Friday May 29, 2020 @03:18PM
(#23354349)
Officially, they only work with Mi Home cloud-crap, but there are Zigbee drivers for interfacing with it.
Re:Show HN: TrashEmail – Telegram-based disposable mail service
by milgrim on Friday May 29, 2020 @03:30PM
(#23354467)
I use a few different devices from them with zigbee2mqtt and it’s working great. It’s perfect for combining devices from different manufacturers and not having to use their individual gateways.
Welp, there is a lot of discussion around these claims.
But we are also on Telegram, mostly because I'm using their API for our Home-Assistant instance to deliver status updates (left the bathroom window open for too long, weather-forecast on the morning and evening for the next 3 days). I like it.