thorrak/fermentrack

return idle device state on external push?

Opened this issue · 2 comments

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?

Sure.

awesome, thank you!