Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/langestefan/auto-sun-blind
Automatically control your sun blinds via home assistant based on the position of the sun.
https://github.com/langestefan/auto-sun-blind
automation blueprint cover energy-management home-assistant home-automation solar sun sunrise-sunset
Last synced: 5 days ago
JSON representation
Automatically control your sun blinds via home assistant based on the position of the sun.
- Host: GitHub
- URL: https://github.com/langestefan/auto-sun-blind
- Owner: langestefan
- License: mit
- Created: 2023-06-21T14:51:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-04T16:39:22.000Z (8 months ago)
- Last Synced: 2024-08-02T15:34:51.359Z (3 months ago)
- Topics: automation, blueprint, cover, energy-management, home-assistant, home-automation, solar, sun, sunrise-sunset
- Language: Jupyter Notebook
- Homepage:
- Size: 1.36 MB
- Stars: 22
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Auto Sun Blind
Automatically control your sun blinds via home assistant based on the position of the sun.This repo contains a `custom_template`, `blueprint`.
This [forum post](https://community.home-assistant.io/t/automatic-blinds-sunscreen-control-based-on-sun-platform/573818) explains the math behind the project.
![example-image](/docs/assets/angles.png)
## Custom Template
`version 1.0.1`A jinja macro to track the position of a vertical cover based on the sun position to block out direct sunlight.
### How to import
Home Assistant 2023.4.0 or higher is required to use custom templates.You can install it using HACS. HACS only supports custom templates in `experimental mode`. Click on the button to go directly to the right section.
Manual install is done by copying the contents of [`auto_sun_blind.jinja`](https://github.com/langestefan/auto-sun-blind/blob/main/auto_sun_blind.jinja) to a `.jinja` file in your `config/custom_templates` folder. Run the `homeassistant.reload_custom_templates` service call to load the file.
```yaml
{% from 'auto_sun_blind.jinja' import 'auto_sun_blind' %}
{{ auto_sun_blind() }}
```
[Click here for additional documentation and instructions on how to use it.](https://github.com/langestefan/auto-sun-blind/blob/main/docs/template.md)
## Blueprint
`version 1.1.2`This project includes a blueprint that you can use without setting up a sensor.
[![Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2Flangestefan%2Fauto-sun-blind%2Fblob%2Fmain%2Fblueprints%2Fauto_sun_blind.yaml)
Features:
- Multiple cover control (`since v1.1.0`)
- Easy variable control with sliders
- Time-out to save battery or reduce the amount of changing the cover position
- Minimum percentage change to prevent the amount of changing the cover position by small percentage changes
- Add additional actions such as notifications to the automation
- Add conditions like the time of day, minimum amount of lux
- Default height can be templated, which allows for conditions if the sun is not in front of the window.