mitch7391 / homebridge-cmd4-AdvantageAir

Catered shell script to integrate air conditioner control units by Advantage Air into HomeKit using the plug-in homebridge-cmd4.
MIT License
38 stars 4 forks source link

[Support] Error no Cmd4 Config found #91

Closed chefbenjamin closed 9 months ago

chefbenjamin commented 9 months ago

Describe Your Problem: The issue is I’m getting is the error

no Cmd4 Config found in "/var/lib/homebridge/config.json

Which is a very similar issue to https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/35 I think that its something to do with deafult folder setups.

I’ve totally installed this 3 times now. https://github.com/homebridge/docker-homebridge/wiki/Homebridge-on-QNAP then https://github.com/mitch7391/homebridge-cmd4-AdvantageAir After reading an initial comment on github, I thought I had installed it wrong in the process ie installing HomeBridge Cmd4 Advantage Air before HomeBridge Cmd4, so I deleted everything and started again to end up with 100% the same error.

I’m running this on QNAP TVS-672 running QuTS hero h5.1.4.2596

HomeBridge is installed within in Container Station which is what I followed ( like in the ticket ) One thing I was concerned about was folders in the original setup.

I would normally seek out a qpkg file (compiled installer for QNAP ) opposed to running within Container Station as I’m more of a windows user than a Linux user.

I can confirm I see a response when loading the -AdvantageAir http://192.168.1.162:2025/ Advantage Air v15.1074

and then very detailed output http://192.168.1.162:2025/getSystemData so thats good !

But i think where I'm stuck is are the folders incorrect ? ie

my skills are basic at best in Ubuntu ( but amazing when supported by chatgpt ! )

any ideas how can I fix ?

[Link to Logs:]()

Paste of Logs:

[12/31/2023, 9:38:08 AM] [Homebridge UI] Homebridge restart request received
[12/31/2023, 9:38:08 AM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[12/31/2023, 9:38:08 AM] [Homebridge UI] Sending SIGTERM to Homebridge
[12/31/2023, 9:38:08 AM] Got SIGTERM, shutting down Homebridge...
[12/31/2023, 9:38:13 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[12/31/2023, 9:38:18 AM] [HB Supervisor] Restarting Homebridge...
[12/31/2023, 9:38:18 AM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules -D -K --strict-plugin-resolution
[12/31/2023, 9:38:18 AM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 26094
[12/31/2023, 9:38:18 AM] Loaded config.json with 0 accessories and 2 platforms.
[12/31/2023, 9:38:18 AM] Loaded 0 cached accessories from cachedAccessories.
[12/31/2023, 9:38:18 AM] ---
[12/31/2023, 9:38:18 AM] Loaded plugin: homebridge-cmd4@7.0.2
[12/31/2023, 9:38:18 AM] Registering accessory 'homebridge-cmd4.Cmd4'
[12/31/2023, 9:38:18 AM] Registering platform 'homebridge-cmd4.Cmd4'
[12/31/2023, 9:38:18 AM] ---
[12/31/2023, 9:38:18 AM] Loaded plugin: homebridge-cmd4-advantageair@3.10.0
[12/31/2023, 9:38:18 AM] Registering platform 'homebridge-cmd4-advantageair.cmd4AdvantageAir'
[12/31/2023, 9:38:18 AM] ---
[12/31/2023, 9:38:18 AM] Loading 2 platforms...
[12/31/2023, 9:38:18 AM] [cmd4AdvantageAir] Initializing cmd4AdvantageAir platform...
[12/31/2023, 9:38:18 AM] [cmd4AdvantageAir] cmd4AdvantageAir this.config {
  name: 'cmd4AdvantageAir',
  devices: [Array],
  platform: 'cmd4AdvantageAir'
}
[12/31/2023, 9:38:18 AM] Publishing bridge accessory (name: Homebridge 796E, publishInfo: {
  username: '0E:01:D5:8B:79:6E',
  port: 51494,
  pincode: '***-**-***',
  category: 2,
  bind: undefined,
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: 'bonjour-hap'
}).

[12/31/2023, 9:38:18 AM] Loaded plugin: homebridge-cmd4@7.0.2
[12/31/2023, 9:38:18 AM] Registering accessory 'homebridge-cmd4.Cmd4'
[12/31/2023, 9:38:18 AM] Registering platform 'homebridge-cmd4.Cmd4'
[12/31/2023, 9:38:18 AM] ---
[12/31/2023, 9:38:18 AM] Loaded plugin: homebridge-cmd4-advantageair@3.10.0
[12/31/2023, 9:38:18 AM] Registering platform 'homebridge-cmd4-advantageair.cmd4AdvantageAir'
[12/31/2023, 9:38:18 AM] ---
[12/31/2023, 9:38:18 AM] Loading 2 platforms...
[12/31/2023, 9:38:18 AM] [cmd4AdvantageAir] Initializing cmd4AdvantageAir platform...
[12/31/2023, 9:38:18 AM] [cmd4AdvantageAir] cmd4AdvantageAir this.config {
  name: 'cmd4AdvantageAir',
  devices: [Array],
  platform: 'cmd4AdvantageAir'
}
[12/31/2023, 9:38:18 AM] Publishing bridge accessory (name: Homebridge 796E, publishInfo: {
  username: 'XXXXXXXXX',
  port: 51494,
  pincode: '***-**-***',
  category: 2,
  bind: undefined,
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: 'bonjour-hap'
}).
Setup Payload:

[12/31/2023, 9:38:18 AM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 796E) is running on port 51494.

Cmd4 Config: { "platform": "Cmd4", "name": "Cmd4" }

Screenshots: image

image

image

image

image

image

Advantage Air System:

Homebridge Environment:

mitch7391 commented 9 months ago

@chefbenjamin cheers for the very detailed submission, that is always helpful! This weekend has been been flat out and I will take a look at this tomorrow for you :)

mitch7391 commented 9 months ago

A quick idea before I take a proper look tomorrow could be this.

chefbenjamin commented 9 months ago

that was it - i didnt click the save button on CMD4 installation. I have just done it all again and bang it passed. Now I can start to setup things. Its always such a simple thing ! thanks for the quick replies.

mitch7391 commented 9 months ago

Let us know if you have any other troubles @chefbenjamin and hope you enjoy the setup!