Skip to content

Instantly share code, notes, and snippets.

@terafin
terafin / UniFi USG DNS Redirect Setup.md
Last active April 19, 2024 21:40
UniFi USG DNS Redirect Setup
  1. Log into unifi controller web UI
  2. Go to Settings
  3. Select Routing & Firewall
  4. Select Firewall
  5. Select Groups
  6. Hit "Create new Group"
  7. Enter all your DNS servers here you want to be allowed on the local LAN (Eg, mine is 10.0.1.1 - gateway, 10.0.1.14 - pi-hole)
  8. Name this "Allowed DNS Servers"
  9. Hit OK
  10. SSH into the Gateway - NOT the CloudKey (username/password is whatever you set up)
@golles
golles / 1. Mechanische ventilatie in Home Assistant.md
Last active April 14, 2023 07:47
Mechanische ventilatie in Home Assistant

Allereerst bedankt @eelcohn voor je prachtige project --> https://github.com/eelcohn/nRF905-API

Als je packages gebruikt, zou het makkelijk zijn om dit te kopieren naar jouw HA. Anders zou je de elementen in zehnder.yaml handmatig moeten kopieren naar je configuration.yaml.

Hoe werkt het?

Een rest sensor (sensor.mechanische_ventilatie_status) haalt de data van de api en een fan template maakt er vervolgens een fan entity van (fan.mechanische_ventilatie). Op deze manier krijg je out of the box een speed list in lovelace en bijbehorende services.

De individuele rest commands worden gewrapt door scripts, dit zodat de host uit secrets kan komen, helaas is er geen manier om een secret in een template toe te passen. Fan templates moeten verplicht een turn_on en turn_off hebben, dit heeft de mechanische ventilatie niet, nu roepen deze acties een dummy script ventilation_turn_on_off_dummy aan die niks doet (als ieman

@HStep20
HStep20 / tag_sonarr_radarr_media_with_overseer_users.py
Last active July 13, 2024 03:29
This script will read your Overseer data and create/apply user tags to all of your sonarr/radarr instances
"""
This script will read your Overseer data and create/apply user tags to all of your sonarr/radarr instances, then create a filter in each connected -arr application for the users you specify.
It is forward compatible with the future User Tagging feature of overseer, and formats the tag in the same 'id - lowercase username' pattern Overseer will
It only uses built in python libraries, so you should be able to download and run without much hassle.
NOTE: YOU ARE REQUIRED TO USE IP:PORT CONNECTIONS FOR YOUR SONARR/RADARR INSTANCES INSIDE OF OVERSEERR
This will NOT utilize docker-compose style hostnames at the moment, and I don't use them personally, so I don't see myself adding them
Steps to use: