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

Add State machine to sensors #8

Open
2 of 5 tasks
yatharthranjan opened this issue Nov 29, 2019 · 0 comments
Open
2 of 5 tasks

Add State machine to sensors #8

yatharthranjan opened this issue Nov 29, 2019 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@yatharthranjan
Copy link
Member

yatharthranjan commented Nov 29, 2019

Adding a state machine to sensors will help in keeping track of any changes in sensors.
This will also help in reporting these to a status/<sensor-name> in the pub sub system similar to #5 .

State machine libraries for py-

Custom Implementation -

EDIT- A really simple way would be using http://liftoff.github.io/onoff/

EDIT 2 - Nice tutorial using the python-statemachine library -- https://www.askpython.com/python-modules/state-machines-python

Tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: In Progress
Development

No branches or pull requests

2 participants