:::
顯示具有 Automation 標籤的文章。 顯示所有文章

Home Assistant自動化的限制:無法偵測長時間狀態 / Limitations of Home Assistant Automation: Inability to Detect Long-Duration States

布丁布丁吃布丁

Home Assistant自動化的限制:無法偵測長時間狀態 / Limitations of Home Assistant Automation: Inability to Detect Long-Duration States

2024-1201-172230.png

我本來想在Home Assistant設定自動化「如果實體的狀態維持[關閉]超過24小時,就把它設為[開啟]」,結果HA卻一直沒能觸發自動化。最後我把條件改成時間模式定期檢查、觸發,然後把條件設定在「且如果」裡面,這樣自動化才能夠正常運作。

I was trying to set up an automation in Home Assistant that would turn an entity [on] if its state remained [off] for more than 24 hours. However, the automation never triggered. I eventually got it working by changing it to a time-based automation that checks periodically and then using an condition to check the entity's state.

(more...)