Skip to content

dieteroo/homebridge-motion-switch-with-accessoryinformation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Homebridge Motion Switch

Can be used to trigger a motion detected event when a switch is turned on, via Siri for example, similar to https://twitter.com/viticci/status/961751917973180417 but within HomeKit only.

Setup

npm install -g homebridge-motion-switch-with-accessoryinformation

And add the following to the accessories list in your Homebridge config. Change names as you wish.

{
  "accessory": "Motion Switch",
  "motion_sensor_name": "Motion Sensor",
  "switch_name": "Motion Switch",
  "name": "Motion Switch"
}

Then add it to HomeKit, once added, you will need to turn on Notifications for the motion sensor you just added.

Serialnumber will be based on motion_sensor_name (All caps, no spaces.

About

A Homebridge plugin for a switch that triggers a motion detected event

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%