Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working at all for me #7

Open
glenviewjeff opened this issue Aug 7, 2022 · 0 comments
Open

Not working at all for me #7

glenviewjeff opened this issue Aug 7, 2022 · 0 comments

Comments

@glenviewjeff
Copy link

Here are a few sample entries after I played with various settings. The dim_entities[] is empty on each one. I assume this is a clue to the problem?

2022-08-07 09:35:47.471 DEBUG (MainThread) [homeassistant.components.blueprint.dim_lights_based_on_sun_elevation] DEBUG:
skip_event: False2022-08-07 09:35:47.471 DEBUG (MainThread) [homeassistant.components.blueprint.dim_lights_based_on_sun_elevation] DEBUG:
skip_event: False
allowance_value: 254.0
affected_entities: ['light.scene_capable_plug_in_dimmer']
elevation: 39.93 (-5.5, 5)
last elevation: 39.93
new brightness: 25
last brightness: 25
current_states: [{'entity_id': 'light.scene_capable_plug_in_dimmer', 'state': 'on', 'brightness': 139}]
force_turn_on: False
force_turn_off: False
entities: ['light.scene_capable_plug_in_dimmer']
turn_on_entities: []
dim_entities: []
turn_off_entities: []
Triggered by: None
allowance_value: 254.0
affected_entities: ['light.scene_capable_plug_in_dimmer']
elevation: 39.93 (-5.5, 5)
last elevation: 39.93
new brightness: 25
last brightness: 25
current_states: [{'entity_id': 'light.scene_capable_plug_in_dimmer', 'state': 'on', 'brightness': 139}]
force_turn_on: False
force_turn_off: False
entities: ['light.scene_capable_plug_in_dimmer']
turn_on_entities: []
dim_entities: []
turn_off_entities: []
Triggered by: None
2022-08-07 09:46:03.731 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'entity_id' when rendering '{%- if target_lights.entity_id is string -%}
{{ [target_lights.entity_id] }}
{%- else -%}
{{ target_lights.entity_id }}
{%- endif -%}'
2022-08-07 09:46:03.744 DEBUG (MainThread) [homeassistant.components.blueprint.dim_lights_based_on_sun_elevation] DEBUG:
skip_event: False
allowance_value: 254.0
affected_entities:
elevation: 41.35 (-5.5, 5)
last elevation: 41.35
new brightness: 25
last brightness: 25
current_states: []
force_turn_on: False
force_turn_off: False
entities:
turn_on_entities: []
dim_entities: []
turn_off_entities: []
Triggered by: None
2022-08-07 09:46:09.005 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'entity_id' when rendering '{%- if target_lights.entity_id is string -%}
{{ [target_lights.entity_id] }}
{%- else -%}
{{ target_lights.entity_id }}
{%- endif -%}'
2022-08-07 09:46:09.022 DEBUG (MainThread) [homeassistant.components.blueprint.dim_lights_based_on_sun_elevation] DEBUG:
skip_event: False
allowance_value: 254.0
affected_entities: []
elevation: 41.35 (-5.5, 5)
last elevation: 41.35
new brightness: 25
last brightness: 25
current_states: []
force_turn_on: False
force_turn_off: False
entities:
turn_on_entities: []
dim_entities: []
turn_off_entities: []
Triggered by: event
entity_id: light.dining_room_lamp
service_data_length: 1
complete event data: {'domain': 'light', 'service': 'turn_on', 'service_data': {'entity_id': 'light.dining_room_lamp'}}
2022-08-07 09:46:39.933 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'entity_id' when rendering '{%- if target_lights.entity_id is string -%}
{{ [target_lights.entity_id] }}
{%- else -%}
{{ target_lights.entity_id }}
{%- endif -%}'
2022-08-07 09:46:39.967 DEBUG (MainThread) [homeassistant.components.blueprint.dim_lights_based_on_sun_elevation] DEBUG:
skip_event: False
allowance_value: 254.0
affected_entities:
elevation: 42.06 (-5.5, 5)
last elevation: 41.35
new brightness: 25
last brightness: 25
current_states: []
force_turn_on: False
force_turn_off: False
entities:
turn_on_entities: []
dim_entities: []
turn_off_entities: []
Triggered by: state
from: (elevation: 41.35, azimuth: 106.87)
to: (elevation: 42.06, azimuth: 107.73)
2022-08-07 09:47:56.112 DEBUG (MainThread) [homeassistant.components.blueprint.dim_lights_based_on_sun_elevation] DEBUG:
skip_event: False
allowance_value: 220.98
affected_entities: ['light.scene_capable_plug_in_dimmer']
elevation: 42.06 (-5.5, 5)
last elevation: 42.06
new brightness: 2
last brightness: 2
current_states: [{'entity_id': 'light.scene_capable_plug_in_dimmer', 'state': 'on', 'brightness': 139}]
force_turn_on: False
force_turn_off: False
entities: ['light.scene_capable_plug_in_dimmer']
turn_on_entities: []
dim_entities: []
turn_off_entities: []
Triggered by: None
2022-08-07 09:48:10.889 DEBUG (MainThread) [homeassistant.components.blueprint.dim_lights_based_on_sun_elevation] DEBUG:
skip_event: False
allowance_value: 220.98
affected_entities: ['light.scene_capable_plug_in_dimmer']
elevation: 42.06 (-5.5, 5)
last elevation: 42.06
new brightness: 2
last brightness: 2
current_states: [{'entity_id': 'light.scene_capable_plug_in_dimmer', 'state': 'on', 'brightness': 139}]
force_turn_on: False
force_turn_off: False
entities: ['light.scene_capable_plug_in_dimmer']
turn_on_entities: []
dim_entities: []
turn_off_entities: []
Triggered by: None


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant