diff --git a/MMM-HomeAssistantDisplay.js b/MMM-HomeAssistantDisplay.js index 99ffe49..ef20ac0 100755 --- a/MMM-HomeAssistantDisplay.js +++ b/MMM-HomeAssistantDisplay.js @@ -52,6 +52,13 @@ Module.register("MMM-HomeAssistantDisplay", { entity: section.triggerEntities[entity] }); } + // Set up a timer to trigger re-rendering outside of any entity state update + if (section.triggerTimer) { + setInterval(()=> { + this.renderTemplates("timeout"); + this.updateDom(); + }, section.triggerTimer); + } } } this.renderTemplates("foo");