Cyberpower UPS Panel & PowerPanel Personal for Mac v2.7.1.1

slackman1
Posts: 56
Joined: Mon Jun 20, 2011 3:52 am

Cyberpower UPS Panel & PowerPanel Personal for Mac v2.7.1.1

Post by slackman1 »

Glenn,

Happily using your HomeKitLink Siri plugin, as well as your iMessage plugin, I was delighted to see your Cyberpower UPS plugin.
However, after installing the Cyberpower Panel for Mac, v2.7.1.1, I could not use the web-interface or port 3052 with netcat.

Could it be that this new software, for macOS 15/26, has lost some functionality that your plugin uses?
Unfortunately, older version of the Cyberpower Panel cannot be downloaded...

Thanks for any advice on testing stuff...

Kind regards, Gerrit Jan
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Cyberpower UPS Panel & PowerPanel Personal for Mac v2.7.1.1

Post by GlennNZ »

Yeah interesting

Seems they changed completely product lines

Install PowerPanel business instead
Free - hopefully?
And has the needed rest endpoint


Sent from my iPhone using Tapatalk
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Cyberpower UPS Panel & PowerPanel Personal for Mac v2.7.1.1

Post by GlennNZ »

Have updated info - it may have been my mistake all along

See 1.1.3
In github now

https://github.com/Ghawken/CyberPowerUP ... n/releases


Sent from my iPad using Tapatalk
slackman1
Posts: 56
Joined: Mon Jun 20, 2011 3:52 am

Re: Cyberpower UPS Panel & PowerPanel Personal for Mac v2.7.1.1

Post by slackman1 »

Hi Glenn,

Thanks for that...:-) However, now that I have uninstalled Personal and installed the 'Business - Local' variant of the PowerPanel software, I still encounter an error.

A lot seems to go okay, authentication, the software returns correct values to the plugin. The plugin seems to trip on parsing or interpreting the returned values. I have used your latest 1.1.3 version of the plugin.

If you have some time, could you please look into this, or provide me with some advice on things to try?

Thanks in advance for your efforts.

Please see the debug log:

Code: Select all

24 Jul 2026 at 22:32:57
   Cyberpower UPS Panel            UPS device starting: Cyberpower UPS 1600
   Cyberpower UPS Panel Debug      Cyberpower UPS 1600: token missing or expired — re-authenticating
   Cyberpower UPS Panel Debug      Cyberpower UPS 1600: authenticating at http://127.0.0.1:3052/local/rest/v1/login/verify as 'admin'
   Cyberpower UPS Panel Debug      Cyberpower UPS 1600: login raw response: '"Bearer XXX"'
   Cyberpower UPS Panel            Cyberpower UPS 1600: authenticated successfully
   Cyberpower UPS Panel Debug      Cyberpower UPS 1600: fetching status from http://127.0.0.1:3052/local/rest/v1/ups/status
   Cyberpower UPS Panel Debug      Cyberpower UPS 1600: raw API response:
{
  "communicationAvaiable": true,
  "deviceId": 0,
  "onlyPhaseArch": false,
  "input": {
    "state": 0,
    "stateText": "Normal",
    "voltages": [
      "238.0 V"
    ],
    "currents": null,
    "frequencies": null,
    "powerFactors": null,
    "available": true
  },
  "output": {
    "state": 0,
    "stateText": "Normal",
    "ncls": null,
    "voltages": [
      "238.0 V"
    ],
    "currents": null,
    "frequencies": null,
    "powerFactors": null,
    "loads": [
      "10 %"
    ],
    "watts": [],
    "vas": [],
    "activePowers": null,
    "apparentPowers": null,
    "reactivePowers": null,
    "available": true
  },
  "battery": {
    "state": 0,
    "stateText": "Normal, Fully Charged",
    "voltage": "26.8 V",
    "capacity": "100 %",
    "remainingRunTimeInSecs": 4830,
    "remainingRunTimeFormated": "1hr. 20min.",
    "remainingRuntimeInsufficient": false,
    "modularUpsRuntimeZero": false,
    "chargeTimeInSecs": null,
    "chargeTimeFormated": null,
    "temperatureCelsius": null,
    "highVoltage": null,
    "lowVoltage": null,
    "highCurrent": null,
    "lowCurrent": null,
    "bhi": null,
    "available": true
  },
  "bypass": {
    "available": false,
    "state": null,
    "stateText": null,
    "voltages": null,
    "currents": null,
    "frequencies": null,
    "powerFactors": null
  },
  "system": {
    "available": false,
    "hardwareFaultAvailable": false,
    "hardwareCodeAvailable": false,
    "eventCodeAvailable": false,
    "state": null,
    "stateText": null,
    "maintenanceBreak": null,
    "temperatureFormated": null,
    "temperatureCelsius": null,
    "temperatureFahrenheit": null,
    "originalHardwareFaultCode": null,
    "modules": null
  }
}
   Cyberpower UPS Panel Error      Error in plugin execution ServerReplacedElem:

  File "plugin.py", line 179, in deviceUpdated
  File "/Library/Application Support/Perceptive Automation/Indigo 2025.2/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1471, in device_updated
  File "/Library/Application Support/Perceptive Automation/Indigo 2025.2/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1407, in _dispatch_device_start_comm
  File "plugin.py", line 152, in deviceStartComm
  File "plugin.py", line 664, in _update_device
  File "plugin.py", line 590, in _build_states
type: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Cyberpower UPS Panel & PowerPanel Personal for Mac v2.7.1.1

Post by GlennNZ »

Thanks for the info/logging.

Sorry about that. It is because your device has a different set of states.

Should be fixed in 1.1.4
At github releases now

Glenn


Sent from my iPad using Tapatalk
slackman1
Posts: 56
Joined: Mon Jun 20, 2011 3:52 am

Re: Cyberpower UPS Panel & PowerPanel Personal for Mac v2.7.1.1

Post by slackman1 »

Hi Glenn,

Many thanks for that! Version 1.1.4 is operating correctly, now it is time for me to discover all capabilities...:-)
And, absolutely no reason to say sorry, as said, happily using several of your plugins now, appreceate all your efforts...

Kind regards, Gerrit Jan
Post Reply

Return to “GlennNZ's Plugins”