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

1.5.1.1 Reset to defaults gives not a valid value for dictionary value @ data['options']. #197

Closed
thoj opened this issue Jul 23, 2019 · 9 comments

Comments

@thoj
Copy link
Contributor

thoj commented Jul 23, 2019

zigbee2mqtt add-on version (if edge, please report commit hash):
1.5.1.1
Operating environment (HassOS, Virtual Machine, Device/platform running Hass.io):
hassos

Description of problem:

The default options gives error on save. I press Reset To Defaults and save and get this error:

not a valid value for dictionary value @ data['options']. Got {'data_path': '/share/zigbee2mqtt', 'devices': 'devices.yaml', 'groups': 'groups.yaml', 'homeassistant': True, 'permit_join': False, 'mqtt': {'base_topic': 'zigbee2mqtt', 'server': 'mqtt://homeassistant', 'user': 'my_user', 'password': 'my_password'}, 'serial': {'port': '/dev/ttyACM0', 'disable_led': 'bool?'}, 'advanced': {'pan_id': 6754, 'channel': 11, 'network_key': [1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13], 'availability_blacklist': []}, 'ban': [], 'whitelist': [], 'queue': {}}

Your entire configuration from the frontend (with sensitive fields redacted):

{
  "data_path": "/share/zigbee2mqtt",
  "devices": "devices.yaml",
  "groups": "groups.yaml",
  "homeassistant": true,
  "permit_join": false,
  "mqtt": {
    "base_topic": "zigbee2mqtt",
    "server": "mqtt://homeassistant",
    "user": "my_user",
    "password": "my_password"
  },
  "serial": {
    "port": "/dev/ttyACM0",
    "disable_led": "bool?"
  },
  "advanced": {
    "pan_id": 6754,
    "channel": 11,
    "network_key": [
      1,
      3,
      5,
      7,
      9,
      11,
      13,
      15,
      0,
      2,
      4,
      6,
      8,
      10,
      12,
      13
    ],
    "availability_blacklist": []
  },
  "ban": [],
  "whitelist": [],
  "queue": {}
}
@sliepie
Copy link

sliepie commented Jul 23, 2019

The option "disable_led": "bool?" is not a valid thing. I had the same issue, removing it from config makes it work.

@thoj
Copy link
Contributor Author

thoj commented Jul 23, 2019

Yeah i figured it out. It's there in thee default config so i opened a pull request fixing it.

thoj added a commit to thoj/hassio-zigbee2mqtt that referenced this issue Jul 23, 2019
Change "bool?" to false in default config fixes danielwelch#197
thoj added a commit to thoj/hassio-zigbee2mqtt that referenced this issue Jul 23, 2019
@tigroz
Copy link

tigroz commented Jul 23, 2019

I'm on Hassos,
just upgraded to 1.5.1.1 and now config says:

not a valid value for dictionary value @ data['options']. Got {'data_path': '/share/zigbee2mqtt', 'devices': 'devices.yaml', 'groups': 'groups.yaml', 'homeassistant': True, 'permit_join': False, 'mqtt': {'base_topic': 'zigbee2mqtt', 'server': 'mqtt://homeassistant:1883', 'user': 'xxxx', 'password': 'xxxxx'}, 'serial': {'port': '/dev/ttyACM0'}, 'advanced': {'pan_id': 6754, 'channel': 11, 'network_key': [1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13]}, 'ban': [], 'whitelist': [], 'queue': {}}
my config it's:
{
"data_path": "/share/zigbee2mqtt",
"devices": "devices.yaml",
"groups": "groups.yaml",
"homeassistant": true,
"permit_join": false,
"mqtt": {
"base_topic": "zigbee2mqtt",
"server": "mqtt://homeassistant:1883",
"user": "xxxx",
"password": "xxxx"
},
"serial": {
"port": "/dev/ttyACM0"
},
"advanced": {
"pan_id": 6754,
"channel": 11,
"network_key": [
1,
3,
5,
7,
9,
11,
13,
15,
0,
2,
4,
6,
8,
10,
12,
13
]
},
"ban": [],
"whitelist": [],
"queue": {}
}

@harkoprinssen
Copy link

Same here :(

@tigroz
Copy link

tigroz commented Jul 23, 2019

I'm on Hassos,
just upgraded to 1.5.1.1 and now config says:

not a valid value for dictionary value @ data['options']. Got {'data_path': '/share/zigbee2mqtt', 'devices': 'devices.yaml', 'groups': 'groups.yaml', 'homeassistant': True, 'permit_join': False, 'mqtt': {'base_topic': 'zigbee2mqtt', 'server': 'mqtt://homeassistant:1883', 'user': 'xxxx', 'password': 'xxxxx'}, 'serial': {'port': '/dev/ttyACM0'}, 'advanced': {'pan_id': 6754, 'channel': 11, 'network_key': [1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13]}, 'ban': [], 'whitelist': [], 'queue': {}}
my config it's:
{
"data_path": "/share/zigbee2mqtt",
"devices": "devices.yaml",
"groups": "groups.yaml",
"homeassistant": true,
"permit_join": false,
"mqtt": {
"base_topic": "zigbee2mqtt",
"server": "mqtt://homeassistant:1883",
"user": "xxxx",
"password": "xxxx"
},
"serial": {
"port": "/dev/ttyACM0"
},
"advanced": {
"pan_id": 6754,
"channel": 11,
"network_key": [
1,
3,
5,
7,
9,
11,
13,
15,
0,
2,
4,
6,
8,
10,
12,
13
]
},
"ban": [],
"whitelist": [],
"queue": {}
}

found solution,
i had to reset to the default settings of the config, fill in the mqtt login and password, change :
"disable_led": "bool?"
to
"disable_led": "false"
now the add-on starts without errors...

@harkoprinssen
Copy link

Yep, also did that. seems there is some change we are overlooking, nonetheless it works again!

@KaiboshOz
Copy link

For anyone else that the above didn't work (or they have additional options beyond the defaults) - I reset to default, copied and pasted that elsewhere and then adjusted to match my old settings.. No matter what I did it would not save.
The only way I could get the addon config to save was to again reset to defaults, and then update within the addon page, 1 entry at a time, saving each time. What I ended up with is virtually identical to what I was pasting in there and was refusing to save - but it saved now..

@SpuriousGer
Copy link

Adding ,"availability_blacklist": [] after the network key did the trick for me.

@adrianmihalko
Copy link

socat must be in config. :/

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

7 participants