https://dec2b.de/feed.atomRobert's Blog2022-05-14T19:57:48.239980+00:00Robertpython-feedgenMy blog about programming, electronics, and more.https://dec2b.de/posts/2022-05-14-streamdeck-yaml-controlling-home-assistant-with-an-elgato-stream-deck.htmlstreamdeck-yaml — Controlling Home Assistant with an Elgato Stream Deck2022-05-14T21:00:00+02:00I love controlling stuff with Home Assistant, but having to open the app on my phone each time I want to switch on a light gets annoying really quickly. As I'm also not a big fan of yelling at personal assistants like Alexa or Siri, I wanted to control everything conveniently with physical buttons — and the Elgato Stream Decks are just great for that. So I wrote some software that runs on my Raspberry Pi and connects a Stream Deck with Home Assistant.https://dec2b.de/posts/2021-10-17-3d-printed-holder-for-8x-ws2812-module.html3D-printed holder for 8x WS2812 module2021-10-17T10:00:00+02:00For my ShotBot project (more on that hopefully soon) I needed a holder for a WS2812 module --- so I designed one with FreeCAD and 3D-printed it.https://dec2b.de/posts/2021-04-26-arduino-power-strip-finishing-touches-problems-and-future-improvements.htmlArduino power strip: Finishing touches, problems, and future improvements2021-04-26T22:00:00+02:00Today we're going to finish the Arduino Power Strip -- or at least bring it to a state where it's usable for now and can be controlled using Home Assistant. There is also an issue we need to address.https://dec2b.de/posts/2020-11-17-arduino-power-strip-more-enclosure-and-more-wiring.htmlArduino power strip: More enclosure & more wiring2020-11-17T22:00:00+01:00Time for an update on the Arduino-controlled power strip! In the last post I described how I built the front plate with the outlets and did a bit of wiring---in this post we will do more of that and be able to even test it for the first time.https://dec2b.de/posts/2020-10-31-temperature-dependent-fan-control-using-arduino.htmlTemperature-dependent fan control using Arduino2020-10-31T12:20:00+01:00I'm building a box to dampen the noise of the projector I bought (more on that in a later post) and to keep it cool I added two fans, one sucking cold air in and one pushing warm air out. To reduce the noise as much as possible I wanted to run the fans as slow as possible, but of course they should still run fast enough to properly cool the projector. So I built a little fan controller with an Arduino that uses temperature to determine the fan speed.https://dec2b.de/posts/2020-10-14-python-converting-decimals-to-imperial-fractions.htmlPython: Converting decimals to imperial fractions2020-10-14T22:20:00+02:00For my blog (the one that you're currently reading) I wanted to implement an automatic conversion from metric to imperial for all measurements that I mention in my posts. This would help readers from the US to understand them more easily and (probably the more relevant reason) be a nice programming task for me. While I plan to publish the full implementation and write a post about it, this post focuses on a small part of the task: converting decimal values into nice fractions with a denominator that is a power of two.https://dec2b.de/posts/2020-10-03-building-an-arduino-controlled-power-strip.htmlBuilding an Arduino-controlled power strip2020-10-03T16:30:00+02:00My desk is a mess. When I built it I wanted to be able to switch every device on and off at a central location, so I bought a power strip with lots of switches and ran wires from there. Initially that worked fine, but with an increasing number of devices on and around my desk the mess started to increase as well. To solve this problem for now and (hopefully) forever, I want to build a power strip where each outlet is controlled individually by an Arduino. This allows me to run a single power line to the power strip from any outlet in the room while I'm still able to control every outlet from my desk and, if everything works as planned, even via network from everywhere else.