Git Product home page Git Product logo

epimelitis's People

Contributors

sunsided avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

epimelitis's Issues

Add Zigbee device

Before:

$ lsusb
Bus 003 Device 001: ID 1d6b:0002
Bus 001 Device 001: ID 1d6b:0002
Bus 004 Device 001: ID 1d6b:0003
Bus 002 Device 001: ID 1d6b:0003

After:

$ lsusb
Bus 003 Device 001: ID 1d6b:0002
Bus 001 Device 001: ID 1d6b:0002
Bus 004 Device 001: ID 1d6b:0003
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 003: ID 10c4:ea60

From dmesg:

[140527.633718] usb 3-2: new full-speed USB device number 4 using xhci-hcd
[140527.783506] usb 3-2: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
[140527.783515] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[140527.783519] usb 3-2: Product: Sonoff Zigbee 3.0 USB Dongle Plus
[140527.783521] usb 3-2: Manufacturer: ITead
[140527.783524] usb 3-2: SerialNumber: e2b728b5d5dbed118346e62d62c613ac
[140527.784416] cp210x 3-2:1.0: cp210x converter detected
[140527.786046] usb 3-2: cp210x converter now attached to ttyUSB0

See https://www.reddit.com/r/VFIO/comments/gib29u/comment/fqdlo6a/?context=3 derived from https://github.com/olavmrk/usb-libvirt-hotplug

Potentially also https://github.com/darkguy2008/hotplugger

SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="10c4", ENV{ID_MODEL_ID}=="ea60", RUN+="/usr/local/bin/usb-libvirt-hotplug.sh talos"

Reload udev rules:

udevadm control --reload

Expose USB devices to Home Assistant

  • Get Zigbee USB stick to work on Raspberry Pi
  • Pass USB device through to Qemu / libvirt
  • Pass USB device through to Talos
  • Pass USB device through to Home Assistant Container
  • Label the Node with Zigbee and add a node selector the Home Assistant Pod

Notes to self

 volumes:
 - name: usb
   hostPath:
     path: /dev/bus/usb

Document IP addresses, Ingress and Fritz!Box Router static routes

I used an IP pool in #6 for the ingress controller (#3) to use. For my home access to access resources in that address pool, the Fritz!Box router needs to set up a static route.

Document in README.md:

  • Setting up the static route
  • Setting up the DNS server (set to bridged Kubernetes VM, not to Raspberry Pi itself), see #8
  • sudo resolvectl flush-caches
  • chrome://net-internals/#dns
  • dig +short @10.22.27.59 A pi-hole.home
  • Setting up Pi-Hole to reply on all eth0 (see picture below)
  • Setting up conditional forwarding to Router for name resolution

image

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.