ffenix113 / zigbee_home

Project to provide functionality similar to ESPHome but for Zigbee instead of WiFi for nRF52
https://ffenix113.github.io/zigbee_home/
GNU General Public License v3.0
528 stars 10 forks source link

Code does not compile for more than 4 sensors #55

Closed bbadrignans closed 5 months ago

bbadrignans commented 6 months ago

I got this error message when having 2 on_off, ias_zone, temperature and humidity.

main.go:30: generate base: write app src: write template: execute source template "clusters.h.tpl": template: clusters.h.tpl:103:10: executing "clusters.h.tpl" at <$i>: wrong type for value; expected int; got *base.CommonDeviceClusters
exit status 1

Seems that for more than 4 end points, Nordic zboss force some differences, but I don't understand what here .

Nevertheless, there is something wrong in templates/src/zigbee/clusters.h.tpl but don't know how to fix it.

ffenix113 commented 5 months ago

Thank you for the issue!

Good catch, I will check and fix this.

ffenix113 commented 5 months ago

The issue should now be resolved. If it is not - please feel free to re-open the issue.

bbadrignans commented 5 months ago

Yes great, thanks. Tested with 1 dht and 4 on_off.