{"id":17441174,"url":"https://github.com/tmigone/myhabeetat","last_synced_at":"2025-07-21T19:37:20.937Z","repository":{"id":44140988,"uuid":"188612952","full_name":"tmigone/myhabeetat","owner":"tmigone","description":"Node.js wrapper for MyHabeetat's cloud services. Supports Solidmation devices, including BGH Smart Control.","archived":false,"fork":false,"pushed_at":"2023-03-03T00:13:38.000Z","size":203,"stargazers_count":7,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-23T01:41:04.936Z","etag":null,"topics":["automation","bgh","bgh-smart-control","home","myhabeetat","node","solidmation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tmigone.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-25T21:15:32.000Z","updated_at":"2023-06-10T05:32:00.000Z","dependencies_parsed_at":"2024-10-19T16:21:27.981Z","dependency_job_id":null,"html_url":"https://github.com/tmigone/myhabeetat","commit_stats":null,"previous_names":["tomasmigone/myhabeetat"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tmigone/myhabeetat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmigone%2Fmyhabeetat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmigone%2Fmyhabeetat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmigone%2Fmyhabeetat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmigone%2Fmyhabeetat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmigone","download_url":"https://codeload.github.com/tmigone/myhabeetat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmigone%2Fmyhabeetat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266367803,"owners_count":23918649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["automation","bgh","bgh-smart-control","home","myhabeetat","node","solidmation"],"created_at":"2024-10-17T15:10:18.985Z","updated_at":"2025-07-21T19:37:20.919Z","avatar_url":"https://github.com/tmigone.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# myhabeetat\nWrapper for MyHabeetat API, control your devices using nodejs.\n\nSupports Solidmation devices, including: \n- BGH Smart Control\n\n## Installation\nInstall it via NPM:\n\n```bash\nnpm install --save myhabeetat\n```\n\n\n## Usage\n\n```javascript\n\nconst MyHabeetat = require('myhabeetat')\n\n// Get auth token\nlet token = await MyHabeetat.login('myawesome@email.com', 's3cret_passw0rd')\n\n// Get homes and devices\nlet homes = await MyHabeetat.getHomes(token)\nlet devices = await MyHabeetat.getDevices(token, homes[0])\n\n// Turn on device. 15 is model code for BGH Smart Control\nlet result = await MyHabeetat.turnOnDevice(token, 15, devices[0].endpoint)\n```\n\n## MyHabeetat methods\n\n### MyHabeetat.login(email, password)\n#### Arguments\n- email (string): Your My Habeetat login email\n- password (string): Your My Habeetat login password \n\n#### Returns\n- token (string): Authentication token for My Habeetat's API\n\n### MyHabeetat.getHomes(token)\n#### Arguments\n- token (string): A valid My Habeetat auth token\n\n#### Returns\n- homes (array): An array of home IDs\n\n### MyHabeetat.getDevices(token, home)\n#### Arguments\n- token (string): A valid My Habeetat auth token\n- home (integer): Home ID to get devices from\n\n#### Returns\n- devices (array): Array of device objects for the given home\n\n### MyHabeetat.getDeviceStatus(token, home, device)\n#### Arguments\n- token (string): A valid My Habeetat auth token\n- home (integer): Home ID to get devices from\n- device (integer): Device ID to get status from\n\n#### Returns\n- status (object): A status object for the given device\n\n### MyHabeetat.setDeviceStatus(token, model, endpoint, status)\n#### Arguments\n- token (string): A valid My Habeetat auth token\n- model (integer): Device model ID. Currently only BGH Smart Control is supported (ID=15)\n- endpoint (integer): Endpoint ID for the device. Can be retrieved with `getDeviceStatus` method\n\n#### Returns\n- result (boolean): True if the operation succeded.\n\n### MyHabeetat.getDataPacket(token, home)\n#### Arguments\n- token (string): A valid My Habeetat auth token\n- home (integer): Home ID to get devices from\n\n#### Returns\n- data (object): Last data packet for the device\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmigone%2Fmyhabeetat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmigone%2Fmyhabeetat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmigone%2Fmyhabeetat/lists"}