- 2025
- Jul
- 4
This is Project’s 4th anniversary.
July 4th, 2021 is when I opened this as pygg.xyz and transferred some of my old blogger.com content here.
I don’t have anything special to present except thank you - I appreciate all of the views I get here, and I hope you’ve found something of interest over the past 4 years.
I have a number of devices and shows in the works, please check back soon.
- 2025
- Jul
- 3
Connecting a shared drive and file sensor to Home Assistant Green.
The Home Assistant Green is just a Linux boxen running a containerized version of Home Assistant under a minimalist operating system. Technically, it should be able to do anything that the kernal supports, and one of those things is connecting to a shared drive.
I have a Raspberry Pi that has an I2C air pressure sensor connected to it. Once a minute, a cronjob reads that sensor and writes it to a location on the network - in this case a shared folder on a NFS-connected Synology drive. That file is then available for other programs to use - primarily my own garbage php frontend, and Cacti. Since Home Assistant has a nicer frontend than Cacti, I’d also like to present it there.
There’s a lot of conflicting information on how to do this online, and again - the documentation HA provides is just someone’s thought process. It’s actually fairly easy once you figure it out, however.
For this exercise, I’m using my older NFS connected Synology NAS. It has older versions of NFS opened up to the entire network. I’m not going to go into how to do that since I’m running a pre 5.0 variant, but if you want to do this for yourself make sure you understand how the NFS process works, and that you can connect to it. I’m also going to assume that you know how to access the configuration files in your system.
In order to create this new sensor, there are several steps:
1: Create the NFS share on your target device.
2: Create the share in Home Assistant
3: Allow HA to access the share
4: Create the sensor
1: We’ve already covered this, you need to make sure you can do this on your own.
2: Creating a share in Home Assistant is much easier than it used to be. Since a version in 2023, the system now has this builtin to the GUI. To access this, go to:
settings (sidebar gear icon) > system > storage > add network storage
You’ll get a window that looks like this:
Give your share a name. I’m going to call my share raspi, because it was originally set up to share files between multiple SBCs on my network. This is the name that the HA process will use when you access it, so make it meaningful, one word, and as short as you can so you don’t have to type a lot of long things. Or, do whatever you like, but I’d suggest keeping it to a single, no-space word. I don’t know how HA handles spaces here.
The next section is entitled “Useage” - this is kind of misleading, as the only thing this does is identify where the share will be located under the HA process. For example, if you choose “share,” your file path will be “/share/raspi” - it’s more of a human readable delineation than an actual “thou shalt only put thine backup here” type of thing. I chose share just because why not.
Next, choose the type of connection you want to make, NFS or CIFS. CIFS is just a fancy name for the type of shares that a Windows system uses, while NFS is the preferred Linux connection method. There’s plenty of info out there on what these acronyms mean if you’re so inclined.
CIFS usually requires a user/pass/domain type thing (Think your windows login and workgroup) whereas NFS can just operate based on IP address limiting. Since I’m using NFS, I chose that and entered my share:
<ip address>:/volume1/raspi
ip address is self explanatory, it’s the address of my share. Follow this with a colon, and the entire path of the share - Synology units call each volume by it’s numeric name, so “volume1, volume2,” etc. My share is on the first disk and is called raspi, which is the same as the name I gave it for home assistant. I’m calling my share on HA and on the remote share the same thing, but you don’t have to. Call it whatever you like within the Home Assistant system, as long as you’re mapped to the correct place on the remote share.
Assuming all is correct, hit connect and if right, it should just do it. Now, on the storage page you should see your new connection as ipaddr/path/to/share. It won’t say this, but now home assistant has mapped /share/raspi to this shared location on your network.
3: You’ll need to allow the Home Assistant container access to these foreign locations, and that involves editing your configuration.yaml file. So load up the file editor add-on (or install it) and navigate to your configuration file. You’ll need to add a new block to your config - I like to do this right before my sensor: block.
homeassistant: allowlist_external_dirs: - '/share/raspi - '/share/raspi/hass'
Note the single quotes!
What we’re doing here is adding a block called homeassistant: and using the allowlist directive to tell HA it can indeed access these locations that aren’t it’s native systems. I’ve gone ahead and added both the directory I need to access, as well as a directory I can write to later that’s specifically set up for this machine. I don’t know if top-level permissions are inherited, so I just added each individual directory on it’s own. This is pretty much the same format as all other directives in the yaml file, so just follow others if you’re unsure. Spacing is important here!
In my example, raspi is the directory where all the sensor values I want get written, and hass is a directory just for this machine that I can write to and retrieve things from. Create directories as you need them, you don’t need to make extras if you’re not going to use them.
Once you’ve added the directories, use the configuration checker under developer tools to make sure your config is good, then restart the HA process. Allow some time for everything to come back up and populate the new fields. The share seems to persist through this, so you should be good to leave it alone.
4: To create a sensor, you’ll need the file sensor with the “file” integration. To do this:
setting (gear icon) > devices &services > add integration > file > set up a file based sensor
Search for file in the integrations list
You’ll get something that looks like this:
Fill out the form with your sensor (entity) information.
File path is the HA path you set up, in this example it would be:
/share/raspi/airpress.txt
where airpress.txt is the file we want to read. You’ll need to call this whatever you’re trying to read. This should be a single value with no other stuff attached.
Template is the yaml code you want to use to process the value you read. Since my value is already what I want, I left it blank. You may need to change that - yaml code is beyond the scope of this document.
Unit of measurement is just that. It’s just an identifier and only means something for you. In my case, I chose inHg since it’s air pressure. You could call it chickens/hour, °Quackenbush, or “Bob.” Whatever you like. Hit submit, and it should create a new entity creatively called “file.” Click on the entities link, then click the new “file” entity, and edit so the name means something using the gear icon.
You now have a new sensor populated by a value that you can manipulate like any other sensor.
- 2025
- Jun
- 30
A Zenith X184 Clock Radio - AA5 capacitor replacement part 2
The Zenith X184 doesn’t require much repair, just your typical old radio problems. So…first step is to gather the parts we need to do the repair. In this case, a 47μF and 100μF capacitor to replace the 40μF/80μF part, a neon bulb, and a 100kΩ dropping resistor for the neon bulb.
The 47μF is a part that was originally slated to go into the Hallicrafters S-38C I did a while back, but some goofball soldered it in backwards and had to remove it. Thus, the shorter than expected leads…
Anyway, first thing is to make the neon assembly:
Normally, you’d use a lot lower value dropping resistor - probably 68kΩ or some such value. I’m popping it up to 100kΩ so the bulb lasts longer.
Next is to put the capacitor(s) in place. This is mostly just cutting out the old one and installing new. I decided to just leave them float on their wires since you’d have to throw the thing to bend the metal chassis. They’re tied together and tied to a cable bundle, so they aren’t going anywhere, and the electrons don’t care. Chassis is ground on this one, so even if it did go somewhere it would simply burn out the filament of the 35W4 which acts like a fuse.
The original capacitor was essentially open. I got a few pF on the capacitor checker.
Next is to install the neon bulb. This is inserted into a clear plastic piece that acts like a lightpipe for the dial face. This part wasn’t meant to be replaced - I had to carefully unsolder the brown wire from the tab and pull it off the pipe. The neon fits into a recess at the bottom, so you kind of have to tape the new one in place so it doesn’t fall down on to the metal faceplate. I added some electric spaghetti to help protect the leads from shorts, and soldered it and the two connections (including the salty pretzel wire!) and finished with some heatshrink.
So, it’s time to button up. Does it work? Yep…and the first thing it says after an extended sleep is a commercial for the drug-o-the-day. Sorry radio, things have changed since you were here last.
(The camera exaggerates the light, but you’d be able to see this in a completely dark room no problem.)
That’s all for this one, these AA5s are easy to repair for the most part. Next up is a rebuild on the Heathkit AG-7.
Previous part of this series: https://wereboar.com … -replacement-part-1/
- 2025
- Jun
- 30
A Zenith X184 Clock Radio - AA5 capacitor replacement part 1
Up next on the bench is this pretty good example of a Zenith X184 clock radio.
It’s not in too bad of shape, has a few chips…
But not too bad for 1966.
It’s cost reduced ad absurdum, and doesn’t even have a PCB.
The underside of the chassis is pretty messy. That big orange cylinder is the problem with this one, it’s no longer a capacitor.
And the dial lamp is bad as well…no surprise, this thing is baked.
Everything else looks to be ceramics with one couplet. Should be an easy fix, part two of this is on the way.
Next part of this series: https://wereboar.com … -replacement-part-2/
- 2025
- Jun
- 30
The Heathkit AG-7 Audio Generator part 5: It’s gonna need everything.
I received some new tubes for the Heathkit AG-7, and that did nothing - so the unit is probably going to need most (if not all) of the parts replaced.
Case in point, this 100kΩ resistor:
But as you can see, the meter tells me that this is actually closer to 700kΩ. Not surprising for a high-value carbon, and a spot check of other components revealed a similar story.
I’d say this thing had a lot of repairs over the years, as there are plenty of mixed component types. So…it gets entirely rebuilt, because it’s going to need it. Stay tuned, I’m going to do this one in stages.
- 2025
- Jun
- 26
DNS issues with the Home Assistant Green
One of the things I noticed almost immediately after setting up the HA Green unit I purchased was that anything that required Internet - weather cards, electricity useage, devices integration, even logging in - was very flaky and had a lot of dropouts. I wasn’t sure what was going on, but it got to the point where any Internet-enabled integrations were basically unreliable.
This chart is from a YoLink device - HA talks to the YoLink service, and populates data based on what it receives. Notice all the missing data in the middle?
That’s time when the card wasn’t available in the overview. This also was corresponding to time when the weather cards and other stuff was not available. Checking the logs, I saw that there was a number of messages about being unable to resolve addresses and failed DNS lookups.
After doing some research on this, I find that the HA container seems to get it’s DNS resolution from a service built in to the HA system itself. It then uses this to populate /etc/resolv.conf with the proper nameservers.
In order to get to that service, you need to access the actual shell of the HA system. You can do this by adding the “Terminal & SSH” add-on from the store. Once that’s installed and started, launch it from the Web UI and type the following:
ha dns info
You’ll get something that looks like this:
fallback: true host: 172.30.32.3 llmnr: true locals: - dns://192.168.1.1 mdns: true servers: update_available: false version: 2025.02.0 version_latest: 2025.02.0
Theoretically, it should get DNS from the router (192.168.1.1) like any good device should. But it doesn’t seem to, and this has been broken for a long time from what I can tell.
To insert DNS servers into this file, you’ll need to enter a couple of commands:
ha dns reset ha dns options --servers dns://8.8.8.8 --servers dns://8.8.4.4 ha dns restart
(I think it should go without saying that you’ll need to be admin or owner to do this.)
Enter as many DNS servers as you like. The example shows Google DNS. Google is Evil in a box, but their DNS does work well, and you’ll probably only need that. I entered a couple more as well just to have some redundancy.
I ended up with this when I was done:
fallback: true host: 172.30.32.3 llmnr: true locals: - dns://192.168.1.1 mdns: true servers: - dns://8.8.8.8 - dns://8.8.4.4 - dns://9.9.9.9 - dns://1.1.1.1 update_available: false version: 2025.02.0 version_latest: 2025.02.0
I did do a reboot on the system, just to make sure. After that, /etc/resolv.conf now showed my new DNS servers, where none had existed before. You can check that by going back to the terminal and entering:
cat /etc/resolv.conf
You should see your new DNS servers.
This took care of all of the problems for me - HA now returned the UI much quicker, and no cards are going offline. Will this persist through an upgrade? I don’t know, but my system is in a known state and unless I need some of the new features, I’m not planning on updating with every new version that comes along.
As a note: Some have reported that this did not work for them, so there are certainly other issues at play here. YMMV!
References: https://community.ho … eassistant-os/562041
Original post: https://wereboar.com … ome-assistant-green/
- 2025
- Jun
- 23
Some interesting items I brought home from hamfests this year.
For the most part, I’ve only brought home parts (or parts units) this year - prices on equipment has really gone up and it’s moving things into the “I’d like that, but not at that price” territory, with some of the stuff being so far out of budget that there’s no way you could negotiate it down.
It shouldn’t be said that there aren’t bargains around, because there are. I did pick up some interesting things because I they were unusual or cheap.
First is this device. You’ve seen it before, since I had a post on it earlier. It’s a “tube tester” - aka “filament checker” for tubes. It’s some little device a company packed up with a RCA tube manual - in this case, the manual doesn’t look like it’s ever been cracked open. That’s the primary reason I purchased this, but the gadget was cool as well. It looks to have been used maybe one or two times - probably right up until the original owner realized you could just check the filaments with a meter instead!
Next up is a signal tracer! Yay! Well, not really. There’s nothing special about a signal tracer save this one is one of Precision’s devices (aka PACO) and is somewhat unusual. You see more of PACO’s signal generators and other devices - I believe this ST-22 is the first tracer from that manufacturer I’ve seen. It’s in very dirty shape and missing a knob, but it works. I did some cleanup on it and borrowed a knob from a PACO G-30, and it will probably be able to get put into service with a filter change. Stay tuned for a post on that in the future.
An Eico 902 Harmonic Distortion Analyzer is next up - this is a fairly late item for Eico, and as such, has very little wax paper capacitors to go bad. That’s good, because this is a fairly complex device under the hood. Providing some of the same measurements as the AA-1 and IM-48, this device could do both AC VTVM measurements as well as provide harmonic distortion measurements for audio amplifiers. While I don’t do a whole lot of audio work, this device was so cheap I really couldn’t pass it up. Next year, this will probably be back to 3 figures, so I picked it up now. There will be some posts on this one later as well.
Last, are some rather banal parts. These CSC (Continental Specialties Corporation) proto-boards match standard breadboard layout. You’ll probably recognize these - everyone from Radio Shack to no-name Chinese vendors sold a board with this exact same layout. Since I use these at times, and you can’t get them from the rats at the shack anymore, I picked these up for a few bucks. The 1970s packaging is just a bonus.
That takes care of finds from the first part of the year. Next show(s) are Columbus and Cincinnati in August, with a few more in September and November. Stay tuned for pictures of the goodies that show up!
- 2025
- Jun
- 18
The Heathkit AG-7 Audio Generator part 4: Repairs
In the last post, something went bad in the oscillator portion of the Heathkit AG-7.
There were other things wrong as well, if they were caused by or were pre-existing to this failure, I don’t know. But one of those was easy to fix, that of the 10kΩ resistor in the power supply. This resistor decided it was going to be about ~300Ω or so, and had to go. Fortunately, I had some spare 2W units from a previous rebuild project, and put one in.
That, unfortunately, didn’t fix the issue. Since everything else seems to be mostly ok, I have to assume that I damaged the tube(s) during my testing of the device, or the incorrect power supply voltages damaged the tubes and it was just coincidence that it failed when it did.
Therefore, this unit gets set aside until I can replace the two oscillator tubes, verify it works, and rebuild the unit.
In the meantime, here’s the 10kΩ that was removed.
It looks pretty crusty at this point. Not sure what cause it to short.
But short (relatively) it did:
This one goes in my bin of oddball parts for later fun.
Next part of this series: Coming soon.
Previous part of this series: https://wereboar.com … or-part-3-diagnosis/
- 2025
- Jun
- 11
The Heathkit AG-7 Audio Generator part 3: Diagnosis?
When the AG-7 quit, I wasn’t really sure what caused it except that the oscillator now won’t. Tubes check fine on my cheapie tester, so I decided to start doing some measurements around the 6J7.
These didn’t seem right, much higher than they should be, but the individual components were (mostly) within tolerance after disconnecting from the circuit. It still didn’t seem right, things were bouncing around like there was another path to the filters.
I disconnected the line from the filter and that all went away. Ok…do I have a bad filter capacitor now? No, it checks ok, but that’s with the 10kΩ resistor across the filter disconnected.
And there it is. The 10kΩ resistor that goes from triangle to dash on the filter is bad. It’s not open, or high resistance, it’s 295Ω. Confirmed this with two meters…what? I’ve never had one of these old carbons short like this, but I suppose it’s completely plausible. It is 70ish years old at this point.
I have plenty of 10k resistors laying around to test with, so I’ll take some time and see if that gets me back to a semi-working condition so I can complete my troubleshooting from the last problem. I suspect this is going to need a complete rebuild in order to be functional with any kind of reliability…
Next part of this series: Coming soon.
Previous part of this series: https://wereboar.com … ator-part-2-testing/
- 2025
- Jun
- 10
The Heathkit AG-7 Audio Generator part 2: Testing
In the last post, we determined that this device was mostly operational, but had one of the problems you see with Wein bridge oscillators - one side of the output signal was clipped. That can be an issue with not enough or too much drive in the feedback circuit, so I decided to do some tests.
Here’s the schematic for this device:
An oscillator is an amplifier that provides it’s own input. You’ve probably run across that with feedback on a public address system - that’s the amplifier becoming an oscillator.
In this case, it’s controlled oscillations that we’re looking for. To do this, this particular oscillator model provides two kinds of feedback. Positive feedback, which is the actual oscillator drive and is controlled by the frequency selection capacitors and resistors. And, negative (servo mechanism) feedback that is provided by a lamp used as a positive temperature coefficient resistor - that is, the more current the circuit tries to draw, the more the lamp resists that and tries to keep the gain stable.
The reason you need the servo mechanism is because the oscillator will continue to draw more current until it reaches the limit it can draw from the supply - and probably clip and/or destroy things. The lamp is a quick and easy way to stop that, and was used in almost all oscillators of this type. Later ones used an FET or other current control method, and modern DDS generation doesn’t need this.
Before I tried anything, I swapped the bulb with a new one. No change there.
I’m going to start with checking the oscillator and feedback loop to see if the distortion is present in the oscillator. Pin 3 of the 6k6 Pentode is the output amplifier for this part of the circuit, so checking on Pin 3 should reveal most of what we need to know:
And the distortion is there, so we can probably assume that it’s present in the whole circuit.
(The schematic doesn’t show the suppressor grid - Grid 3 - on the 6K6, but it’s there. It’s tied to the cathode internally, so some manufacturers didn’t show it since you couldn’t access it.)
So that means the input to the 6J7’s control grid is probably distorted as well.
It is.
So it follows that the input to the 6K6 is also bad.
It is, and it’s quite high - perhaps this needs to be cut down some? (It’s inverted because each stage acts like an inverting amp, so the distortion is at the top now.)
Before moving on to the interconnect between the two stages, I decided to examine the feedback loop. Breaking the two resistors, I put a potentiometer removed from the Heathkit AF-1 in-between the stages.
Interesting - more resistance caused the device to go into severe clipping:
Less resistance did nothing much. One thing I did notice is that too much resistance will cause the oscillator to become unstable - this explains the problems I’m seeing with the BW200 oscillator that was on the bench recently.
I was going to move on to the interconnect between the stages (plate of the 6J7 to the control grid of the 6K6) but something happened. I had no output at all, and I’m not sure what happened. Did something pop, like one of the capacitors? The tubes seem to check good:
I need to do some more checking on this thing before making my decisions about what’s going to happen to it.
Next part of this series: https://wereboar.com … or-part-3-diagnosis/
Previous part of this series: https://wereboar.com … part-1-observations/