Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sahilchaddha/homebridge-fiberhome-config
Homebridge Plugin to update IP of devices connected to FiberHome Router
https://github.com/sahilchaddha/homebridge-fiberhome-config
fiberhome homebridge homebridge-plugin
Last synced: 3 months ago
JSON representation
Homebridge Plugin to update IP of devices connected to FiberHome Router
- Host: GitHub
- URL: https://github.com/sahilchaddha/homebridge-fiberhome-config
- Owner: sahilchaddha
- Created: 2018-09-04T12:09:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-13T11:04:01.000Z (over 6 years ago)
- Last Synced: 2024-10-17T02:25:47.424Z (4 months ago)
- Topics: fiberhome, homebridge, homebridge-plugin
- Language: JavaScript
- Size: 319 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# homebridge-fiberhome-config
## Description :
Due to lack of DHCP Reservation / Static IP Reservation & enforced AP Isolation on FiberHome Router, it makes homebridge setup for HomeAutomation unstable. After Device reset, FiberHome router assigns the device a new IP Address.
This Plugin tends to fetch newly assigned IP Address from FiberHome Router and updates homebridge configuration to point devices to their correct IP addresses. It uses MAC Address of the device to map HomeKit devices to IP.
## Installation :
```shell
$ npm install -g homebridge-fiberhome-config
```## Usage :
This Plugin creates a switch in HomeKit which is accessible from Home App. You can toggle it and set it on repeat to toggle the switch every x minutes.
When Toggled, the switch will fetch all the clients mentioned in `config.json` e.g. `"_Sahil_iPhone": "xx:xx:xx:xx:xx:xx"` and will update config.json for homebridge wherever the variable `FB_Sahil_iPhone` (FB + {VAR_NAME}) is assigned and needs to be constantly updated. The config.json needs to be copied to `$HOMEBRIDGE_HOME/config-fiberhome.json` for backup purposes.## Sample Config :
```json
{
"accessories": [
{
"accessory": "FiberHome",
"name": "FiberHome-Network-Updater",
"routerGateway": "192.168.1.1",
"macs": {
"_Sahil_iPhone": "xx:xx:xx:xx:xx:xx",
"_KitchenLED": "xx:xx:xx:xx:xx:xx",
"_TVLED": "xx:xx:xx:xx:xx:xx",
"_LoungeLED": "xx:xx:xx:xx:xx:xx"
}
},
{
"accessory": "MagicHome",
"name": "Kitchen LED",
"ip": "FB_KitchenLED"
},
{
"accessory": "MagicHome",
"name": "TV LED",
"ip": "FB_TVLED"
},
{
"accessory": "MagicHome",
"name": "Sofa LED",
"ip": "FB_LoungeLED"
},
{
"accessory": "PeoplePlus",
"name": "Sahil's iPhone",
"ip": "FB_Sahil_iPhone"
}
]
}
```Set `disableCache` as true to update Unavailable devices to `Device Host Unreachable`