Closed fixmeee closed 8 months ago
Hello @fixmeee,
Thank you for the issue. Indeed the on_off
sensor was not tested with new sensor handling implementation.
Maybe I missed something?
No, you are doing everything correctly, just the issue with the sensor definition. I will pick this up ASAP.
I just pushed a fix.
Could you please try with the newest build:
go install github.com/ffenix113/zigbee_home/cli/cmd/zigbee@develop
Edit: I would also suggest to set is_router
to true, as on_off
sensor currently only accepts commands from coordinator, and for that board should be available always. By default it will sleep most of the time, as it is configured to be sleeping end device, resulting in possible missed commands.
Hi @ffenix113,
generated code builds without problem now. I could execute it on nrf52840 dongle and works fine with HA ZHA.
Thank you for your quick support and BR Dennis
P.S.: Shall I close the issue?
@fixmeee Nice! Glad that it is fixed.
Yeah, if the issue is resolved - please feel free to close it 👍
Tested fix and it works.
Hi,
first of all, thank you for this project. Looks really promising.
I wanted to generate a firmware using on_off sensor. If I try to build the generated project it fails with the following errors:
Using a configuration that is only using bme680/i2c sensor produces a project that can be built without issues. It seems that the files for the on_off sensor are not generated. Maybe I missed something?
Thank you and BR Dennis
This is my configuration file: