Rasbee 2 "can not connect"

Hi,

I have just started to try Home Assistant and my only background is with Apple HomeKit combined with Ikea gateway. My current setup is a. Raspberry 3 b+ with a Rasbee 2 card so please bear with me in case of some stupid questions.

When I try to add the Rasbee2 in Home Assistant thru the “add new integration” option i always get a error message. I am selecting the ZHA option and goes thru these steps:

Select serial port for Zigbee radio:
/dev/ttyAMA0 - ttyAMA0, s/n: n/a :white_check_mark:

Pick a type of your Zigbee radio:
deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II :white_check_mark:

Enter port specific settings:
/dev/ttyAMA0. :x: (failed to connect)

I have tried to restart the raspberry several times, both with and without the Rasbee connected.
(I am sure that it is connected to the correct pins)

As part of my troubleshooting I have found this post regarding the same item:

I did try this method, but I did get in to some issues here. There is no config.txt file in my system as far as I can see. I have tried browsing (with the option of showing hidden files on) and searching without any findings.

My Mac is giving me a error message when I try to load the SD card, but I have used the Raspberry with Noobs to search the SD card I have Home Assistant on.

Is there anybody that has any ideas on how to solve this? Either how to get the Rasbee2 to work or how to find the missing config file.

1 Like

The config.txt is in the SD card you shuffled into the Raspberry :slight_smile: Get it out, put it into your PC and look for it. Should be right there in the root folder

Thanks, I did found someone with a PC that could help me with this. I have added the
RPi3: “dtoverlay=pi3-disable-bt” command in the file, but still getting the same error (failed to connect).

Is there somewhere I can check that BT is disabled or that the Rasbee2 is working?

Hrm… What do you see listed below “serial” if you go here:
Supervisor => System => Host System => The three dots in the bottom right => Hardware
It should list this: - /dev/ttyAMA0

Checking if BT is available: I think that’s the place :slight_smile: Or search for an add-on that uses BT. If that can’t find any BT devices, it’s most likely successfully deactivated :wink: (yeah, I know that’s more the “ghetto approach” of doing this)

If everything just works fine, you simply need to go to Integration => + => ZHA => And just always click next. That’s how it worked for me.

Hello,
i have the same problem.
i find the following entry:

 - name: ttyAMA0
    sysfs: /sys/devices/platform/soc/3f201000.serial/tty/ttyAMA0
    dev_path: /dev/ttyAMA0
    subsystem: tty
    by_id: null
    attributes:
      DEVLINKS: /dev/serial1
      DEVNAME: /dev/ttyAMA0
      DEVPATH: /devices/platform/soc/3f201000.serial/tty/ttyAMA0
      MAJOR: '204'
      MINOR: '64'
      SUBSYSTEM: tty
      TAGS: ':systemd:'
      USEC_INITIALIZED: '4225131'

If i go your way in https://community.home-assistant.io/t/zha-cant-connect-to-freshly-installed-raspbee-ii-on-rpi-4b-raspbee-ii-seems-not-available/210550
i can select

 /dev/ttyAMA0 - ttyAMA0, s/n: n/a  
deCONZ = dresden....
/dev/ttyAMA0 

and end up with “connection failed”

If have added
‘dtoverlay=pi3-disable-bt’ in config.txt
just after the entry
kernel=u-boot.bin

The system runs on a raspberry Pi 3 Model B V1.2
Homeassistant version 2021.3.2

What am i missing?
Thanks in advance

Frank

I’ve got the same problem on a RPI4

Here’s my extended log :frowning:

2021-03-14 22:33:15 DEBUG (MainThread) [zigpy_znp.zigbee.application] Probing /dev/ttyAMA0

2021-03-14 22:33:15 DEBUG (MainThread) [zigpy_znp.uart] Connecting to /dev/ttyAMA0 at 115200 baud

2021-03-14 22:33:15 DEBUG (MainThread) [zigpy_znp.uart] Opened /dev/ttyAMA0 serial port

2021-03-14 22:33:15 DEBUG (MainThread) [zigpy_znp.uart] Toggling RTS/CTS to skip CC2652R bootloader

2021-03-14 22:33:15 DEBUG (MainThread) [zigpy_znp.uart] Connected to /dev/ttyAMA0 at 115200 baud

2021-03-14 22:33:15 DEBUG (MainThread) [zigpy_znp.api] Waiting 1s before sending anything

2021-03-14 22:33:16 DEBUG (MainThread) [zigpy_znp.api] Sending bootloader skip byte

2021-03-14 22:33:16 DEBUG (MainThread) [zigpy_znp.api] Waiting 1s or until a reset indication is received

2021-03-14 22:33:17 DEBUG (MainThread) [zigpy_znp.api] Testing connection to /dev/ttyAMA0

2021-03-14 22:33:17 DEBUG (MainThread) [zigpy_znp.api] Sending request: SYS.Ping.Req()

2021-03-14 22:33:20 DEBUG (MainThread) [zigpy_znp.api] Connection to /dev/ttyAMA0 failed, cleaning up

2021-03-14 22:33:20 DEBUG (MainThread) [zigpy_znp.uart] Closing serial port

2021-03-14 22:33:20 DEBUG (MainThread) [zigpy_znp.zigbee.application] Failed to probe ZNP radio with config {'path': '/dev/ttyAMA0', 'flow_control': None, 'baudrate': 115200}

Traceback (most recent call last):

File "/usr/local/lib/python3.8/site-packages/zigpy_znp/zigbee/application.py", line 159, in probe

await znp.connect()

File "/usr/local/lib/python3.8/site-packages/zigpy_znp/api.py", line 259, in connect

self.capabilities = (await self.request(c.SYS.Ping.Req())).Capabilities

File "/usr/local/lib/python3.8/site-packages/zigpy_znp/api.py", line 532, in request

response = await response_future

asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.8/site-packages/zigpy_znp/zigbee/application.py", line 159, in probe

await znp.connect()

File "/usr/local/lib/python3.8/site-packages/async_timeout/__init__.py", line 55, in __aexit__

self._do_exit(exc_type)

File "/usr/local/lib/python3.8/site-packages/async_timeout/__init__.py", line 92, in _do_exit

raise asyncio.TimeoutError

asyncio.exceptions.TimeoutError

2021-03-14 22:33:20 DEBUG (MainThread) [bellows.ezsp] Resetting EZSP

2021-03-14 22:33:23 DEBUG (MainThread) [bellows.ezsp] Unsuccessful radio probe of '/dev/ttyAMA0' port

Traceback (most recent call last):

File "/usr/local/lib/python3.8/site-packages/bellows/ezsp/__init__.py", line 55, in probe

await asyncio.wait_for(ezsp._probe(), timeout=PROBE_TIMEOUT)

File "/usr/local/lib/python3.8/asyncio/tasks.py", line 501, in wait_for

raise exceptions.TimeoutError()

asyncio.exceptions.TimeoutError

2021-03-14 22:33:23 DEBUG (MainThread) [zigpy_deconz.api] Command Command.device_state (0, 0, 0)

2021-03-14 22:33:24 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.device_state' command with seq id '0x02'

2021-03-14 22:33:24 DEBUG (MainThread) [zigpy_deconz.api] Unsuccessful radio probe of '/dev/ttyAMA0' port

Traceback (most recent call last):

File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 380, in probe

await asyncio.wait_for(api._probe(), timeout=PROBE_TIMEOUT)

File "/usr/local/lib/python3.8/asyncio/tasks.py", line 494, in wait_for

return fut.result()

File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 396, in _probe

await self.device_state()

File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 305, in _command

return await asyncio.wait_for(fut, timeout=COMMAND_TIMEOUT)

File "/usr/local/lib/python3.8/asyncio/tasks.py", line 501, in wait_for

raise exceptions.TimeoutError()

asyncio.exceptions.TimeoutError

2021-03-14 22:33:24 DEBUG (MainThread) [zigpy_cc.uart] Connecting on port /dev/ttyAMA0 with boudrate 115200

2021-03-14 22:33:24 DEBUG (MainThread) [zigpy_cc.uart] Connection made

2021-03-14 22:33:25 DEBUG (MainThread) [zigpy_cc.api] --> SREQ SYS version tsn: None {}

2021-03-14 22:33:25 DEBUG (MainThread) [zigpy_cc.uart] Send: b'\xfe\x00!\x02#'

2021-03-14 22:33:26 DEBUG (MainThread) [zigpy_cc.api] Unsuccessful radio probe of '/dev/ttyAMA0' port

Traceback (most recent call last):

File "/usr/local/lib/python3.8/site-packages/zigpy_cc/api.py", line 279, in probe

await asyncio.wait_for(api._probe(), timeout=COMMAND_TIMEOUT)

File "/usr/local/lib/python3.8/asyncio/tasks.py", line 501, in wait_for

raise exceptions.TimeoutError()

asyncio.exceptions.TimeoutError

2021-03-14 22:33:26 DEBUG (MainThread) [zigpy_zigate.uart] PiZiGate detected

2021-03-14 22:33:26 INFO (MainThread) [zigpy_zigate.common] Put PiZiGate in running mode

2021-03-14 22:33:28 DEBUG (MainThread) [zigpy_zigate.uart] Connection made

2021-03-14 22:33:28 DEBUG (MainThread) [zigpy_zigate.uart] Send: 0x0002 b'01'

2021-03-14 22:33:28 DEBUG (MainThread) [zigpy_zigate.uart] Frame to send: b'\x00\x02\x00\x01\x02\x01'

2021-03-14 22:33:28 DEBUG (MainThread) [zigpy_zigate.uart] Frame escaped: b'\x02\x10\x02\x12\x02\x10\x02\x11\x02\x12\x02\x11'

2021-03-14 22:33:29 DEBUG (MainThread) [zigpy_zigate.api] Unsuccessful radio probe of '/dev/ttyAMA0' port

Traceback (most recent call last):

File "/usr/local/lib/python3.8/site-packages/zigpy_zigate/api.py", line 258, in probe

await asyncio.wait_for(api._probe(), timeout=PROBE_TIMEOUT)

File "/usr/local/lib/python3.8/asyncio/tasks.py", line 501, in wait_for

raise exceptions.TimeoutError()

asyncio.exceptions.TimeoutError

2021-03-14 22:33:29 DEBUG (MainThread) [zigpy_xbee.api] at command: AP (2,)

2021-03-14 22:33:29 DEBUG (MainThread) [zigpy_xbee.api] Command at (b'AP', b'\x02')

2021-03-14 22:33:30 WARNING (MainThread) [zigpy_xbee.api] at: No response to AP command

2021-03-14 22:33:31 WARNING (MainThread) [zigpy_cc.api] No response for: SRSP SYS version {}

2021-03-14 22:33:34 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command

2021-03-14 22:33:34 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 57600bps, trying 1200 next

2021-03-14 22:33:37 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command

2021-03-14 22:33:37 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 1200bps, trying 2400 next

2021-03-14 22:33:40 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command

2021-03-14 22:33:40 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 2400bps, trying 4800 next

2021-03-14 22:33:43 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command

2021-03-14 22:33:43 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 4800bps, trying 9600 next

2021-03-14 22:33:46 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command

2021-03-14 22:33:46 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 9600bps, trying 19200 next

2021-03-14 22:33:50 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command

2021-03-14 22:33:50 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 19200bps, trying 38400 next

2021-03-14 22:33:53 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command

2021-03-14 22:33:53 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 38400bps, trying 57600 next

2021-03-14 22:33:56 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command

2021-03-14 22:33:56 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 57600bps, trying 115200 next

2021-03-14 22:33:59 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command

2021-03-14 22:33:59 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 115200bps, trying 230400 next

2021-03-14 22:34:02 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command

2021-03-14 22:34:02 DEBUG (MainThread) [zigpy_xbee.api] Couldn't enter AT command mode at any known baudrate.Configure XBee manually for escaped API mode ATAP2

2021-03-14 22:34:02 DEBUG (MainThread) [zigpy_xbee.api] Unsuccessful radio probe of '/dev/ttyAMA0' port

Traceback (most recent call last):

File "/usr/local/lib/python3.8/site-packages/zigpy_xbee/api.py", line 597, in _probe

await self._at_command("AP", 2)

File "/usr/local/lib/python3.8/site-packages/zigpy_xbee/api.py", line 385, in _at_partial

return await asyncio.wait_for(

File "/usr/local/lib/python3.8/asyncio/tasks.py", line 501, in wait_for

raise exceptions.TimeoutError()

asyncio.exceptions.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.8/site-packages/zigpy_xbee/api.py", line 579, in probe

await asyncio.wait_for(api._probe(), timeout=PROBE_TIMEOUT)

File "/usr/local/lib/python3.8/asyncio/tasks.py", line 494, in wait_for

return fut.result()

File "/usr/local/lib/python3.8/site-packages/zigpy_xbee/api.py", line 600, in _probe

raise APIException("Failed to configure XBee for API mode")

zigpy.exceptions.APIException: Failed to configure XBee for API mode

2021-03-14 22:34:11 DEBUG (MainThread) [zigpy_deconz.api] Command Command.device_state (0, 0, 0)

2021-03-14 22:34:13 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.device_state' command with seq id '0x02'

2021-03-14 22:34:13 DEBUG (MainThread) [zigpy_deconz.api] Unsuccessful radio probe of '/dev/ttyAMA0' port

Traceback (most recent call last):

File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 380, in probe

await asyncio.wait_for(api._probe(), timeout=PROBE_TIMEOUT)

File "/usr/local/lib/python3.8/asyncio/tasks.py", line 494, in wait_for

return fut.result()

File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 396, in _probe

await self.device_state()

File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 305, in _command

return await asyncio.wait_for(fut, timeout=COMMAND_TIMEOUT)

File "/usr/local/lib/python3.8/asyncio/tasks.py", line 501, in wait_for

raise exceptions.TimeoutError()

asyncio.exceptions.TimeoutError

Same problem. Any idea ?

Same problem. Anybody has a solution? :pray:t3:

I’m using a RPi4b and since I’m running a mac, I went and found a windows laptop to insert the SD card into and added the line, dtoverlay=pi3-disable-bton the config text file. it worked for me :slight_smile:

Does this mean that you can’t run RaspBee II and any bluetooth integrations at the same time? You need to really disable bluetooth?