-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Manual Mode for switches (override) #239
Comments
The “remember” switch status while restarting and being able to do a manual override on a switch are things I would also like and use frequently. |
Hi, I have to see what is possible. Not everything is that easy. Also, you are close with #204 .
Keep in mind that I cannot take care about broken hardware. Mostly broken hardware will not work and disable the sensor and the connected switches. So keeping a eye on your hardware and checking the web interface is still manual work. |
But, the remember state will probably only switch back if the restart is within 30 minutes or so. Because when you have the software shutdown for more then 1 hour, it could be that the switch should be switched off because of timer logic. Then you get that the switch goes on during startup where it should be out. Therefore the remember code will only 'remember' for 30 - 60 minutes and not longer |
Thanks for considering this wish! Remembering the state of a switch when TerrariumPI restarts is a different thing which would be nice to have, too. In my opinion this would only be applicable if you manually restart the software from the screen session or if you do a reboot via ssh, not for example if you make a hard reset by cutting the power. From my point of view a time check (like the 30 minutes you mentioned) would be fine as its the 30 seconds downtime when you just have to restart for any reason which should be worked around. At the moment in this case all switches stay on while the software is down and are reset to zero when the software restarts only to be turned on again 15 seconds later. |
…. This will disable environment power actions when enabled. #239
Just made an update where you can put the switch in 'manual mode'. Then you can toggle the power switch as normal. The environment will then give a warning in the logging that the power switch is in manual mode and ignore it. You can find the option on the 'settings' menu (wrench icon). So, do a Could you test this and see if it is workable. |
I have updated and see this manual option. Will test and revert back. Great feature add by the way! |
hey @theyosh |
@AndrejWeber thanks. I am thinking of adding actuators as a new menu option. Where you can add push buttons #204 , but also door sensors and maybe IR motion sensors. Then you should add some kind of action to an actuator like powering light, stopping the sprayer etc... but that is currently on the wish list. But at the moment it is already possible to disable the spray system when the door is open. Only when the sprayer is running, it will not stop when you open the door. This will also be looked at to see if this can be updated so that the sprayer will stop when the door is opened. So this manual mode is the first part that is needed to make the actuators work... |
I can see this being a good feature. |
…nd BIG BUG for total power and water usage calculation... #239
Updated the code so that it will restart with the previous power switch settings. I have not tested it that much, so it could be that it is not working perfectly. As I do not restart that often, and not to stress my animals, I will not do that much testing for this. Happy for some feedback |
@rrgrow I see you scenario. But that will maybe done in a later time. This issue is just about manual actions. |
Hey @theyosh, Now I have finally updated to the current release and I do like the new manual mode! It's definitely working as expected while TerrariumPI is running and the switches keep their current state when the software is restarted from the screen session.
Thanks a lot for the fast implementation! #210 has been updated. ;) |
Ok, I found a small graphing bug regarding this.. but other then that, I think this is the best I can do, and I think this can be closed |
Closing due to no updates and looks working fine.... |
…. This will disable environment power actions when enabled. #239
…nd BIG BUG for total power and water usage calculation... #239
In the last days while setting up I missed a very basic (but maybe not so simple to implement) feature and would like to propose it for a future version:
I think it could be helpful to set a switch to manual operation. This manual mode would override any timer / environment action so you could set the switch to a fixed value (on, off, x percent) for as long as you desire. When you release the manual mode the normal program should take over again.
One example when I would use the feature:
If you reboot the Pi (update, new hardware, maintenance..) while a dimmed light is active the dimmer resets and starts again once TerrariumPI has started again. One could say that maybe the switch should "remember" that it has already faded up but as I'm actively working on the system I would rather just set the light immediately to a desired value.
Other examples:
Do you think this would be useful?
The text was updated successfully, but these errors were encountered: