Giter VIP home page Giter VIP logo

home-assistant-config's People

Contributors

pa-wills avatar

Watchers

 avatar

home-assistant-config's Issues

Why does the "Downstairs Lights" entity keep being triggered?

Is it being triggered by the downstairs motion sensor? I can see why a subset of that group might be in such an event, but not everything. It's weird. Unless of course - the entity is "True" when ANY of the included entities are themselves "True".....

Need to reinstate Escea

The main issue I see is - how do we import that sub-repo in a way that is less crude that a raw copy-paste. A copy-paste WILL WORK, yet it's crude as hell. What happens if the dude ever updates his repo? Also, it feels less than cool to just copy-paste without some sort of attribution.

So, submodules seems to be an option:
https://gist.github.com/Noitidart/7af2e120bb83e2be9aa4cc3ca0a37722
https://github.blog/2016-02-01-working-with-submodules/
https://git-scm.com/book/en/v2/Git-Tools-Submodules

Replace the motion-detection done by Hue for storeroom & bathroom with HA automations

I.e. just rely on the notifications from the sensors, and then remove the automations in Hue.

Here is the apparatus that generally needs to be replicated:

  • Max sensitivity (not sure if this can be set).
  • Upon detection - turn on lights. Max brightness, regardless of time of day.
    • For the storeroom - it's nightlight from 2300-0800, but I reckon that's silly and it should be max brightness at all times for both.
  • After 30 mins (I.e. of last detection? I'm uncertain) - turn off.
    • For the storeroom - it's 5 mins after. 30 mins is for the toilet.

Cannot seem to get the uptime or travis-ci sensor to work

They don't throw errors, but neither can I make them work.

Critically, the other sensors, like git for example, display a log message like this:

./.storage/core.entity_registry: "entity_id": "sensor.home_assistant_config",
./home-assistant.log:2020-01-20 22:14:13 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.github entity: sensor.home_assistant_config

These two though - never get there. It's weird.

I think I need to install HACS

https://github.com/hacs/integration

I would like to be able to do this with code, like with a submodule. Doing so makes me feel as though I have a durable dependency / link to the hacs repo.

Second preference would be to take a one-time copy of it, and commit to custom-integrations, etc.

Third preference would be - install it, but keep it out of this repo. Doesn't help me if I need to rebuild this thing from scratch though.

Evie sleep mode

I.e. notifications when Evie trips the motion sensor, when that mode is active.

Requirements

  • As Pete, I want to be able to set a mode, which we will call "Evie Sleep Mode". A boolean.
  • While on, if movement is detected, notify Pete's iPhone.
  • Auto-deactivate at 0630 daily.

A guest mode, which would result in the house never going into away mode

Requirements:

  • As a visitor - I want to experience the house without having to deal with some of the automations that are going to feel random and silly to me.
  • As Pete - I want visitor mode to be enabled automatically upon the arrival of some, regular visitors to the house. E.g. Helen, Dale, Jennie, possibly Sam (?)

Implementation:

  • Some sort of a switch on the front-end, allowing Guest Mode to be manually toggled.
  • Action to be triggered upon the switch being thrown - deactivate the last-person-leaving automation, lights out at midnight automation, etc.
  • Characterise frequent guests with device_trackers for their mobile phones.
  • Upon seeing such devices turn-up on the network / in the house, enable Guest Mode. Perhaps characterise this group of devices into a binary_sensor.
  • Auto-closure of Guest Mode behaviours:
    • If triggered by device - Guest Mode should end 30 mins after the binary_sensor returns False.
    • if triggered manually - has to be deactivated manually. Possibly later I can make it expire on a configurable timer.
  • What are the edge cases?
    • There are no edge-cases for visitor arrivals.
      • If a guest device arrives while Guest Mode is on - do nothing.
      • If a guest is already home, Guest Mode will already be on, so it won't be selectable.
    • Edge-cases for visitor departure:
      • If the last Guest leaves, then deactivate Guest Mode .....

CONSIDERATION
Do I really want two modes here. I.e.

  1. An automated guest-arrival for known_devices, with presence-based on/off. Armed by default.
  2. An automation override, that allows guest-mode to be held-on manually, and which does so regardless of what (1) is doing.

Might be cleaner. Consider.

No one is ever going to go into the Eaves besides me. I should alarm it.

I have tried to build the feature using the alert primitive. It works, basically, but there's a defect. It will send a notification each time the sensor trips, which is not great because the sensor resets itself about every 30s. I thought that using the "repeat" parameter would slow this, but alas, no.

So, I think we need to do something different:

  • Alert on the trigger.
  • Maintain a variable showing last time the alert notified out. Seed it with now() upon start.
  • Upon triggering (state change) - check if 5 mins has elapsed since the last notification.
  • If 5 mins or more have elapsed - send a notification.

So, how to invoke a script from an alert?

https://community.home-assistant.io/t/combining-alerts-with-scripts-or-automations-for-tts-repeating-alerts/63414

Hmmm, maybe automation to script....

https://www.home-assistant.io/integrations/script/

and the set-variable:

https://community.home-assistant.io/t/how-to-save-a-value/140294/14

Here's an argument that you should use input_variables for this type of thing:

https://community.home-assistant.io/t/any-suggested-methods-or-best-practices-for-storing-variables/3399

Roll up switches for lights

So, groups are what are called for here, it seems.

And it seems that Home Assistant will have already have some courtesy of Hue. Generally - I want the config to be defined in HA, not in the Hue. I have no particular problem with the Hue generally, but I don't want to build automation on top of a platform which I have such limited control over - I.e. can't see the source, can't backup the config, don't have assured access to APIs, have to rely on support that's fundamentally unaccountable to me.

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.