smartboiler


Namesmartboiler JSON
Version 1.1.0.1 PyPI version JSON
download
home_pagehttps://github.com/grinwi/smartboiler
SummarySmart boiling of household
upload_time2024-05-14 18:28:15
maintainerNone
docs_urlNone
authorAdam GRUNWALD
requires_python<=3.10,>=3.9
licenseNone
keywords energy management optimization hass
VCS
bugtrack_url
requirements wheel numpy h5py pandas scipy pvlib protobuf pytz requests beautifulsoup4 pulp pyyaml Mako tables skforecast keras tensorflow influxdb geopy haversine
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # SMARTBOILER
This is a README for the smartboiler library, used in a Home Assistant Add-On to decrease energy usage for heating water in a boiler. This is achieved by learning household consumption trends and heating water above the emergency temperature just before predicted consumption.

Recursive link to the GitHub repository: <https://github.com/grinwi/smartboiler>.

## What's it all about?
This project was undertaken as a master's thesis at FIT VUT Brno. 
The goal was to find a solution for cutting costs by predicting household inhabitants' behavior with machine learning. Machine learning was utilized to train an LSTM network on historical data from a smart home. 
Based on the prediction of heat consumption from the water boiler, the algorithm included in class ```Control``` achieves a reduction in the average temperature of the water in the boiler, lowering energy losses, and the energy needed to deliver heat into the boiler.
The method ```control()``` from this class is called in infinite loop of the ```main``` section in ```controller.py``` script.
This is achieved also in cooperation with classes ```DataHandler``` which provides data for training model and retrieving actual stats, class ```Forecast``` for training LSTM model for prediction and getting the prediction for the next 6 hours, class ```EventChecker``` which is in charge of getting events from Google Calendar, class ```Photovoltaics``` for communicating with Solax Cloud API and getting information for function to optimize the usage of the additional power generated by the powerplant.

This solution assumes that the user has a boiler whose heating can be controlled by a Shelly smart plug <https://www.shelly.com/en/products/shop/shelly-plus-1-pm>.
Another requirement is a Home Assistant running in the required household with an InfluxDB database, which stores household data as well as weather information, the presence of devices via NMAP <https://www.home-assistant.io/integrations/nmap_tracker/> integration, and a flow meter with a temperature sensor placed on the output of the boiler. Another temperature sensor must be placed inside the boiler casing to control the heating based on the water temperature in the boiler.
The data from the smart home must be collected into a time series database InfluxDB, for which can be used the Home Assitant Add-On <https://www.home-assistant.io/integrations/influxdb/>.


Users can also utilize their Google Calendar to turn off the heating, for example, when they are on holiday. Another function using the calendar is heating to a needed temperature when unusually high consumption is expected.
This can be achieved by copying Google calendar API token as token.json to /app folder of the Add-On retrieved by this manual: <https://developers.google.com/calendar/api/guides/overview>

The Home Assistant Add-On repository can be found at this address: <https://github.com/grinwi/smartboiler-add-on>.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/grinwi/smartboiler",
    "name": "smartboiler",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<=3.10,>=3.9",
    "maintainer_email": null,
    "keywords": "energy, management, optimization, hass",
    "author": "Adam GRUNWALD",
    "author_email": "grunwald.adam24@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d4/0b/97a8dd6f794e9ce10203339abab2f47abb1bd7ccff499f14cba24ae6d161/smartboiler-1.1.0.1.tar.gz",
    "platform": null,
    "description": "# SMARTBOILER\nThis is a README for the smartboiler library, used in a Home Assistant Add-On to decrease energy usage for heating water in a boiler. This is achieved by learning household consumption trends and heating water above the emergency temperature just before predicted consumption.\n\nRecursive link to the GitHub repository: <https://github.com/grinwi/smartboiler>.\n\n## What's it all about?\nThis project was undertaken as a master's thesis at FIT VUT Brno. \nThe goal was to find a solution for cutting costs by predicting household inhabitants' behavior with machine learning. Machine learning was utilized to train an LSTM network on historical data from a smart home. \nBased on the prediction of heat consumption from the water boiler, the algorithm included in class ```Control``` achieves a reduction in the average temperature of the water in the boiler, lowering energy losses, and the energy needed to deliver heat into the boiler.\nThe method ```control()``` from this class is called in infinite loop of the ```main``` section in ```controller.py``` script.\nThis is achieved also in cooperation with classes ```DataHandler``` which provides data for training model and retrieving actual stats, class ```Forecast``` for training LSTM model for prediction and getting the prediction for the next 6 hours, class ```EventChecker``` which is in charge of getting events from Google Calendar, class ```Photovoltaics``` for communicating with Solax Cloud API and getting information for function to optimize the usage of the additional power generated by the powerplant.\n\nThis solution assumes that the user has a boiler whose heating can be controlled by a Shelly smart plug <https://www.shelly.com/en/products/shop/shelly-plus-1-pm>.\nAnother requirement is a Home Assistant running in the required household with an InfluxDB database, which stores household data as well as weather information, the presence of devices via NMAP <https://www.home-assistant.io/integrations/nmap_tracker/> integration, and a flow meter with a temperature sensor placed on the output of the boiler. Another temperature sensor must be placed inside the boiler casing to control the heating based on the water temperature in the boiler.\nThe data from the smart home must be collected into a time series database InfluxDB, for which can be used the Home Assitant Add-On <https://www.home-assistant.io/integrations/influxdb/>.\n\n\nUsers can also utilize their Google Calendar to turn off the heating, for example, when they are on holiday. Another function using the calendar is heating to a needed temperature when unusually high consumption is expected.\nThis can be achieved by copying Google calendar API token as token.json to /app folder of the Add-On retrieved by this manual: <https://developers.google.com/calendar/api/guides/overview>\n\nThe Home Assistant Add-On repository can be found at this address: <https://github.com/grinwi/smartboiler-add-on>.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Smart boiling of household",
    "version": "1.1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/grinwi/smartboiler"
    },
    "split_keywords": [
        "energy",
        " management",
        " optimization",
        " hass"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "36a435dd3d7598a4cf200517857815b8174db7181b04e7a82743472499ae9302",
                "md5": "935ad82db4645de55f64b49da7e4e928",
                "sha256": "ae6b831bd9d13a8eb8339ded19648b1f2dbfbe20c38a3b706ff5ecfd06d1504e"
            },
            "downloads": -1,
            "filename": "smartboiler-1.1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "935ad82db4645de55f64b49da7e4e928",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<=3.10,>=3.9",
            "size": 24894,
            "upload_time": "2024-05-14T18:28:12",
            "upload_time_iso_8601": "2024-05-14T18:28:12.148538Z",
            "url": "https://files.pythonhosted.org/packages/36/a4/35dd3d7598a4cf200517857815b8174db7181b04e7a82743472499ae9302/smartboiler-1.1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d40b97a8dd6f794e9ce10203339abab2f47abb1bd7ccff499f14cba24ae6d161",
                "md5": "ee114be15abefbf13e92ddebe7ded507",
                "sha256": "7b050fc27fb685ff809a0a0d7da4f3c1202837b545c8485e2601a57f014a446b"
            },
            "downloads": -1,
            "filename": "smartboiler-1.1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ee114be15abefbf13e92ddebe7ded507",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<=3.10,>=3.9",
            "size": 22697,
            "upload_time": "2024-05-14T18:28:15",
            "upload_time_iso_8601": "2024-05-14T18:28:15.465760Z",
            "url": "https://files.pythonhosted.org/packages/d4/0b/97a8dd6f794e9ce10203339abab2f47abb1bd7ccff499f14cba24ae6d161/smartboiler-1.1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-14 18:28:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "grinwi",
    "github_project": "smartboiler",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "wheel",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.22.2"
                ]
            ]
        },
        {
            "name": "h5py",
            "specs": [
                [
                    "==",
                    "3.10.0"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    ">=",
                    "1.4.1"
                ]
            ]
        },
        {
            "name": "scipy",
            "specs": [
                [
                    "<",
                    "1.9.0"
                ]
            ]
        },
        {
            "name": "pvlib",
            "specs": [
                [
                    ">=",
                    "0.10.1"
                ]
            ]
        },
        {
            "name": "protobuf",
            "specs": [
                [
                    ">=",
                    "3.0.0"
                ]
            ]
        },
        {
            "name": "pytz",
            "specs": [
                [
                    ">=",
                    "2021.1"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.25.1"
                ]
            ]
        },
        {
            "name": "beautifulsoup4",
            "specs": [
                [
                    ">=",
                    "4.9.3"
                ]
            ]
        },
        {
            "name": "pulp",
            "specs": [
                [
                    ">=",
                    "2.4"
                ]
            ]
        },
        {
            "name": "pyyaml",
            "specs": [
                [
                    ">=",
                    "5.4.1"
                ]
            ]
        },
        {
            "name": "Mako",
            "specs": [
                [
                    "==",
                    "1.3.2"
                ]
            ]
        },
        {
            "name": "tables",
            "specs": [
                [
                    "==",
                    "3.7.0"
                ]
            ]
        },
        {
            "name": "skforecast",
            "specs": [
                [
                    ">=",
                    "0.10.1"
                ]
            ]
        },
        {
            "name": "keras",
            "specs": [
                [
                    "==",
                    "2.15.0"
                ]
            ]
        },
        {
            "name": "tensorflow",
            "specs": [
                [
                    "==",
                    "2.15.0"
                ]
            ]
        },
        {
            "name": "influxdb",
            "specs": [
                [
                    "==",
                    "5.3.1"
                ]
            ]
        },
        {
            "name": "geopy",
            "specs": []
        },
        {
            "name": "haversine",
            "specs": []
        }
    ],
    "lcname": "smartboiler"
}
        
Elapsed time: 0.23447s