grangemd
(Matt)
February 19, 2017, 1:19am
1
I have been trying hard to get my config to work but something does not seem to be working right. Here is what I have in my Z-Wave file in home assistant
usb_path: /dev/ttyACM0
config_path: /usr/local/lib/python3.5/dist-packages/libopenzwave-0.3.2-py3.5-linux-x86_64.egg/config/
Here is what is in the error file:
17-02-18 16:36:41 homeassistant.util.yaml: while scanning for the next token
found character ‘\t’ that cannot start any token
in “/home/mgranger/.homeassistant/zwave.yaml”, line 2, column 1
grangemd
(Matt)
February 19, 2017, 1:40am
4
usb_path: /dev/ttyACM0
config_path: /usr/local/lib/python3.5/dist-packages/libopenzwave-0.3.2-py3.5-linux-x86_64.egg/config/
PhyberApex
(Phyber Apex)
February 19, 2017, 2:21am
5
Still getting that error? Then you still have a tab in line 2 in your config
~Cheers
grangemd
(Matt)
February 19, 2017, 2:38am
6
I am still getting that error and I am positive I have no tabs in my file.
grangemd
(Matt)
February 19, 2017, 3:07am
7
here is the error i am getting now
17-02-18 21:40:41 homeassistant.util.yaml: mapping values are not allowed here in “/home/mgranger/.homeassistant/zwave.yaml”, line 2, column 14
usb_path: /dev/ttyACM0
config_path: usr/local/lib/python3.5/dist-packages/libopenzwave-0.3.2-py3.5-linux-x86_64.egg/config/
Tinkerer
(aka DubhAd on GitHub)
February 19, 2017, 9:30am
8
You’re missing a /
from the start of the config_path:
config_path: /usr/...
^
grangemd
(Matt)
February 19, 2017, 12:50pm
9
I fixed that and I still get the homeassistant.util.yaml: mapping values are not allowed here in “/home/mgranger/.homeassistant/zwave.yaml”, line 2, column 14
jcroed
(Chris Roed)
February 19, 2017, 1:00pm
10
Try removing the trailing slash from the config_path
grangemd
(Matt)
February 19, 2017, 1:30pm
11
Ok I removed the / at the end and it didn’t seem to help.
m0wlheld
(Christoph Dahlen)
February 19, 2017, 2:26pm
12
wrap the values in ’ characters
grangemd
(Matt)
February 19, 2017, 2:52pm
13
I tried wrapping the value in ’ and still no luck.
m0wlheld
(Christoph Dahlen)
February 19, 2017, 3:20pm
14
Please show us more context. Complains on mapped values can be related to indendation or missing hyphens in front of attributes.
it should be
zwave:
usb_path:
config_path:
that’s two spaces infront of usb_path and config_path
1 Like
grangemd
(Matt)
February 19, 2017, 3:44pm
15
Here is the main config file
zwave: !include zwave.yaml
and here is the zwave.yaml file
usb_path: /dev/ttyACM0
config_path: /usr/local/lib/python3.5/dist-packages/libopenzwave-0.3.2-py3.5-linux-x86_64.egg/config
m0wlheld
(Christoph Dahlen)
February 19, 2017, 3:59pm
16
Okay, when included it should be correct that way, Have you tried it without !include directly inside configuration.yaml?
grangemd
(Matt)
February 19, 2017, 6:28pm
17
Yes I have tried that with no luck either
grangemd
(Matt)
February 21, 2017, 2:05am
18
Is there something else I am missing
Tinkerer
(aka DubhAd on GitHub)
February 21, 2017, 7:52am
19
Is the config path correct?
What if you copy the config file from that directory to the HA directory, and comment out the config_path line?
Can you run cat -A zwave.yaml
and post the results please.
grangemd
(Matt)
February 22, 2017, 3:45am
20
I tried moving just the config folder and the libopenzwave-0.3.2-py3.5-linux-x86_64.egg folder into ~/.homeassistant and it did not work.
When i run cat -A here is what i get:
mgranger@Finalizer:~$ cat -A ~/.homeassistant/zwave.yaml
usb_path: /dev/ttyACM0$
Tinkerer
(aka DubhAd on GitHub)
February 22, 2017, 6:35pm
21
Well, that at least says there’s no tabs lurking in there. What error are you now getting?
If it’s still about \t
, can you provide the output of cat -A configuration.yaml
, removing any passwords or other sensitive data.