-
-
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
Push button (or any other type of button) to activate a switch #204
Comments
hmm, I get the idea. But I am not sure how to implement. There are more ways. But for now, I see already two solution.
2 Use an old mobile with the web interface. But I will see if I can think something out. Features:
So.. it will take some time. And need to figure out a way that work for multiple ways. |
This is also an option: https://energenie4u.co.uk/catalogue/product/ENER010-PI Only not sure if there are with european connectors |
I have been looking at that as well, I can only find the single plug in European plug:( |
how about..... : https://www.conrad.nl/p/kabel-digitus-computer-stroom-apparaat-1x-engelse-stekker-1x-apparaatstekker-female-c13-10a-18-m-zwart-1556217 :) I think that is workable... But I cannot read out the switch: #199 (comment) when you click the remote |
Smart/good find! That would work yes. |
like some challenge.. but I am just wondering that the RF module will take the hole pi. And you cannot add sensors.. So still it is all thinking out of the box... I will not be accountable for wrong purchases :) |
Yes im sort of wondering that too....as well because I use the 1-wire module for all my sensors readings =) I did stumble upon https://flic.io/ |
Hmmm... I see that there is some SDK and Python code for it... https://github.com/50ButtonsEach/fliclib-linux-hci I think there pretty funny. Just a button. Nothing more, nothing less... tempting.... |
Yes there is :) |
I buy this kind of relay board. |
Have added a hardware switch on pin 18 to trigger outlet 1 on the Energenie LAN (already controlled by TerrariumPI) whenever pushed. 4 steps:
|
You can also do this by using requests to the API to manipulate switches. I like this better because all of my devices run on schedules via Terrarium Pi. This means if I want to turn on a switch that’s scheduled to be off in Terrarium Pi, the system just reverts that switch to its scheduled state within a few seconds (unless manual mode is enabled). I created a script that turns manual mode on and then turns on the switch via the api (see #282). I’ve got a separate button that turns manual mode back off for all switches. I Works very well so far. |
Ok, after some long thinking, I came up with an example script. Which can be used in other scripts. This makes it possible to make your own hardware button, and interact with the software. The script is pretty easy to read. It can just toggle the state, or set it to a requested state (on/off). But that will leave it in manual mode. When running with 'on 40' it will stay on for 40 seconds, and then go off. And will also return to normal mode and not in manual mode. So you can over write the system for X amount of seconds. So that will probably as far I can support this. https://github.com/theyosh/TerrariumPI/blob/master/contrib/toggle_switch.py |
Ok, closing this, as the example toggle switch is the way to go. Supporting all kind of buttons is not part of the core system. |
Would it be possible to add some sort of push-type style button or some other button we can connect to the Raspberry Pi?
Either with a timer and/or a push to enable and push to disable?
A couple of my snakes need to be fed at night, so to do this I enable a red-night light in the enclosures and then feed them.
Would be nice if it's possible to do this with a switch I can attach somewhere near the enclosures.
The text was updated successfully, but these errors were encountered: