Kamilolek / HomebridgeSuplaPlugin

Apache License 2.0
0 stars 0 forks source link

Homebridge does not detect all supla devices. No devices can be added iOS HomeKit app #5

Open borysjarzembski opened 2 months ago

borysjarzembski commented 2 months ago

Describe Your Problem:

I have installed this plugin on my HomeBridge ( Raspberry 5, iOS 17,5,1). In Suppla Cloud I have two devices

Homebridge and Supla bridge are added to iOS App ( i can them in the Home Settings) , but there are invisible in the list of devices in any room. Logs:

What should I do

Show the Homebridge logs here, remove any sensitive information.
`Homebridge
Loading logs using native method...
File: /var/lib/homebridge/homebridge.log

k to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[22/08/2024, 15:44:03] [Supla] Launched child bridge with PID 24340
[22/08/2024, 15:44:03] Registering platform 'homebridge-supla-plugin.SuplaPlatform'
[22/08/2024, 15:44:03] [Supla] Loaded homebridge-supla-plugin v2.1.7 child bridge successfully
[22/08/2024, 15:44:03] Loaded 3 cached accessories from cachedAccessories.___________.
[22/08/2024, 15:44:03] [Supla] Loading accessory from cache: unknown
[22/08/2024, 15:44:03] [Supla] Loading accessory from cache: unknown
[22/08/2024, 15:44:03] [Supla] Loading accessory from cache: unknown
[22/08/2024, 15:44:03] [Supla] Channels discovered: 3
[22/08/2024, 15:44:03] [Supla] Restoring existing accessory from cache: unknown
[22/08/2024, 15:44:03] [Supla] Restoring dsdssd accessory from cache: unknown
[22/08/2024, 15:44:03] [homebridge-supla-plugin] This plugin generated a warning from the characteristic 'Name': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[22/08/2024, 15:44:03] [Supla] Restoring existing accessory from cache: unknown
[22/08/2024, 15:44:03] [homebridge-supla-plugin] This plugin generated a warning from the characteristic 'Name': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[22/08/2024, 15:44:03] [Supla] Restoring existing accessory from cache: unknown
[22/08/2024, 15:44:03] [homebridge-supla-plugin] This plugin generated a warning from the characteristic 'Name': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[22/08/2024, 15:44:03] Homebridge v1.8.4 (HAP v0.12.2) (Supla) is running on port 47208.
[22/08/2024, 15:44:03] 

NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[22/08/2024, 15:44:04] [Supla] MQTT client connected
[22/08/2024, 15:44:05] [Supla] Channels discovered and saved to config file
[22/08/2024, 15:44:06] [Supla] Door unknown state changed to false
[22/08/2024, 15:44:07] [Supla] Door unknown state changed to true
[22/08/2024, 15:44:42] [Homebridge UI] Homebridge restart request received
[22/08/2024, 15:44:42] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[22/08/2024, 15:44:42] [Homebridge UI] Sending SIGTERM to Homebridge
[22/08/2024, 15:44:42] Got SIGTERM, shutting down Homebridge...
[22/08/2024, 15:44:42] Got SIGTERM, shutting down child bridge process...
[22/08/2024, 15:44:47] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[22/08/2024, 15:44:52] [HB Supervisor] Restarting Homebridge...
[22/08/2024, 15:44:52] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[22/08/2024, 15:44:52] [HB Supervisor] Started Homebridge v1.8.4 with PID: _____
[22/08/2024, 15:44:52] Loaded config.json with 0 accessories and 2 platforms.
[22/08/2024, 15:44:52] Loaded 0 cached accessories from cachedAccessories.
[22/08/2024, 15:44:52] ---
[22/08/2024, 15:44:52] Loaded plugin: homebridge-supla-plugin@2.1.7
[22/08/2024, 15:44:52] Registering platform 'homebridge-supla-plugin.SuplaPlatform'
[22/08/2024, 15:44:52] ---
[22/08/2024, 15:44:52] Loading 2 platforms...
[22/08/2024, 15:44:52] [Supla] Initializing SuplaPlatform platform...
[22/08/2024, 15:44:52] [Supla] Initializing child bridge __________
Setup Payload:
X-HM://0024NDE5YF614
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
     │      
    └────────────┘     

[22/08/2024, 15:44:52] Homebridge v1.8.4 (HAP v0.12.2) (Homebridge F164) is running on port 51276.
[22/08/2024, 15:44:52] 

NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[22/08/2024, 15:44:52] [Supla] Launched child bridge with PID _____
[22/08/2024, 15:44:52] Registering platform 'homebridge-supla-plugin.SuplaPlatform'
[22/08/2024, 15:44:52] [Supla] Loaded homebridge-supla-plugin v2.1.7 child bridge successfully
[22/08/2024, 15:44:52] Loaded 3 cached accessories from cachedAccessories.__________
[22/08/2024, 15:44:52] [Supla] Loading accessory from cache: unknown
[22/08/2024, 15:44:52] [Supla] Loading accessory from cache: unknown
[22/08/2024, 15:44:52] [Supla] Loading accessory from cache: unknown
[22/08/2024, 15:44:52] [Supla] Channels discovered: 3
[22/08/2024, 15:44:52] [Supla] Restoring existing accessory from cache: unknown
[22/08/2024, 15:44:52] [Supla] Restoring dsdssd accessory from cache: unknown
[22/08/2024, 15:44:52] [homebridge-supla-plugin] This plugin generated a warning from the characteristic 'Name': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[22/08/2024, 15:44:52] [Supla] Restoring existing accessory from cache: unknown
[22/08/2024, 15:44:52] [homebridge-supla-plugin] This plugin generated a warning from the characteristic 'Name': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[22/08/2024, 15:44:52] [Supla] Restoring existing accessory from cache: unknown
[22/08/2024, 15:44:52] [homebridge-supla-plugin] This plugin generated a warning from the characteristic 'Name': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[22/08/2024, 15:44:53] Homebridge v1.8.4 (HAP v0.12.2) (Supla) is running on port 47208.
[22/08/2024, 15:44:53] 

NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[22/08/2024, 15:44:53] [Supla] MQTT client connected
[22/08/2024, 15:44:54] [Supla] Channels discovered and saved to config file
[22/08/2024, 15:44:56] [Supla] Door unknown state changed to false
[22/08/2024, 15:44:56] [Supla] Door unknown state changed to true

**Plugin Config:**

```{
    "name": "Supla",
    "host": "mqtt125.supla.org",
    "port": "8883",
    "username": "___________________________________",
    "password": "___________________________________",
    "_bridge": {
        "username": "___________",
        "port": 47208
    },
    "platform": "SuplaPlatform",
    "channels": "[{\"topic\":\"supla/b952f2194d6e8a15090aeb0548841eb6/devices/283/channels/1010\",\"channelType\":\"RELAY\",\"channelFunction\":\"CONTROLLINGTHEGARAGEDOOR\",\"channelCaption\":\"unknown\"},{\"topic\":\"supla/b952f2194d6e8a15090aeb0548841eb6/devices/342/channels/1215\",\"channelType\":\"RELAY\",\"channelFunction\":\"CONTROLLINGTHEGATE\",\"channelCaption\":\"unknown\"},{\"topic\":\"supla/b952f2194d6e8a15090aeb0548841eb6/devices/342/channels/1216\",\"channelType\":\"RELAY\",\"channelFunction\":\"CONTROLLINGTHEGATEWAYLOCK\",\"channelCaption\":\"unknown\"}]"
}

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment: