FunkeyFlo/ps5-mqtt

Failed to save config

taylordtriplett opened this issue · 3 comments

Description of the issue

I am getting the following error when attempting to save the PS5 MQTT Config(all person info replaced with stars).

Failed to save add-on configuration, Invalid list for option 'psn_accounts' in PS5 MQTT (df2164f9_ps5_mqtt). Got {'mqtt': {'host': '192.168..**', 'port': '**', 'user': 'MQTT User', 'pass': '********'}, 'logger': '@ha:ps5:', 'device_check_interval': 5000, 'device_discovery_interval': 60000, 'account_check_interval': 5000, 'include_ps4_devices': False, 'psn_accounts': {}}

This error occurs when I have the PSN_Accounts box filled in as well. Have tried both UI and Yaml edits with no success.

Addon version

1.3.1

Platform

Home Assistant 2023.3.2
Supervisor 2023.03.1
Operating System 9.5
Frontend 20230306.0 - latest

Logs of the issue (if applicable)

No response

Could you please include the yaml you are trying to save? And a screenshot of the add on config editor with the value you are trying to save (not yaml)?

Sorry for the delay. I actually was able to get passed the issue if I get rid of !secret. Any ideas on how that is causing the issue?

mqtt: {}
logger: "@ha:ps5:*"
device_check_interval: 3000
device_discovery_interval: 60000
account_check_interval: 5000
include_ps4_devices: false
psn_accounts:

  • username: taylordtriplett
    npsso: "!secret a28**************************************sXxH"
    preferred_ps5: null

Screenshot 2023-03-22 at 19 54 16

Well the given error message tells you all you need to know: you're using !secret incorrectly.

(Recommended) Read the HA Docs to learn how to use !secret.

Or, use the npsso value without the !secret prefix.