Removed psudo services. Not needed anymore!
authorLuke Hoersten <luke@hoersten.org>
Mon, 23 Sep 2019 18:25:33 -0500
changeset 22 00185499ed12
parent 21 6ad3cf1d57c3
child 23 a006c668055c
Removed psudo services. Not needed anymore!
roles/rpi-base/defaults/main.yaml
roles/rpi-base/tasks/main.yml
src/Door_accessory.js
--- a/roles/rpi-base/defaults/main.yaml	Mon Jul 30 21:19:20 2018 -0500
+++ b/roles/rpi-base/defaults/main.yaml	Mon Sep 23 18:25:33 2019 -0500
@@ -4,3 +4,5 @@
   - "emacs-nox"
   - "htop"
   - "jq"
+
+rpi_enable_wifi: true
--- a/roles/rpi-base/tasks/main.yml	Mon Jul 30 21:19:20 2018 -0500
+++ b/roles/rpi-base/tasks/main.yml	Mon Sep 23 18:25:33 2019 -0500
@@ -11,6 +11,7 @@
     src: "wpa_supplicant.conf.j2"
     dest: "/etc/wpa_supplicant/wpa_supplicant.conf"
     mode: 0644
+  when: rpi_enable_wifi
 
 - name: update apt package cache
   become: yes
@@ -18,8 +19,7 @@
 
 - name: install extra apt packages
   become: yes
-  apt: name="{{item}}"
-  with_items: "{{rpi_base_apt_packages}}"
+  apt: name="{{rpi_base_apt_packages}}"
 
 - name: authorize admin ssh keys
   become: yes
--- a/src/Door_accessory.js	Mon Jul 30 21:19:20 2018 -0500
+++ b/src/Door_accessory.js	Mon Sep 23 18:25:33 2019 -0500
@@ -58,11 +58,8 @@
 });
 
 door.addService(Service.Doorbell, 'Doorbell');
-door.addService(Service.CameraRTPStreamManagement, 'Pseudo-Camera');
-door.addService(Service.Speaker, 'Pseudo-Speaker');
-door.addService(Service.Microphone, 'Pseudo-Microphone');
 
-door.addService(Service.LockMechanism, 'Door')
+door.addService(Service.LockMechanism, 'Door lock')
     .setCharacteristic(Characteristic.LockTargetState, Characteristic.LockTargetState.SECURED) // force initial state
     .setCharacteristic(Characteristic.LockCurrentState, Characteristic.LockCurrentState.SECURED)
     .getCharacteristic(Characteristic.LockTargetState)