Joaoapps Join and the !secret tag with YAML

Hi there!

I’ve been working on integrating Joaoaps Join in my yaml files. The problem is that when i try to use the !secret tag with multiple devices to create a group, I get an syntax error testing the configuration. Heres what it looks like:

- platform: joaoapps_join
  device_ids: !secret join_id_mobil_rune, !secret join_id_mobil_marit
  device_names: mobil_rune, mobil_marit
  api_key: !secret join_api_key
  name: Mobile - Parents

The error comes from the device_ids I’m trying to separate with commas. I’ve tried multiple ways of formatting them including single quotes, double qoutes, brackets and curly brackets JSON style. I even looked into the YAML documentation to look for answers but I’m comming up short.

Anyone who’s been there, done that and have a suggestion? :slight_smile:

http:
  api_password: !secret http_password

Then in secrets.yaml we have:

http_password: dragon2

Looks like you’re doing that all good though. For testing purposes, don’t use !secrets, just use plain text while testing. Secondly, it seems odd to me that in a device_id attribute you have PASS USER, PASS USER.

I’m taking my guess you might need to define two different lines for each device?

Secret replaces the whole line, you can’t put 2 like that.

Have one secret, and then the 2 id’s comma separated in the secrets file.

1 Like