{"id":25860750,"url":"https://github.com/math77fr/two-way-switch-synchronization","last_synced_at":"2026-05-15T07:31:29.500Z","repository":{"id":279808031,"uuid":"940048549","full_name":"math77FR/Two-Way-Switch-Synchronization","owner":"math77FR","description":"Two-Way Switch Synchronization for Home Assistant","archived":false,"fork":false,"pushed_at":"2025-02-27T15:45:15.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T20:33:06.863Z","etag":null,"topics":["automation","blueprint","home-assistant","yaml"],"latest_commit_sha":null,"homepage":"","language":null,"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/math77FR.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-27T14:31:18.000Z","updated_at":"2025-02-27T15:45:19.000Z","dependencies_parsed_at":"2025-02-27T20:35:19.076Z","dependency_job_id":"5dddb705-ae21-459b-9621-8dc1b975a17b","html_url":"https://github.com/math77FR/Two-Way-Switch-Synchronization","commit_stats":null,"previous_names":["math77fr/two-way-switch-synchronization"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math77FR%2FTwo-Way-Switch-Synchronization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math77FR%2FTwo-Way-Switch-Synchronization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math77FR%2FTwo-Way-Switch-Synchronization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math77FR%2FTwo-Way-Switch-Synchronization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/math77FR","download_url":"https://codeload.github.com/math77FR/Two-Way-Switch-Synchronization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241435139,"owners_count":19962402,"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":["automation","blueprint","home-assistant","yaml"],"created_at":"2025-03-01T22:57:25.192Z","updated_at":"2026-05-15T07:31:29.440Z","avatar_url":"https://github.com/math77FR.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Two-Way Switch Synchronization Blueprint\n\n## 📖 Overview\n\nThe **Two-Way Switch Synchronization** blueprint for Home Assistant allows you to synchronize two switches so they always operate in unison. When one switch is turned on or off, the other switch will automatically mirror the action, ensuring seamless synchronization between both switches.\n\n\n## 🚀 Features\n\n- **Bidirectional Synchronization:** Both switches stay in sync regardless of which one is toggled.\n- **Loop Prevention:** Built-in conditions to avoid infinite loops or unnecessary state changes.\n- **Restart Mode:** Handles rapid state changes smoothly using `restart` mode.\n- **Delay 3s:** A slight delay to avoid bouncing issues.\n- **Simple Configuration:** Easily set up through Home Assistant's UI.\n\n\n## 📦 Installation\n\n1. Download the `two_way_switch_synchronization.yaml` blueprint file.\n2. In Home Assistant, navigate to **Settings \u003e Automations \u0026 Scenes \u003e Blueprints \u003e Import Blueprint**.\n3. Paste the raw GitHub URL of the blueprint or upload the `.yaml` file directly.\n4. Follow the setup instructions in the Home Assistant UI.\n\n\n## ⚙️ Configuration\n\n- Select two switch entities to synchronize.\n- Save and activate the automation.\n- Test by toggling one switch and observing the synchronized behavior.\n\n### Example Use Case\n\n- Synchronize a physical wall switch with a smart switch to control the same light or device.\n- Mirror the state of two smart switches to simplify control of multi-zone lighting or devices.\n\n\n## 🛠️ Technical Details\n\n- **Mode:** `restart`\n- **Delay:** `3s`\n- **Trigger:** State changes (`on` / `off`) of either switch.\n- **Condition:** Prevents state change if already synchronized.\n\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath77fr%2Ftwo-way-switch-synchronization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmath77fr%2Ftwo-way-switch-synchronization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath77fr%2Ftwo-way-switch-synchronization/lists"}