view the rest of the comments
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
I connected my sectional garage door using a Shelly 1, an Aqara vibration sensor and the contact sensor from my alarm system (but you can use an Aqara door sensor), using Home Assistant to create a "virtual" door that does all the things.
Put the vibration sensor around the bottom of the door. Connect the Shelly to the hardware button you have somewhere in your garage, set it to toggle off after 1 second (simulating a button click basically). In Home Assistant do something like this:
Basically if the contact sensor is off (means there is contact), the door is closed. If the vibration sensor angle is < 10 (check your values, this works for me), the door is open (the sections are now horizontal). If the vibration sensor senses vibrations, the door is currently moving. Otherwise report "open", because that's the worst state and if something doesn't work, I want the worst state to be reported. Now you have a "cover", which in Home Assistant is a class that has custom UIs and logic to handle the door. Whenever I click the open button or call the command from anywhere, "disarm_alarm_if_armed_then_open_garage_door" is called, meaning I can't make the alarm go off by accident.
I have an automation that when I get near my house, it checks if my alarm is on and sends me a notification with 2 actions:
PS: Looking back at my code, I should add a condition to both "open_cover" and "close_cover", to check if the door is opening, making it fail (or just do nothing), because while moving, pressing the button would stop the door, not make it go in the reverse direction. But it's been 4 months with this integration and it works great.