pyenergenie | python interface to the Energenie line
kandi X-RAY | pyenergenie Summary
kandi X-RAY | pyenergenie Summary
Energenie devices (both the green button devices, and the newer MiHome range) can be controlled and monitored by this Python library on a Raspberry Pi. With it you can turn sockets on and off, and monitor energy usage. There are two ways to control Energenie devices from a Raspberry Pi. One of their boards maps 4 GPIO's to transmit 4 standard messages. For that board, use this code from Ben Nuttall and Amy Mather: Ben and Amy's code. The second board, the ENER314-RT board, is a full radio that is programmable from the SPI interface of the Raspberry Pi. For that board, please use this code, which now supports all models of Raspberry Pi, and all devices from Energenie (including the old green button devices and the new MiHome monitor devices). The Energenie product line uses the HopeRF radio transciever, and the OpenThings protocol from Sentec. Energenie have built a RaspberryPi add-on board that interfaces to the HopeRF RFM69, and allows both control and monitoring of their products from a Raspberry Pi. Energenie have some (old) sample code written in C to control and monitor their devices, but this package is now considered to be far superior. Energenie have been very kind in supporting this work by loaning devices to help with the testing of this code. This python library uses a 'zero install' strategy, by embedding everything that is needed in once place. In theory, you can just press the DownloadZip button, unzip the code, and run it, and it will work. (None of that sudo apt-get install nonsense!). This code should work with both Python 2 and Python 3. It has been tested with both, but note that ongoing development occurs in Python 3 and the support for Python2 is disappearing gradually.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Switch the device
- Set bulb brightness
- Send a message
- Get a random number from a given list
- Receive data
- Returns the number of bit bits for the given typeid
- Decode the value of the given typeid
- Decrypt payload
- Clean up the GPIO pins
- Watch devices
- The main loop
- Loop through sockets
- Toggle the socket switch
- Handle incoming messages
- Rename the device
- Discover Mihome
- Auto loop
- Setup the tool
- Turn on ON
- Called when an unknown device is confirmed
- Receive messages from the receiver
- Receive data
- Send payload to OpenThings
- Send payload to the device
- Legacy learn function
- Start logging
pyenergenie Key Features
pyenergenie Examples and Code Snippets
Community Discussions
Trending Discussions on Internet of Things (IoT)
QUESTION
I have js files Dashboard and Adverts. I managed to get Dashboard to list the information in one json file (advertisers), but when clicking on an advertiser I want it to navigate to a separate page that will display some data (Say title and text) from the second json file (productadverts). I can't get it to work. Below is the code for the Dashboard and next for Adverts. Then the json files
...ANSWER
Answered 2020-May-17 at 23:55The new object to get params in React Navigation 5 is:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyenergenie
You can use pyenergenie like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page