{"id":26002855,"url":"https://github.com/mperlet/j_avmdect200","last_synced_at":"2026-05-29T12:31:54.105Z","repository":{"id":27437052,"uuid":"30915068","full_name":"mperlet/J_AVMDECT200","owner":"mperlet","description":"Java AVM Dect200 Api","archived":false,"fork":false,"pushed_at":"2015-03-20T10:36:32.000Z","size":140,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T19:40:48.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mperlet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-17T11:57:43.000Z","updated_at":"2020-11-21T17:40:43.000Z","dependencies_parsed_at":"2022-09-03T15:01:09.811Z","dependency_job_id":null,"html_url":"https://github.com/mperlet/J_AVMDECT200","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mperlet/J_AVMDECT200","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mperlet%2FJ_AVMDECT200","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mperlet%2FJ_AVMDECT200/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mperlet%2FJ_AVMDECT200/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mperlet%2FJ_AVMDECT200/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mperlet","download_url":"https://codeload.github.com/mperlet/J_AVMDECT200/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mperlet%2FJ_AVMDECT200/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33652979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-05T19:34:49.122Z","updated_at":"2026-05-29T12:31:54.087Z","avatar_url":"https://github.com/mperlet.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java AVM Dect200 Api\n\n# Example\n\n```\nAVMDect200 fritzbox = new AVMDect200(\"my_fritz_password\", \"fritz.box\");\nfritzbox.init();\nArrayList\u003cAVMDect200.Socket\u003e sockets = fritzbox.getSocketList();\nfor (AVMDect200.Socket socket : sockets) {\n\tSystem.out.println(\"Name: \\t\" + socket.getSocketName());\n\tSystem.out.println(\"Id:   \\t\" + socket.getSocketId());\n\tSystem.out.println(\"OK?:  \\t\" + socket.getSocketAvailability());\n\tSystem.out.println(\"Watt: \\t\" + socket.getSocketPower()/1000.0 + \"W\");\n\tif (socket.getSocketState())\n\t\tSystem.out.println(\"State: \\tON\");\n\tif (!socket.getSocketState())\n\t\tSystem.out.println(\"State: \\tOFF\");\n\tSystem.out.println(\"Temp: \\t\" + socket.getSocketTemperature()/10.0 + \"°C\");\n\tSystem.out.println();\n\t\t}\n```\n\n```\nName: \tWohnzimmer Steckdose\nId:   \t087610097318\nOK?:  \ttrue\nWatt: \t4.0W\nState: \tON\nTemp: \t22.8°C\n```\n\n# Documentation\n\n####### `public class AVMDect200`\n\nAVM Fritzbox Dect-200 Socket Api-Wrapper\n\n * **Author:** Mathias Perlet\n * **Version:** 0.0.1\n\n####### `public AVMDect200(String fritzbox_pw)`\n\n * **Parameters:** `fritzbox_pw` — the frizbox password for login\n\n####### `public AVMDect200(String fritzbox_pw, String host)`\n\n * **Parameters:**\n   * `fritzbox_pw` — the frizbox password for login\n   * `host` — the fritzbox url, standard is http://fritz.box\n\n####### `public void init() throws IOException, InvalidPasswordException`\n\ninitial communication with the fritzbox generates a session id for further actions\n\n * **Exceptions:**\n   * `IOException` — connections errors, like host not found\n   * `InvalidPasswordException` — throws if password not valid\n\n####### `private String homeauto_url_with_sid()`\n\n * **Returns:** the absolute url to fritzbox-api with valid session key\n\n####### `private String callCommand(String command, String devId) throws IOException`\n\n * **Parameters:**\n   * `command` — a valid command from dect200 documentation\n   * `devId` — the dect200 socket AIN (socket-id)\n * **Returns:** api-response from fritzbox\n * **Exceptions:** `IOException` — communication errors\n\n####### `public String getInfo() throws IOException`\n\n * **Returns:** returns a comma separated list of connected socket IDs\n * **Exceptions:** `IOException` — \n\n####### `public String getSocketName(String devId) throws IOException`\n\n * **Parameters:** `devId` — the dect200 socket AIN (socket-id)\n * **Returns:** the configured socket-name like \"Living Room\"\n * **Exceptions:** `IOException` — \n\n####### `public Boolean getSocketAvailability(String devId) throws IOException`\n\n * **Parameters:** `devId` — the dect200 socket AIN (socket-id)\n * **Returns:** true if the socket is available\n * **Exceptions:** `IOException` — \n\n####### `public int getSocketPower(String devId)`\n\n * **Parameters:** `devId` — the dect200 socket AIN (socket-id)\n * **Returns:** the current power in milli watt as a integer, on error it returns the minimal integer value\n * **Exceptions:** `IOException` — \n\n####### `public int getSocketTemperature(String devId) throws IOException`\n\n * **Parameters:** `devId` — the dect200 socket AIN (socket-id)\n * **Returns:**\n   * the current temperature with offset in centi grad celsius (245 is 24.5°C).\n   * on error, it returns integer min value\n * **Exceptions:** `IOException` — \n\n####### `public String setSocketOn(String devId) throws IOException`\n\nswitch a socket on\n\n * **Parameters:** `devId` — the dect200 socket AIN (socket-id)\n * **Returns:** the success value for switch the socket on\n * **Exceptions:** `IOException` — \n\n####### `public String setSocketOff(String devId) throws IOException`\n\nswitch a socket off\n\n * **Parameters:** `devId` — the dect200 socket AIN (socket-id)\n * **Returns:** the success value for switch the socket off\n * **Exceptions:** `IOException` — \n\n####### `public boolean getSocketState(String devId) throws IOException`\n\n * **Parameters:** `devId` — the dect200 socket AIN (socket-id)\n * **Returns:** true if socket is on, false if socket if off\n * **Exceptions:** `IOException` — \n\n####### `public ArrayList\u003cSocket\u003e getSocketList() throws IOException`\n\n * **Returns:** a ArryList of sockets\n * **Exceptions:** `IOException` — \n\n####### `public String getSID()`\n\n * **Returns:** current session id for fritzbox communication\n\n####### `private String readURL(String url) throws IOException`\n\n * **Parameters:** `url` — http communication with the fritzbox-api, only http-GET\n * **Returns:** returns the http response\n * **Exceptions:** `IOException` — \n\n####### `private String getTagValue(String xml, String tagName)`\n\n * **Parameters:**\n   * `xml` — every tag must be unique, otherwise it will return an empty string\n   * `tagName` — name of the xml-tag\n * **Returns:** returns the value from the tag as a string\n\n####### `private String md5(String md5)`\n\n * **Parameters:** `md5` — string to hash\n * **Returns:** returns the md5-hash in utf-16le encoding\n\n####### `public static JSONObject xmlToJson(String callbackResponse)`\n\n * **Parameters:** `callbackResponse` — xml string\n * **Returns:** a json-object\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmperlet%2Fj_avmdect200","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmperlet%2Fj_avmdect200","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmperlet%2Fj_avmdect200/lists"}