wimleers / homebridge-sma-home-manager

SMA Home Manager & Inverter plug-in for Homebridge
GNU General Public License v2.0
10 stars 2 forks source link

[Bug] Inverter is not discovered #20

Open sbstnrch opened 10 months ago

sbstnrch commented 10 months ago

Hi Wim!

The inverter is also not discovered in the EVE Home app. The inverter was discovered a few months ago and the automatic mechanisms for charging the car and heating the water worked well.

Is the following data enough for you to find out what's going on?

Paste of Logs:

[12/8/2023, 2:26:14 PM] [homebridge-sma-home-manager] Launched child bridge with PID 8116
[12/8/2023, 2:26:14 PM] Registering platform 'homebridge-sma-home-manager.SMAHomeManager'
[12/8/2023, 2:26:14 PM] [homebridge-sma-home-manager] Loaded homebridge-sma-home-manager v1.1.8 child bridge successfully
[12/8/2023, 2:26:14 PM] Loaded 0 cached accessories from cachedAccessories.0E4438C51BBA.
[12/8/2023, 2:26:14 PM] [homebridge-sma-home-manager] Found inverter SMAXXXXXXX439 at SMAXXXXXXX439-2.local with IPv4 address 10.0.1.147.
[12/8/2023, 2:26:15 PM] [homebridge-sma-home-manager] Discovered SMA inverter: no
[12/8/2023, 2:26:15 PM] [homebridge-sma-home-manager] Discovered SMA energy manager: { Model: 372, SerialNumber: 3015976854, FirmwareRevision: '2.13.6.R' }
[12/8/2023, 2:26:16 PM] [homebridge-sma-home-manager] Discovered SMA inverter: {
  DeviceClass: 'battery inverter',
  DeviceType: 9356,
  SerialNumber: XXXXXXX439,
  FirmwareRevision: 'unknown'
}
[12/8/2023, 2:26:16 PM] [homebridge-sma-home-manager] Discovered SMA energy manager: { Model: 372, SerialNumber: XXXXXXX854, FirmwareRevision: '2.13.6.R' }
[12/8/2023, 2:26:16 PM] [homebridge-sma-home-manager] The discovered inverter is not a solar or hybrid inverter! Please create a bug report with as much detail as possible. {
  energyManager: {
    Model: 372,
    SerialNumber: XXXXXXX854,
    FirmwareRevision: '2.13.6.R'
  },
  inverter: {
    DeviceClass: 'battery inverter',
    DeviceType: 9356,
    SerialNumber: XXXXXXX439,
    FirmwareRevision: 'unknown'
  }
}

[12/8/2023, 2:26:34 PM] [homebridge-sma-home-manager] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info.

[12/8/2023, 2:26:54 PM] [homebridge-sma-home-manager] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info.

[12/8/2023, 2:27:14 PM] [homebridge-sma-home-manager] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info.

[12/8/2023, 2:27:34 PM] [homebridge-sma-home-manager] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info.

[12/8/2023, 2:27:54 PM] [homebridge-sma-home-manager] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info.

[12/8/2023, 2:28:14 PM] [homebridge-sma-home-manager] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info.

[12/8/2023, 2:28:14 PM] [homebridge-sma-home-manager] Child bridge process ended

[12/8/2023, 2:28:14 PM] [homebridge-sma-home-manager] Process Ended. Code: 1, Signal: null

[12/8/2023, 2:28:21 PM] [homebridge-sma-home-manager] Restarting Process...

Config:

{
    "signals": {
        "offGrid": true,
        "noSun": true,
        "highImport": true
    },
    "surplusSignals": [
        {
            "label": "3k EV Charger",
            "watts": 3000,
            "minutes": 5
        },
        {
            "label": "5k Hot Water",
            "watts": 5000,
            "minutes": 5
        }
    ],
    "_bridge": {
        "username": "XX:XX:XX:XX:XX:BA",
        "port": 49697
    },
    "platform": "SMAHomeManager"
}

Screenshots: Bildschirmfoto 2023-12-08 um 15 17 49

Inverter:

Homebridge Environment:

wimleers commented 10 months ago

The inverter was discovered a few months ago

Do you mean that my Homebridge plugin discovered your inverter a few months ago?

and the automatic mechanisms for charging the car and heating the water worked well.

πŸ€” This plugin does not do anything wrt car charging and water heating πŸ˜… ~Do you mean that the SMA Home Manager's own "optimize energy consumption" logic that SMA advertises has been working well?~ Or do you mean you've configured "surplus signals" in this plugin? Aha, the latter! VERY COOL! 🀩

    "surplusSignals": [
        {
            "label": "3k EV Charger",
            "watts": 3000,
            "minutes": 5
        },
        {
            "label": "5k Hot Water",
            "watts": 5000,
            "minutes": 5
        }
    ],

πŸ‘† I'm so excited to see somebody is using it for these kinds of things! πŸ˜„

I have a counter question for you: could you share a screenshot of how you use those surplus signals? πŸ™

[12/8/2023, 2:26:16 PM] [homebridge-sma-home-manager] The discovered inverter is not a solar or hybrid inverter! Please create a bug report with as much detail as possible. {

☝️ That pretty much says what's going on: it is finding only a battery inverter, with a serial number that matches what you reported: "Sunny Boy Storage 3.7 SerialNumber: XXXXXXX439". But it's not finding your "Sunny Tripower X 12 SerialNumber: XXXXXXX954".

Questions:

  1. Are you saying that your Sunny Tripower used to be discovered just fine?
  2. Was a firmware update was installed for it recently? Looks like version 03.02.08.R was released on August 1, 2023 β€” but when was it installed on your device?
  3. Did something change in your local network? Switches, routers, ISP modem, WiFi?
sbstnrch commented 10 months ago

Hello Wim! Nice of you to get in touch so quickly.

  1. Are you saying that your Sunny Tripower used to be discovered just fine?

I can't really remember. At least back then, data was coming in and I could use it to run automations.

  1. Was a firmware update was installed for it recently?

I think so. An installer (electrician) does this via remote maintenance.

  1. Did something change in your local network? Switches, routers, ISP modem, WiFi?

Yes, the battery was extended in July. It now has twice the capacity.

I can see that I probably need to check a lot of inconsistencies in my setup before I come back to you. Because this Sunny Tripower X 12 appears twice in Sunny Portal. I'll probably have to take care of that first.

Please close the issue. I'll come back to you later after I've taken care of my setup.

But I'll be happy to show you how I used the plugin.

I also use the homebridge-my-wallbox plugin to charge the car when there is sufficient electricity production. IMG_1031

To heat the water, I use a smart switch from Memos, which then switches a heating element on and off. IMG_1030 IMG_1032

wimleers commented 10 months ago

Because this Sunny Tripower X 12 appears twice in Sunny Portal.

Woah! That seems very odd for sure.

But I'll be happy to show you how I used the plugin.

Please do! 😊 πŸ™

Also: what Heizstab are you using, with which heatpump or reservoir? πŸ‘€