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

space status not set after boot #2

Open
lx1ge opened this issue Jan 16, 2020 · 1 comment
Open

space status not set after boot #2

lx1ge opened this issue Jan 16, 2020 · 1 comment

Comments

@lx1ge
Copy link
Contributor

lx1ge commented Jan 16, 2020

despite the rule in level2.ruies

rule "Startup"
when
    System started
then
  if (entrance_door_status.state.toString == 'OFF') {
      SpaceStatus = 'open'
  } else { 
      SpaceStatus = 'closed'
  }
end

the space status is set to closed when the rasperry boots, even if the door is actually open

@lx1ge lx1ge changed the title space status after boot not set space status not set after boot Jan 16, 2020
@Gunstick
Copy link
Collaborator

I added some debug log: the state is read as NULL instead of ON or OFF. Probably an initialization timing issue.

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

2 participants