Once installed open a new Python 3 session via the Programming menu. To pair our Energenie units with our Raspberry Pi open the IDLE shell. Energenie's Pi-mote IR board allows you to teach the Raspberry Pi any infra red remote control and then send out the commands to control any IR device. This is. So I bought a set of Energenie remote-controlled mains switches. The Pi-mote control is an add on board that permits control of mHz Missing: tutorials | Must include: tutorials.
|Published:||15 September 2015|
|PDF File Size:||11.34 Mb|
|ePub File Size:||17.82 Mb|
ModMyPi LTD | Energenie Pi-Mote IR Control Board
Unfortunately, the small remote control supplied with the distribution board does not have any mechanism of external control. A little bit of information from the guys at Energenie: Once installed energenie raspberry-pi-tutorials a new Python 3 session via the Programming menu.
Now plug in your Energenie and press the Energenie raspberry-pi-tutorials button for six seconds.
Energenie raspberry-pi-tutorials will pair your Raspberry Pi to the unit and designate it '1' and the process can be repeated for four units. We'll start by importing the libraries for this project: Finally, we turn off the Energenie units to make sure they are ready.
The main code uses a energenie raspberry-pi-tutorials structure to wrap around an infinite loop. This part of the code requires you to place indents accurately for each line, so make sure it looks like the following image. Plug in first socket into a mains socket If the LED is on press the button to turn the socket off Hold down the button for 5 seconds then release when LED starts flashing.
You can only have IDs 1,2,3 and 4 energenie raspberry-pi-tutorials you use the IDs on multiple sockets. This allows you to check that your sockets are activated with the ID you were expecting.
After starting the web interface eg. It should be possible to connect from a Raspberry Pi, PC or mobile phone and click the appropriate button to turn the socket on and off. Energenie raspberry-pi-tutorials do need to register the socket with the controller if not already done using the Energenie demo code.
Multiple sockets Mulitple sockets can be registered against the energenie raspberry-pi-tutorials switch number on the web interface, but that will mean that all sockets registered to that switch number will turn on and off at the same time.
Scheduling energenie raspberry-pi-tutorials Energenie using crontab As well as being able to control the lights from the app it's possible to automatically turn the lights on and off on the Raspberry Pi using crontab.