Closed pedlou closed 3 years ago
I think there's a misunderstanding somewhere, you said you're using a pizigate https://zigate.fr/produit/pizigate-v1-0/ But you said the device path is /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0 CP2102 USB to UART is a USB TTL zigate not a pizigate https://zigate.fr/produit/zigate-ttl/
if you're really using a pizigate, the path is something like /dev/serial0 or /dev/ttyAMA0
Hi Doudz, Thanks for the fast response. It is a pizigate. let me copy/paste the Supervisor>System>Hardware: serial:
- /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0 If I try to use /dev/ttyAMA0 in ZHA integration I get:
2020-11-30 12:47:52 DEBUG (MainThread) [zigpy_znp.zigbee.application] Probing /dev/ttyAMA0
2020-11-30 12:47:52 DEBUG (MainThread) [zigpy_znp.uart] Connecting to /dev/ttyAMA0 at 115200 baud
2020-11-30 12:47:52 DEBUG (MainThread) [zigpy_znp.uart] Opened /dev/ttyAMA0 serial port
2020-11-30 12:47:52 DEBUG (MainThread) [zigpy_znp.uart] Toggling RTS/CTS to skip CC2652R bootloader
2020-11-30 12:47:52 DEBUG (MainThread) [zigpy_znp.uart] Connected to /dev/ttyAMA0 at 115200 baud
2020-11-30 12:47:52 DEBUG (MainThread) [zigpy_znp.api] Waiting 1s before sending anything
2020-11-30 12:47:53 DEBUG (MainThread) [zigpy_znp.api] Sending bootloader skip byte
2020-11-30 12:47:53 DEBUG (MainThread) [zigpy_znp.uart] Sending data: b'\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF\xEF'
2020-11-30 12:47:53 DEBUG (MainThread) [zigpy_znp.api] Waiting 1s or until a reset indication is received
2020-11-30 12:47:53 DEBUG (MainThread) [zigpy_znp.api] Creating one-shot listener OneShotResponseListener(matching_commands=(SYS.ResetInd.Callback(Reason=None, TransportRev=None, ProductId=None, MajorRel=None, MinorRel=None, MaintRel=None),), future=<Future pending cb=[ZNP.wait_for_responses.
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 142, 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 2020-11-30 12:47:57 DEBUG (MainThread) [bellows.ezsp] Resetting EZSP 2020-11-30 12:48:00 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 54, in probe await asyncio.wait_for(ezsp._probe(), timeout=PROBE_TIMEOUT) File "/usr/local/lib/python3.8/asyncio/tasks.py", line 498, in wait_for raise exceptions.TimeoutError() asyncio.exceptions.TimeoutError 2020-11-30 12:48:00 DEBUG (MainThread) [zigpy_deconz.api] Command Command.device_state (0, 0, 0) 2020-11-30 12:48:02 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.device_state' command with seq id '0x02' 2020-11-30 12:48:02 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 491, 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 498, in wait_for raise exceptions.TimeoutError() asyncio.exceptions.TimeoutError 2020-11-30 12:48:02 DEBUG (MainThread) [zigpy_cc.uart] Connecting on port /dev/ttyAMA0 with boudrate 115200 2020-11-30 12:48:02 DEBUG (MainThread) [zigpy_cc.uart] Connection made 2020-11-30 12:48:03 DEBUG (MainThread) [zigpy_cc.api] --> SREQ SYS version tsn: None {} 2020-11-30 12:48:03 DEBUG (MainThread) [zigpy_cc.uart] Send: b'\xfe\x00!\x02#' 2020-11-30 12:48:04 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 498, in wait_for raise exceptions.TimeoutError() asyncio.exceptions.TimeoutError 2020-11-30 12:48:04 DEBUG (MainThread) [zigpy_zigate.uart] PiZiGate detected 2020-11-30 12:48:04 INFO (MainThread) [zigpy_zigate.common] Put PiZiGate in running mode 2020-11-30 12:48:05 DEBUG (MainThread) [zigpy_zigate.uart] Connection made 2020-11-30 12:48:05 DEBUG (MainThread) [zigpy_zigate.uart] Send: 0x0002 b'01' 2020-11-30 12:48:05 DEBUG (MainThread) [zigpy_zigate.uart] Frame to send: b'\x00\x02\x00\x01\x02\x01' 2020-11-30 12:48:05 DEBUG (MainThread) [zigpy_zigate.uart] Frame escaped: b'\x02\x10\x02\x12\x02\x10\x02\x11\x02\x12\x02\x11' 2020-11-30 12:48:07 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 498, in wait_for raise exceptions.TimeoutError() asyncio.exceptions.TimeoutError 2020-11-30 12:48:07 DEBUG (MainThread) [zigpy_xbee.api] at command: AP (2,) 2020-11-30 12:48:07 DEBUG (MainThread) [zigpy_xbee.api] Command at (b'AP', b'\x02') 2020-11-30 12:48:08 WARNING (MainThread) [zigpy_xbee.api] at: No response to AP command 2020-11-30 12:48:09 WARNING (MainThread) [zigpy_cc.api] No response for: SRSP SYS version {} 2020-11-30 12:48:11 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command 2020-11-30 12:48:11 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 57600bps, trying 1200 next 2020-11-30 12:48:14 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command 2020-11-30 12:48:14 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 1200bps, trying 2400 next 2020-11-30 12:48:17 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command 2020-11-30 12:48:17 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 2400bps, trying 4800 next 2020-11-30 12:48:21 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command 2020-11-30 12:48:21 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 4800bps, trying 9600 next 2020-11-30 12:48:24 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command 2020-11-30 12:48:24 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 9600bps, trying 19200 next 2020-11-30 12:48:27 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command 2020-11-30 12:48:27 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 19200bps, trying 38400 next 2020-11-30 12:48:30 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command 2020-11-30 12:48:30 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 38400bps, trying 57600 next 2020-11-30 12:48:33 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command 2020-11-30 12:48:33 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 57600bps, trying 115200 next 2020-11-30 12:48:37 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command 2020-11-30 12:48:37 DEBUG (MainThread) [zigpy_xbee.api] Failed to enter AT command mode at 115200bps, trying 230400 next 2020-11-30 12:48:40 DEBUG (MainThread) [zigpy_xbee.api] Command mode no response to AT '+++' command 2020-11-30 12:48:40 DEBUG (MainThread) [zigpy_xbee.api] Couldn't enter AT command mode at any known baudrate.Configure XBee manually for escaped API mode ATAP2 2020-11-30 12:48:40 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 498, 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 491, 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
Thanks in advance BR Pedro
What is the version of Home Assistant ? You should use 0.118.4 because it fix pizigate probing
Version | 0.118.4 |
---|---|
Installation Type | Home Assistant OS |
Development | false |
Supervisor | true |
Docker | true |
Virtual Environment | false |
Python Version | 3.8.6 |
Operating System Family | Linux |
Operating System Version | 4.19.127-v7 |
CPU Architecture | armv7l |
Timezone | Europe/Lisbon |
Ok, did you adjust the boot config to disable internal bluetooth ? because it conflicts with pizigate on Rpi 3 https://zigate.fr/documentation/compatibilite-raspberry-pi-3-et-zero-w/
Hi Doudz,
/boot/config.txt inline:
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# HassOS - don't change it!
disable_splash=1
kernel=u-boot.bin
# uncomment for aarch64 bit support
#arm_64bit=1
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
[all]
#dtoverlay=vc4-fkms-v3d
#max_framebuffers=2
dtoverlay = pi3-disable-bt
enable_uart = 1
/boot/cmdline.txt inline
dwc_otg.lpm_enable=0 console=tty1
I don't think it's important but did you try to remove space around egal sign ? Replace
dtoverlay = pi3-disable-bt
enable_uart = 1
by
dtoverlay=disable-bt
enable_uart=1
will test it
It looks like it makes total difference as now integration is successful I will now try to perform some Zigbee devices integration. many thanks
Hi, I am using the setup with Pizigate, RPI3B+ and hassio, while trying the ZHA integration I am having some issues. In Configuration+System+Hardware I have pizigate as: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0 In Integration for ZHA I am using:
Can you provide some assistance? Thanks in advance BR Pedro