Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hannseman/ansible-homebridge
This role will setup and configure a Homebridge installation.
https://github.com/hannseman/ansible-homebridge
ansible ansible-role home-automation homebridge raspberry-pi
Last synced: 3 months ago
JSON representation
This role will setup and configure a Homebridge installation.
- Host: GitHub
- URL: https://github.com/hannseman/ansible-homebridge
- Owner: hannseman
- License: mit
- Created: 2018-10-12T20:31:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-23T23:23:06.000Z (over 3 years ago)
- Last Synced: 2024-10-04T15:20:59.647Z (3 months ago)
- Topics: ansible, ansible-role, home-automation, homebridge, raspberry-pi
- Language: Jinja
- Homepage:
- Size: 29.3 KB
- Stars: 14
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-homebridge
[![Ansible Role](https://img.shields.io/ansible/role/30550.svg)](https://galaxy.ansible.com/hannseman/homebridge)
[![Build Status](https://travis-ci.com/hannseman/ansible-homebridge.svg?branch=master)](https://travis-ci.com/hannseman/ansible-homebridge)This role will setup and configure a [Homebridge](https://github.com/nfarina/homebridge) installation.
It will install Node.js.
It will run homebridge in a secured systemd service as the user `homebridge`.
It will allow you to configure your accessories and platforms using yaml.## Variables
```yaml
# The homebridge version to run
homebridge_version: 1.3.4
# The homebridge user home directory
homebridge_dir: /var/homebridge
# Path to homebridge
homebridge_bin: /usr/bin/homebridge
# The homebridge environment file
homebridge_defaults: /etc/default/homebridge
# What port to run homebridge under
homebridge_port: 51826
# If homebridge should run in debug mode
homebridge_debug: false
# Insecure mode toggle needed by the homebridge UI for the accessories view
homebridge_insecure_mode: false
# Node.js version to run homebridge under
homebridge_nodejs_version: "14.x"
# Path to Node.js
homebridge_nodejs_binary: /usr/bin/node
# To configure PartOf= in homebridge systemd service
homebridge_systemd_part_of_service:
# Enable CAP_NET_RAW
homebridge_enable_cap_net_raw: false
# Homebridge config.json (see https://github.com/nfarina/homebridge/blob/master/config-sample.json)
homebridge_name: Homebridge
homebridge_username: CC:22:3D:E3:CE:30
homebridge_pin: 123-45-678
homebridge_accessories: []
homebridge_platforms: []
homebridge_bind: ["eth0"]
homebridge_advertiser: "ciao"
```## Example Playbook
```yaml
- hosts: servers
roles:
- hannseman.homebridge
vars:
homebridge_plugins:
- name: homebridge-dummy
version: 0.3.0
homebridge_accessories:
- accessory: "DummySwitch"
name: "My Switch 1"
```