Skip to main content

Enasis Network Homie Automate

Project description

Enasis Network Homie Automate

This project has not released its first major version.

Define desired scenes for groups using flexible conditional plugins.










Documentation

Read project documentation built using the Sphinx project. Should you venture into the sections below you will be able to use the sphinx recipe to build documention in the sphinx/html directory.

Useful and related links

Installing the package

Installing stable from the PyPi repository

pip install enhomie

Installing latest from GitHub repository

pip install git+https://github.com/enasisnetwork/enhomie

Running the service

There are several command line arguments, see them all here.

python -m enhomie.execution.service --help

Here is an example of running the service from inside the project folder within the Workspace project.

python -m enhomie.execution.service \
  --config ../../Persistent/enhomie-prod.yml \
  --console \
  --debug \
  --respite_update 120 \
  --respite_desire 15 \
  --timeout_stream 120 \
  --idempotent \
  --print_desire \
  --print_aspire

Replace ../../Persistent/enhomie-prod.yml with your configuration file.

Deploying the service

It is possible to deploy the project with the Ansible roles located within the Orchestro project! Below is an example of what you might run from that project to deploy this one. However there is a bit to consider here as this requires some configuration.

make -s \
  stage=prod limit=all \
  ansible_args=" --diff" \
  enhomie-install

Or you may use the Ansible collection directly! GitHub, Galaxy

Quick start for local development

Start by cloning the repository to your local machine.

git clone https://github.com/enasisnetwork/enhomie.git

Set up the Python virtual environments expected by the Makefile.

make -s venv-create

Execute the linters and tests

The comprehensive approach is to use the check recipe. This will stop on any failure that is encountered.

make -s check

However you can run the linters in a non-blocking mode.

make -s linters-pass

And finally run the various tests to validate the code and produce coverage information found in the htmlcov folder in the root of the project.

make -s pytest

Version management

:warning: Ensure that no changes are pending.

  1. Rebuild the environment.

    make -s check-revenv
    
  2. Update the version.txt file.

  3. Push to the main branch.

  4. Create repository release.

  5. Build the Python package.
    Be sure no uncommited files in tree.

    make -s pypackage
    
  6. Upload Python package to PyPi test.

    make -s pypi-upload-test
    
  7. Upload Python package to PyPi prod.

    make -s pypi-upload-prod
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enhomie-0.13.11.tar.gz (101.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enhomie-0.13.11-py3-none-any.whl (225.7 kB view details)

Uploaded Python 3

File details

Details for the file enhomie-0.13.11.tar.gz.

File metadata

  • Download URL: enhomie-0.13.11.tar.gz
  • Upload date:
  • Size: 101.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for enhomie-0.13.11.tar.gz
Algorithm Hash digest
SHA256 785ed883279edd25cd9cd18102f0270d97dd6d80d9a0a60cd6b9f9b728d8e001
MD5 c0f9ec643d851e2648e93bfd6dbe9a65
BLAKE2b-256 dbda306297d5d84665a5f495b11e9c9b10f828bd5e1df61e214cea8a97243228

See more details on using hashes here.

File details

Details for the file enhomie-0.13.11-py3-none-any.whl.

File metadata

  • Download URL: enhomie-0.13.11-py3-none-any.whl
  • Upload date:
  • Size: 225.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for enhomie-0.13.11-py3-none-any.whl
Algorithm Hash digest
SHA256 1d6e092a7b554e48116e6fd8f37a6ecddcccdf1b59ad3ba5f52ea6bc47e72d88
MD5 63803b1b509fbb8595d0937988fce295
BLAKE2b-256 35f706a290d55f0d56011fb8691c47b9eec8a2dca6e4fcaf8bdb6594b7cd4967

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page