Giter Club home page Giter Club logo

home-assistant-config's Introduction

My SmartHome Projects

Offered to you by Maxi1134


A part of me lives here This is what runs everything This is what runs everything Actually my .storage folder, but eh! They know where you are... Some deets on the softs Some deets on the network Some thoughts

Preamble;

This whole mess adventure started in 2018. When I lost my keys twice... in a week.
This, forcing my former roommatte to come to my rescue, lead him to buy a Schlage Zwave Lock coupled with a Samsung SmartThings hub(2018 version).

Once that was acquired, there was no going back; The hub was quickly linked to Home-Assistant along some Xiaomi sensor using custom zigbee integrations for the hub. Unfortunately, this quickly proved to be limiting. I was at this stage using 2 hubs ( Samsung and Phillips) and needed some streamlining.

I eventually ended up moving all my Zigbee and Zwave devices to a HUSBZB-1 stick coupled with ZHA which proved to be a very good decision, no more Zigbee drops or Zwave issues coming from the use of the SmartThings hub.

Eventually followed a second server for storage and a nas for backups, more devices (Now over a hundred!) and lots and lots of automations!
This takes us to 2023, where I decided to share my 5 years of work as to help people with their own installation!

And of course, do not hesitate to open up an issue if you have any specific question on the YAML code I made.

A Few Screenshots;

Wall Displays

Some Node-Red automations

An interactive plan with projected shadows and lights

A part of me lives here This is what runs everything This is what runs everything Actually my .storage folder, but eh! They know where you are... Some deets on the softs Some deets on the softs

home-assistant-config's People

Contributors

conorsham avatar maxi1134 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

home-assistant-config's Issues

[Console Errors] Template media entity causing issues


2023-09-21 20:55:38.859 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 191, in __new__
    port = val.port
           ^^^^^^^^
  File "/usr/local/lib/python3.11/urllib/parse.py", line 182, in port
    raise ValueError(f"Port could not be cast to integer value as {port!r}")
ValueError: Port could not be cast to integer value as '8123off'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 423, in _request
    url = self._build_url(str_or_url)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 357, in _build_url
    url = URL(str_or_url)
          ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 193, in __new__
    raise ValueError(
ValueError: Invalid URL: port can't be converted to integer
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 227, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1167, in get
    data, content_type = await player.async_get_media_image()
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 583, in async_get_media_image
    return await self._async_fetch_image_from_cache(url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1085, in _async_fetch_image_from_cache
    (content, content_type) = await self._async_fetch_image(url)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1096, in _async_fetch_image
    return await async_fetch_image(_LOGGER, self.hass, url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1262, in async_fetch_image
    response = await websession.get(url)
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 425, in _request
    raise InvalidURL(str_or_url) from e
aiohttp.client_exceptions.InvalidURL: http://192.168.0.15:8123off

This is caused by my template media players returning "http://192.168.0.15:8123off" as an image data

[Automation] Fix purple lights media automation triggering multiple times per movie

This automaton [ https://github.com/maxi1134/Home-Assistant-Config/blob/2116197e32d7613f4824470a252f95322026d140/automations.yaml#L720 ] relies on the templates sensor "active_media_playback_last_timestamp".

That sensor seems to make it so the automation triggers during playback due to a change of state.

I will investigate into using a timestamp order to only affect the latest changed media player.

Firewall

Forgot to document which firewall you use given your impressive network setup? Also do you apply vlan tagging at switch or firewall?

Add a "music follows presence" function'

This function should make it so music is only active where I am located, this function should only work when I am alone.

It should use my location and the last room with motion.

Fix "Partners" vs "Friends" detection.

As it is, the "What is maxi doing" assume that Alexe is a friend as she is on the guest wifi, yet she has an entity for her on HA. I should make some checks so that she is not counted toward "Friends"

Fix sleeper in * not suppressing speakers.

The speakers are well muted initially. But it seems like the automation is not taking that in account and still setting their volume.

If I turn the speaker on then off before the automation runs, the muted status will be respected.

Automate the Vacuum passing at the doors when guests enter

During winter, lots and lots of salt and little peblets are dropped in the streets. This leads to an accumulation at the door during parties that are hard for the vacuum to remove at once.

This automation should send the vacuum to the door every 3-4 guests.

---->Bonus point if the vacuum can detect when someone is arriving at the door and goes away before they even ring. (Using Frigate)

Sleep Sleep button in the Hotbox

The Sleep Sleep button just doesn't work when you click on it ๐Ÿคทโ€โ™€๏ธ can you please fix it? โ˜บ

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.