this post was submitted on 28 Jan 2024
82 points (96.6% liked)

homeassistant

12135 readers
4 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 2 years ago
MODERATORS
 

I've been running HA for a while, and it's been working well; I haven't had to change much in a few months. That being said, it's fun to tinker with it, and I'm curious to hear what kind of automations the rest of the community is using. What automations are you most proud of? What are your favorite? What kind of interesting automations have you written?

My personal favorite is an automation that displays the current "apparent" temperature on a Hue bulb. It takes an average of the temperature, humidity, and luminance around my property and uses the average to compute an "apparent" (feels like) temperature. Then it applies a cosine function to the apparent temperature (to approximate how people feel temperature change), uses the resulting value to calculate a level between blue and red in CIELAB (a perceptually uniform color space), converts the results to RGB, and sets the color value of the hue bulb. The result is a bulb that changes color so that the change in color (as perceived by the eye) mirrors how the temperature "feels" outside. Ultimately what that means is that we can look at a small lamp with the hue bulb and say "It feels cold outside; we should put on a coat." It's probably overkill, but it was a fun programming exercise. We've started saying things like "It's really blue today, I don't feel like going out."

I'd really enjoy reading what kind of interesting automations everyone else has written.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 10 months ago (1 children)

HTML scrape of CUPS web server to see if there's a print job waiting, turn on tasmota plug for laserprinter, then turn off in 5 minutes to save power.

It's an old LJ4000 so it's idle power is pretty high.

[–] [email protected] 3 points 10 months ago (1 children)

I use the IPP integration for that

[–] [email protected] 3 points 10 months ago* (last edited 10 months ago) (1 children)

I'm trying this now, I see it change the state to "printing" but I can't bring up the device in automations to act on it. If I go into the IPP devices page and try to add an automation from the device page, it tells me no devics are available for automation.

Edit: got it, it was under entities, not devices, in automations. That's one more thing out of Node Red now, thanks!

[–] [email protected] 3 points 10 months ago