This commit is contained in:
monster
2018-12-30 14:13:57 +03:00
parent e311c31b88
commit 2033fe79e4
225 changed files with 6370 additions and 0 deletions
@@ -0,0 +1,22 @@
import appdaemon.plugins.hass.hassapi as hass
#
# This app fix event turn off after hass restart
#
# Args:
#
# Release Notes
#
# Version 1.0:
# Initial Version
class AutomationFix(hass.Hass):
def initialize(self):
self.listen_event(self.ha_event, "plugin_started")
def ha_event(self, event_name, data, kwargs):
self.run_in(self.turn_on_automations_timer, 10)
def turn_on_automations_timer(self, kwargs):
self.log('turning on automations')
self.call_service('automation/turn_on', entity_id='group.all_automations')
@@ -0,0 +1,6 @@
#################################
# FIXES #
#################################
automation_fix:
module: automation_fix
class: AutomationFix