Coder Social home page Coder Social logo

Comments (4)

markiljas avatar markiljas commented on August 11, 2024 1

You're absolutely right, that did it! After I removed the (R) from accessory, it worked and now I can control both PiHoles from HomeKit.

Thanks a lot!

from homebridge-pihole.

arendruni avatar arendruni commented on August 11, 2024

Hi @markiljas! How did you configure the plugin?

from homebridge-pihole.

markiljas avatar markiljas commented on August 11, 2024

Thank you for replying so quickly!

Here's a part of the configuration:

"description": "List of devices controlled by Jarvis",
    "accessories": [
        {
            "name": "Pihole",
            "auth": "2e4f262928d8b841ced31840d285a69965b0353c75662c303fc46cdb2d83b053",
            "ssl": false,
            "host": "10.0.10.4",
            "port": 80,
            "baseDirectory": "/admin/",
            "time": 0,
            "reversed": false,
            "logLevel": 1,
            "accessory": "Pihole"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8080,
            "restart": "sudo -n systemctl restart homebridge",
            "auth": "form",
            "theme": "dark-mode",
            "tempUnits": "c",
            "lang": "auto",
            "sudo": true,
            "log": {
                "method": "systemd",
                "service": "homebridge"
            },
            "platform": "config"

When I tried to add my 2nd PiHole, I copied the accessory right below (before Platform segment) and edited information, like this:

"description": "List of devices controlled by Jarvis",
    "accessories": [
        {
            "name": "Pihole",
            "auth": "2e4f262928d8b841ced31840d285a69965b0353c75662c303fc46cdb2d83b053",
            "ssl": false,
            "host": "10.0.10.4",
            "port": 80,
            "baseDirectory": "/admin/",
            "time": 0,
            "reversed": false,
            "logLevel": 1,
            "accessory": "Pihole"
        },
        {
            "name": "Pihole (R)",
            "auth": "2e4f262928d8b841ced31840d285a69965b0353c75662c303fc46cdb2d83b053",
            "ssl": false,
            "host": "10.0.10.6",
            "port": 80,
            "baseDirectory": "/admin/",
            "time": 0,
            "reversed": false,
            "logLevel": 1,
            "accessory": "Pihole (R)"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8080,
            "restart": "sudo -n systemctl restart homebridge",
            "auth": "form",
            "theme": "dark-mode",
            "tempUnits": "c",
            "lang": "auto",
            "sudo": true,
            "log": {
                "method": "systemd",
                "service": "homebridge"
            },
            "platform": "config"

The password is the same, hence the auth is the same. When there is only one accessory, it works fine, but two kills the whole Homebridge setup. If you need any more information, just let me know!

Thanks

from homebridge-pihole.

arendruni avatar arendruni commented on August 11, 2024

What I do think that causes the crash it’s the "accessory": "Pihole (R)" in your second accessory as Homebridge couldn’t find any plugin named Pihole (R), in fact the accessory property must always be set to Pihole.

from homebridge-pihole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.