-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor mqtt service status #87
Conversation
If we detect somebody we don't want to tell just after that nobody is here. This was the case before, because _initialize wasn't set to False when somebody was detected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go.
'device_id': self._device_id, | ||
} | ||
def _needToPublishNoMotion(self): | ||
if self._initialize is True: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have changed the way status are working so we need to tell the system if nobody is here when the camera is starting up. So basically, if in the first frame we don't detect anybody, we have to publish a message to inform the system.
Goal
The goal of this PR is to uniform the way we send status to devices and services. For now, we only have the camera so it will be implemented for this service, but the goal is to create something modular for every device/service.
Closes
device_id
data.device_id
is now in the topic.WIP