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

return idle device state on external push? #677

Open
carjed opened this issue Apr 4, 2022 · 2 comments
Open

return idle device state on external push? #677

carjed opened this issue Apr 4, 2022 · 2 comments

Comments

@carjed
Copy link
Contributor

carjed commented Apr 4, 2022

I'm currently passing data to Node-RED with a generic push target to log Fermentrack data externally, similar to #460 (comment)

For more accurate logging, I'd like to know when my device is switching from idle to another state, but it looks like the following line of code restricts the payload to only return the state when it is not idle:

if device_info['State'] != 0:

Could this restriction be removed?

@thorrak
Copy link
Owner

thorrak commented Apr 4, 2022

Sure.

@carjed
Copy link
Contributor Author

carjed commented Apr 4, 2022

awesome, thank you!

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