I use /srv/[service] for services by the same logic, and leave /opt for local user apps. It’s kind of a coin toss though. On another day I night have decided differently.
SolidGrue
I’m just this guy, you know?
- 3 Posts
- 187 Comments
SolidGrue@lemmy.worldto
homeassistant@lemmy.world•How to handle lights that are physically powered off (but Home Assistant still sees as "on")?English
3·4 个月前As it happens I’m actually looking for a smart lamp switch if anyone knows of any options
I was doing the same myself earlier this year. I’d found a European product that was an inline smart switch, like one of those rocker switches they put on the wire for those decorative canister uplights. The switches were out of stock on all the sites that listed it, and the manufacturer website didn’t seem to indicate they’d be producing more any time soon.
Eventually I just settled on using an inexpensive smart button (Tuya TS0041/TZ300 over ZHA) to control a smart bulb or a smart plug on the “dumb” fixtures. It wasn’t exactly what I wanted, but nobody seems to make a smart inline switch anymore. As a bonus, the switch supports double-tap and long press gestures so I was able to program the bedside button with a few functions to toggle the bedside lamp on a short press, and turn off all the lights in the house on a double tap.
It uses a coin battery that lasts a few months. I think I’ve changed it maybe once since I got it.
The HA Ecobee integration requires a developer API key which ecobee no longer distributes, if you already have a key it still works, but they stopped giving out new keys a few years ago.
On the other hand, the HomeKit integration allows new users to control most of the thermostat’s features locally over WiFi. I got my thermostat after the Developer program ended, and this is how I control it today. Once you install the HomeKit integration, it will discover the thermostat if its on the same LAN, and then prompt you to add it.
I have an ecobee I mainly control locally through the HomeKit integration on HA. Just about all of the basic features are covered: setpoints, heat/cool/auto/off and fan on/off/auto. Some of the more advanced features like Home/Away/Sleep profiles are not available through the integration, but they tend to be set & forget.
It doesn’t need Internet access or the companion app to operate your system, though it will use external access to track local weather and energy rates. (And probably collect usage data.) The companion app gives access to a few more features remotely, but the unit is completely programmable from its front panel.
It’s worked out fine for me so far. My local power utility sells them at a steep discount through their online storefront. Check around for rebates.
SolidGrue@lemmy.worldto
homeassistant@lemmy.world•Is it possible to block/shape mmwave?English
4·7 个月前Can this be done with foil or metal?
Based on a layman’s knowledge of these things, I’d guess that’s probably a bad idea there since the microwave reflectance off the metal could saturate the receiver on the sensor. Best case, the hot signal confuses the sensor making it unreliable for tracking objects at a distance. Worst case, it could shorten the device lifetime if not outright burn out the receiver.
Rather, you’d want something to absorb the microwave energy like, say, paint with carbon black in it. It’ll still covert the absorbed energy to heat (like your microwave oven), but at the power levels we’re discussing you could at least dissipate it somehow.
Edit: just realized I didn’t address shaping. What I mentioned above, I was thinking of sticking a strip of foil across a portion of the plastic lens. You could probably form a sort foil visor for the sensor, like a ball cap, but you may still run into issue with false positives and ghosting of objects as signals would now be bouncing around in ways the sensor wasn’t designed to account for, if they even get picked up.
And I genuinely hope it stays that way for years more to come. Cheers.
Oracle Cloud will also delete your shit for the price of admission.
Caveat emptor, hey?
So, uh…
Digital Ocean Is pretty inexpensive at US$7 monthly for 1 vCPU/1GB RAM with 1TB transfer. Decent platform. US-based, alas.
(2025 September, for the archives)
SolidGrue@lemmy.worldto
Selfhosted@lemmy.world•Anyone automate anything with smart thermostats and outdoor temp?English
4·8 个月前I have some logic around notifications and a few actions. My spouse and I both grew up in houses with heat, but no AC, so I’ve programmed HA to send notifications to our phones if the setpoint on our Ecobee thermostat is warmer than the outside temperature in Cooling mode, and cooler than the outside temp in Heating mode. Outdoor temps are a blend of three weather service feed “feels like” observations and two outdoor temperate/humidity sensors.
The outdoor sensors are a ZigBee sensor, and some area sensors I snoop a few times an hour with an RTL-SDR radio single via MQTT bus. I have a helper that blends the weather service and local obs to compare with the thermostat. It bothers us every 2 hours to open some windows.
We both also have a bad habit of not closing the back door all the way, so the Assistant bugs us if a door or window is open for more than 10 minutes and the outdoor temperature is below the heating setpoint, or above the cooling setpoint. It turns off the HVAC a few minutes later if the condition persists and sends a snarky notification about not being made of enough money to fix climate change. However, it will turn the heat back on to 60F if the house falls below 58F and send notifications every hour til the condition is addressed.
Otherwise the ecobee does a fair job adjusting itself to maintain a desired inside temp on its own.
SolidGrue@lemmy.worldto
Selfhosted@lemmy.world•[Resolved]Jellyfin won't fetch the good metadataEnglish
9·8 个月前You’ve solved it by now but this Jellyfin doc article was helpful for me, beginning with the section Naming.
https://jellyfin.org/docs/general/server/media/movies/
There at similar guides for TV Shows, Music, Books and other mixed media.
There are also guides for “stacking” multi-segment media titles, for example Lord of the Rings movies which come on several discs.
Jellyfin can be a bit opinionated about detecting bad metadata. The override tags in the media data filename or folder name can help clean that up. In fact, I’ve started hard-coding those [tmdbid=…] tags in my encoding workflow because I’m just so damned tired of fighting with the metadata feature.
Hope it works form you,.too.
SolidGrue@lemmy.worldto
homeassistant@lemmy.world•Sengled's servers are dead *again*, so I'm finally taking the plungeEnglish
6·9 个月前Good move. I’ve driven my Sengled E11-N1EA bulbs for years now over ZigBee with an old HubZ HUSBZB-1. Works fine, no regrets. Didn’t even know those bulbs were cloud attached.
SolidGrue@lemmy.worldto
Linux@lemmy.ml•What is this "device" in Dolphin? The fact that's it's full is preventing me from doing some things (Fedora Aurora)English
46·11 个月前Yeah, I know.
Aurora is immutable, I fucked up. Oops.
Edit: unsubscribed. My life will be better.
Look into the GE Enbrigjten series of Z-wave dimmer switches & 3-poles. They’re about half the price as what you linked, and use a more modern protocol stack. You’ll need a Z-wave hub, but you can get a USB dongle for about the cost of one of the switches, and it will probably Al’s include ZigBee on board as well.
GE makes dimmable 2-pole and 3-pole switches. The good thing about their 3-pole switches is you only need one smart switch for the branch, and can use companion switches to control the main smart switch over the traveler wire.
As always, pay attention to ALL smart switch literature and make sire you have a compatible load. Many switches require a neutral wire, and/or aren’t compatible with halogen fixtures. The product literature should make it pretty clear.
I also use Minoston switches, which I believe are another brand of the GE switches.
SolidGrue@lemmy.worldto
Fediverse@lemmy.world•PSA: Posting a YouTube video? Just post the canonical YT linkEnglish
22·1 年前You might also want to strip the part of the URL that starts with
?si=since it’s probably a referrer hash. For example, the URL for this popular Rick Astley video (which is not technically a Rick Roll now that I’ve told you)vs.
(Edit: for the record…

)
SolidGrue@lemmy.worldto
Linux@lemmy.ml•What can I do in other Linux distros that I can't do in Linux Mint Xfce?English
8·1 年前Man, I got stuff to do. Lol.
SolidGrue@lemmy.worldto
Linux@lemmy.ml•What can I do in other Linux distros that I can't do in Linux Mint Xfce?English
74·1 年前I mean…
Steam? Maybe? I dunno, I don’t game but the Steam kids seem to prefer Arch. I’m sure they have their reasons.
Practically? Probably nothing terribly significant.
SolidGrue@lemmy.worldto
Home Automation@lemmy.world•Advice for making entryway light motion sensing? 3-way switch and two ceiling fixtures.English
4·1 年前Are you looking for a system that is strictly motion sensors, or do you have a smart assistant that supports other wireless protocols than Wifi?
My strategy as a home assistant user has been to lean on smart switches and dumb bulbs to the extent that I can, so that I can locally control fixtures without having to rely on the assistant being awake and healthy. I do have a few instances where I have dumb switches and smart bulbs, but only where I also want to control the light colors and where the bulb is controlled right at the fixture.
That said, there does appear to be a tasmota 3-pole switch by Martin Jerry on Amazon. You’d probably just replace one of your 3-pole switches with the Tasmota and leave the other switch alone. You could pick up one of the Everything Smarthome presence kits and use that for your motion sensor.
Hope any of this helps!


You can use trigger IDs and conditional execution to accomplish this. Not precisely your use case, but I have an automation that manages two ornamental lamps via two smart buttons: one lamp and one button on each nightstand to either side of the bed in our main bedroom.
A single click of either button toggles the lamp on that nightstand. A double click on either button turns off both lamps, and a long press on either button calls a script that turns off all the lights inside and outside the house, by area.
I use trigger IDs to tag the button events, and then use that ID in conditional action logic to toggle the lamps, turn them off, or call the shutdown service.
You can probably use trigger IDs for your upper and lower bounds to conditionally execute your air conditioner functions.
Here’s the YAML, if you’d like to see how I use it.
alias: "QoL: Bedroom Smart Button Features" description: |- Short press toggle local ornamental lamp (amethyst, salt) Long press turn off both ornamental lamps Double press call Shutdown Everything automation triggers: - device_id: b11766b6ab9a7ae6f752e70514562f18 domain: zha type: remote_button_short_press subtype: button_1 trigger: device id: bedroom_button_short_press_right - device_id: b11766b6ab9a7ae6f752e70514562f18 domain: zha type: remote_button_double_press subtype: button_1 trigger: device id: bedroom_button_double_press_right - device_id: b11766b6ab9a7ae6f752e70514562f18 domain: zha type: remote_button_long_press subtype: button_1 trigger: device id: bedroom_button_long_press - device_id: 2a9e9c869c5e611e791232491169da77 domain: zha type: remote_button_short_press subtype: button_1 trigger: device id: bedroom_button_short_press_left - device_id: 2a9e9c869c5e611e791232491169da77 domain: zha type: remote_button_double_press subtype: button_1 trigger: device id: bedroom_button_double_press_left - device_id: 2a9e9c869c5e611e791232491169da77 domain: zha type: remote_button_long_press subtype: button_1 trigger: device id: bedroom_button_long_press conditions: [] actions: - if: - condition: or conditions: - condition: trigger id: - bedroom_button_short_press_right then: - action: light.toggle metadata: {} data: {} target: entity_id: light.salt_lamp_switch - if: - condition: or conditions: - condition: trigger id: - bedroom_button_short_press_left then: - action: light.toggle metadata: {} data: {} target: entity_id: - light.amethyst_lamp - if: - condition: or conditions: - condition: trigger id: - bedroom_button_long_press then: - action: light.toggle metadata: {} data: {} target: entity_id: - light.salt_lamp_switch - light.amethyst_lamp - if: - condition: trigger id: - bedroom_button_double_press_right - bedroom_button_double_press_left then: - action: light.turn_off metadata: {} data: {} target: entity_id: - light.amethyst_lamp - light.salt_lamp_switch mode: restartAnother idea, you could use a
wait_foraction in theturn_onaction to wait for a lower bound trigger to execute yourturn_offaction. I’ve used that for actions that turn on a light when motion is detected, and then wait for motion to clear before turning off the light.Really, you could peel.it a bunch of different ways, but these are trucks I’ve used in my automations.