elRadix
(elRadix)
June 18, 2019, 9:11am
21
Difficult, I dont have a realy config error, I it just the missing paths and the check blocks and give full output.
/opt/scripts/ is in the whitelisted directory
Failed config
homeassistant:
- not a directory @ data[‘whitelist_external_dirs’][0]
Exited with code 3
Your output is too large to display in the browser. Only the last 400000 characters are displayed.
OK, in your configuration file put
homeassistant:
whitelist_external_dirs:
- !secret scripts_directory
Then in secrets
scripts_directory: /opt/scripts
And in your fake secrets file
scripts_directory: "~"
And see if that passes.
elRadix
(elRadix)
June 18, 2019, 9:55am
23
does not like it I guess:
- not a directory @ data['whitelist_external_dirs'][0]
Try same as above, but in fake secrets
scripts_directory: fake_directory
And in your CI script
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.4
working_directory: ~/repo
steps:
- checkout
- run:
name: Check config
command: |
mv secrets_redacted.yaml secrets.yaml
mkdir fake_directory
python3.6 -m venv .
source bin/activate
pip3 install --pre --upgrade homeassistant
hass -c . --script check_config
1 Like
elRadix
(elRadix)
June 18, 2019, 11:17am
25
anon43302295:
!secret
works great now; had to adapt the sensors to your proposed secrets structures for the paths.
Thank you very much for you patience and support @anon43302295
1 Like
No worries, glad you’re sorted
elRadix
(elRadix)
June 18, 2019, 12:35pm
27
Now looking for a solution to have notifications in Telegram directly from Circle CI.