Djelibeybi / homebridge-button-platform

A Homebridge platform plugin to create virtual buttons that respond to HTTP requests from things like Flic buttons or an Elgato Stream Deck.
https://omg.dje.li/homebridge-button-platform/
Apache License 2.0
57 stars 3 forks source link

No URi in Logs #67

Closed ramonmazinga closed 3 years ago

ramonmazinga commented 3 years ago

I've just configured the plugin on my Homebridge running on a raspberry pi. Once generated the button (just one) on the plugin coniguration, it creates two buttons on the accessories page. The LOGS don't show anything about those accessories so I can't retrieve the URi

Djelibeybi commented 3 years ago

Can you provide the config you're using and the logs as Homebridge starts?

ramonmazinga commented 3 years ago

I’ve updated node.js to the latest version, and now I do get the URi However, on HomeKit I get a message that says "This accessory requires a home hub to be used with the Home app” The 2 buttons that got created under accessories (switch and battery) are not associated with any of my devices, so when I click on those they don’t execute any action.

CONFIG

{
        "name": "Button Platform",
        "port": 3001,
        "buttons": [
            "ButtonTest"
        ],
        "platform": "button-platform"
    }

STARTUP LOGS

[02/08/2021, 14:01:38] [Homebridge UI] Homebridge restart request received [02/08/2021, 14:01:38] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process [02/08/2021, 14:01:38] [Homebridge UI] Sending SIGTERM to Homebridge [02/08/2021, 14:01:38] Got SIGTERM, shutting down Homebridge... [02/08/2021, 14:01:43] [Button Platform] goodbye [02/08/2021, 14:01:43] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [02/08/2021, 14:01:48] [HB Supervisor] Restarting Homebridge... [02/08/2021, 14:01:48] [HB Supervisor] Starting Homebridge with extra flags: -I [02/08/2021, 14:01:48] [HB Supervisor] Started Homebridge v1.3.4 with PID: 24625 Initializing HAP-NodeJS v0.9.4... [02/08/2021, 14:01:49] Loaded config.json with 0 accessories and 4 platforms. [02/08/2021, 14:01:50] Loaded 3 cached accessories from cachedAccessories. [02/08/2021, 14:01:50] --- [02/08/2021, 14:01:51] Loaded plugin: @. [02/08/2021, 14:01:51] Registering platform 'homebridge-button-platform.Lib' [02/08/2021, 14:01:51] Registering platform 'homebridge-button-platform.button-platform' [02/08/2021, 14:01:51] --- [02/08/2021, 14:01:51] Loaded plugin: @. [02/08/2021, 14:01:51] Registering platform 'homebridge-config-ui-x.config' [02/08/2021, 14:01:51] --- [02/08/2021, 14:01:51] Loaded plugin: @. [02/08/2021, 14:01:51] Registering platform 'homebridge-star-projector.StarProjector' [02/08/2021, 14:01:51] --- [02/08/2021, 14:01:51] Loaded plugin: @@. [02/08/2021, 14:01:51] Registering platform @.***/homebridge-tuya-web.TuyaWebPlatform' [02/08/2021, 14:01:51] --- [02/08/2021, 14:01:51] Loading 4 platforms... [02/08/2021, 14:01:51] [Config] Initializing config platform... [02/08/2021, 14:01:51] [Config] Running in Service Mode [02/08/2021, 14:01:51] [StarProjector] Initializing StarProjector platform... [02/08/2021, 14:01:51] [StarProjector] Genio Nebula Projector: Scene not active. This scene will be skipped. [02/08/2021, 14:01:51] [TuyaWebPlatform] Initializing TuyaWebPlatform platform... [02/08/2021, 14:01:51] [Button Platform] Initializing button-platform platform... [02/08/2021, 14:01:51] [Button Platform] homebridge-button-platform v1.5.0-beta.0, node v14.17.4, homebridge v1.3.4, homebridge-lib v5.1.11 [02/08/2021, 14:01:51] [StarProjector] Genio Nebula Projector: Configuring accessory... [02/08/2021, 14:01:51] [TuyaWebPlatform] Loading accessory from cache: Smart Led Strip [02/08/2021, 14:01:51] [Button Platform] restored 1 accessories from cache Preparing Advertiser for 'Homebridge C4D7 34C7' using bonjour-hap backend! Setup Payload: X-HM://0023ZB6H0UCMP Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 308-68-612 │     
└────────────┘     

[02/08/2021, 14:01:51] [Button Platform] Listening on port 3001 for inbound button push event notifications Starting to advertise 'Homebridge C4D7 34C7' using bonjour-hap backend! [02/08/2021, 14:01:51] Homebridge v1.3.4 (Homebridge C4D7) is running on port 51928. [02/08/2021, 14:01:52] [Button Platform] The Event URI for ButtonTest is: /button-buttontest [02/08/2021, 14:01:52] [StarProjector] Genio Nebula Projector: Connected to Tuya API [02/08/2021, 14:01:54] [TuyaWebPlatform] Existing Accessory found [Name: Smart Led Strip] [Tuya ID: bf5e654b5a14691c06lazc] [HomeBridge ID: 4921376f-0c25-4239-a091-eaac8401d963]

Francesco ‘Ramon Mazinga’ Calderone http://www.imdb.com/name/nm3414215 📱+61 412 395 341

On 2 Aug 2021, at 10:57 am, Avi Miller @.***> wrote:

Can you provide the config you're using and the logs as Homebridge starts?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Djelibeybi/homebridge-button-platform/issues/67#issuecomment-890630898, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUP5ZWKFUX6Y6743INZ5YADT2XUOZANCNFSM5BLV2HRA.

Djelibeybi commented 3 years ago

You will need a Home Hub for the buttons to work: this is documented in the README in bold: "This plugin requires a working home hub" which means you need either a HomePod, HomePod Mini, Apple TV or always-on iPad for the buttons to work.

ramonmazinga commented 3 years ago

I thought it would have worked with my Raspberry Pi HomeBridge.

Sorry about the confusion.

Francesco ‘Ramon Mazinga’ Calderone http://www.imdb.com/name/nm3414215 📱+61 412 395 341

On 2 Aug 2021, at 3:11 pm, Avi Miller @.***> wrote:

You will need a Home Hub for the buttons to work: this is documented in the README in bold: "This plugin requires a working home hub" which means you need either a HomePod, HomePod Mini, Apple TV or always-on iPad for the buttons to work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Djelibeybi/homebridge-button-platform/issues/67#issuecomment-890720641, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUP5ZWI2A453V24RT66UPSTT2YSHVANCNFSM5BLV2HRA.

Djelibeybi commented 3 years ago

Unfortunately, Homebridge can't act as a Home Hub. It can only present virtual devices to HomeKit. I wish it could too!