Git Product home page Git Product logo

auto-sun-blind's Introduction

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 explains the math behind the project.

example-image

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 to a .jinja file in your config/custom_templates folder. Run the homeassistant.reload_custom_templates service call to load the file.

{% from 'auto_sun_blind.jinja' import 'auto_sun_blind' %}
{{ auto_sun_blind() }}

Click here for additional documentation and instructions on how to use it.

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.

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.

auto-sun-blind's People

Contributors

basbruss avatar kristjan avatar langestefan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

auto-sun-blind's Issues

Typos in FOV

I think there are some typos here:

image

I think the top one is Right and the lower one is Left and the subtext is not right.

Also , it is not clear to me what I do with the FOV vs the l/r settings, seems the main FOV isnt needed...

Clarification of variables

Hi,

First off, very cool project. I was thinking of doing the same thing and found you've already done all the hard work. Thanks!

I'm curious about some of the variables and was wondering if you could answer a few questions. I'll be happy to send a PR to update docs/template.md afterwards.

  • What are height and min_height relative to? e.g. the ground outside, the floor inside, the bottom of the window frame?
  • Is this the correct understanding of fov_* & elev_*?
    fov
    elev

Cheers,

  • Chris

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.