Comments (4)
Hi @snetwork-dev,
I understand the problem you're having, but by looking at the issue you referenced I don't think it's a good thing invoking the callback before the request has a received a response.
If you want to try and integrate this change you can open a PR and I will review it, so for now I'm leaving this issue open to see if other users have the same issue.
from homebridge-pihole.
Hey @snetwork-dev
I just released a new beta version of the plugin that should fix this issue (from #29), I skipped passing the value received from the http response to the Homebridge callback which does no longer need to wait for a value and shouldn’t block the entire Homebridge.
To test it you just need to add beta tag to the package name: npm install homebridge-pihole@beta
. Please let me now if this does fix this "bug".
from homebridge-pihole.
I just released a new beta version of the plugin that should fix this issue (from #29), I skipped passing the value received from the http response to the Homebridge callback which does no longer need to wait for a value and shouldn’t block the entire Homebridge.
I installed the beta version. Unfortunately, when the iOS / macOS home app is restarted, all devices are still displayed with "no answer" if the PiHole server cannot be reached.
As soon as you click on an individual device, however, it updates its status and can also be switched. Unfortunately this is not the right solution yet ...
from homebridge-pihole.
I tested the plugin with a slowed down mock server and I could reproduce the same scenario: Homebridge will hang till the plugin has received a status and all devices are displayed with "no answer". So, the main pain in this case is the callback on the GET status, which in this case must wait for a value, this is a protocol limitation of HAP, which only allows one concurrent request per connection and the request is blocking.
from homebridge-pihole.
Related Issues (20)
- [Question] Where to put certificate HOT 4
- [BUG] Homebridge 1.3.0-beta 40 HOT 2
- New install, Pi Hole not accessible HOT 1
- Ability to toggle a block rule HOT 9
- Homebridge 1.3.1 : This plugin slows down Homebridge HOT 1
- [BUG] makeRequest debugging causes exception
- [BUG] New Pi-hole release (Pi-hole v5.4, Web Interface v5.6, FTL v5.9) seems to mess with homebridge-pihole? HOT 1
- error about gpis pins and device not being a Raspberry Pi HOT 15
- When running in Client Bridge no "add device" in HomeKit possible (connection fail) HOT 1
- [BUG] Homebridge taken offline if Pi-hole is down HOT 5
- [BUG] Pi-hole switch always in 'off' mode. HOT 10
- [BUG] Homekit switch not changing pihole state anymore HOT 3
- When homebridge ist startet, correct function requires singe switch on/off HOT 3
- [BUG]Pi-Hole switch in HomeKit still not working HOT 1
- Recent Pihole update broke plugin HOT 5
- Plug in not working. shows fine in Homekit but not responsive[BUG] HOT 3
- Connectivity broken in HomeKit as of Pi-Hole FTL v5.20 and Web v5.18 HOT 6
- [BUG] Homebridge-pihole plugin suddenly not working HOT 3
- Ability to toogle two piholes on and off with one button HOT 3
- [BUG] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-pihole.