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

active_stay_on state is not clearing #164

Closed
dexn opened this issue Jul 7, 2020 · 6 comments · Fixed by #175
Closed

active_stay_on state is not clearing #164

dexn opened this issue Jul 7, 2020 · 6 comments · Fixed by #175
Labels
bug Something isn't working question Further information is requested

Comments

@dexn
Copy link

dexn commented Jul 7, 2020

Description

After a day or 2 of working properly, the active_stay_on state doesn't clear and causes it not to activate the next day. I have EC overridden by an input boolean which is turned on and off by an automation at 5am and when the sun angle is at 7.5 degrees.

EC active_stay_on stuck

I have also tried to manually change the state with the services entity_controller.set_stay_off but it didn't do anything.

Configuration

EC Config

friendly_name: "Morning Motion"
sensors:
  - binary_sensor.kitchen_motion_sensor
  - binary_sensor.toilet_motion_sensor
entities:
  - scene.5am_lights
state_entities:
  - light.kitchen_1_light
  - light.kitchen_2_light
stay: true
overrides:
  - input_boolean.motion_morning

Automations

alias: 5AM
trigger:
  platform: time
  at: '05:00'
action:
  - service: input_boolean.turn_on
    data:
      entity_id: input_boolean.motion_kitchen
  - service: input_boolean.turn_off
    data:
      entity_id: input_boolean.motion_morning
alias: Sunrise
trigger:
  platform: numeric_state
  entity_id: sensor.sun_angle
  above: '7.5'
condition:
  condition: time
  after: '03:00'
  before: '09:00'
action:
  - scene: scene.sunrise_lights

Scenes

name: 5AM Lights
entities:
  light.hallway_light:
    state: 'on'
    white_value: 127
  light.kitchen_light:
    state: 'on'
    white_value: 127
  light.living_room_light:
    state: 'on'
    white_value: 127
  light.sunroom_light:
    state: 'on'
    brightness: 255
    rgb_color:
    - 255
    - 218
    - 108
name: Sunrise Lights
entities:
  input_boolean.motion_morning:
    state: 'on'
  input_boolean.motion_night:
    state: 'on'
  input_boolean.motion_kitchen:
    state: 'on'
  light.hallway_light:
    state: 'off'
  light.kitchen_light:
    state: 'off'
  light.toilet_light:
    state: 'off'
  light.laundry_light:
    state: 'off'
  light.sunroom_light:
    state: 'off'
  light.living_room_light:
    state: 'off'

Expected behavior

When the override input boolean turns on, EC should should respond appropriately.

Actual Behaviour

EC seems to get stuck on active_turn_on

Version

v6.0.0

@danobot
Copy link
Owner

danobot commented Jul 9, 2020

  • Can you try a previous version of EC?
  • What is the minimum configuration that reproduces the error? There are a lot of variables and its hard to debug this way.
  • What is the exact behaviour you expect?

@danobot danobot added question Further information is requested bug Something isn't working labels Jul 10, 2020
@danobot
Copy link
Owner

danobot commented Jul 11, 2020

Please leave this comment on the other issue. This issue is for stay mode not clearing.

@xannor
Copy link
Contributor

xannor commented Jul 11, 2020

Didn't realize I was on the wrong issue when commenting, moved it.

@dexn
Copy link
Author

dexn commented Jul 11, 2020

I have tried back to version 5.1.0 and the issue is still there.

@danobot
Copy link
Owner

danobot commented Jul 12, 2020

Can you check the other questions as well please?

danobot added a commit that referenced this issue Sep 1, 2020
Changed this so it will return to idle state when all control entities are turned off manually.
@danobot
Copy link
Owner

danobot commented Sep 1, 2020

Please test the fix on develop branch

@danobot danobot mentioned this issue Sep 1, 2020
5 tasks
danobot added a commit that referenced this issue Oct 23, 2020
Changed this so it will return to idle state when all control entities are turned off manually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants