{"id":20463907,"url":"https://github.com/hemtjanst/hallonlarm","last_synced_at":"2025-06-22T23:02:52.431Z","repository":{"id":57582788,"uuid":"100143433","full_name":"hemtjanst/hallonlarm","owner":"hemtjanst","description":"Raspberry Pi GPIO to MQTT and Hemtjänst","archived":false,"fork":false,"pushed_at":"2019-05-18T10:35:30.000Z","size":31,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T08:40:36.215Z","etag":null,"topics":["domotic","gpio","home-automation","homekit","mqtt","raspberry-pi","smarthome"],"latest_commit_sha":null,"homepage":"https://hemtjan.st/hallonlarm","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hemtjanst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-12T23:49:21.000Z","updated_at":"2022-12-28T13:02:17.000Z","dependencies_parsed_at":"2022-09-26T19:31:24.472Z","dependency_job_id":null,"html_url":"https://github.com/hemtjanst/hallonlarm","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemtjanst%2Fhallonlarm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemtjanst%2Fhallonlarm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemtjanst%2Fhallonlarm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemtjanst%2Fhallonlarm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hemtjanst","download_url":"https://codeload.github.com/hemtjanst/hallonlarm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253164366,"owners_count":21864246,"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":["domotic","gpio","home-automation","homekit","mqtt","raspberry-pi","smarthome"],"created_at":"2024-11-15T13:13:33.228Z","updated_at":"2025-05-08T23:32:27.372Z","avatar_url":"https://github.com/hemtjanst.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HallonLarm\n\nHallonLarm is:\n  * The Swedish words \"Hallon\" (Raspberry) and \"Larm\" (Alarm)\n  * An RaspberryPi application that:\n    * Forwards GPIO events to MQTT\n    * Listens to MQTT topics and sets GPIO outputs\n    * Implements the [Hemtjänst](https://github.com/hemtjanst/hemtjanst) protocol for automatic discovery\n\n## Usage\n\nBuild and install HallonLarm:\n\n```bash\n# Install dep and dependencies\ngo get -u github.com/golang/dep/cmd/dep\ndep ensure\n\n# Build for ARMv6, Raspberry Pi 1-2:\nenv GOOS=linux GOARCH=arm GOARM=6 go build -o hallonlarm_armv6 .\n\n# Build for ARMv7, Raspberry Pi 3+:\nenv GOOS=linux GOARCH=arm GOARM=7 go build -o hallonlarm_armv7 .\n\n# Copy the binary to /usr/local/bin\nsudo cp hallonlarm_armv[67] /usr/local/bin/hallonlarm\n\n# Install the unit file\nsudo cp hallonlarm.service /etc/systemd/system/\n\n# Edit the unit file to change mqtt address\nsudo vim /etc/systemd/hallonlarm.service\n\n# Reload systemd\nsudo systemctl daemon-reload\n\n# Copy and edit the sample configuration\nsudo cp example.conf /etc/hallonlarm.conf\nsudo vim /etc/hallonlarm.conf\n\n# Start the service\nsudo systemctl start hallonlarm.service\n\n# Enable at boot\nsudo systemctl enable hallonlarm.service\n```\n\n\n## Configuration\n\nThe default configuration path is `/etc/hallonlarm.conf`.\nThis can be changed by adding the argument `-hl.config path/to/hallonlarm.conf` to the start command\n\nA minimal configuration looks like this (the configuration language is [HCL](https://github.com/hashicorp/hcl):\n```HCL\ndevice \"sensor/contact/bedroom_window\" {\n  name = \"Bedroom Window\"\n  type = \"contactSensor\"\n  feature \"contactSensorState\" {\n    gpioIn = {\n      pin = 24\n    }\n  }\n}\n```\n\nFor a complete example with more options, see [example.conf](example.conf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemtjanst%2Fhallonlarm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhemtjanst%2Fhallonlarm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemtjanst%2Fhallonlarm/lists"}