Skip to main content

Juha's Ultimate Home Automation Masterpiece

Project description

Welcome to Juham™ - Juha's Ultimate Home Automation Masterpiece

Project Description

Beyond its super-cool name, this package provides essential home automation building blocks that address most common needs.

It consists of two main sub-modules:

automation:

This folder contains automation classes that listen to Juham™ MQTT topics and control various home automation tasks.

  • spothintafi: Acquires electricity prices in Finland.
  • watercirculator: Automates a water circulator pump based on hot water temperature and motion detection.
  • heatingoptimizer: Controls hot water radiators based on temperature sensors and electricity price data.
  • energycostcalculator: Monitors power consumption and electricity prices, and computes the energy balance in euros.
  • energybalancer: Handles real-time energy balancing and net billing.

ts:

This folder contains time series recorders that listen for Juham™ topics and store the data in a time series database for later inspection.

  • electricityprice_ts : publishes electricity prices to timeseries database.
  • energybalancer_ts: for monitoring the operation of energy balancer.
  • energycostcalculator_ts: publishes actualized energy prices per hour and per day.
  • forecast_ts: publishes the forecast datat to timeseries database.
  • log_ts: Writes log events to timeseries datbase.
  • powerplan_ts: publishes power plan data to timeseries database, when relays are planned to be switched on/off.
  • powermeter_ts: publishes powermeter data to timeseries database.

Project Status

Current State: Alpha (Status 3)

All classes have been tested to some extent, and no known bugs have been reported. However, the code still requires work in terms of design and robustness.

Project Links

Features

HeatingAutomater listens to the power meter to compute the net energy balance.

.. image:: _static/images/juham_powermeter.png :alt: Powermeter :width: 400px

Powermeter is needed to measure the real-time energy consumption

Energy Revenue is computed based on the electricity price and transmission costs. This is the total cost one has to pay for consuming energy.

.. image:: _static/images/juham_energyrevenue.png :alt: Energy Revenue :width: 400px

Energy revenue per hour and per day

Real-time temperature trends monitored by the Shelly Plus Add-on and DS18B20 sensors

.. image:: _static/images/juham_boilertemperatures.png :alt: Energy Revenue :width: 400px

Temperature time series.

Real-time humidity trends monitored by the Shelly Plus Add-on and DHT22 sensors

.. image:: _static/images/juham_humiditysensors.png :alt: Energy Revenue :width: 400px

Relative humidity time series.

Utilization Optimization Index: The Utilization Optimization Index predicts the optimal hours for energy consumption by factoring in electricity prices, temperature, and forecasts for wind and solar energy. It identifies the best times to activate heating systems. The cheapest hours within the current period may be skipped if the solar forecast predicts free electricity in the next period.period.

.. image:: _static/images/juham_uoi.png :alt: Power Plan :width: 400px

UOI cast for heating the primary and sun pre-heating boilers for two types of solar panels and boilers: electric-based panels and solar thermal panels, which use water circulation. The primary one is electrically heated, while the secondary ‘pre-heating’ boiler is heated by the hot water from the solar thermal panels, or by electricity when there's a positive energy balance.

Power Plan is computed for the next 12 hours based on the electricity price and solar energy forecast. If no solar energy is available, the power plan determines power consumption, e.g., when the hot water radiators are enabled.

.. image:: _static/images/juham_powerplan.png :alt: Power Plan :width: 400px

Powerplan optimizing consumers to use the cheapest hours

Energy Balancer: When the energy balance is positive (e.g., when solar panels produce more energy than is currently being consumed), the energy balancer is activated. It monitors the energy balance in 15-minute (or one-hour) intervals and computes when a consumer with a specific power demand should be activated to consume all the energy produced so far.

.. image:: _static/images/juham_automation_energybalancer.png :alt: Energy Balancer :width: 400px

Energy balancer activating consumers based on the actual real-time net energy

Power Diagnosis: All controlled relays are monitored to ensure their correct operation. This ensures that relays are enabled according to the power plan and energy balancer commands.

.. image:: _static/images/juham_automation_relays.png :alt: Relays :width: 400px

The operation of the relays for diagnosis.

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

juham_automation-0.1.9.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

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

juham_automation-0.1.9-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

Details for the file juham_automation-0.1.9.tar.gz.

File metadata

  • Download URL: juham_automation-0.1.9.tar.gz
  • Upload date:
  • Size: 50.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for juham_automation-0.1.9.tar.gz
Algorithm Hash digest
SHA256 91afba9ae8f1b18ab77829bcd36ae77f21d81d08bc57dc72fb5c54be1d4eb3ed
MD5 386a14919b206cfbd401c3ca6e026469
BLAKE2b-256 348e54a2bf8ec4eba106db7596ff76484205007f44e436292a32419714fbdf0b

See more details on using hashes here.

File details

Details for the file juham_automation-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for juham_automation-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c5e8f79c52b40e41c3ab1ff061bd7e386f885ce9f94624e1554d3ae9ee7396b9
MD5 b385cfedbc6d7b6b862f5502b658ea17
BLAKE2b-256 8a03252af2f85ec70ec5c98670b7f496324433a93dcd44b7c6574bec493b84d7

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