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

Turn off switch if sensor can't collect data #142

Closed
BashSer opened this issue Apr 16, 2018 · 5 comments
Closed

Turn off switch if sensor can't collect data #142

BashSer opened this issue Apr 16, 2018 · 5 comments

Comments

@BashSer
Copy link

BashSer commented Apr 16, 2018

screenshot_20180416-141013_samsung internet
~22:30-01:30 one sensor disconnected from vcc and environment schedule(heater) continue work and for 3 hours temp up on 10C degrees. If i did not check this before going sleep this can fired...
Can you add check in cycle update ?
If int(last temp/hum data = none) > 20 then Turn off environment and turn off switches else pass
This can save from flood or fire

@theyosh
Copy link
Owner

theyosh commented Apr 18, 2018

Hi,

I understand your issue. I need to think about this. There are multiple solutions... so let me think about this for a few days

@BashSer
Copy link
Author

BashSer commented Apr 19, 2018

Nice, thank you !

theyosh pushed a commit that referenced this issue Apr 27, 2018
…ystem. This will add an error indicator per environmentpart on the dashboard and an error badge on each graph that has a not working sensor. A sensor is not working when there are no updates for 10 minutes. When there are zero working sensors in the environmentpart, it will we forced to be put to off. #142
@theyosh
Copy link
Owner

theyosh commented Apr 27, 2018

Done, first attempt.

When a sensor is disconnected for more then 10 minutes, it will show an error badge / sign on the dashboard page, and sensor page.

The power will be forced to be off when there are zero sensors working

@BashSer
Copy link
Author

BashSer commented Apr 29, 2018

On work i start rpi2(no any connected sensors) - yes, error sign shows on dashboard page and off switch.

Test scenario:
Connect temperature sensor and switch. Configure environment.
Heat temperature sensor for evironment switch on. After this disconnect temperature sensor and wait.
After time switch in evironment off and on dashbooard page shows error sign. In log and "screen -r" write about this.
After connect temperature sensor and wait. Environment works and switch on again.

Looks all works fine =)

@theyosh
Copy link
Owner

theyosh commented May 2, 2018

Ok, then I close this 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