daikinitm


Namedaikinitm JSON
Version 0.82 PyPI version JSON
download
home_pagehttps://github.com/ancutrs/daikinitm
SummaryDaikin ITM Controller
upload_time2023-01-31 14:31:09
maintainer
docs_urlNone
authorAnucha
requires_python
licenseAnuchaU
keywords daikin itm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # daikinitm

Daikin ITM is a python library for controlling the Daikin Air-Conditioner.

## Usage




```bash
# You must know the ITM address for each Air-Con unit.

import daikinitm
import time
Host = "192.168.217.60"
Port = 5000
Authorization =  "aXRtoMl0bTEyMzQNjc40TAxMg=="

# Authorization is the Basic Authentication Header Generator.
# Authorization=b64encode(f"{User}:{Password}".encode('utf-8')).decode("ascii")
# or 
# Authorization : https://datafetcher.com/basic-authentication-header-generator
# {User} and {Password} were set in ITM Controller

#initial
Factory1 = daikinitm.itm(Host,Port,Authorization)

# SET FAN 
# Fun  "P" (Power) :  0:Off 1:On
Address = 183
Fun = "P"
Val = 0
print("Before:",Factory1.Status(Address))
print(Factory1.Set(Address,Fun,Val))
time.sleep(5)
print("After:",Factory1.Status(Address))

# SET AIR
# Fun  "P" (Power)              :  0:Off  1:On
# Fun  "T" (Temperature)        :  18,19,20,....,32
# Fun  "M" (Mode)               :  0:Fan 4:Cool 16:Dependent Dry:64
# Fun  "F" (Fan)                :  0:Low 4:Medium 2:High  100:Auto
# Fun  "S" (Air Flow Direction) :  0,1,2,3,4,  7(Swing)

Address = 101
Fun = "T"
Val = 25
print("Before:",Factory1.Status(Address))
print(Factory1.Set(Address,Fun,Val))
time.sleep(5)
print("After:",Factory1.Status(Address))

# Status
# Fan = IP,Port,Address,Products,Power
# Air = IP,Port,Address,Products,Power,Mode,Temp,Room Temp,Fan,Air Flow Direction



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ancutrs/daikinitm",
    "name": "daikinitm",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "daikin itm",
    "author": "Anucha",
    "author_email": "utrsanc@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b1/65/809da6ff6d08b2ebbd17efaae239a3295009fbc9b84f26d81ee4ae71f8e4/daikinitm-0.82.tar.gz",
    "platform": null,
    "description": "# daikinitm\r\n\r\nDaikin ITM is a python library for controlling the Daikin Air-Conditioner.\r\n\r\n## Usage\r\n\r\n\r\n\r\n\r\n```bash\r\n# You must know the ITM address for each Air-Con unit.\r\n\r\nimport daikinitm\r\nimport time\r\nHost = \"192.168.217.60\"\r\nPort = 5000\r\nAuthorization =  \"aXRtoMl0bTEyMzQNjc40TAxMg==\"\r\n\r\n# Authorization is the Basic Authentication Header Generator.\r\n# Authorization=b64encode(f\"{User}:{Password}\".encode('utf-8')).decode(\"ascii\")\r\n# or \r\n# Authorization : https://datafetcher.com/basic-authentication-header-generator\r\n# {User} and {Password} were set in ITM Controller\r\n\r\n#initial\r\nFactory1 = daikinitm.itm(Host,Port,Authorization)\r\n\r\n# SET FAN \r\n# Fun  \"P\" (Power) :  0:Off 1:On\r\nAddress = 183\r\nFun = \"P\"\r\nVal = 0\r\nprint(\"Before:\",Factory1.Status(Address))\r\nprint(Factory1.Set(Address,Fun,Val))\r\ntime.sleep(5)\r\nprint(\"After:\",Factory1.Status(Address))\r\n\r\n# SET AIR\r\n# Fun  \"P\" (Power)              :  0:Off  1:On\r\n# Fun  \"T\" (Temperature)        :  18,19,20,....,32\r\n# Fun  \"M\" (Mode)               :  0:Fan 4:Cool 16:Dependent Dry:64\r\n# Fun  \"F\" (Fan)                :  0:Low 4:Medium 2:High  100:Auto\r\n# Fun  \"S\" (Air Flow Direction) :  0,1,2,3,4,  7(Swing)\r\n\r\nAddress = 101\r\nFun = \"T\"\r\nVal = 25\r\nprint(\"Before:\",Factory1.Status(Address))\r\nprint(Factory1.Set(Address,Fun,Val))\r\ntime.sleep(5)\r\nprint(\"After:\",Factory1.Status(Address))\r\n\r\n# Status\r\n# Fan = IP,Port,Address,Products,Power\r\n# Air = IP,Port,Address,Products,Power,Mode,Temp,Room Temp,Fan,Air Flow Direction\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "AnuchaU",
    "summary": "Daikin ITM Controller",
    "version": "0.82",
    "split_keywords": [
        "daikin",
        "itm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "af9bdbd8680934b8038c6b7595bc1437f55ab597675e1661ef7b0920311d8330",
                "md5": "6c8f7bd7820f886b715cf3867f167ee3",
                "sha256": "e6b1336dee73b9fe746409844d9c89feb337a067793bf5705898f881ef5f4872"
            },
            "downloads": -1,
            "filename": "daikinitm-0.82-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6c8f7bd7820f886b715cf3867f167ee3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4456,
            "upload_time": "2023-01-31T14:31:08",
            "upload_time_iso_8601": "2023-01-31T14:31:08.177207Z",
            "url": "https://files.pythonhosted.org/packages/af/9b/dbd8680934b8038c6b7595bc1437f55ab597675e1661ef7b0920311d8330/daikinitm-0.82-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b165809da6ff6d08b2ebbd17efaae239a3295009fbc9b84f26d81ee4ae71f8e4",
                "md5": "8bc056b5d81ed7aa0b0e4ee8748f7423",
                "sha256": "09a6bb0389ee43623c65ffe7a9e87b42276684106fd8e99d1e705a16e8b772d4"
            },
            "downloads": -1,
            "filename": "daikinitm-0.82.tar.gz",
            "has_sig": false,
            "md5_digest": "8bc056b5d81ed7aa0b0e4ee8748f7423",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3966,
            "upload_time": "2023-01-31T14:31:09",
            "upload_time_iso_8601": "2023-01-31T14:31:09.846144Z",
            "url": "https://files.pythonhosted.org/packages/b1/65/809da6ff6d08b2ebbd17efaae239a3295009fbc9b84f26d81ee4ae71f8e4/daikinitm-0.82.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-31 14:31:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "ancutrs",
    "github_project": "daikinitm",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "daikinitm"
}
        
Elapsed time: 0.66673s