Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dr-prodigy/hompi
Open-source home automation project for Raspberry Pi
https://github.com/dr-prodigy/hompi
Last synced: 1 day ago
JSON representation
Open-source home automation project for Raspberry Pi
- Host: GitHub
- URL: https://github.com/dr-prodigy/hompi
- Owner: dr-prodigy
- License: gpl-3.0
- Created: 2018-11-16T23:36:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-20T08:41:05.000Z (27 days ago)
- Last Synced: 2024-10-20T15:41:55.392Z (26 days ago)
- Language: Python
- Size: 1.47 MB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.md
Awesome Lists containing this project
README
=====
hompi
=====Open-source home automation project for Raspberry Pi
Description
-----------**hompi** (*'hom-pee'*) is a lightweight Python 2 / 3 software developed
for Raspberry Pi to provide a native reliable home automation engine
to control heating, gates, ambient LED lights, etc...The system is designed to be headless, interfacing all needed
peripherals (thermometre, relays, LED strips, ...) in hw via GPIO.
All information (temperature, time, heating program, weather, aphorisms..)
are made available through an LCD display (Hitachi 16x2 or 20x4 supported)
or can be retrieved via webservices, or integrated in Home Assistant.It is suitable for any RPi version and has a very low CPU consumption
(avg 5-10% on a Pi1), so your Pi can still do lots of things :)Everything is implemented in code and local libs (ie: no cloud services
required to work) and access to peripherals is made via native Pi's GPIO or
LAN/WiFi (= simple, fast, reliable).All functions are exposed and controlled through a secured open web API
developed with Flask (can be accessed on local subnet and/or internet through
public IP), designed to run through web/WSGI server.**hompi** server module is freeware and opensource, and can be controlled with
no limitations using your own client (web, mobile app, HA).Main features
-------------- Support for Home Assistant https://www.home-assistant.io/
- Heating management (manual and automatic customizable modes and programmes, data logging, reports)
- Interface to W1 thermometer sensors (DS18B20)
- LCD dashboard with graphic chars controlled via I2C (HD44780 16x2 or 20x4) displaying all running information
- LED strip support (eg: WS2801) for ambient light, Xmas lights, sequences...
- Support for GPIO relays (boiler control, home gate, home illumination, etc.)
- Integration with various external API (weather, aphorisms, etc.)
- Multiple **hompi** servers can interoperate and share data
- More..Prerequisites
-------------.. __: http://espeak.sourceforge.net/
- Raspberry Pi any version (code works also on any bash-powered sys, such as Linux / MacOS / Win10, ... for testing and development with stubbed I/O (stub libs provided)
- Raspbian Wheezy or greater (or compatible)
- GPIO, SPI, I2C modules (required for accessing peripherals)
- LAN / internet connection (note: after setup, it can even possibly work offline, given that no external control is required)
- Python and relevant tools:
- *virtualenv*
- *pip*
- (Optional) - espeak__ is required to enable internal speech synthesis ..Wiring
------.. __: https://github.com/dr-prodigy/hompi/blob/master/misc/gpio.txt
Please refer to `misc/gpio.txt`__ file for wiring details.
Usage
-----After cloning repository
.. code-block:: bash
$ git clone https://github.com/dr-prodigy/hompi.git
Run
.. code-block:: bash
$ ./scripts/install.sh
or, for Python3:.. code-block:: bash
$ ./scripts/install_py3.sh
Upon completion, copy *config_sample.py* to *config.py*, and modify as needed.
.. code-block:: bash
$ cp config_sample.sh config.py
$ vi config.py(Optional) - To run ambient module ( *MODULE_AMBIENT = True* ) on not GPIO-capable devices
(ie: Linux, MacOS, Win..), you need to stub *spidev.py* library using command.. code-block:: bash
$ ln -s ./stubs/spidev.py .
Start server in debug mode with
.. code-block:: bash
$ ./hompi
or, for automatic daemon operation, schedule
.. code-block:: bash
$ ./scripts/daemonize_hompi.sh
at boot time.
When run interactively from command line (debug mode), **hompi** displays
internal status updates and emulates LCD on screen.When flask debugger is enabled (see code in *hompi.sh*) web API is
available at *http://[Raspberry IP]:5000/hompi/....*In case of WSGI server adoption (recommended for production), please refer to
specific documentation about setup and usage.To Do
------ Web User Interface
- Web API documentation
- Config files documentation
- Wiring and install documentation
- Pictures, demo vids (homesite?)
- Integration with other devices and protocols (433Mhz modules, ZigBee, ...)Contributions
-------------.. _issues: https://github.com/dr-prodigy/hompi/issues
.. __: https://github.com/dr-prodigy/hompi/pullsIssues_ and `Pull Requests`__ are always welcome.
License
-------.. _: https://github.com/dr-prodigy/hompi/blob/master/LICENSE.md
Code and documentation are available according to the GPL v.3.0 License
(see LICENSE_).