{"id":13799631,"url":"https://github.com/mabunixda/node-red-contrib-alexa-home","last_synced_at":"2025-04-10T10:31:56.440Z","repository":{"id":41142571,"uuid":"120467870","full_name":"mabunixda/node-red-contrib-alexa-home","owner":"mabunixda","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-11T05:21:25.000Z","size":578,"stargazers_count":32,"open_issues_count":10,"forks_count":10,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-06-11T19:09:17.708Z","etag":null,"topics":["alexa","node-red","smarthome"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mabunixda.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"patreon":"mabunixda","custom":"https://www.paypal.me/kervehrt"}},"created_at":"2018-02-06T14:15:21.000Z","updated_at":"2024-06-13T02:40:16.591Z","dependencies_parsed_at":"2024-04-19T23:22:03.030Z","dependency_job_id":"6f09a9a2-2ad4-4af2-85f3-38db0f87d579","html_url":"https://github.com/mabunixda/node-red-contrib-alexa-home","commit_stats":{"total_commits":135,"total_committers":12,"mean_commits":11.25,"dds":"0.33333333333333337","last_synced_commit":"008baa9f57b9a7331768aa38aa86e2528b0b6753"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabunixda%2Fnode-red-contrib-alexa-home","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabunixda%2Fnode-red-contrib-alexa-home/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabunixda%2Fnode-red-contrib-alexa-home/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabunixda%2Fnode-red-contrib-alexa-home/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mabunixda","download_url":"https://codeload.github.com/mabunixda/node-red-contrib-alexa-home/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199136,"owners_count":21063641,"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","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":["alexa","node-red","smarthome"],"created_at":"2024-08-04T00:01:04.650Z","updated_at":"2025-04-10T10:31:55.943Z","avatar_url":"https://github.com/mabunixda.png","language":"JavaScript","funding_links":["https://patreon.com/mabunixda","https://www.paypal.me/kervehrt"],"categories":["Nodes"],"sub_categories":["Smarthome"],"readme":"# node-red-contrib-alexa-home\n\n\n[![CI](https://github.com/mabunixda/node-red-contrib-alexa-home/actions/workflows/ci.yml/badge.svg)](https://github.com/mabunixda/node-red-contrib-alexa-home/actions/workflows/ci.yml)\n\n[![Known Vulnerabilities](https://snyk.io/test/github/mabunixda/node-red-contrib-alexa-home/badge.svg)](https://snyk.io/test/github/mabunixda/node-red-contrib-alexa-home)\n\n[npmjs package registry](https://www.npmjs.com/package/node-red-contrib-alexa-home)\n\nThe node just works wihtin your local network - no extra cloud stuff is required.\n\n## Installation\n\nInstall directory from your Node-RED Settings Pallete\n\nor\n\nInstall using npm\n\n    $ npm install node-red-contrib-alexa-home\n\n## Alexa Generation 3 devices\n\nAlexa devices of generation #3 are not using the information used within the detection process.\nThey do rely that all communication is done on port 80! To estatlish this you got 2 different ways to go.\n\n### ALEXA_PORT and running as root\n\nYou must define an environment variable **ALEXA_PORT** and set its value to 80. When running node-red as systemd unit as\n\n`\nEnvironment=ALEXA_PORT=80\n`\n\nTo test the change you can also start node-red manually with following:\n\n`\nALEXA_PORT=80 node-red start\n`\n\n### using iptables and port forwarding\n\nYou can leave everything as it is and just define port forwarding using iptables\n\n`\nsudo iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 60000\n`\n\nPlease consider that any changes to iptables are not presistent, after reboot you have to forward the port again, or use iptables-save as described [here](https://www.poftut.com/how-to-save-and-restore-iptables-rules-permanently-in-ubuntu-centos-fedora-debian-kali-mint/)\n\n## Message Object Properties\nthe follow *msg* properties are generated within this node\n\n**payload.on:** true|false\n\n**payload.bri:** brightness 0-255\n\n**payload.xy** Color XY object\n\n**alexa_ip:** \\\u003cip of alexa device interacting with node-red\\\u003e\n\nWith version 1.x now also the input is processed within the node and updates the data to alexa. Within the alexa app you are now able to get the current state of your nodes.\n\n\n### Message input to the nodes\n\nAt the moment you can input as payload objects:\n* [brightness](https://github.com/mabunixda/node-red-contrib-alexa-home/blob/master/alexa/alexa-home.js#L85)\n* [color](https://github.com/mabunixda/node-red-contrib-alexa-home/blob/master/alexa/alexa-home.js#L79)\n* [on/off](https://github.com/mabunixda/node-red-contrib-alexa-home/blob/master/alexa/alexa-home.js#L95)\n\nNormal an input is not routed as output because this would possibly cause endless update loops. But if you want this and know what you are doing, you can set the [output param on the msg](https://github.com/mabunixda/node-red-contrib-alexa-home/blob/master/alexa/alexa-home.js#L133) to let the input passthrough.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabunixda%2Fnode-red-contrib-alexa-home","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmabunixda%2Fnode-red-contrib-alexa-home","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabunixda%2Fnode-red-contrib-alexa-home/lists"}