(bellows) root@raspberrypi:~# bellows -v DEBUG form
--> sys.argv[0]/root/.virtualenvs/bellows/bin/bellows
debug: Using selector: EpollSelector
debug: Loading application state from /root/.config/bellows/app.db
debug: Sending: b'1ac038bc7e'
debug: RSTACK Version: 2 Reason: RESET_SOFTWARE frame: b'c1020b0a527e'
debug: Send command version
debug: Sending: b'004221a850ed2c7e'
debug: Data frame: b'0142a1a8502805e67f627e'
debug: Sending: b'8160597e'
debug: Application frame 0 (version) received
debug: Send command setConfigurationValue
debug: Sending: b'7d314321fb582815c3277e'
debug: Data frame: b'1243a1fb54fb737e'
debug: Sending: b'82503a7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'224021fb592f15226f7e'
debug: Data frame: b'2340a1fb54c6107e'
debug: Sending: b'83401b7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'334121fb792b15a2d77e'
debug: Data frame: b'3441a1fb54d32a7e'
debug: Sending: b'8430fc7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'444621fb7d5e291514417e'
debug: Data frame: b'4546a1fb5435d07e'
debug: Sending: b'8520dd7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'554721fb4d2815713f7e'
debug: Data frame: b'5647a1fb54a9ec7e'
debug: Sending: b'8610be7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'664421fb513a156dc37e'
debug: Data frame: b'6744a1fb54948f7e'
debug: Sending: b'87009f7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'774521fb4e221542f17e'
debug: Data frame: b'7045a1fb5481b57e'
debug: Sending: b'8070787e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'004a21fb450a1565697e'
debug: Data frame: b'014aa1fb54e28c7e'
debug: Sending: b'8160597e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'7d314b21fb55d515e9a97e'
debug: Data frame: b'124ba1fb547eb07e'
debug: Sending: b'82503a7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'224821fb4a2b15f9da7e'
debug: Data frame: b'2348a1fb5443d37e'
debug: Sending: b'83401b7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'334921fb629e15fdff7e'
debug: Data frame: b'3449a1fb63105d7e'
debug: Sending: b'8430fc7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'444e21fb471615579c7e'
debug: Data frame: b'454ea1fb54b0137e'
debug: Sending: b'8520dd7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'554f21fb4f2c15ded97e'
debug: Data frame: b'564fa1fb542c2f7e'
debug: Sending: b'8610be7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setInitialSecurityState
debug: Sending: b'664c21c050214fdb3ed62f40eb39fe20fd2044ceddf7e572f39474908a4c29fb474cb7a63b05c7dbd5d2698c4623a9b2f17e'
debug: Data frame: b'674ca1c054c8237e'
debug: Sending: b'87009f7e'
debug: Application frame 104 (setInitialSecurityState) received
debug: Send command formNetwork
debug: Sending: b'774d21b6542a15b259944a254dfc9a469c4e27abedce678ba3cb7e'
debug: Data frame: b'704da5b654a3267e'
debug: Sending: b'8070787e'
debug: Application frame 30 (formNetwork) received
debug: Data frame: b'004db1b1c43b2d7e'
debug: Sending: b'8160597e'
debug: Application frame 25 (stackStatusHandler) received
debug: Send command setValue
debug: Sending: b'01522103532b1514547e'
debug: Data frame: b'1152a10354e2da7e'
debug: Sending: b'82503a7e'
debug: Application frame 171 (setValue) received

(bellows) root@raspberrypi:~# bellows -v DEBUG permit
--> sys.argv[0]/root/.virtualenvs/bellows/bin/bellows
debug: Using selector: EpollSelector
debug: Loading application state from /root/.config/bellows/app.db
debug: Sending: b'1ac038bc7e'
debug: RSTACK Version: 2 Reason: RESET_SOFTWARE frame: b'c1020b0a527e'
debug: Send command version
debug: Sending: b'004221a850ed2c7e'
debug: Data frame: b'0142a1a8502805e67f627e'
debug: Sending: b'8160597e'
debug: Application frame 0 (version) received
debug: Send command setConfigurationValue
debug: Sending: b'7d314321fb582815c3277e'
debug: Data frame: b'1243a1fb54fb737e'
debug: Sending: b'82503a7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'224021fb592f15226f7e'
debug: Data frame: b'2340a1fb54c6107e'
debug: Sending: b'83401b7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'334121fb792b15a2d77e'
debug: Data frame: b'3441a1fb54d32a7e'
debug: Sending: b'8430fc7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'444621fb7d5e291514417e'
debug: Data frame: b'4546a1fb5435d07e'
debug: Sending: b'8520dd7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'554721fb4d2815713f7e'
debug: Data frame: b'5647a1fb54a9ec7e'
debug: Sending: b'8610be7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'664421fb513a156dc37e'
debug: Data frame: b'6744a1fb54948f7e'
debug: Sending: b'87009f7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'774521fb4e221542f17e'
debug: Data frame: b'7045a1fb5481b57e'
debug: Sending: b'8070787e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'004a21fb450a1565697e'
debug: Data frame: b'014aa1fb54e28c7e'
debug: Sending: b'8160597e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'7d314b21fb55d515e9a97e'
debug: Data frame: b'124ba1fb547eb07e'
debug: Sending: b'82503a7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'224821fb4a2b15f9da7e'
debug: Data frame: b'2348a1fb5443d37e'
debug: Sending: b'83401b7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'334921fb629e15fdff7e'
debug: Data frame: b'3449a1fb63105d7e'
debug: Sending: b'8430fc7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'444e21fb471615579c7e'
debug: Data frame: b'454ea1fb54b0137e'
debug: Sending: b'8520dd7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command setConfigurationValue
debug: Sending: b'554f21fb4f2c15ded97e'
debug: Data frame: b'564fa1fb542c2f7e'
debug: Sending: b'8610be7e'
debug: Application frame 83 (setConfigurationValue) received
debug: Send command networkInit
debug: Sending: b'664c21bff1a47e'
debug: Data frame: b'674ca5bf540c847e'
debug: Sending: b'87009f7e'
debug: Application frame 23 (networkInit) received
debug: Data frame: b'774cb1b1c437cb7e'
debug: Sending: b'8070787e'
debug: Application frame 25 (stackStatusHandler) received
debug: Send command getNetworkParameters
debug: Sending: b'704d21803d167e'
debug: Data frame: b'004da180542b24ad58005452d86075e0944127abedce677302c1f1317e'
debug: Sending: b'8160597e'
debug: Application frame 40 (getNetworkParameters) received
debug: Send command setPolicy
debug: Sending: b'015221fd517a7d38ab7e'
debug: Data frame: b'1152a1fd54d2147e'
debug: Sending: b'82503a7e'
debug: Application frame 85 (setPolicy) received
debug: Send command setPolicy
debug: Sending: b'125321fd524b15bf7e'
debug: Data frame: b'2253a1fd54469c7e'
debug: Sending: b'83401b7e'
debug: Application frame 85 (setPolicy) received
debug: Send command setPolicy
debug: Sending: b'235021fd542b57417e'
debug: Data frame: b'3350a1fd54734b7e'
debug: Sending: b'8430fc7e'
debug: Application frame 85 (setPolicy) received
debug: Send command getNodeId
debug: Sending: b'3451218f5e967e'
debug: Data frame: b'4451a18f542a11387e'
debug: Sending: b'8520dd7e'
debug: Application frame 39 (getNodeId) received
debug: Send command getEui64
debug: Sending: b'4556218effe67e'
debug: Data frame: b'5556a18e891c35be59fb4725c71d7e'
debug: Sending: b'8610be7e'
debug: Application frame 38 (getEui64) received
debug: Send command permitJoining
debug: Sending: b'5657218a4a41867e'
debug: Data frame: b'6657a18a5485cd7e'
debug: Sending: b'87009f7e'
debug: Application frame 34 (permitJoining) received
Joins are permitted for the next 30s...
debug: Data frame: b'7657b18cdf90db42836ab5ba57c593499c4e8a0c7e'
debug: Sending: b'8070787e'
debug: Application frame 36 (trustCenterJoinHandler) received
Device 0xba8b (90:fd:9f:ff:fe:da:f0:ce) joined the network
[0xba8b] Discovering endpoints
Tries remaining: 3
debug: Send command sendUnicast
debug: Sending: b'6054219c54a1afb259914a25aa1593499c4f26a8ec45dd06587e'
debug: Data frame: b'0754a19c546355417e'
debug: Sending: b'8160597e'
debug: Application frame 52 (sendUnicast) received
debug: Data frame: b'1754b19754a1afb259914a25aa1593499c0726cdeda7fd7e'
debug: Sending: b'82503a7e'
debug: Application frame 63 (messageSentHandler) received
debug: Data frame: b'2754b18c92e1db42836ab5ba57c593499c4e20047e'
debug: Sending: b'83401b7e'
debug: Application frame 36 (trustCenterJoinHandler) received
Device 0xcbc6 (90:fd:9f:ff:fe:da:f0:ce) joined the network
debug: Device 90:fd:9f:ff:fe:da:f0:ce changed id (0xba8b => 0xcbc6)
debug: Canceling old initialize call
Failed ZDO request during device initialization:
Traceback (most recent call last):
  File "/root/.virtualenvs/bellows/lib/python3.5/site-packages/zigpy/device.py", line 51, in _initialize
    epr = await self.zdo.request(0x0005, self.nwk, tries=3, delay=2)
  File "/root/.virtualenvs/bellows/lib/python3.5/site-packages/zigpy/util.py", line 58, in retry
    await asyncio.sleep(delay)
  File "/usr/lib/python3.5/asyncio/tasks.py", line 524, in sleep
    return (yield from future)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 285, in result
    raise CancelledError
concurrent.futures._base.CancelledError
[0xcbc6] Discovering endpoints
Tries remaining: 3
debug: Send command sendUnicast
debug: Sending: b'7355219c54ecdeb259914a25aa1593499c4c25a8ef08acd82c7e'
debug: Data frame: b'3754b5ca9adacf4ca60bb7b55e227e'
debug: Sending: b'8430fc7e'
debug: Application frame 98 (incomingSenderEui64Handler) received
debug: Data frame: b'4754b1ed502a15a159944a2dae559236639be16012316b0a3b0dad792680c038165d507c197e'
debug: Sending: b'8520dd7e'
debug: Application frame 69 (incomingMessageHandler) received
debug: [0xcbc6:zdo] ZDO request 0x0013: [52166, 90:fd:9f:ff:fe:da:f0:ce, 142]
debug: Data frame: b'5055a19c546167877e'
debug: Sending: b'8610be7e'
debug: Application frame 52 (sendUnicast) received
debug: Data frame: b'6055b1f192e1db42836ab5ba57c56d9c9c6f577e'
debug: Sending: b'87009f7e'
debug: Application frame 89 (incomingRouteRecordHandler) received
debug: Data frame: b'7055b1f192e1db42836ab5ba57c56d9f9c24057e'
debug: Sending: b'8070787e'
debug: Application frame 89 (incomingRouteRecordHandler) received
debug: Data frame: b'0055b1ed542a15b7d9944a65ab5592c9639be16012316189fd00a888fd7c6d3b7e'
debug: Sending: b'8160597e'
debug: Application frame 69 (incomingMessageHandler) received
debug: Data frame: b'1055b19754ecdeb259914a25aa1593499c0525abed6c4a7e'
debug: Sending: b'82503a7e'
debug: Application frame 63 (messageSentHandler) received
[0xcbc6] Discovered endpoints: [1]
[0xcbc6:1] Discovering endpoint information
Tries remaining: 3
debug: Send command sendUnicast
debug: Sending: b'025a219c54ecdeb259904a25aa1593499c4d24afee08ac8ac15a7e'
debug: Data frame: b'215aa19c546672a57e'
debug: Sending: b'83401b7e'
debug: Application frame 52 (sendUnicast) received
debug: Data frame: b'315ab1f192e1db42836ab5ba57c56d9c9c60aa7e'
debug: Sending: b'8430fc7e'
debug: Application frame 89 (incomingRouteRecordHandler) received
debug: Data frame: b'415ab1f192e1db42836ab5ba57c56d9f9c6ffe7e'
debug: Sending: b'8520dd7e'
debug: Application frame 89 (incomingRouteRecordHandler) received
debug: Data frame: b'515ab1ed542a15b6d9944a65ab5592c8639be16012314088fd00a8abfd20ff87e9cfd76f8ffcc7dfd5d7698a462ba9ec753eaeea65864498552633b1e0603ad2547e'
debug: Sending: b'8610be7e'
debug: Application frame 69 (incomingMessageHandler) received
debug: Data frame: b'615ab19754ecdeb259904a25aa1593499c0224abed71747e'
debug: Sending: b'87009f7e'
debug: Application frame 63 (messageSentHandler) received
[0xcbc6:1] Discovered endpoint information: <SimpleDescriptor endpoint=1 profile=49246 device_type=544 device_version=2 input_clusters=[0, 3, 4, 5, 6, 8, 768, 2821, 4096] output_clusters=[5, 25, 32, 4096]>
debug: Send command sendUnicast
debug: Sending: b'175b219c54ecdeb658944a24ab1593499c4a23acedca678ffdc363f1d47e'
debug: Data frame: b'725ba19c546776a17e'
debug: Sending: b'8070787e'
debug: Application frame 52 (sendUnicast) received
debug: Data frame: b'025bb1f192e1db42836ab5ba57c56d9c9cdbab7e'
debug: Sending: b'8160597e'
debug: Application frame 89 (incomingRouteRecordHandler) received
debug: Data frame: b'125bb1f192e1db42836ab5ba57c56d9c9cc5aa7e'
debug: Sending: b'82503a7e'
debug: Application frame 89 (incomingRouteRecordHandler) received
debug: Data frame: b'225bb1ed542e14b259954b65ab5592cb639be16012315e93f9c76789fc3c31eea0889f4fe099e788a2b70de92826a9ec3425f1b834c607ca050671c48c1218593c309bb29945e535fb21be76a7c7afb4d683347e'
debug: Sending: b'83401b7e'
debug: Application frame 69 (incomingMessageHandler) received
debug: Data frame: b'325bb19754ecdeb658944a24ab1593499c0323abed7d177e'
debug: Sending: b'8430fc7e'
debug: Application frame 63 (messageSentHandler) received
debug: [0xcbc6:1] Manufacturer: IKEA of Sweden
debug: [0xcbc6:1] Model: TRADFRI bulb E27 WS opal 980lm
debug: Considering <class 'zigpy.quirks.xiaomi.TemperatureHumiditySensor'>
debug: Fail because endpoint list mismatch: dict_keys([1, 2, 3]) {1}
debug: Considering <class 'zigpy.quirks.xiaomi.AqaraTemperatureHumiditySensor'>
debug: Fail because profile_id mismatch on at least one endpoint
debug: Considering <class 'zigpy.quirks.xiaomi.AqaraOpenCloseSensor'>
debug: Fail because profile_id mismatch on at least one endpoint
debug: Considering <class 'zigpy.quirks.xiaomi.AqaraWaterSensor'>
debug: Fail because profile_id mismatch on at least one endpoint
debug: Considering <class 'zigpy.quirks.smartthings.SmartthingsTemperatureHumiditySensor'>
debug: Fail because profile_id mismatch on at least one endpoint
debug: Considering <class 'zigpy.quirks.kof.CeilingFan'>
debug: Fail because profile_id mismatch on at least one endpoint
Done
(bellows) root@raspberrypi:~#
