{"id":15669329,"url":"https://github.com/patchworkboy/basics-ener314rt","last_synced_at":"2025-04-09T08:26:21.861Z","repository":{"id":147127316,"uuid":"50956157","full_name":"PatchworkBoy/basics-ener314rt","owner":"PatchworkBoy","description":"The basics for the ENERGENIE ENER314-RT (Two Way Pi-Mote) - turn ENER002 dumb sockets on and off.","archived":false,"fork":false,"pushed_at":"2016-02-07T17:29:44.000Z","size":43,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-15T02:41:36.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/PatchworkBoy.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":"2016-02-02T22:20:18.000Z","updated_at":"2019-08-16T14:05:18.000Z","dependencies_parsed_at":"2023-04-28T16:55:11.558Z","dependency_job_id":null,"html_url":"https://github.com/PatchworkBoy/basics-ener314rt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatchworkBoy%2Fbasics-ener314rt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatchworkBoy%2Fbasics-ener314rt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatchworkBoy%2Fbasics-ener314rt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatchworkBoy%2Fbasics-ener314rt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatchworkBoy","download_url":"https://codeload.github.com/PatchworkBoy/basics-ener314rt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248001849,"owners_count":21031481,"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":[],"created_at":"2024-10-03T14:22:18.410Z","updated_at":"2025-04-09T08:26:21.830Z","avatar_url":"https://github.com/PatchworkBoy.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# basics-ener314rt\nThe basics for the [Energenie ENER314-RT (aka Two Way Pi-Mote)](https://energenie4u.co.uk/catalogue/product/ENER314-RT) - turn [ENER002 dumb sockets](https://energenie4u.co.uk/catalogue/product/ENER002-4) on and off.\n\nInspect the contents of the [HopeRF_TRX(ENER002) folder](https://github.com/PatchworkBoy/basics-ener314rt/tree/master/HopeRF_TRX(ENER002)). Each file has [lines](https://github.com/PatchworkBoy/basics-ener314rt/blob/master/HopeRF_TRX(ENER002)/app_main.c#L30) [commented](https://github.com/PatchworkBoy/basics-ener314rt/blob/master/HopeRF_TRX(ENER002)/dev_HRF.c#L155)... amend as necessary.\n\nMake a copy of the [Energenie-issued](https://energenie4u.co.uk/catalogue/download_software/ENER314-RT%20programs.zip) HopeRF_TRX(ENER002) folder (which in turn is inside the ENER002 folder), overwrite app_main.c, dev_HRF.c \u0026 Makefile with the ones from this Git repo, and make away!\n\nIf you've already managed to pair your sockets, you can try the 4 files in the binaries folder. Download them into a folder, then navigate into that folder and run...\n\n```\nsudo chmod +x s*\n```\n\n...to make them executable, and test with...\n\n```\n./s1on \u0026\u0026 ./s1off \u0026\u0026 ./s2on \u0026\u0026 ./s2off\n```\n\nIf that works copy or symlink them into /usr/local/bin to use them from anywhere on the system.\n\n## Sample Use Case\nI call the binaries from [Domoticz](http://www.domoticz.com), via a virtual switch which simply uses script://home/pi/s1on for the On command and script://home/pi/s1off for the off command. Domoticz is hooked up to iOS HomeKit apps via [eDomoticz and Homebridge](https://www.domoticz.com/forum/viewtopic.php?f=36\u0026t=10272), which means I can then use \"Hey Siri, turn the {name of domoticz virtual switch} on/off\" to voice-control the energenie sockets. Enabling Remote Access via Settings \u003e Homekit on the iOS device means this works from anywhere, as long as an AppleTV \u003e=3 is connected to the same network as the RaspPi running Domoticz/Homebridge, and additional family members can be invited to the HomeKit home, allowing them to also control sockets from their own iOS devices either by Siri or by any HomeKit-enabled app from the appstore. (eg: [Elgato Eve](https://itunes.apple.com/gb/app/elgato-eve/id917695792?mt=8) - free, [Home](https://itunes.apple.com/gb/app/home-smart-home-automation/id995994352?mt=8) - paid)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatchworkboy%2Fbasics-ener314rt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatchworkboy%2Fbasics-ener314rt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatchworkboy%2Fbasics-ener314rt/lists"}