Closed vladosam closed 5 years ago
Can you try using a script in a very simple configuration? Then use entity_on
with the script, then use both entity_on
and entity_off
.
I want to see at what point if will stop working because scripts work fine in my configuration.
I tried with this simple configuration but as i can see error is the same:
entity_controller:
motion_light:
sensor: input_boolean.sensor1
sensor_type: duration
delay: 10
entity: light.bed_light
entity_on: script.bed_light_on
entity_off: script.bed_light_off
Scripts:
bed_light_on:
alias: "Bed light on"
sequence:
- service: light.turn_on
entity_id: light.bed_light
data:
brightness: 230
bed_light_off:
alias: "Bed light off"
sequence:
- service: light.turn_on
entity_id: light.bed_light
data:
brightness: 25
- delay:
seconds: 10
- service: light.turn_off
entity_id: light.bed_light
Error:
Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/tmp/tcloop/python3.6.4/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/tc/.homeassistant/custom_components/entity_controller/__init__.py", line 381, in sensor_state_change
self.sensor_off_duration()
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 383, in trigger
return self.machine._process(func)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 1047, in _process
return trigger()
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/extensions/nesting.py", line 254, in _trigger
return self._process(event_data)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 409, in _process
if trans.execute(event_data):
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/extensions/nesting.py", line 210, in execute
return _super(NestedTransition, self).execute(event_data)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 263, in execute
self._change_state(event_data)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/extensions/nesting.py", line 218, in _change_state
lvl = source_state.exit_nested(event_data, dest_state)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/extensions/nesting.py", line 153, in exit_nested
return self.parent.exit_nested(event_data, target_state)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/extensions/nesting.py", line 165, in exit_nested
tmp_self.exit(event_data)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 127, in exit
event_data.machine.callback(handle, event_data)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 1005, in callback
func(*event_data.args, **event_data.kwargs)
File "/home/tc/.homeassistant/custom_components/entity_controller/__init__.py", line 563, in on_exit_active
self.turn_off_control_entities()
File "/home/tc/.homeassistant/custom_components/entity_controller/__init__.py", line 869, in turn_off_control_entities
self.call_service(e, 'turn_on')
File "/home/tc/.homeassistant/custom_components/entity_controller/__init__.py", line 1105, in call_service
domain, e = entity.split('.')
ValueError: not enough values to unpack (expected 2, got 1)
Even simpler than that :) just a sensor and a script. I'm not sure all of the below are necessary.
entity: light.bed_light
entity_on: script.bed_light_on
entity_off: script.bed_light_off
Ok. :D Testing.
One thing that might help is adding
log.debug("entity:" + entity)
on line 1104 just before domain, e = entity.split('.')
.
This will tell you what it is trying to split.
I think i tested all possible combinations. And if i use entity_off error is the same. This is only combination when i don't get error but even then light don't turn off and component hangs.
entity_controller:
motion_light:
sensor: input_boolean.sensor1
sensor_type: duration
delay: 10
entity: light.bed_light
# entity_on: script.bed_light_on
entity_off: script.bed_light_off
Can you post your debug logs for component initialisation?
This?
2019-03-11 12:00:37 INFO (MainThread) [custom_components.entity_controller] If you have ANY issues with EntityController, please enable DEBUG logging under the logger component and kindly report the issue on Github. https://github.com/danobot/entity-controller/issues
2019-03-11 12:00:37 INFO (MainThread) [custom_components.entity_controller] Domain Configuration: OrderedDict([('motion_light', OrderedDict([('sensor', 'input_boolean.sensor1'), ('sensor_type', 'duration'), ('delay', 10), ('entity', 'light.bed_light'), ('entity_off', 'script.bed_light_off')]))])
2019-03-11 12:00:37 INFO (MainThread) [custom_components.entity_controller] Config Item motion_light: OrderedDict([('sensor', 'input_boolean.sensor1'), ('sensor_type', 'duration'), ('delay', 10), ('entity', 'light.bed_light'), ('entity_off', 'script.bed_light_off')])
2019-03-11 12:00:37 INFO (MainThread) [custom_components.entity_controller.motion_light] Off Entities: script.bed_light_off
2019-03-11 12:00:37 INFO (MainThread) [custom_components.entity_controller.motion_light] Service data set up
2019-03-11 12:00:37 INFO (MainThread) [custom_components.entity_controller] The entity_controller component is ready!
You need to enable debug logging. Add the following to your configuration.yaml:
logger:
default: info
logs:
custom_components.entity_controller: debug
2019-03-11 12:04:56 INFO (MainThread) [homeassistant.setup] Setting up entity_controller
2019-03-11 12:04:56 INFO (MainThread) [custom_components.entity_controller] If you have ANY issues with EntityController, please enable DEBUG logging under the logger component and kindly report the issue on Github. https://github.com/danobot/entity-controller/issues
2019-03-11 12:04:56 INFO (MainThread) [custom_components.entity_controller] Domain Configuration: OrderedDict([('motion_light', OrderedDict([('sensor', 'input_boolean.sensor1'), ('sensor_type', 'duration'), ('delay', 10), ('entity', 'light.bed_light'), ('entity_off', 'script.bed_light_off')]))])
2019-03-11 12:04:56 INFO (MainThread) [custom_components.entity_controller] Config Item motion_light: OrderedDict([('sensor', 'input_boolean.sensor1'), ('sensor_type', 'duration'), ('delay', 10), ('entity', 'light.bed_light'), ('entity_off', 'script.bed_light_off')])
2019-03-11 12:04:56 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Initialising EntityController entity with this configuration: OrderedDict([('sensor', 'input_boolean.sensor1'), ('sensor_type', 'duration'), ('delay', 10), ('entity', 'light.bed_light'), ('entity_off', 'script.bed_light_off'), ('name', 'motion_light')])
2019-03-11 12:04:56 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Controller name: motion_light
2019-03-11 12:04:56 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Control Entities: ['light.bed_light']
2019-03-11 12:04:56 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Added Control Entities as state entities: ['light.bed_light']
2019-03-11 12:04:56 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Sensor Entities: ['input_boolean.sensor1']
2019-03-11 12:04:56 INFO (MainThread) [custom_components.entity_controller.motion_light] Off Entities: script.bed_light_off
2019-03-11 12:04:56 INFO (MainThread) [custom_components.entity_controller.motion_light] Service data set up
2019-03-11 12:04:56 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Config other
2019-03-11 12:04:56 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Using DAY MODE parameters: {'delay': 10, 'service_data': None, 'service_data_off': None}
There should be much more including a nicely formatted "card" of all configurations (the way they were processed). The log at time of error would help too (there is some information printed just before the error)
No, that's not what I'm after. Search your log for
C O N F I G U R A T I O N D U M P
Ensure you are using the latest version v3.3.0.
Sorry but I don't see configuration dump anywhere. Yes i am on v3.3.0. And i needed to change log.debug("entity:" + entity)
to self.log.debug("entity:" + entity)
because entity_controller fails immediately.
def call_service(self, entity, service, **kwargs):
""" Helper for calling HA services with the correct parameters """
self.log.debug("entity:" + entity)
domain, e = entity.split('.')
params = {}
2019-03-11 12:21:08 DEBUG (SyncWorker_1) [custom_components.entity_controller.motion_light] Sensor state change: on
2019-03-11 12:21:08 DEBUG (SyncWorker_1) [custom_components.entity_controller.motion_light] state: idle
2019-03-11 12:21:08 INFO (SyncWorker_1) [custom_components.entity_controller.motion_light] <state light.bed_light=off; min_mireds=153, max_mireds=500, effect_list=['rainbow', 'none'], friendly_name=Bed Light, supported_features=151 @ 2019-03-11T12:20:39.386934+01:00>
2019-03-11 12:21:08 DEBUG (SyncWorker_1) [custom_components.entity_controller.motion_light] State entities are OFF.
2019-03-11 12:21:08 DEBUG (SyncWorker_1) [custom_components.entity_controller.motion_light] Exiting idle
2019-03-11 12:21:08 INFO (SyncWorker_1) [transitions.core] Exited state idle
2019-03-11 12:21:08 DEBUG (SyncWorker_1) [custom_components.entity_controller.motion_light] Using DAY MODE parameters: {'delay': 10, 'service_data': None, 'service_data_off': None}
2019-03-11 12:21:08 INFO (SyncWorker_1) [custom_components.entity_controller.motion_light] {'delay': 10, 'service_data': None, 'service_data_off': None}
2019-03-11 12:21:08 DEBUG (SyncWorker_1) [custom_components.entity_controller.motion_light] light params before turning on: {'delay': 10, 'service_data': None, 'service_data_off': None}
2019-03-11 12:21:08 DEBUG (SyncWorker_1) [custom_components.entity_controller.motion_light] Turning on light.bed_light (no parameters passed to service call)
2019-03-11 12:21:08 DEBUG (SyncWorker_1) [custom_components.entity_controller.motion_light] entity:light.bed_light
2019-03-11 12:21:08 INFO (SyncWorker_1) [transitions.core] Entered state active_timer
2019-03-11 12:21:08 INFO (SyncWorker_1) [transitions.core] Entered state active
2019-03-11 12:21:10 INFO (MainThread) [homeassistant.components.http.view] Serving /api/error/all to 10.210.1.8 (auth: True)
2019-03-11 12:21:11 INFO (MainThread) [homeassistant.components.http.view] Serving /api/error/all to 10.210.1.8 (auth: True)
2019-03-11 12:21:13 DEBUG (SyncWorker_17) [custom_components.entity_controller.motion_light] Sensor state change: off
2019-03-11 12:21:13 DEBUG (SyncWorker_17) [custom_components.entity_controller.motion_light] state: active_timer
2019-03-11 12:21:13 DEBUG (SyncWorker_17) [custom_components.entity_controller.motion_light] is_timer_expired -> False
2019-03-11 12:21:13 DEBUG (SyncWorker_17) [custom_components.entity_controller.motion_light] CONF_SENSOR_RESETS_TIMER - normal
2019-03-11 12:21:15 INFO (MainThread) [homeassistant.components.http.view] Serving /api/error/all to 10.210.1.8 (auth: True)
2019-03-11 12:21:17 INFO (MainThread) [homeassistant.components.http.view] Serving /api/error/all to 10.210.1.8 (auth: True)
2019-03-11 12:21:18 DEBUG (Thread-3) [custom_components.entity_controller.motion_light] Sensor entities are OFF.
2019-03-11 12:21:18 DEBUG (Thread-3) [custom_components.entity_controller.motion_light] Sensor entities are OFF.
2019-03-11 12:21:18 INFO (Thread-3) [transitions.core] Exited state active_timer
2019-03-11 12:21:18 DEBUG (Thread-3) [custom_components.entity_controller.motion_light] Turning off entities, cancelling timer
2019-03-11 12:21:18 INFO (Thread-3) [custom_components.entity_controller.motion_light] Turning on special off_entities that were defined, instead of turning off the regular control_entities
2019-03-11 12:21:18 DEBUG (Thread-3) [custom_components.entity_controller.motion_light] Turning on s
2019-03-11 12:21:18 DEBUG (Thread-3) [custom_components.entity_controller.motion_light] entity:s
Exception in thread Thread-3:
Traceback (most recent call last):
File "/tmp/tcloop/python3.6.4/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/tmp/tcloop/python3.6.4/usr/local/lib/python3.6/threading.py", line 1182, in run
self.function(*self.args, **self.kwargs)
File "/home/tc/.homeassistant/custom_components/entity_controller/__init__.py", line 454, in timer_expire
self.timer_expires()
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 383, in trigger
return self.machine._process(func)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 1047, in _process
return trigger()
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/extensions/nesting.py", line 254, in _trigger
return self._process(event_data)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 409, in _process
if trans.execute(event_data):
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/extensions/nesting.py", line 210, in execute
return _super(NestedTransition, self).execute(event_data)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 263, in execute
self._change_state(event_data)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/extensions/nesting.py", line 218, in _change_state
lvl = source_state.exit_nested(event_data, dest_state)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/extensions/nesting.py", line 153, in exit_nested
return self.parent.exit_nested(event_data, target_state)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/extensions/nesting.py", line 165, in exit_nested
tmp_self.exit(event_data)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 127, in exit
event_data.machine.callback(handle, event_data)
File "/home/tc/homeassistant/lib/python3.6/site-packages/transitions/core.py", line 1005, in callback
func(*event_data.args, **event_data.kwargs)
File "/home/tc/.homeassistant/custom_components/entity_controller/__init__.py", line 563, in on_exit_active
self.turn_off_control_entities()
File "/home/tc/.homeassistant/custom_components/entity_controller/__init__.py", line 869, in turn_off_control_entities
self.call_service(e, 'turn_on')
File "/home/tc/.homeassistant/custom_components/entity_controller/__init__.py", line 1106, in call_service
domain, e = entity.split('.')
ValueError: not enough values to unpack (expected 2, got 1)
Hmm.. ok. Can you remove line 612 and put the following in its place:
self.offEntities = []
self.add(self.offEntities, config, CONF_CONTROL_ENTITY_OFF)
Such that the function reads:
def config_off_entities(self, config):
self.offEntities = []
self.add(self.offEntities, config, CONF_CONTROL_ENTITY_OFF)
if len(self.offEntities) > 0:
self.log.info('Off Entities: ' + str(self.offEntities))
Let me know how that goes
Wooohooo :D It works. This configuration and scripts works. Now i will try to add night mode. Thanks. You rock.
entity_controller:
motion_light:
sensor: input_boolean.sensor1
sensor_type: duration
delay: 10
entity: light.bed_light
entity_on: script.bed_light_on
entity_off: script.bed_light_off
bed_light_on:
alias: "Bed light on"
sequence:
- service: light.turn_on
entity_id: light.bed_light
data:
brightness: 150
bed_light_off:
alias: "Bed light off"
sequence:
- service: light.turn_on
entity_id: light.bed_light
data:
brightness: 25
- delay:
seconds: 10
- service: light.turn_off
entity_id: light.bed_light
Thank you! :) Stay tuned for v3.3.1 containing this fix.
Nice. Closing this issue.
I need to reopen issue because night mode scripts are ignored. :( and entity_controller use day mode scripts instead.
entity_controller:
motion_light:
sensor: input_boolean.sensor1
sensor_type: duration
delay: 10
entity: light.bed_light
entity_on: script.bed_light_on
entity_off: script.bed_light_off
night_mode:
delay: 10
start_time: '14:50:00'
end_time: '07:00:00'
entity_on: script.bed_light_on_night_mode
entity_off: script.bed_light_off_night_mode
scripts:
bed_light_on:
alias: "Bed light on"
sequence:
- service: script.turn_off
data:
entity_id: script.bed_light_off
- service: light.turn_on
entity_id: light.bed_light
data:
brightness: 150
bed_light_on_night_mode:
alias: "Bed light on night mode"
sequence:
- service: script.turn_off
data:
entity_id: script.bed_light_off_night_mode
- service: light.turn_on
entity_id: light.bed_light
data:
brightness: 10
bed_light_off:
alias: "Bed light off"
sequence:
- service: light.turn_on
entity_id: light.bed_light
data:
brightness: 50
- delay:
seconds: 10
- service: light.turn_off
entity_id: light.bed_light
bed_light_off_night_mode:
alias: "Bed light off night mode"
sequence:
- service: light.turn_on
entity_id: light.bed_light
data:
brightness: 60
- delay:
seconds: 10
- service: light.turn_off
entity_id: light.bed_light
LOG:
2019-03-11 14:59:07 INFO (MainThread) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
2019-03-11 14:59:07 INFO (MainThread) [homeassistant.loader] Loaded api from homeassistant.components.api
2019-03-11 14:59:07 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http
2019-03-11 14:59:07 INFO (MainThread) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
2019-03-11 14:59:07 INFO (MainThread) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
2019-03-11 14:59:07 INFO (MainThread) [homeassistant.loader] Loaded auth from homeassistant.components.auth
2019-03-11 14:59:07 INFO (MainThread) [homeassistant.loader] Loaded onboarding from homeassistant.components.onboarding
2019-03-11 14:59:07 INFO (MainThread) [homeassistant.loader] Loaded lovelace from homeassistant.components.lovelace
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded config from homeassistant.components.config
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded panel_iframe from homeassistant.components.panel_iframe
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded map from homeassistant.components.map
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded input_number from homeassistant.components.input_number
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded system_health from homeassistant.components.system_health
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded input_boolean from homeassistant.components.input_boolean
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded group from homeassistant.components.group
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded sun from homeassistant.components.sun
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded logger from homeassistant.components.logger
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded light from homeassistant.components.light
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded entity_controller from custom_components.entity_controller
2019-03-11 14:59:08 WARNING (MainThread) [homeassistant.loader] You are using a custom component for entity_controller which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded cover from homeassistant.components.cover
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded fan from homeassistant.components.fan
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded media_player from homeassistant.components.media_player
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded automation from homeassistant.components.automation
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded mqtt from homeassistant.components.mqtt
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded script from homeassistant.components.script
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded tts from homeassistant.components.tts
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.bootstrap] Home Assistant core initialized
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setting up logger
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds.
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setting up mqtt
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt took 0.0 seconds.
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setting up recorder
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setting up lovelace
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.0 seconds.
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setting up http
2019-03-11 14:59:08 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don't require it, remove the 'api_password' from your http config.
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.1 seconds.
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.loader] Loaded mqtt.discovery from homeassistant.components.mqtt.discovery
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setting up api
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setting up system_log
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setting up auth
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds.
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setting up onboarding
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.1 seconds.
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.1 seconds.
2019-03-11 14:59:08 INFO (MainThread) [homeassistant.setup] Setting up frontend
2019-03-11 14:59:11 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 2.8 seconds.
2019-03-11 14:59:11 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 3.6 seconds.
2019-03-11 14:59:11 INFO (MainThread) [homeassistant.setup] Setting up history
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 0.0 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up group
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.0 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up input_boolean
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded demo from homeassistant.components.demo
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded light.demo from homeassistant.components.light.demo
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up map
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up input_number
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up sun
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.1 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded sensor.yr from homeassistant.components.sensor.yr
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded sensor.time_date from homeassistant.components.sensor.time_date
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up sensor
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded google from homeassistant.components.google
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded google.tts from homeassistant.components.google.tts
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.time_date
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.yr
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up logbook
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up light
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up automation
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up media_player
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain media_player took 0.0 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up config
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up panel_iframe
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain panel_iframe took 0.0 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up system_health
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain system_health took 0.0 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up fan
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain fan took 0.0 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up cover
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain cover took 0.0 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up script
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setting up tts
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.components.light] Setting up light.demo
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.device_registry from homeassistant.components.config.device_registry
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.area_registry from homeassistant.components.config.area_registry
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.entity_registry from homeassistant.components.config.entity_registry
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.group from homeassistant.components.config.group
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.hassbian from homeassistant.components.config.hassbian
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.script from homeassistant.components.config.script
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.auth from homeassistant.components.config.auth
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.auth_provider_homeassistant from homeassistant.components.config.auth_provider_homeassistant
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.automation from homeassistant.components.config.automation
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.config_entries from homeassistant.components.config.config_entries
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.core from homeassistant.components.config.core
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.loader] Loaded config.customize from homeassistant.components.config.customize
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.2 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.2 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.2 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.3 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain input_boolean took 0.7 seconds.
2019-03-11 14:59:12 INFO (MainThread) [homeassistant.setup] Setup of domain input_number took 0.7 seconds.
2019-03-11 14:59:13 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 1.3 seconds.
2019-03-11 14:59:13 INFO (MainThread) [homeassistant.setup] Setting up entity_controller
2019-03-11 14:59:13 INFO (MainThread) [custom_components.entity_controller] If you have ANY issues with EntityController (v3.3.1), please enable DEBUG logging under the logger component and kindly report the issue on Github. https://github.com/danobot/entity-controller/issues
2019-03-11 14:59:13 INFO (MainThread) [custom_components.entity_controller] Domain Configuration: OrderedDict([('motion_light', OrderedDict([('sensor', 'input_boolean.sensor1'), ('sensor_type', 'duration'), ('delay', 10), ('entity', 'light.bed_light'), ('entity_on', 'script.bed_light_on'), ('entity_off', 'script.bed_light_off'), ('night_mode', OrderedDict([('delay', 10), ('start_time', '14:50:00'), ('end_time', '07:00:00'), ('entity_on', 'script.bed_light_on_night_mode'), ('entity_off', 'script.bed_light_off_night_mode')]))]))])
2019-03-11 14:59:13 INFO (MainThread) [custom_components.entity_controller] Config Item motion_light: OrderedDict([('sensor', 'input_boolean.sensor1'), ('sensor_type', 'duration'), ('delay', 10), ('entity', 'light.bed_light'), ('entity_on', 'script.bed_light_on'), ('entity_off', 'script.bed_light_off'), ('night_mode', OrderedDict([('delay', 10), ('start_time', '14:50:00'), ('end_time', '07:00:00'), ('entity_on', 'script.bed_light_on_night_mode'), ('entity_off', 'script.bed_light_off_night_mode')]))])
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Initialising EntityController entity with this configuration: OrderedDict([('sensor', 'input_boolean.sensor1'), ('sensor_type', 'duration'), ('delay', 10), ('entity', 'light.bed_light'), ('entity_on', 'script.bed_light_on'), ('entity_off', 'script.bed_light_off'), ('night_mode', OrderedDict([('delay', 10), ('start_time', '14:50:00'), ('end_time', '07:00:00'), ('entity_on', 'script.bed_light_on_night_mode'), ('entity_off', 'script.bed_light_off_night_mode')])), ('name', 'motion_light')])
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Controller name: motion_light
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Control Entities: ['light.bed_light', 'script.bed_light_on']
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Added Control Entities as state entities: ['light.bed_light', 'script.bed_light_on']
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Sensor Entities: ['input_boolean.sensor1']
2019-03-11 14:59:13 INFO (MainThread) [custom_components.entity_controller.motion_light] Off Entities: ['script.bed_light_off']
2019-03-11 14:59:13 INFO (MainThread) [custom_components.entity_controller.motion_light] Service data set up
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] --------------------------------------------------
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] C O N F I G U R A T I O N D U M P
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] --------------------------------------------------
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Entity Controller motion_light
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Sensor Entities ['input_boolean.sensor1']
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Control Entities: ['light.bed_light', 'script.bed_light_on']
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] State Entities: ['light.bed_light', 'script.bed_light_on']
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Off Entities: ['script.bed_light_off']
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Light params: {}
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] ------- Time -------
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Start time: None
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] End time: None
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] DT Now: 2019-03-11 14:59:13.601662+01:00
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] datetime Now: 2019-03-11 14:59:13.610904
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Next Sunrise: 2019-03-12 06:12:16+01:00
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Next Sunset: 2019-03-12 17:50:33+01:00
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] ------- Sun -------
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Sunrise: 2019-03-11 06:12:16+01:00
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Sunset: 2019-03-11 17:50:33+01:00
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Sunset Diff (to now): 2:51:19.381525
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Sunrise Diff(to now): 2:51:19.372045
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] --------------------------------------------------
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Config other
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] NIGHT MODE ENABLED: OrderedDict([('delay', 10), ('start_time', '14:50:00'), ('end_time', '07:00:00'), ('entity_on', 'script.bed_light_on_night_mode'), ('entity_off', 'script.bed_light_off_night_mode')])
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] now_is_between start time 2019-03-11 14:50:00.634867+01:00
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] now_is_between end time 2019-03-12 07:00:00.634867+01:00
2019-03-11 14:59:13 DEBUG (MainThread) [custom_components.entity_controller.motion_light] Using NIGHT MODE parameters: {'delay': 10, 'service_data': None, 'service_data_off': None}
2019-03-11 14:59:13 INFO (MainThread) [custom_components.entity_controller] The entity_controller component is ready!
2019-03-11 14:59:13 INFO (MainThread) [homeassistant.setup] Setup of domain entity_controller took 0.1 seconds.
2019-03-11 14:59:13 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 6.22s
2019-03-11 14:59:13 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2019-03-11 14:59:13 INFO (MainThread) [homeassistant.core] Timer:starting
2019-03-11 14:59:18 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 10.210.1.8 (auth: False)
2019-03-11 14:59:18 INFO (MainThread) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2019-03-11 14:59:18 INFO (MainThread) [homeassistant.loader] Loaded nest from homeassistant.components.nest
2019-03-11 14:59:19 INFO (MainThread) [homeassistant.loader] Loaded simplisafe from homeassistant.components.simplisafe
2019-03-11 14:59:19 INFO (MainThread) [homeassistant.loader] Loaded homematicip_cloud from homeassistant.components.homematicip_cloud
2019-03-11 14:59:19 INFO (MainThread) [homeassistant.loader] Loaded ambient_station from homeassistant.components.ambient_station
2019-03-11 14:59:19 INFO (MainThread) [homeassistant.loader] Loaded gpslogger from homeassistant.components.gpslogger
2019-03-11 14:59:20 INFO (MainThread) [homeassistant.loader] Loaded point from homeassistant.components.point
2019-03-11 14:59:20 INFO (MainThread) [homeassistant.loader] Loaded zone from homeassistant.components.zone
2019-03-11 14:59:20 INFO (MainThread) [homeassistant.loader] Loaded ifttt from homeassistant.components.ifttt
2019-03-11 14:59:20 INFO (MainThread) [homeassistant.loader] Loaded deconz from homeassistant.components.deconz
2019-03-11 14:59:20 INFO (MainThread) [homeassistant.loader] Loaded emulated_roku from homeassistant.components.emulated_roku
2019-03-11 14:59:20 INFO (MainThread) [homeassistant.loader] Loaded locative from homeassistant.components.locative
2019-03-11 14:59:20 INFO (MainThread) [homeassistant.loader] Loaded sonos from homeassistant.components.sonos
2019-03-11 14:59:20 INFO (MainThread) [homeassistant.loader] Loaded upnp from homeassistant.components.upnp
2019-03-11 14:59:21 INFO (MainThread) [homeassistant.loader] Loaded unifi from homeassistant.components.unifi
2019-03-11 14:59:21 INFO (MainThread) [homeassistant.loader] Loaded smartthings from homeassistant.components.smartthings
2019-03-11 14:59:21 INFO (MainThread) [homeassistant.loader] Loaded tellduslive from homeassistant.components.tellduslive
2019-03-11 14:59:21 INFO (MainThread) [homeassistant.loader] Loaded tplink from homeassistant.components.tplink
2019-03-11 14:59:21 INFO (MainThread) [homeassistant.loader] Loaded dialogflow from homeassistant.components.dialogflow
2019-03-11 14:59:21 INFO (MainThread) [homeassistant.loader] Loaded zha from homeassistant.components.zha
2019-03-11 14:59:21 INFO (MainThread) [homeassistant.loader] Loaded hangouts from homeassistant.components.hangouts
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded hue from homeassistant.components.hue
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded zwave from homeassistant.components.zwave
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded rainmachine from homeassistant.components.rainmachine
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded cast from homeassistant.components.cast
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded owntracks from homeassistant.components.owntracks
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded openuv from homeassistant.components.openuv
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded lifx from homeassistant.components.lifx
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded ps4 from homeassistant.components.ps4
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded ios from homeassistant.components.ios
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded mailgun from homeassistant.components.mailgun
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded esphome from homeassistant.components.esphome
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded luftdaten from homeassistant.components.luftdaten
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded ipma from homeassistant.components.ipma
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded tradfri from homeassistant.components.tradfri
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded daikin from homeassistant.components.daikin
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded smhi from homeassistant.components.smhi
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded geofency from homeassistant.components.geofency
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded twilio from homeassistant.components.twilio
2019-03-11 14:59:22 INFO (MainThread) [homeassistant.loader] Loaded toon from homeassistant.components.toon
2019-03-11 14:59:28 DEBUG (SyncWorker_7) [custom_components.entity_controller.motion_light] Sensor state change: on
2019-03-11 14:59:28 DEBUG (SyncWorker_7) [custom_components.entity_controller.motion_light] state: idle
2019-03-11 14:59:28 INFO (SyncWorker_7) [custom_components.entity_controller.motion_light] <state light.bed_light=off; min_mireds=153, max_mireds=500, effect_list=['rainbow', 'none'], friendly_name=Bed Light, supported_features=151 @ 2019-03-11T14:59:12.684831+01:00>
2019-03-11 14:59:28 INFO (SyncWorker_7) [custom_components.entity_controller.motion_light] <state script.bed_light_on=off; last_triggered=None, friendly_name=Bed light on @ 2019-03-11T14:59:12.695259+01:00>
2019-03-11 14:59:28 DEBUG (SyncWorker_7) [custom_components.entity_controller.motion_light] State entities are OFF.
2019-03-11 14:59:28 DEBUG (SyncWorker_7) [custom_components.entity_controller.motion_light] Exiting idle
2019-03-11 14:59:28 INFO (SyncWorker_7) [transitions.core] Exited state idle
2019-03-11 14:59:28 DEBUG (SyncWorker_7) [custom_components.entity_controller.motion_light] NIGHT MODE ENABLED: OrderedDict([('delay', 10), ('start_time', '14:50:00'), ('end_time', '07:00:00'), ('entity_on', 'script.bed_light_on_night_mode'), ('entity_off', 'script.bed_light_off_night_mode')])
2019-03-11 14:59:28 DEBUG (SyncWorker_7) [custom_components.entity_controller.motion_light] now_is_between start time 2019-03-11 14:50:00.402365+01:00
2019-03-11 14:59:28 DEBUG (SyncWorker_7) [custom_components.entity_controller.motion_light] now_is_between end time 2019-03-12 07:00:00.402365+01:00
2019-03-11 14:59:28 DEBUG (SyncWorker_7) [custom_components.entity_controller.motion_light] Using NIGHT MODE parameters: {'delay': 10, 'service_data': None, 'service_data_off': None}
2019-03-11 14:59:28 INFO (SyncWorker_7) [custom_components.entity_controller.motion_light] {'delay': 10, 'service_data': None, 'service_data_off': None}
2019-03-11 14:59:28 DEBUG (SyncWorker_7) [custom_components.entity_controller.motion_light] light params before turning on: {'delay': 10, 'service_data': None, 'service_data_off': None}
2019-03-11 14:59:28 DEBUG (SyncWorker_7) [custom_components.entity_controller.motion_light] Turning on light.bed_light (no parameters passed to service call)
2019-03-11 14:59:28 DEBUG (SyncWorker_7) [custom_components.entity_controller.motion_light] Turning on script.bed_light_on (no parameters passed to service call)
2019-03-11 14:59:28 INFO (MainThread) [homeassistant.helpers.script] Script Bed light on: Running script
2019-03-11 14:59:28 INFO (SyncWorker_7) [transitions.core] Entered state active_timer
2019-03-11 14:59:28 INFO (MainThread) [homeassistant.helpers.script] Script Bed light on: Executing step call service
2019-03-11 14:59:28 INFO (SyncWorker_7) [transitions.core] Entered state active
2019-03-11 14:59:28 INFO (MainThread) [homeassistant.helpers.script] Script Bed light on: Executing step call service
2019-03-11 14:59:28 INFO (SyncWorker_4) [custom_components.entity_controller.motion_light] <state light.bed_light=on; min_mireds=153, max_mireds=500, effect_list=['rainbow', 'none'], brightness=150, color_temp=380, white_value=200, effect=rainbow, friendly_name=Bed Light, supported_features=151 @ 2019-03-11T14:59:28.458902+01:00>
2019-03-11 14:59:28 DEBUG (SyncWorker_4) [custom_components.entity_controller.motion_light] State entities are ON. [light.bed_light]
2019-03-11 14:59:28 INFO (SyncWorker_17) [custom_components.entity_controller.motion_light] <state light.bed_light=on; min_mireds=153, max_mireds=500, effect_list=['rainbow', 'none'], brightness=150, color_temp=380, white_value=200, effect=rainbow, friendly_name=Bed Light, supported_features=151 @ 2019-03-11T14:59:28.458902+01:00>
2019-03-11 14:59:28 DEBUG (SyncWorker_17) [custom_components.entity_controller.motion_light] State entities are ON. [light.bed_light]
2019-03-11 14:59:31 INFO (MainThread) [homeassistant.components.http.view] Serving /api/history/period/2019-03-11T13:57:34.054Z to 10.210.1.8 (auth: True)
2019-03-11 14:59:38 DEBUG (Thread-3) [custom_components.entity_controller.motion_light] Sensor entities are ON. [input_boolean.sensor1]
2019-03-11 15:00:10 DEBUG (SyncWorker_18) [custom_components.entity_controller.motion_light] Sensor state change: off
2019-03-11 15:00:10 DEBUG (SyncWorker_18) [custom_components.entity_controller.motion_light] state: active_timer
2019-03-11 15:00:10 DEBUG (SyncWorker_18) [custom_components.entity_controller.motion_light] is_timer_expired -> True
2019-03-11 15:00:10 INFO (SyncWorker_18) [transitions.core] Exited state active_timer
2019-03-11 15:00:10 DEBUG (SyncWorker_18) [custom_components.entity_controller.motion_light] Turning off entities, cancelling timer
2019-03-11 15:00:10 INFO (SyncWorker_18) [custom_components.entity_controller.motion_light] Turning on special off_entities that were defined, instead of turning off the regular control_entities
2019-03-11 15:00:10 DEBUG (SyncWorker_18) [custom_components.entity_controller.motion_light] Turning on script.bed_light_off
2019-03-11 15:00:10 INFO (MainThread) [homeassistant.helpers.script] Script Bed light off: Running script
2019-03-11 15:00:10 INFO (SyncWorker_18) [transitions.core] Exited state active
2019-03-11 15:00:10 INFO (MainThread) [homeassistant.helpers.script] Script Bed light off: Executing step call service
2019-03-11 15:00:10 DEBUG (SyncWorker_18) [custom_components.entity_controller.motion_light] Entering idle
2019-03-11 15:00:10 DEBUG (SyncWorker_18) [custom_components.entity_controller.motion_light] Resetting state
2019-03-11 15:00:10 INFO (SyncWorker_18) [transitions.core] Entered state idle
2019-03-11 15:00:10 DEBUG (SyncWorker_18) [custom_components.entity_controller.motion_light] CONF_SENSOR_RESETS_TIMER - normal
2019-03-11 15:00:10 INFO (MainThread) [homeassistant.helpers.script] Script Bed light off: Executing step delay 0:00:10
2019-03-11 15:00:13 INFO (MainThread) [homeassistant.components.http.view] Serving /api/history/period/2019-03-11T13:59:31.331Z to 10.210.1.8 (auth: True)
2019-03-11 15:00:21 INFO (MainThread) [homeassistant.helpers.script] Script Bed light off: Executing step call service
It's not possible to define different entities for night mode. Check the docs to see what is supported.
I want to change brightness for 10 seconds before turning off light. But every time i get error Error doing job: Future exception was never retrieved. And entity controller get stuck with active_timer. Scripts work if i run them manually.
Configuration:
Scripts:
ERROR: