-
Notifications
You must be signed in to change notification settings - Fork 5
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
Can be open the github discussions ? #16
Comments
@Luxni Can you confirm it again use the firmware build0717.zip which match with fixes-serialization branch |
build0717.zip is not work with esp32c6.
can be make a new one for esp32c6? |
@Luxni Please confirm it use the firmware build_1009.zip. |
@lhespress Hardware: nanoESP32-C6 Tests: import unittest
from unittest.mock import Mock
import zigpy.config as config
from zigpy_espzb.api import Znsp
async def test_api():
app = Mock()
znsp = Znsp(
app,
{
config.CONF_DEVICE_PATH: "/dev/ttyACM0",
config.CONF_DEVICE_BAUDRATE:115200,
},
)
await znsp.connect()
await znsp.form_network()
await znsp.start(autostart=False)
class TestAPI(unittest.IsolatedAsyncioTestCase):
async def test_demo(self):
await test_api()
pass
|
@Luxni Please confirm it use the firmware build_1011.zip which UART use GPIO4 (RX) and GPIO5 (TX). |
@lhespress the test_api.py is working , but test_application.py is going wrong. test_application.py import unittest
import zigpy.config as config
from zigpy_espzb.zigbee.application import ControllerApplication
async def test_application():
app = ControllerApplication(
{
config.CONF_DEVICE: {
config.CONF_DEVICE_PATH: "/dev/ttyUSB0",
config.CONF_DEVICE_BAUDRATE:115200,
}
}
)
await app.connect()
class TestAPP(unittest.IsolatedAsyncioTestCase):
async def testapi(self):
await test_application()
I checkout the error , it seems wrong with this code: class ControllerApplication(zigpy.application.ControllerApplication):
_probe_config_variants = [
{zigpy.config.CONF_DEVICE_BAUDRATE: 115200},
]
_watchdog_period = 600 * 0.75
def __init__(self, config: dict[str, Any]):
"""Initialize instance."""
# config is error
# super().__init__(config=zigpy.config.ZIGPY_SCHEMA(config))
# should be
super().__init__(config=config)
self._api = None
self._pending = zigpy.util.Requests()
self._reconnect_task = None |
when I running in homeassistant's ZHA , it still wrong with:
|
@Luxni Please confirm it use the firmware build_1016.zip which UART use GPIO4 (RX) and GPIO5 (TX). |
There is great progress, homeassistant has created the device, but there is still one small problem to solve. esp32c6 log:
zigp-espzb log:
I've had this problem before, use esp_zigbee_ncp I try to solve this problem using the following code.
Why ind.dst_addr_mode==0xff ? |
@lhespress |
@Luxni Please confirm it use the firmware build_1101.zip |
@lhespress |
I having some problems with ZHA of Homeassistant.
In order to make espzb work, I used some special methods (skipping some logic processing).
But there are several issues that need to be addressed:
test environment:
The text was updated successfully, but these errors were encountered: