juham-automation 0.0.12__tar.gz → 0.0.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {juham_automation-0.0.12 → juham_automation-0.0.14}/LICENSE.rst +25 -25
- {juham_automation-0.0.12 → juham_automation-0.0.14}/MANIFEST.in +12 -12
- {juham_automation-0.0.12/juham_automation.egg-info → juham_automation-0.0.14}/PKG-INFO +105 -109
- {juham_automation-0.0.12 → juham_automation-0.0.14}/README.rst +54 -54
- juham_automation-0.0.14/docs/source/CHANGELOG.rst +27 -0
- juham_automation-0.0.14/docs/source/CONTRIBUTING.rst +44 -0
- juham_automation-0.0.14/docs/source/LICENSE.rst +25 -0
- juham_automation-0.0.14/docs/source/README.rst +54 -0
- juham_automation-0.0.14/examples/myapp.log +252 -0
- {juham_automation-0.0.12 → juham_automation-0.0.14}/examples/myapp.py +37 -37
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/__init__.py +38 -38
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/automation/__init__.py +21 -21
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/automation/energycostcalculator.py +266 -266
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/automation/hotwateroptimizer.py +567 -567
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/automation/powermeter_simulator.py +139 -139
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/automation/spothintafi.py +140 -140
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/automation/watercirculator.py +159 -159
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/japp.py +49 -49
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/ts/__init__.py +25 -25
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/ts/electricityprice_ts.py +51 -51
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/ts/energycostcalculator_ts.py +43 -43
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/ts/forecast_ts.py +97 -97
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/ts/log_ts.py +57 -57
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/ts/power_ts.py +49 -49
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/ts/powermeter_ts.py +70 -70
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/ts/powerplan_ts.py +45 -45
- {juham_automation-0.0.12 → juham_automation-0.0.14/juham_automation.egg-info}/PKG-INFO +105 -109
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation.egg-info/SOURCES.txt +20 -1
- juham_automation-0.0.14/juham_automation.egg-info/requires.txt +5 -0
- {juham_automation-0.0.12 → juham_automation-0.0.14}/pyproject.toml +71 -75
- {juham_automation-0.0.12 → juham_automation-0.0.14}/setup.cfg +4 -4
- {juham_automation-0.0.12/tests/ts → juham_automation-0.0.14/tests}/__init__.py +1 -1
- juham_automation-0.0.14/tests/__pycache__/test_japp.cpython-312.pyc +0 -0
- {juham_automation-0.0.12/tests → juham_automation-0.0.14/tests/automation}/__init__.py +1 -1
- juham_automation-0.0.14/tests/automation/__pycache__/__init__.cpython-312.pyc +0 -0
- juham_automation-0.0.14/tests/automation/__pycache__/test_energycostcalculator.cpython-312.pyc +0 -0
- juham_automation-0.0.14/tests/automation/__pycache__/test_hotwateroptimizer.cpython-312.pyc +0 -0
- juham_automation-0.0.14/tests/automation/__pycache__/test_juham.cpython-312.pyc +0 -0
- juham_automation-0.0.14/tests/automation/__pycache__/test_powermeter_simulator.cpython-312.pyc +0 -0
- juham_automation-0.0.14/tests/automation/__pycache__/test_spothintafi.cpython-312.pyc +0 -0
- {juham_automation-0.0.12 → juham_automation-0.0.14}/tests/automation/test_energycostcalculator.py +118 -118
- {juham_automation-0.0.12 → juham_automation-0.0.14}/tests/automation/test_hotwateroptimizer.py +109 -109
- {juham_automation-0.0.12 → juham_automation-0.0.14}/tests/automation/test_juham.py +65 -65
- {juham_automation-0.0.12 → juham_automation-0.0.14}/tests/automation/test_spothintafi.py +67 -67
- {juham_automation-0.0.12 → juham_automation-0.0.14}/tests/test_japp.py +18 -18
- {juham_automation-0.0.12/tests/automation → juham_automation-0.0.14/tests/ts}/__init__.py +1 -1
- juham_automation-0.0.14/tests/ts/__pycache__/__init__.cpython-312.pyc +0 -0
- juham_automation-0.0.14/tests/ts/__pycache__/test_energycostcalculator_ts.cpython-312.pyc +0 -0
- juham_automation-0.0.14/tests/ts/__pycache__/test_forecast_ts.cpython-312.pyc +0 -0
- juham_automation-0.0.14/tests/ts/__pycache__/test_log_ts.cpython-312.pyc +0 -0
- juham_automation-0.0.14/tests/ts/__pycache__/test_power_ts.cpython-312.pyc +0 -0
- juham_automation-0.0.14/tests/ts/__pycache__/test_powermeter_ts.cpython-312.pyc +0 -0
- juham_automation-0.0.14/tests/ts/__pycache__/test_powerplan_ts.cpython-312.pyc +0 -0
- {juham_automation-0.0.12 → juham_automation-0.0.14}/tests/ts/test_energycostcalculator_ts.py +14 -14
- {juham_automation-0.0.12 → juham_automation-0.0.14}/tests/ts/test_forecast_ts.py +14 -14
- {juham_automation-0.0.12 → juham_automation-0.0.14}/tests/ts/test_log_ts.py +14 -14
- {juham_automation-0.0.12 → juham_automation-0.0.14}/tests/ts/test_power_ts.py +14 -14
- {juham_automation-0.0.12 → juham_automation-0.0.14}/tests/ts/test_powermeter_ts.py +14 -14
- {juham_automation-0.0.12 → juham_automation-0.0.14}/tests/ts/test_powerplan_ts.py +14 -14
- juham_automation-0.0.12/juham_automation.egg-info/requires.txt +0 -9
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation/py.typed +0 -0
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation.egg-info/dependency_links.txt +0 -0
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation.egg-info/entry_points.txt +0 -0
- {juham_automation-0.0.12 → juham_automation-0.0.14}/juham_automation.egg-info/top_level.txt +0 -0
@@ -1,25 +1,25 @@
|
|
1
|
-
LICENSE
|
2
|
-
=======
|
3
|
-
|
4
|
-
Copyright (c) 2024, Juha Meskanen
|
5
|
-
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
-
a copy of this software and associated documentation files (the
|
8
|
-
"Software"), to deal in the Software without restriction, including
|
9
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
-
permit persons to whom the Software is furnished to do so, subject to
|
12
|
-
the following conditions:
|
13
|
-
|
14
|
-
**The above copyright notice and this permission notice shall be included in all
|
15
|
-
copies or substantial portions of the Software.**
|
16
|
-
|
17
|
-
|
18
|
-
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
21
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
22
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
23
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
24
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **
|
25
|
-
|
1
|
+
LICENSE
|
2
|
+
=======
|
3
|
+
|
4
|
+
Copyright (c) 2024, Juha Meskanen
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
+
a copy of this software and associated documentation files (the
|
8
|
+
"Software"), to deal in the Software without restriction, including
|
9
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
+
permit persons to whom the Software is furnished to do so, subject to
|
12
|
+
the following conditions:
|
13
|
+
|
14
|
+
**The above copyright notice and this permission notice shall be included in all
|
15
|
+
copies or substantial portions of the Software.**
|
16
|
+
|
17
|
+
|
18
|
+
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
21
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
22
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
23
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
24
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **
|
25
|
+
|
@@ -1,12 +1,12 @@
|
|
1
|
-
include docs/source/README.rst
|
2
|
-
include docs/source/CHANGELOG.rst
|
3
|
-
include docs/source/LICENSE.rst
|
4
|
-
include docs/source/CONTRIBUTING.rst
|
5
|
-
|
6
|
-
recursive-include examples *
|
7
|
-
recursive-include tests *
|
8
|
-
recursive-include docs/build/html *
|
9
|
-
|
10
|
-
# files to be excluded
|
11
|
-
global-exclude *~ \#*
|
12
|
-
config/*
|
1
|
+
include docs/source/README.rst
|
2
|
+
include docs/source/CHANGELOG.rst
|
3
|
+
include docs/source/LICENSE.rst
|
4
|
+
include docs/source/CONTRIBUTING.rst
|
5
|
+
|
6
|
+
recursive-include examples *
|
7
|
+
recursive-include tests *
|
8
|
+
recursive-include docs/build/html *
|
9
|
+
|
10
|
+
# files to be excluded
|
11
|
+
global-exclude *~ \#*
|
12
|
+
config/*
|
@@ -1,109 +1,105 @@
|
|
1
|
-
Metadata-Version: 2.2
|
2
|
-
Name: juham-automation
|
3
|
-
Version: 0.0.
|
4
|
-
Summary: Juha's Ultimate Home Automation Masterpiece
|
5
|
-
Author-email: J Meskanen <juham.api@gmail.com>
|
6
|
-
Maintainer-email: "J. Meskanen" <juham.api@gmail.com>
|
7
|
-
License: LICENSE
|
8
|
-
=======
|
9
|
-
|
10
|
-
Copyright (c) 2024, Juha Meskanen
|
11
|
-
|
12
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
13
|
-
a copy of this software and associated documentation files (the
|
14
|
-
"Software"), to deal in the Software without restriction, including
|
15
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
16
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
17
|
-
permit persons to whom the Software is furnished to do so, subject to
|
18
|
-
the following conditions:
|
19
|
-
|
20
|
-
**The above copyright notice and this permission notice shall be included in all
|
21
|
-
copies or substantial portions of the Software.**
|
22
|
-
|
23
|
-
|
24
|
-
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
25
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
26
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
27
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
28
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
29
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
30
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **
|
31
|
-
|
32
|
-
|
33
|
-
Project-URL: Homepage, https://gitlab.com/juham/juham/juham-automation.git
|
34
|
-
Project-URL: Bug Reports, https://gitlab.com/juham/juham/juham-automation.git
|
35
|
-
Project-URL: Funding, https://meskanen.com
|
36
|
-
Project-URL: Say Thanks!, http://meskanen.com
|
37
|
-
Project-URL: Source, https://gitlab.com/juham/juham/juham-automation.git
|
38
|
-
Keywords: home,automation,juham
|
39
|
-
Classifier: Development Status :: 2 - Pre-Alpha
|
40
|
-
Classifier: Intended Audience :: Developers
|
41
|
-
Classifier: Topic :: Software Development
|
42
|
-
Classifier: License :: Public Domain
|
43
|
-
Classifier: Programming Language :: Python :: 3.8
|
44
|
-
Requires-Python: >=3.8
|
45
|
-
Description-Content-Type: text/markdown
|
46
|
-
License-File: LICENSE.rst
|
47
|
-
Requires-Dist:
|
48
|
-
|
49
|
-
Requires-Dist:
|
50
|
-
Requires-Dist:
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
Because of these two gentlemen, my already minimal spare time dropped into the negatives as I desperately tried to push the
|
107
|
-
system to some semblance of professionalism.
|
108
|
-
|
109
|
-
I’m truly grateful to both—really. 😅
|
1
|
+
Metadata-Version: 2.2
|
2
|
+
Name: juham-automation
|
3
|
+
Version: 0.0.14
|
4
|
+
Summary: Juha's Ultimate Home Automation Masterpiece
|
5
|
+
Author-email: J Meskanen <juham.api@gmail.com>
|
6
|
+
Maintainer-email: "J. Meskanen" <juham.api@gmail.com>
|
7
|
+
License: LICENSE
|
8
|
+
=======
|
9
|
+
|
10
|
+
Copyright (c) 2024, Juha Meskanen
|
11
|
+
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
13
|
+
a copy of this software and associated documentation files (the
|
14
|
+
"Software"), to deal in the Software without restriction, including
|
15
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
16
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
17
|
+
permit persons to whom the Software is furnished to do so, subject to
|
18
|
+
the following conditions:
|
19
|
+
|
20
|
+
**The above copyright notice and this permission notice shall be included in all
|
21
|
+
copies or substantial portions of the Software.**
|
22
|
+
|
23
|
+
|
24
|
+
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
25
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
26
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
27
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
28
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
29
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
30
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **
|
31
|
+
|
32
|
+
|
33
|
+
Project-URL: Homepage, https://gitlab.com/juham/juham/juham-automation.git
|
34
|
+
Project-URL: Bug Reports, https://gitlab.com/juham/juham/juham-automation.git
|
35
|
+
Project-URL: Funding, https://meskanen.com
|
36
|
+
Project-URL: Say Thanks!, http://meskanen.com
|
37
|
+
Project-URL: Source, https://gitlab.com/juham/juham/juham-automation.git
|
38
|
+
Keywords: home,automation,juham
|
39
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
40
|
+
Classifier: Intended Audience :: Developers
|
41
|
+
Classifier: Topic :: Software Development
|
42
|
+
Classifier: License :: Public Domain
|
43
|
+
Classifier: Programming Language :: Python :: 3.8
|
44
|
+
Requires-Python: >=3.8
|
45
|
+
Description-Content-Type: text/markdown
|
46
|
+
License-File: LICENSE.rst
|
47
|
+
Requires-Dist: juham_core>=0.1.3
|
48
|
+
Provides-Extra: dev
|
49
|
+
Requires-Dist: check-manifest; extra == "dev"
|
50
|
+
Requires-Dist: types-pyz; extra == "dev"
|
51
|
+
|
52
|
+
Welcome to Juham™ - Juha's Ultimate Home Automation Masterpiece
|
53
|
+
================================================================
|
54
|
+
|
55
|
+
Project Description
|
56
|
+
-------------------
|
57
|
+
|
58
|
+
This package extends the ``juham_core`` package, providing home automation building blocks that cover most common needs.
|
59
|
+
It consists of two main sub-modules:
|
60
|
+
|
61
|
+
.. image:: _static/images/juham_automation.png
|
62
|
+
:alt: Basic automation classes for optimizing energy consumption and minimizing electricity costs.
|
63
|
+
:width: 640px
|
64
|
+
:align: center
|
65
|
+
|
66
|
+
|
67
|
+
- ``automation``
|
68
|
+
|
69
|
+
* **spothintafi**: Acquires electricity prices in Finland.
|
70
|
+
* **watercirculator**: Automates a water circulator pump based on hot water temperature and motion detection.
|
71
|
+
* **hotwateroptimizer**: Controls hot water radiators based on temperature sensors and electricity price data.
|
72
|
+
* **energycostcalculator**: Monitors power consumption and electricity prices, and computes the energy balance in euros.
|
73
|
+
|
74
|
+
|
75
|
+
- ``ts``
|
76
|
+
|
77
|
+
* This folder contains time series recorders that listen for Juham™ topics and store the data in a time series database
|
78
|
+
for later inspection.
|
79
|
+
|
80
|
+
|
81
|
+
Project Status
|
82
|
+
--------------
|
83
|
+
|
84
|
+
**Current State**: **Pre-Alpha (Status 2)**
|
85
|
+
|
86
|
+
All classes have been tested to some extent, and no known bugs have been reported. However, the code still requires work in
|
87
|
+
terms of design and robustness. For instance, electricity prices are currently hard-coded to use euros, but this should be
|
88
|
+
configurable to support multiple currencies.
|
89
|
+
|
90
|
+
|
91
|
+
Special Thanks
|
92
|
+
--------------
|
93
|
+
|
94
|
+
This project would not have been possible without the generous support of two exceptional individuals: Teppo K. and Mahi.
|
95
|
+
|
96
|
+
Teppo K. provided the initial spark for this project by donating a Raspberry Pi, a temperature sensor, and giving an inspiring
|
97
|
+
demonstration of his own home automation system—effectively dragging me down the rabbit hole of endless tinkering.
|
98
|
+
|
99
|
+
Mahi has been instrumental in translating my half-baked ideas into Python code, offering invaluable support and
|
100
|
+
encouragement—while also ensuring that every time I thought I was done, I wasn’t.
|
101
|
+
|
102
|
+
Because of these two gentlemen, my already minimal spare time dropped into the negatives as I desperately tried to push the
|
103
|
+
system to some semblance of professionalism.
|
104
|
+
|
105
|
+
I’m truly grateful to both—really. 😅
|
@@ -1,54 +1,54 @@
|
|
1
|
-
Welcome to Juham™ - Juha's Ultimate Home Automation Masterpiece
|
2
|
-
================================================================
|
3
|
-
|
4
|
-
Project Description
|
5
|
-
-------------------
|
6
|
-
|
7
|
-
This package extends the ``juham_core`` package, providing home automation building blocks that cover most common needs.
|
8
|
-
It consists of two main sub-modules:
|
9
|
-
|
10
|
-
.. image:: _static/images/juham_automation.png
|
11
|
-
:alt: Basic automation classes for optimizing energy consumption and minimizing electricity costs.
|
12
|
-
:width: 640px
|
13
|
-
:align: center
|
14
|
-
|
15
|
-
|
16
|
-
- ``automation``
|
17
|
-
|
18
|
-
* **spothintafi**: Acquires electricity prices in Finland.
|
19
|
-
* **watercirculator**: Automates a water circulator pump based on hot water temperature and motion detection.
|
20
|
-
* **hotwateroptimizer**: Controls hot water radiators based on temperature sensors and electricity price data.
|
21
|
-
* **energycostcalculator**: Monitors power consumption and electricity prices, and computes the energy balance in euros.
|
22
|
-
|
23
|
-
|
24
|
-
- ``ts``
|
25
|
-
|
26
|
-
* This folder contains time series recorders that listen for Juham™ topics and store the data in a time series database
|
27
|
-
for later inspection.
|
28
|
-
|
29
|
-
|
30
|
-
Project Status
|
31
|
-
--------------
|
32
|
-
|
33
|
-
**Current State**: **Pre-Alpha (Status 2)**
|
34
|
-
|
35
|
-
All classes have been tested to some extent, and no known bugs have been reported. However, the code still requires work in
|
36
|
-
terms of design and robustness. For instance, electricity prices are currently hard-coded to use euros, but this should be
|
37
|
-
configurable to support multiple currencies.
|
38
|
-
|
39
|
-
|
40
|
-
Special Thanks
|
41
|
-
--------------
|
42
|
-
|
43
|
-
This project would not have been possible without the generous support of two exceptional individuals: Teppo K. and Mahi.
|
44
|
-
|
45
|
-
Teppo K. provided the initial spark for this project by donating a Raspberry Pi, a temperature sensor, and giving an inspiring
|
46
|
-
demonstration of his own home automation system—effectively dragging me down the rabbit hole of endless tinkering.
|
47
|
-
|
48
|
-
Mahi has been instrumental in translating my half-baked ideas into Python code, offering invaluable support and
|
49
|
-
encouragement—while also ensuring that every time I thought I was done, I wasn’t.
|
50
|
-
|
51
|
-
Because of these two gentlemen, my already minimal spare time dropped into the negatives as I desperately tried to push the
|
52
|
-
system to some semblance of professionalism.
|
53
|
-
|
54
|
-
I’m truly grateful to both—really. 😅
|
1
|
+
Welcome to Juham™ - Juha's Ultimate Home Automation Masterpiece
|
2
|
+
================================================================
|
3
|
+
|
4
|
+
Project Description
|
5
|
+
-------------------
|
6
|
+
|
7
|
+
This package extends the ``juham_core`` package, providing home automation building blocks that cover most common needs.
|
8
|
+
It consists of two main sub-modules:
|
9
|
+
|
10
|
+
.. image:: _static/images/juham_automation.png
|
11
|
+
:alt: Basic automation classes for optimizing energy consumption and minimizing electricity costs.
|
12
|
+
:width: 640px
|
13
|
+
:align: center
|
14
|
+
|
15
|
+
|
16
|
+
- ``automation``
|
17
|
+
|
18
|
+
* **spothintafi**: Acquires electricity prices in Finland.
|
19
|
+
* **watercirculator**: Automates a water circulator pump based on hot water temperature and motion detection.
|
20
|
+
* **hotwateroptimizer**: Controls hot water radiators based on temperature sensors and electricity price data.
|
21
|
+
* **energycostcalculator**: Monitors power consumption and electricity prices, and computes the energy balance in euros.
|
22
|
+
|
23
|
+
|
24
|
+
- ``ts``
|
25
|
+
|
26
|
+
* This folder contains time series recorders that listen for Juham™ topics and store the data in a time series database
|
27
|
+
for later inspection.
|
28
|
+
|
29
|
+
|
30
|
+
Project Status
|
31
|
+
--------------
|
32
|
+
|
33
|
+
**Current State**: **Pre-Alpha (Status 2)**
|
34
|
+
|
35
|
+
All classes have been tested to some extent, and no known bugs have been reported. However, the code still requires work in
|
36
|
+
terms of design and robustness. For instance, electricity prices are currently hard-coded to use euros, but this should be
|
37
|
+
configurable to support multiple currencies.
|
38
|
+
|
39
|
+
|
40
|
+
Special Thanks
|
41
|
+
--------------
|
42
|
+
|
43
|
+
This project would not have been possible without the generous support of two exceptional individuals: Teppo K. and Mahi.
|
44
|
+
|
45
|
+
Teppo K. provided the initial spark for this project by donating a Raspberry Pi, a temperature sensor, and giving an inspiring
|
46
|
+
demonstration of his own home automation system—effectively dragging me down the rabbit hole of endless tinkering.
|
47
|
+
|
48
|
+
Mahi has been instrumental in translating my half-baked ideas into Python code, offering invaluable support and
|
49
|
+
encouragement—while also ensuring that every time I thought I was done, I wasn’t.
|
50
|
+
|
51
|
+
Because of these two gentlemen, my already minimal spare time dropped into the negatives as I desperately tried to push the
|
52
|
+
system to some semblance of professionalism.
|
53
|
+
|
54
|
+
I’m truly grateful to both—really. 😅
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Changelog
|
2
|
+
=========
|
3
|
+
|
4
|
+
[0.1.11] - March 03, 2025
|
5
|
+
-------------------------
|
6
|
+
|
7
|
+
* Updated for the new modularized ci-templates and docs
|
8
|
+
* New unit tests written, for better coverage. Not nearly there yet.
|
9
|
+
|
10
|
+
|
11
|
+
[0.1.8-10] - February 23, 2025
|
12
|
+
------------------------------
|
13
|
+
|
14
|
+
* Support for grid (network) prices and tax added.
|
15
|
+
|
16
|
+
* Bug fix in the computation of the utilization optimization index: solar power was previously
|
17
|
+
given in kW, while radiator power was in W, which underestimated the effect of available solar power.
|
18
|
+
|
19
|
+
* New attribute added to time series: GridCost (cost and tax per kWh)
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
[0.1.7] - February 08, 2025
|
24
|
+
---------------------------
|
25
|
+
|
26
|
+
Initial release for GitLab. Pre-alpha!
|
27
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
Contributing to Juham™ - Juha's Ultimate Home Automation Masterpiece
|
2
|
+
====================================================================
|
3
|
+
|
4
|
+
Thank You!
|
5
|
+
----------
|
6
|
+
|
7
|
+
Thank you in advance for your forthcoming contributions, whether they are bug fixes,
|
8
|
+
documentation improvements, entirely new features, or simply feedback. Your efforts
|
9
|
+
will be highly appreciated and will help turn this project from its current mission
|
10
|
+
state into an actual masterpiece.
|
11
|
+
|
12
|
+
|
13
|
+
Design Patterns
|
14
|
+
---------------
|
15
|
+
|
16
|
+
Please read the developer documentation and understand the few design patterns behind Juham™ before contributing.
|
17
|
+
This will help ensure that your contributions align with the project's design and goals.
|
18
|
+
.. todo:: (okay, the documentation is currently lacking many essential chapters, add.)
|
19
|
+
|
20
|
+
|
21
|
+
Code Formatting
|
22
|
+
---------------
|
23
|
+
|
24
|
+
To help maintain consistent code formatting across different developers, we use 'black' python formatter, by Microsoft.
|
25
|
+
|
26
|
+
Strange, the formatter doesn't seem to format that much, it doesn't organize imports,
|
27
|
+
doesn't adjust docstring lenghts
|
28
|
+
.. todo:: most likely I don't know how to use it properly, read the docs.
|
29
|
+
|
30
|
+
|
31
|
+
Using Emacs and Makefile
|
32
|
+
------------------------
|
33
|
+
|
34
|
+
Despite my attempts to fall in love with Eclipse, VSCode and other IDEs, I still find Emacs and Makefile the best
|
35
|
+
tools for many workflows.
|
36
|
+
So there is a Makefile in the root folder. For those old dogs who are like me
|
37
|
+
::
|
38
|
+
|
39
|
+
make help
|
40
|
+
|
41
|
+
More Stuff
|
42
|
+
----------
|
43
|
+
.. todo:: TBA
|
44
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
LICENSE
|
2
|
+
=======
|
3
|
+
|
4
|
+
Copyright (c) 2024, Juha Meskanen
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
+
a copy of this software and associated documentation files (the
|
8
|
+
"Software"), to deal in the Software without restriction, including
|
9
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
+
permit persons to whom the Software is furnished to do so, subject to
|
12
|
+
the following conditions:
|
13
|
+
|
14
|
+
**The above copyright notice and this permission notice shall be included in all
|
15
|
+
copies or substantial portions of the Software.**
|
16
|
+
|
17
|
+
|
18
|
+
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
21
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
22
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
23
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
24
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **
|
25
|
+
|
@@ -0,0 +1,54 @@
|
|
1
|
+
Welcome to Juham™ - Juha's Ultimate Home Automation Masterpiece
|
2
|
+
================================================================
|
3
|
+
|
4
|
+
Project Description
|
5
|
+
-------------------
|
6
|
+
|
7
|
+
This package extends the ``juham_core`` package, providing home automation building blocks that cover most common needs.
|
8
|
+
It consists of two main sub-modules:
|
9
|
+
|
10
|
+
.. image:: _static/images/juham_automation.png
|
11
|
+
:alt: Basic automation classes for optimizing energy consumption and minimizing electricity costs.
|
12
|
+
:width: 640px
|
13
|
+
:align: center
|
14
|
+
|
15
|
+
|
16
|
+
- ``automation``
|
17
|
+
|
18
|
+
* **spothintafi**: Acquires electricity prices in Finland.
|
19
|
+
* **watercirculator**: Automates a water circulator pump based on hot water temperature and motion detection.
|
20
|
+
* **hotwateroptimizer**: Controls hot water radiators based on temperature sensors and electricity price data.
|
21
|
+
* **energycostcalculator**: Monitors power consumption and electricity prices, and computes the energy balance in euros.
|
22
|
+
|
23
|
+
|
24
|
+
- ``ts``
|
25
|
+
|
26
|
+
* This folder contains time series recorders that listen for Juham™ topics and store the data in a time series database
|
27
|
+
for later inspection.
|
28
|
+
|
29
|
+
|
30
|
+
Project Status
|
31
|
+
--------------
|
32
|
+
|
33
|
+
**Current State**: **Pre-Alpha (Status 2)**
|
34
|
+
|
35
|
+
All classes have been tested to some extent, and no known bugs have been reported. However, the code still requires work in
|
36
|
+
terms of design and robustness. For instance, electricity prices are currently hard-coded to use euros, but this should be
|
37
|
+
configurable to support multiple currencies.
|
38
|
+
|
39
|
+
|
40
|
+
Special Thanks
|
41
|
+
--------------
|
42
|
+
|
43
|
+
This project would not have been possible without the generous support of two exceptional individuals: Teppo K. and Mahi.
|
44
|
+
|
45
|
+
Teppo K. provided the initial spark for this project by donating a Raspberry Pi, a temperature sensor, and giving an inspiring
|
46
|
+
demonstration of his own home automation system—effectively dragging me down the rabbit hole of endless tinkering.
|
47
|
+
|
48
|
+
Mahi has been instrumental in translating my half-baked ideas into Python code, offering invaluable support and
|
49
|
+
encouragement—while also ensuring that every time I thought I was done, I wasn’t.
|
50
|
+
|
51
|
+
Because of these two gentlemen, my already minimal spare time dropped into the negatives as I desperately tried to push the
|
52
|
+
system to some semblance of professionalism.
|
53
|
+
|
54
|
+
I’m truly grateful to both—really. 😅
|