kaybeeque on Nostr: #HomeAssistant lighting bug quashed 👍 Lights come on at 6am and go off at ...
#HomeAssistant lighting bug quashed 👍
Lights come on at 6am and go off at sunrise+30min. It's summer. Six o'clock in the morning is later than sunrise+30. Result: lights on all day.
Soln 1: have On script check if it is later than sunrise+30 and bail if so.
Issue: time dependency between On/Off scripts.
Soln 2: have On script check if the Off script has run in the last two hours!
Dependency gone.
1/2....
Published at
2024-07-03 13:36:30Event JSON
{
"id": "83bf4dda927e8b9b642f4ad5b452ab007389ae92af7a6c49ec5ccf2aab07ca6e",
"pubkey": "0c79b580ef80c95e8ef4a8a7c7d08e79c483a13e47ed39ca829eaffb98906b41",
"created_at": 1720013790,
"kind": 1,
"tags": [
[
"t",
"homeassistant"
],
[
"proxy",
"https://fosstodon.org/users/kaybee335/statuses/112722823796396960",
"activitypub"
]
],
"content": "#HomeAssistant lighting bug quashed 👍\n\nLights come on at 6am and go off at sunrise+30min. It's summer. Six o'clock in the morning is later than sunrise+30. Result: lights on all day. \n\nSoln 1: have On script check if it is later than sunrise+30 and bail if so.\nIssue: time dependency between On/Off scripts.\n\nSoln 2: have On script check if the Off script has run in the last two hours! \nDependency gone.\n\n1/2....\n\nhttps://cdn.fosstodon.org/media_attachments/files/112/722/811/449/395/076/original/7a3184902ded8083.png",
"sig": "051860d96633c5420e28a870bf06206f817e8cc27e6fc523250f4286ef48e72f10037fce7d57e3b80c3eecf3a6fec6a73523c835c7ef130bec5453b54b2e3eea"
}