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

permit_join inconsistent #2617

Closed
dirstel opened this issue Dec 27, 2019 · 6 comments
Closed

permit_join inconsistent #2617

dirstel opened this issue Dec 27, 2019 · 6 comments

Comments

@dirstel
Copy link

dirstel commented Dec 27, 2019

Bug Report

What happened

I set up a fresh Zigbee2MQTT Container via docker, using latest-dev.

in configuration.yaml permit_join is set to true.
This seems to be honored, but the published config (via MQTT) says permit_join is false

`Using '/app/data' as data directory

zigbee2mqtt@1.8.0-dev start /app
node index.js
zigbee2mqtt:info 2019-12-27 16:01:25: Logging to console and directory: 'data/log/2019-12-27.16-01-25'
zigbee2mqtt:info 2019-12-27 16:01:25: Starting zigbee2mqtt version 1.8.0-dev (commit #f069a7e)
zigbee2mqtt:info 2019-12-27 16:01:25: Starting zigbee-herdsman...
zigbee2mqtt:info 2019-12-27 16:01:26: zigbee-herdsman started
zigbee2mqtt:info 2019-12-27 16:01:26: Coordinator firmware version: '{"type":"zStack3x0","meta":{"transportrev":2,"product":1,"majorrel":2,"minorrel":7,"maintrel":1,"revision":20191106}}'
zigbee2mqtt:info 2019-12-27 16:01:26: Currently 0 devices are joined:
zigbee2mqtt:warn 2019-12-27 16:01:26: permit_join set to true in configuration.yaml.
zigbee2mqtt:warn 2019-12-27 16:01:26: Allowing new devices to join.
zigbee2mqtt:warn 2019-12-27 16:01:26: Set permit_join to false once you joined all devices.
zigbee2mqtt:info 2019-12-27 16:01:26: Zigbee: allowing new devices to join.
zigbee2mqtt:info 2019-12-27 16:01:26: Connecting to MQTT server at mqtt://server-1.home:1883
zigbee2mqtt:info 2019-12-27 16:01:26: Connected to MQTT server
zigbee2mqtt:info 2019-12-27 16:01:26: MQTT publish: topic 'home-new/bridge/state', payload 'online'
zigbee2mqtt:info 2019-12-27 16:01:26: MQTT publish: topic 'home-new/bridge/config', payload '{"version":"1.8.0-dev","commit":"f069a7e","coordinator":{"type":"zStack3x0","meta":{"transportrev":2,"product":1,"majorrel":2,"minorrel":7,"maintrel":1,"revision":20191106}},"log_level":"info","permit_join":false}'`

Debug Info

zigbee2mqtt version: dev.latest
CC2652 firmware version: 20191106

@tdn131
Copy link

tdn131 commented Dec 28, 2019

I also noticed this in the latest 1.8.0-dev. I am using a CC2531 though. permit_join is true, but in the line it's permit_join false. This has to be because of the changes from 1.8.0 to 1.8.0dev, since 1.8.0 doesn't have this.

@AlmightyFrog
Copy link

AlmightyFrog commented Dec 31, 2019

I can't confirm it. I am using docker image latest which is 1.8.0 currently, and also there i have inconsistency. Even 1.7.1 and 1.7.0 seem to have it

app_1  | Using '/app/data' as data directory
app_1  | 
app_1  | > zigbee2mqtt@1.7.0 start /app
app_1  | > node index.js
app_1  | 
app_1  | zigbee2mqtt:info  2019-12-31T05:29:26: Logging to directory: '/app/data/log/2019-12-31.06-29-26'
app_1  | zigbee2mqtt:info  2019-12-31T05:29:26: Starting zigbee2mqtt version 1.7.0 (commit #551a58a)
app_1  | zigbee2mqtt:info  2019-12-31T05:29:26: Starting zigbee-herdsman...
app_1  | zigbee2mqtt:info  2019-12-31T05:29:28: zigbee-herdsman started
app_1  | zigbee2mqtt:info  2019-12-31T05:29:28: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}}'
app_1  | zigbee2mqtt:info  2019-12-31T05:29:28: Currently 0 devices are joined:
app_1  | zigbee2mqtt:warn  2019-12-31T05:29:28: `permit_join` set to  `true` in configuration.yaml.
app_1  | zigbee2mqtt:warn  2019-12-31T05:29:28: Allowing new devices to join.
app_1  | zigbee2mqtt:warn  2019-12-31T05:29:28: Set `permit_join` to `false` once you joined all devices.
app_1  | zigbee2mqtt:info  2019-12-31T05:29:28: Zigbee: allowing new devices to join.
app_1  | zigbee2mqtt:info  2019-12-31T05:29:28: Connecting to MQTT server at mqtt://x.x.x.x
app_1  | zigbee2mqtt:info  2019-12-31T05:29:28: Connected to MQTT server
app_1  | zigbee2mqtt:info  2019-12-31T05:29:28: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
app_1  | zigbee2mqtt:info  2019-12-31T05:29:28: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.7.0","commit":"551a58a","coordinator":{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}},"log_level":"info","permit_join":false}'

Strangely I can also not add any new devices. This is just a reinstall of the server, before it worked, now it does not anymore...

Update: I've tried again and now adding new devices worked again after both sending zigbee2mqtt/bridge/config/permit_join true and reset the zigbee devices by removing battery.

@Koenkk
Copy link
Owner

Koenkk commented Jan 7, 2020

Is this issue still present in the latest dev? For me it's working fine now.

image

@Wojciechem
Copy link

Wojciechem commented Jan 30, 2020

Hello, I seem to have the same issue - running inside docker container from latest image:

zigbee2mqtt:info  2020-01-30 22:44:03: Logging to console and directory: '/app/data/log/2020-01-30.22-44-03'
zigbee2mqtt:info  2020-01-30 22:44:03: Starting zigbee2mqtt version 1.9.0 (commit #287f843)
zigbee2mqtt:info  2020-01-30 22:44:03: Starting zigbee-herdsman...
zigbee2mqtt:info  2020-01-30 22:44:04: zigbee-herdsman started
zigbee2mqtt:info  2020-01-30 22:44:04: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}}'
zigbee2mqtt:info  2020-01-30 22:44:04: Currently 0 devices are joined:
zigbee2mqtt:warn  2020-01-30 22:44:04: `permit_join` set to  `true` in configuration.yaml.
zigbee2mqtt:warn  2020-01-30 22:44:04: Allowing new devices to join.
zigbee2mqtt:warn  2020-01-30 22:44:04: Set `permit_join` to `false` once you joined all devices.
zigbee2mqtt:info  2020-01-30 22:44:04: Zigbee: allowing new devices to join.
zigbee2mqtt:info  2020-01-30 22:44:04: Connecting to MQTT server at mqtt://localhost
zigbee2mqtt:info  2020-01-30 22:44:04: Connected to MQTT server
zigbee2mqtt:info  2020-01-30 22:44:04: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
zigbee2mqtt:info  2020-01-30 22:44:04: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.9.0","commit":"287f843","coordinator":{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}},"log_level":"info","permit_join":false}'

@sh4jonny
Copy link

Is this issue still present in the latest dev? For me it's working fine now.

image

what kind of usb stick you are use ?

@Koenkk
Copy link
Owner

Koenkk commented Jan 31, 2020

Found the issue, fixed in latest dev branch, thanks all!

@Koenkk Koenkk closed this as completed Jan 31, 2020
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

6 participants