6 Commits

Author SHA1 Message Date
Darell Tan
b11ab07fbb Update README 2024-11-22 19:20:45 +08:00
Darell Tan
1fbc4d520a Use a more secure PIN config by default
The server used to use the hap default PIN, but using a fixed PIN is not
secure. A random PIN is now generated on first run and displayed to the
console (or journal), similar to how homebridge does it. It can also be
specified explicitly by the user in the config file.
2023-08-12 01:35:07 +08:00
Darell Tan
59b049faea Add config options for ListenAddr & Interfaces
These options are helpful when the bridge is running on a multi-homed
device like a wireless router.
2023-08-03 23:28:52 +08:00
Darell Tan
c61da984c9 Add support for dimmers and dimmable bulbs
The exposes entry looks similar to a switch, except the type is a
"light" and it has `state` and `brightness`. Tested only on single
channel dimmers.

Also added a PercentageTranslator to translate between the HomeKit
`brightness`, which is a percentage, to/from an arbitrary numeric value
in Z2M.
2023-06-25 02:20:01 +08:00
Darell Tan
7fbbec79d9 Add support for motion sensors
There doesn't seem to be any distinction in Z2M between occupancy and
motion sensors, but HomeKit has separate types. Most of the sensors are
PIR, so they are technically motion sensors instead of occupancy
sensors. There are of course _real_ occupancy sensors like mmWave, but
we'll deal with those when we get there.
2023-06-16 23:08:09 +08:00
Darell Tan
84398fc53a "Initial" working version, after cleanup. 2023-04-26 23:20:07 +08:00