Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't Start Add-On with valid config #477

Open
mattheworres opened this issue Jan 1, 2025 · 2 comments
Open

Won't Start Add-On with valid config #477

mattheworres opened this issue Jan 1, 2025 · 2 comments

Comments

@mattheworres
Copy link

mattheworres commented Jan 1, 2025

Description of the issue

Howdy! Thanks for all the hard work on this add-on, was hoping to integrate my PS5 into my HA instance with it. Sadly, I have been unable to get the ps5-mqtt add-on to work with what it at least sees as a valid configuration.

So, if I start the add-on without configuring, here's what the log looks like:

Starting PS5-MQTT...
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^
Error: getaddrinfo ENOTFOUND null
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'null'
}

Makes sense, can't talk to my MQTT broker because I didn't configure. So:

Config (secret values set by key in secrets.yaml):

mqtt:
  host: 192.168.1.2
  port: "1883"
  user: ps5
  pass: "!secret ps5_mqtt"
logger: "@ha:ps5:*"
device_check_interval: 5000
device_discovery_interval: 60000
account_check_interval: 5000
include_ps4_devices: false
psn_accounts:
  - username: MyPSNName
    npsso: "!secret ps5_npsso"

As stated, both ps5_mqtt and ps5_npsso are set correctly (I fiddled with removing the _ character, afraid that that's a way to organize sections of data in YAML - it did not fix the issue. Was even able to get HA to yell at me about missing secrets once or twice).

HAOS is running in a VM, and from the HAOS machine commandline, I can ping the MQTT host at the IP address above and it's available from the VM's machine.

The add-on logs are scant helpful. All I see when I can save the configuration, is this message, and nothing else in the log:

Starting PS5-MQTT...

The web UI never comes up, no more logs to help detail why.

More than willing to provide other debugging information to help narrow down the issue. I'm also fairly new to HomeAssistant, so I may be flubbing something pretty fundamental here, too. Was hoping I'd figure this out via rubber duck debugging while writing this issue out, but sadly I am still where I started on this.

Addon version

1.4.0

Platform

Core: 2024.12.5
Supervisor: 2024.12.0
Operating System: HassOS 14.1
Frontend: 20241127.8

Logs of the issue (if applicable)

Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
[11:25:17] ERROR: Got unexpected response from the API: Service not enabled
Starting PS5-MQTT...
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise /);
^
Error: getaddrinfo ENOTFOUND null
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'null'
}
[11:25:30] ERROR: Got unexpected response from the API: Service not enabled
Starting PS5-MQTT...
node:internal/process/promises:279
triggerUncaughtException(err, true /
fromPromise /);
^
Error: getaddrinfo ENOTFOUND null
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'null'
}
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
[11:51:30] ERROR: Got unexpected response from the API: Service not enabled
Starting PS5-MQTT...
node:internal/process/promises:279
triggerUncaughtException(err, true /
fromPromise */);
^
Error: getaddrinfo ENOTFOUND null
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'null'
}
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...
Starting PS5-MQTT...

@FunkeyFlo
Copy link
Owner

Looks like it's not able to find an mqtt server. Did you setup the mqtt add on in home assistant?

@mattheworres
Copy link
Author

oh, derp! I always thought the MQTT add-on simply provided (served from HA) a lightweight broker, and didn't just provide the ability to talk to an MQTT broker. Yes, I have it set, and verified the user/pass are correct, so I'll have to re-try this tonight once I have the add-on installed 🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants