user:thomas gists created by user
user:thomas
title:mygist gists with given title
title:mygist
description:sync gists with given description
description:sync
filename:myfile.txt gists having files with given name
filename:myfile.txt
extension:yml gists having files with given extension
extension:yml
language:go gists having files with given language
language:go
topic:homelab gists with given topic
topic:homelab
all:systemctl search all fields
all:systemctl
Register
Login
Joined 11 months ago
Write an automation to dynamically change the bedroom lamp brightness and color temperature to match the current daylight/sun position. Also take into account weather/cloud cover/etc to account for all variables. All of the necessary entities for daylight/weather/cloud cover/sun position/etc should already be available. The ultimate goal is to have the light respond to/mimic the real-world sunlight as accurately as possible.
Additionally create a helper switch to enable/disable the automation so we can easily regain manual control any time we want.
I'll build this properly. First, let me consult the best-practices guide and discover the available entities, since the automation should reference real entity IDs. Now let me discover the relevant entities for sun position, weather, cloud cover, and illuminance.
I'll build this properly. First, let me consult the best-practices guide and discover the available entities, since the automation should reference real entity IDs.
Now let me discover the relevant entities for sun position, weather, cloud cover, and illuminance.
#!/usr/bin/env bash
set -euo pipefail
"$VARIABLE"
local_var="value"
readonly CONSTANT
.sh
Powered by Opengist ⋅ Load: 133ms⋅