Closed nicari92 closed 2 years ago
I'm having problems with the small NFC reader. This is the log i see via USB Serial:
INFO Reading configuration /config/esphome/nfctagreader.yaml... INFO Starting log output from /dev/ttyUSB1 with baud rate 115200 [03:28:20][D][api:102]: Accepted 192.168.50.50 [03:28:20][D][binary_sensor:036]: 'TagReader Status': Sending state ON [03:28:30][W][api.connection:080]: Home Assistant 2022.9.6 (192.168.50.50): Connection closed [03:28:30][D][binary_sensor:036]: 'TagReader Status': Sending state OFF [03:28:35][D][api:102]: Accepted 192.168.50.50 [03:28:35][D][binary_sensor:036]: 'TagReader Status': Sending state ON [03:28:35][D][api.connection:861]: Home Assistant 2022.9.6 (192.168.50.50): Connected successfully [03:28:45][W][api.connection:080]: Home Assistant 2022.9.6 (192.168.50.50): Connection closed [03:28:45][D][binary_sensor:036]: 'TagReader Status': Sending state OFF [03:28:51][D][api:102]: Accepted 192.168.50.50 [03:28:51][D][binary_sensor:036]: 'TagReader Status': Sending state ON [03:29:01][W][api.connection:080]: Home Assistant 2022.9.6 (192.168.50.50): Connection closed [03:29:01][D][binary_sensor:036]: 'TagReader Status': Sending state OFF [03:29:26][D][api:102]: Accepted 192.168.50.50 [03:29:26][D][binary_sensor:036]: 'TagReader Status': Sending state ON [03:29:28][D][api.connection:861]: Home Assistant 2022.9.6 (192.168.50.50): Connected successfully [03:29:30] [03:29:30]--------------- CUT HERE FOR EXCEPTION DECODER --------------- [03:29:30] [03:29:30]Exception (28): WARNING Exception type: Access to invalid address: LOAD (wild pointer?) [03:29:30]epc1=0x4024615b epc2=0x00000000 epc3=0x40100d06 excvaddr=0x0000000e depc=0x00000000 WARNING Decoded 0x4024615b: tcp_output_segment_busy at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/lwip2-src/src/core/tcp_out.c:1439 (discriminator 1) (inlined by) tcp_rexmit_rto_prepare at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/lwip2-src/src/core/tcp_out.c:1646 (discriminator 1) [03:29:30] [03:29:30]>>>stack>>> WARNING Found stack trace! Trying to decode it [03:29:30] [03:29:30]ctx: sys [03:29:30]sp: 3fffece0 end: 3fffffb0 offset: 0190 [03:29:30]3fffee70: 40000f58 00000000 00000020 00000000 [03:29:30]3fffee80: feefeffe 3fff0558 3fff0558 3ffffad0 [03:29:30]3fffee90: 00000000 3ffea2e4 3fff0558 00000000 [03:29:30]3fffeea0: 00000000 3fff6d9c 3fff095c 40244066 WARNING Decoded 0x40244066: tcp_slowtmr at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/lwip2-src/src/core/tcp.c:1288 [03:29:30]3fffeeb0: 00000000 4bc6a7f0 b851eb85 00000000 [03:29:30]3fffeec0: 00000000 00000020 3fff5df4 401016fa WARNING Decoded 0x401016fa: free [03:29:30]3fffeed0: 402683de 00103c52 3fff0750 00000000 WARNING Decoded 0x402683de: esf_buf_recycle [03:29:30]3fffeee0: 4024325c 00103c52 3fff0750 40244984 WARNING Decoded 0x4024325c: tcpip_tcp_timer at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/lwip2-src/src/core/timeouts.c:145 WARNING Decoded 0x40244984: tcp_tmr at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/lwip2-src/src/core/tcp.c:244 [03:29:30]3fffeef0: 00000000 00000000 00000001 40243264 WARNING Decoded 0x40243264: tcpip_tcp_timer at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/lwip2-src/src/core/timeouts.c:151 [03:29:30]3fffef00: 3f6ba318 3ffef6a0 3ffef678 40243314 WARNING Decoded 0x40243314: sys_check_timeouts at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/lwip2-src/src/core/timeouts.c:390 [03:29:30]3fffef10: 4026a128 3ffef678 3ffef6a0 60000600 WARNING Decoded 0x4026a128: ets_timer_handler_isr [03:29:30]3fffef20: 3f6ba318 3ffef6a0 3ffef678 4026a135 WARNING Decoded 0x4026a135: ets_timer_handler_isr [03:29:31]3fffef30: 4026a17a 3fffdab0 00000000 3fffdcb0 WARNING Decoded 0x4026a17a: ets_timer_handler_isr [03:29:31]3fffef40: 3ffef6c8 3fffdad0 3fff01f8 40230c1a WARNING Decoded 0x40230c1a: loop_task(ETSEventTag*) at core_esp8266_main.cpp [03:29:31]3fffef50: 40000f49 40000f49 3fffdab0 40000f49 [03:29:31]3fffef60: 40000e19 0007d465 00000000 00000005 [03:29:31]3fffef70: 3fffefc0 aa55aa55 000000ed 40105e81 WARNING Decoded 0x40105e81: call_user_start_local [03:29:31]3fffef80: 40105e87 00000000 00000005 401016d4 WARNING Decoded 0x40105e87: call_user_start_local WARNING Decoded 0x401016d4: umm_init [03:29:31]3fffef90: 4010000d 00000000 0007d465 401000ac WARNING Decoded 0x4010000d: call_user_start WARNING Decoded 0x401000ac: app_entry_redefinable [03:29:31]3fffefa0: 4025a7a4 3fffef3c 4025a755 3fffff18 WARNING Decoded 0x4025a7a4: cont_ret at cont.S.o WARNING Decoded 0x4025a755: cont_continue at cont.S.o [03:29:31]3fffefb0: 3fffffc0 00000000 00000000 feefeffe [03:29:31]3fffefc0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3fffefd0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3fffefe0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3fffeff0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff000: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff010: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff020: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff030: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff040: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff050: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff060: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff070: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff080: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff090: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff0a0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff0b0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff0c0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff0d0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff0e0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff0f0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff100: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff110: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff120: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff130: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff140: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff150: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff160: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff170: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff180: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff190: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff1a0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff1b0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff1c0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff1d0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff1e0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff1f0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff200: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff210: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff220: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff230: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff240: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff250: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff260: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff270: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff280: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff290: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff2a0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff2b0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff2c0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff2d0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff2e0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff2f0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff300: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff310: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff320: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff330: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff340: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff350: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff360: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff370: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff380: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff390: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff3a0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff3b0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff3c0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff3d0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff3e0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff3f0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff400: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff410: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff420: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff430: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff440: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff450: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff460: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff470: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff480: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff490: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff4a0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff4b0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff4c0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff4d0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff4e0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff4f0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff500: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff510: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff520: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff530: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff540: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff550: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff560: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff570: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff580: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff590: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff5a0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff5b0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff5c0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff5d0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff5e0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff5f0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff600: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff610: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff620: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff630: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff640: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff650: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff660: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff670: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff680: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff690: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff6a0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff6b0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff6c0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff6d0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff6e0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff6f0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff700: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff710: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff720: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff730: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff740: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff750: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff760: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff770: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff780: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff790: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff7a0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff7b0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff7c0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff7d0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff7e0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff7f0: feefeffe feefeffe feefeffe feefeffe [03:29:31]3ffff800: feefeffe feefeffe feefeffe 3ffe8368 [03:29:31]3ffff810: 4023e351 0000001c 00000020 40101724 WARNING Decoded 0x4023e351: _Balloc at /workdir/repo/newlib/newlib/libc/stdlib/mprec.c:128 WARNING Decoded 0x40101724: malloc [03:29:31]3ffff820: 40101996 feefeffe 00000001 40101988 WARNING Decoded 0x40101996: calloc WARNING Decoded 0x40101988: calloc [03:29:31]3ffff830: feefeffe 0000001c 00000001 40232228 WARNING Decoded 0x40232228: _calloc_r [03:29:31]3ffff840: 00000002 00000001 3ffe8368 3ffe8368 [03:29:31]3ffff850: 4023e351 00000018 00000020 40101724 WARNING Decoded 0x4023e351: _Balloc at /workdir/repo/newlib/newlib/libc/stdlib/mprec.c:128 WARNING Decoded 0x40101724: malloc [03:29:31]3ffff860: 40101996 feefeffe 00000001 40101988 WARNING Decoded 0x40101996: calloc WARNING Decoded 0x40101988: calloc [03:29:32]3ffff870: 3ffff8a4 00000018 00000001 40232228 WARNING Decoded 0x40232228: _calloc_r [03:29:32]3ffff880: 00000001 7cc60000 3ffe8368 4023e351 WARNING Decoded 0x4023e351: _Balloc at /workdir/repo/newlib/newlib/libc/stdlib/mprec.c:128 [03:29:32]3ffff890: 3fff4955 3fff4956 00000002 4023d8c5 WARNING Decoded 0x4023d8c5: _dtoa_r at /workdir/repo/newlib/newlib/libc/stdlib/dtoa.c:854 [03:29:32]3ffff8a0: 00000002 00000000 0000000a 00000000 [03:29:32]3ffff8b0: 00000002 00000000 0000000a 00000000 [03:29:32]3ffff8c0: 00000004 00000000 0000000a 00000000 [03:29:32]3ffff8d0: 00000005 00000000 00000020 40100588 WARNING Decoded 0x40100588: ets_post [03:29:32]3ffff8e0: 00000005 00000000 00000005 40102aec WARNING Decoded 0x40102aec: pp_post [03:29:32]3ffff8f0: 3ffea4d5 40105d7f 3ffedee8 40102aec WARNING Decoded 0x40105d7f: lmacRxDone WARNING Decoded 0x40102aec: pp_post [03:29:32]3ffff900: 40103673 3ffedee8 00000020 40100588 WARNING Decoded 0x40103673: rcReachRetryLimit WARNING Decoded 0x40100588: ets_post [03:29:32]3ffff910: ffffffe0 3e357d88 3ffee86c 40103850 WARNING Decoded 0x40103850: rcReachRetryLimit [03:29:32]3ffff920: 3ffead50 00000000 00000000 40100588 WARNING Decoded 0x40100588: ets_post [03:29:32]3ffff930: ffffffe0 3e357d88 40103d0a 00000100 WARNING Decoded 0x40103d0a: wDev_ProcessFiq [03:29:32]3ffff940: 3ffead50 7fffffff 50512200 00000001 [03:29:32]3ffff950: 00000001 00004208 00000000 ffffffff [03:29:32]3ffff960: 3ffead50 00000000 0000001f 3e357d88 [03:29:32]3ffff970: 3ffead74 2c9f0300 4000050c 3fffc278 [03:29:32]3ffff980: 40103a2c 3fffc200 00000022 00000000 WARNING Decoded 0x40103a2c: wDev_ProcessFiq [03:29:32]3ffff990: 40213ad9 00000030 00000010 ffffffff WARNING Decoded 0x40213ad9: esphome::socket::LWIPRawImpl::accept(sockaddr*, unsigned int*) [03:29:32]3ffff9a0: 402100fa 00000000 0000000b 3ffffad0 WARNING Decoded 0x402100fa: esphome::ota::OTAComponent::handle_() [03:29:32]3ffff9b0: 3ffffee8 40213a4c 00000000 fffffffe WARNING Decoded 0x40213a4c: esphome::socket::LWIPRawImpl::accept(sockaddr*, unsigned int*) [03:29:32]3ffff9c0: 00000450 3fffc6fc 00000000 3fff5ac4 [03:29:32]3ffff9d0: 3ffffed0 3fff5d3c 3ffffad0 00000030 [03:29:32]3ffff9e0: 3ffffee8 40213a4c 00000000 fffffffe WARNING Decoded 0x40213a4c: esphome::socket::LWIPRawImpl::accept(sockaddr*, unsigned int*) [03:29:32]3ffff9f0: 00000450 3fffc6fc 00000000 3fff16dc [03:29:32]3ffffa00: 3ffffed0 00000000 3fff16dc 00000030 [03:29:32]3ffffa10: 00000000 4024f0ab 3ffeefc0 3fff4f54 WARNING Decoded 0x4024f0ab: ieee80211_output_pbuf [03:29:32]3ffffa20: 00000000 00000002 40266957 00000001 WARNING Decoded 0x40266957: pp_attach [03:29:32]3ffffa30: 00000008 00000000 0000000a 00000000 [03:29:32]3ffffa40: 00000008 00000000 0000000a 00000000 [03:29:32]3ffffa50: 402669a6 3ffedbf0 3fff4f54 00000001 WARNING Decoded 0x402669a6: pp_attach [03:29:32]3ffffa60: 00000000 a0000000 40266957 00000001 WARNING Decoded 0x40266957: pp_attach [03:29:32]3ffffa70: ffffffff 00000000 3ffea621 00000008 [03:29:32]3ffffa80: 402669a6 3ffedbf0 3fff4f54 00000001 WARNING Decoded 0x402669a6: pp_attach [03:29:32]3ffffa90: 3ffffee8 00000000 00000020 40100588 WARNING Decoded 0x40100588: ets_post [03:29:32]3ffffaa0: 00000005 00000005 00000002 3fff16dc [03:29:32]3ffffab0: 00000000 3ffffed0 3fff16dc 402105f8 WARNING Decoded 0x402105f8: esphome::ota::OTAComponent::handle_() [03:29:33]3ffffac0: 00000000 4024f0ab 3ffeefc0 3fff4f54 WARNING Decoded 0x4024f0ab: ieee80211_output_pbuf [03:29:33]3ffffad0: 00000000 00000002 00000000 3ffedbf0 [03:29:33]3ffffae0: 3fff7bf2 401063c3 3fff4be4 3fff06a8 WARNING Decoded 0x401063c3: wdt_feed [03:29:33]3ffffaf0: 3fff531c 00000000 0000000a 3ffe8368 [03:29:33]3ffffb00: 00000027 402429e9 3fff4be4 3fff06a8 WARNING Decoded 0x402429e9: glue2esp_linkoutput at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/glue-esp/lwip-esp.c:301 [03:29:33]3ffffb10: 4023edb0 3fff6464 00000027 00000000 WARNING Decoded 0x4023edb0: __ssputs_r at /workdir/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:179 [03:29:33]3ffffb20: 3fff09c4 a0000000 00000000 3fff06c0 [03:29:33]3ffffb30: 3fff06c0 3fff7bbc 3fff7bbc 40242c17 WARNING Decoded 0x40242c17: new_linkoutput at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/glue-lwip/lwip-git.c:268 [03:29:33]3ffffb40: 3fff06f4 3fff7bbc 00000000 40243066 WARNING Decoded 0x40243066: ethernet_output at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/lwip2-src/src/netif/ethernet.c:312 [03:29:33]3ffffb50: 3fff09c4 00000000 3ffffc40 4023ee74 WARNING Decoded 0x4023ee74: __ssputs_r at /workdir/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:232 [03:29:33]3ffffb60: 00000003 3fff10c6 00000018 3fff09c4 [03:29:33]3ffffb70: 3fff06c0 3fff06f4 3fff09b8 402481c0 WARNING Decoded 0x402481c0: etharp_output_to_arp_index at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/lwip2-src/src/core/ipv4/etharp.c:770 [03:29:33]3ffffb80: 00000005 00000000 00000020 40100588 WARNING Decoded 0x40100588: ets_post [03:29:33]3ffffb90: 3fff7bbc 00000027 00000005 40102aec WARNING Decoded 0x40102aec: pp_post [03:29:33]3ffffba0: 3ffea4d5 40105d7f 3ffedf10 3fff7c00 WARNING Decoded 0x40105d7f: lmacRxDone [03:29:33]3ffffbb0: 40103673 3ffedf10 3fff06c0 40248288 WARNING Decoded 0x40103673: rcReachRetryLimit WARNING Decoded 0x40248288: etharp_output_LWIP2 at /home/earle/src/esp-quick-toolchain/arduino/tools/sdk/lwip2/builder/lwip2-src/src/core/ipv4/etharp.c:885 [03:29:33]3ffffbc0: ffffffe1 3f69371e 3ffee86c 40103850 WARNING Decoded 0x40103850: rcReachRetryLimit [03:29:33]3ffffbd0: 3ffead74 00000000 00000000 40102aec WARNING Decoded 0x40102aec: pp_post [03:29:33]3ffffbe0: ffffffe1 3f69371e 40103d0a 00000100 WARNING Decoded 0x40103d0a: wDev_ProcessFiq [03:29:33]3ffffbf0: 3ffead74 7fffffff 00002200 00000001 [03:29:33]3ffffc00: 00000001 00000080 3ffee86c 40103850 WARNING Decoded 0x40103850: rcReachRetryLimit [03:29:33]3ffffc10: 3ffead74 00000000 00000000 3f69371e [03:29:33]3ffffc20: 3ffead80 2c9f0300 4000050c 3fffc278 [03:29:33]3ffffc30: 40103a2c 3fffc200 00000022 00000001 WARNING Decoded 0x40103a2c: wDev_ProcessFiq [03:29:33]3ffffc40: 402313cf 00000030 0000001b ffffffff WARNING Decoded 0x402313cf: Twi::WAIT_CLOCK_STRETCH() [03:29:33]3ffffc50: 40231628 60000318 00061a7f 637518b1 WARNING Decoded 0x40231628: Twi::read_bit() [03:29:33]3ffffc60: c0030015 00000001 00000000 00000001 [03:29:33]3ffffc70: 00000000 3fffc6fc 00000000 00b71b00 [03:29:33]3ffffc80: 637518b4 000249f0 3fff0244 00000030 [03:29:33]3ffffc90: c0030025 00000001 00000000 00000001 [03:29:33]3ffffca0: 00000000 3fffc6fc 00000000 00000000 [03:29:33]3ffffcb0: 00000008 60000314 00000001 00000030 [03:29:33]3ffffcc0: 00000124 3fff0244 00000001 00000030 [03:29:33]3ffffcd0: 3fff61e4 00000020 3fff241c 401016fa WARNING Decoded 0x401016fa: free [03:29:33]3ffffce0: 3fff61e4 00000000 00000000 40242810 WARNING Decoded 0x40242810: operator delete(void*) at /workdir/repo/gcc-gnu/libstdc++-v3/libsupc++/del_op.cc:50 [03:29:33]3ffffcf0: 00000003 00000000 00000010 402419d8 WARNING Decoded 0x402419d8: operator delete(void*, unsigned int) at /workdir/repo/gcc-gnu/libstdc++-v3/libsupc++/del_ops.cc:34 [03:29:33]3ffffd00: 00000005 00000000 3fff107c 40201aea WARNING Decoded 0x40201aea: std::_Vector_base<unsigned char, std::allocator<unsigned char> >::~_Vector_base() [03:29:34]3ffffd10: 3fff61e4 00000000 00000000 402036d5 WARNING Decoded 0x402036d5: esphome::api::APIPlaintextFrameHelper::write_packet(unsigned short, unsigned char const*, unsigned int) [03:29:34]3ffffd20: 3fff241c 00000003 3fff0ebc 00000001 [03:29:34]3ffffd30: 3fff0244 00000001 3fff0244 402315c2 WARNING Decoded 0x402315c2: Twi::write_bit(bool) [03:29:34]3ffffd40: 3fff0244 00000000 00000000 00000001 [03:29:34]3ffffd50: 60000314 00000001 3fff0244 40231531 WARNING Decoded 0x40231531: Twi::write_stop() [03:29:34]3ffffd60: 00000006 3ffeff88 3fff0244 402317ad WARNING Decoded 0x402317ad: Twi::readFrom(unsigned char, unsigned char*, unsigned int, unsigned char) [03:29:34]3ffffd70: 00000005 00000000 00000000 00000001 [03:29:34]3ffffd80: 60000314 00000001 3fff0244 00103c12 [03:29:34]3ffffd90: 3fff1884 00000007 00000007 40231980 WARNING Decoded 0x40231980: twi_readFrom [03:29:34]3ffffda0: 60000314 00000001 3fff0244 4022cd3a WARNING Decoded 0x4022cd3a: TwoWire::requestFrom(unsigned char, unsigned int, bool) [03:29:34]3ffffdb0: 4026bfac 00000321 3ffe85e4 4010151b WARNING Decoded 0x4026bfac: system_param_load WARNING Decoded 0x4010151b: umm_free_core at umm_malloc.cpp [03:29:34]3ffffdc0: 00000000 00000000 3ffffea0 4022fc64 WARNING Decoded 0x4022fc64: String::copy(char const*, unsigned int) [03:29:34]3ffffdd0: 00000000 3ffffe60 3ffffea0 3fff3700 [03:29:34]3ffffde0: 3fff61e4 3fff6204 3fff61e4 40203191 WARNING Decoded 0x40203191: _ZN7esphome3api23APIPlaintextFrameHelper15try_read_frame_EPNS1_11ParsedFrameE$part$0 at api_frame_helper.cpp [03:29:34]3ffffdf0: 53555341 00000032 00000000 00000000 [03:29:34]3ffffe00: 00000000 4bc6a7f0 a20c49ba 12c5b89b [03:29:34]3ffffe10: 00000000 00000000 4bc6a7f0 00000000 [03:29:34]3ffffe20: 3ffffe50 00000000 40100db1 00000000 WARNING Decoded 0x40100db1: millis [03:29:34]3ffffe30: 00103c4c 40217a18 00000000 3fff3700 WARNING Decoded 0x40217a18: esphome::wifi::WiFiComponent::wifi_sta_connect_status_() [03:29:34]3ffffe40: 00000000 4bc6a7f0 af1a9fbe 12c5b8aa [03:29:34]3ffffe50: 00000000 00000000 4bc6a7f0 00000000 [03:29:34]3ffffe60: 3fff3700 000003e9 40100db1 00000000 WARNING Decoded 0x40100db1: millis [03:29:34]3ffffe70: 402325c4 4bc6a7f0 a6a7ef9d 12c5b8a0 WARNING Decoded 0x402325c4: uart_rx_available [03:29:34]3ffffe80: 00000000 00103c4c 3fff190c 4022da44 WARNING Decoded 0x4022da44: HardwareSerial::available() [03:29:34]3ffffe90: 3fff619c 00000002 3fff190c 402350a6 WARNING Decoded 0x402350a6: esphome::improv_serial::ImprovSerialComponent::available_() [03:29:34]3ffffea0: 00103c4c 3fff5dc0 40100db1 40209ce2 WARNING Decoded 0x40100db1: millis WARNING Decoded 0x40209ce2: esphome::improv_serial::ImprovSerialComponent::loop() [03:29:34]3ffffeb0: 3fffff1c 00000000 00000000 3fff3700 [03:29:34]3ffffec0: 00000000 4bc6a7f0 b851eb85 12c5b8b5 [03:29:34]3ffffed0: 00000000 00000000 4bc6a7f0 00000000 [03:29:34]3ffffee0: 00000000 4bc6a7f0 40100db1 00000000 WARNING Decoded 0x40100db1: millis [03:29:34]3ffffef0: 00103c4c 4bc6a7f0 b6041893 12c5b8b2 [03:29:35]3fffff00: 4010675d 13d17b63 3fff0558 00000000 WARNING Decoded 0x4010675d: ets_timer_arm_new [03:29:35]3fffff10: 3ffef6a0 3fff0558 0000000a 3fff0558 [03:29:35]3fffff20: 00103c4c 3fff190c 40230ca0 3fffefa0 WARNING Decoded 0x40230ca0: esp_yield [03:29:35]3fffff30: 3fff0558 00103c4c 3fff190c 40231c92 WARNING Decoded 0x40231c92: delay [03:29:35]3fffff40: 3fff6101 0000000a 3ffefb54 40100248 WARNING Decoded 0x40100248: esphome::delay(unsigned int) [03:29:35]3fffff50: 3fffdad0 0000000a 3ffefb54 4021863b WARNING Decoded 0x4021863b: esphome::Application::loop() [03:29:35]3fffff60: 3fff6101 000000f5 3ffefc00 3ffe9620 [03:29:35]3fffff70: 3fff61a0 3ffffe8c 3ffefc28 3ffffec0 [03:29:35]3fffff80: 00000000 00000000 00000001 3fff01f8 [03:29:35]3fffff90: 3fffdad0 00000000 3fff01e4 4021c040 WARNING Decoded 0x4021c040: loop [03:29:35]3fffffa0: 3fffdad0 00000000 3fff01e4 40230dcc WARNING Decoded 0x40230dcc: loop_wrapper() at core_esp8266_main.cpp [03:29:35]<<<stack<<< [03:29:35] [03:29:35]--------------- CUT HERE FOR EXCEPTION DECODER --------------- [03:29:35] [03:29:35] ets Jan 8 2013,rst cause:2, boot mode:(3,6) [03:29:35] [03:29:35]load 0x4010f000, len 3460, room 16 [03:29:35]tail 4 [03:29:35]chksum 0xcc [03:29:35]load 0x3fff20b8, len 40, room 4 [03:29:35]tail 4 [03:29:35]chksum 0xc9 [03:29:35]csum 0xc9 [03:29:35]v0007d470 [03:29:35]~ld [03:29:35][I][logger:243]: Log initialized [03:29:35][C][ota:465]: There have been 0 suspected unsuccessful boot attempts. [03:29:35][I][app:029]: Running through setup()... [03:29:35][I][i2c.arduino:161]: Performing I2C bus recovery [03:29:35][D][template.switch:050]: Restored state OFF [03:29:35][D][switch:017]: 'TagReader Buzzer Enabled' Turning OFF. [03:29:35][D][switch:037]: 'TagReader Buzzer Enabled': Sending state OFF [03:29:35][D][template.switch:050]: Restored state ON [03:29:35][D][switch:013]: 'TagReader LED enabled' Turning ON. [03:29:35][D][switch:037]: 'TagReader LED enabled': Sending state ON [03:29:35][C][esp8266_pwm:017]: Setting up ESP8266 PWM Output... [03:29:35][C][light:036]: Setting up light 'TagReader LED'... [03:29:35][D][light:035]: 'TagReader LED' Setting: [03:29:35][D][light:040]: Color mode: RGB [03:29:35][D][light:084]: Transition length: 1.0s [03:29:35][C][pn532:018]: Setting up PN532... [03:29:35][D][pn532:033]: Found chip PN532 [03:29:35][D][pn532:034]: Firmware ver. 1.6 [03:29:35][D][binary_sensor:034]: 'TagReader Status': Sending initial state OFF [03:29:35][D][text_sensor:067]: 'TagReader ESPHome Version': Sending state '2022.9.2' [03:29:35][C][wifi:037]: Setting up WiFi... [03:29:35][D][wifi:384]: Starting scan... [03:29:38][D][wifi:399]: Found networks: [03:29:38][I][wifi:442]: - 'ASUS2' [redacted]▂▄▆█ [03:29:38][D][wifi:444]: Channel: 11 [03:29:38][D][wifi:445]: RSSI: -32 dB [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:38][I][wifi:255]: WiFi Connecting to 'ASUS2'... [03:29:39][W][wifi_esp8266:482]: Event: Disconnected ssid='ASUS2' bssid=[redacted] reason='Auth Expired' [03:29:39][W][wifi:547]: Error while connecting to network. [03:29:39][W][wifi:583]: Restarting WiFi adapter... [03:29:39][W][wifi_esp8266:482]: Event: Disconnected ssid='ASUS2' bssid=[redacted] reason='Authentication Failed' [03:29:39][I][wifi:255]: WiFi Connecting to 'ASUS2'... [03:29:42][W][wifi_esp8266:482]: Event: Disconnected ssid='ASUS2' bssid=[redacted] reason='Auth Expired' [03:29:42][W][wifi:547]: Error while connecting to network. [03:29:42][W][wifi:583]: Restarting WiFi adapter... [03:29:47][D][wifi:384]: Starting scan... [03:29:53][D][wifi:399]: Found networks: [03:29:53][I][wifi:442]: - 'ASUS2' [redacted]▂▄▆█ [03:29:53][D][wifi:444]: Channel: 11 [03:29:53][D][wifi:445]: RSSI: -30 dB [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][D][wifi:447]: - [redacted] [redacted]▂▄▆█ [03:29:53][I][wifi:255]: WiFi Connecting to 'ASUS2'... [03:29:55][I][wifi:516]: WiFi Connected! [03:29:55][C][wifi:360]: Local MAC: AC:0B:FB:E0:5E:84 [03:29:55][C][wifi:361]: SSID: [redacted] [03:29:55][C][wifi:362]: IP Address: 192.168.50.134 [03:29:55][C][wifi:363]: BSSID: [redacted] [03:29:55][C][wifi:365]: Hostname: 'tagreader-e05e84' [03:29:55][C][wifi:367]: Signal strength: -36 dB ▂▄▆█ [03:29:55][C][wifi:371]: Channel: 11 [03:29:55][C][wifi:372]: Subnet: 255.255.255.0 [03:29:55][C][wifi:373]: Gateway: 192.168.50.50 [03:29:55][C][wifi:374]: DNS1: 0.0.0.0 [03:29:55][C][wifi:375]: DNS2: 0.0.0.0 [03:29:55][D][wifi:525]: Disabling AP... [03:29:55][C][ota:089]: Over-The-Air Updates: [03:29:55][C][ota:090]: Address: 192.168.50.134:8266 [03:29:55][C][api:025]: Setting up Home Assistant API server... [03:29:55][I][app:062]: setup() finished successfully! [03:29:55][D][text_sensor:067]: 'TagReader Connected SSID': Sending state 'ASUS2' [03:29:55][D][text_sensor:067]: 'TagReader IP Address': Sending state '192.168.50.134' [03:29:55][I][app:102]: ESPHome version 2022.9.2 compiled on Oct 2 2022, 02:52:43 [03:29:55][I][app:104]: Project adonno.tag_reader version 1.4 [03:29:55][C][wifi:502]: WiFi: [03:29:55][C][wifi:360]: Local MAC: AC:0B:FB:E0:5E:84 [03:29:55][C][wifi:361]: SSID: [redacted] [03:29:55][C][wifi:362]: IP Address: 192.168.50.134 [03:29:55][C][wifi:363]: BSSID: [redacted] [03:29:55][C][wifi:365]: Hostname: 'tagreader-e05e84' [03:29:55][C][wifi:367]: Signal strength: -36 dB ▂▄▆█ [03:29:55][C][wifi:371]: Channel: 11 [03:29:55][C][wifi:372]: Subnet: 255.255.255.0 [03:29:55][C][wifi:373]: Gateway: 192.168.50.50 [03:29:55][C][wifi:374]: DNS1: 0.0.0.0 [03:29:55][C][wifi:375]: DNS2: 0.0.0.0 [03:29:55][C][logger:275]: Logger: [03:29:55][C][logger:276]: Level: DEBUG [03:29:55][C][logger:277]: Log Baud Rate: 115200 [03:29:55][C][logger:278]: Hardware UART: UART0 [03:29:55][C][i2c.arduino:038]: I2C Bus: [03:29:55][C][i2c.arduino:039]: SDA Pin: GPIO4 [03:29:55][C][i2c.arduino:040]: SCL Pin: GPIO5 [03:29:55][C][i2c.arduino:041]: Frequency: 400000 Hz [03:29:55][C][i2c.arduino:044]: Recovery: bus successfully recovered [03:29:55][C][template.switch:058]: Template Switch 'TagReader Buzzer Enabled' [03:29:55][C][template.switch:058]: Icon: 'mdi:volume-high' [03:29:55][C][template.switch:059]: Restore State: YES [03:29:55][C][template.switch:060]: Optimistic: YES [03:29:55][C][template.switch:058]: Template Switch 'TagReader LED enabled' [03:29:55][C][template.switch:058]: Icon: 'mdi:alarm-light-outline' [03:29:55][C][template.switch:059]: Restore State: YES [03:29:55][C][template.switch:060]: Optimistic: YES [03:29:55][C][esp8266_pwm:022]: ESP8266 PWM: [03:29:55][C][esp8266_pwm:023]: Pin: GPIO13 [03:29:55][C][esp8266_pwm:024]: Frequency: 1000.0 Hz [03:29:55][C][light:104]: Light 'TagReader LED' [03:29:55][C][light:106]: Default Transition Length: 1.0s [03:29:55][C][light:107]: Gamma Correct: 2.80 [03:29:55][C][restart.button:017]: Restart Button 'TagReader Restart' [03:29:55][C][pn532:347]: PN532: [03:29:55][C][pn532:359]: Update Interval: 1.0s [03:29:55][C][pn532_i2c:128]: Address: 0x24 [03:29:55][C][status:034]: Status Binary Sensor 'TagReader Status' [03:29:55][C][status:034]: Device Class: 'connectivity' [03:29:55][C][version.text_sensor:021]: Version Text Sensor 'TagReader ESPHome Version' [03:29:55][C][version.text_sensor:021]: Icon: 'mdi:new-box' [03:29:55][C][rtttl:018]: Rtttl [03:29:56][C][captive_portal:088]: Captive Portal: [03:29:56][C][mdns:094]: mDNS: [03:29:56][C][mdns:095]: Hostname: tagreader-e05e84 [03:29:56][C][ota:089]: Over-The-Air Updates: [03:29:56][C][ota:090]: Address: 192.168.50.134:8266 [03:29:56][C][api:138]: API Server: [03:29:56][C][api:139]: Address: 192.168.50.134:6053 [03:29:56][C][api:143]: Using noise encryption: NO [03:29:56][C][improv_serial:032]: Improv Serial: [03:29:56][C][wifi_info:009]: WifiInfo IPAddress 'TagReader IP Address' [03:29:56][C][wifi_info:009]: Icon: 'mdi:wifi' [03:29:56][C][wifi_info:011]: WifiInfo SSID 'TagReader Connected SSID' [03:29:56][C][wifi_info:011]: Icon: 'mdi:wifi-strength-2' [03:29:58][D][api:102]: Accepted 192.168.50.50 [03:29:58][D][main:432]: API is connected! [03:29:58][D][rtttl:038]: Playing song success [03:29:58][D][light:035]: 'TagReader LED' Setting: [03:29:58][D][light:046]: State: ON [03:29:58][D][light:050]: Brightness: 100% [03:29:58][D][light:057]: Red: 0%, Green: 0%, Blue: 100% [03:29:58][D][light:077]: Flash length: 0.5s [03:29:58][D][switch:013]: 'TagReader Buzzer Enabled' Turning ON. [03:29:58][D][switch:037]: 'TagReader Buzzer Enabled': Sending state ON [03:29:58][D][switch:013]: 'TagReader LED enabled' Turning ON. [03:29:58][D][binary_sensor:036]: 'TagReader Status': Sending state ON [03:29:58][D][api.connection:861]: Home Assistant 2022.9.6 (192.168.50.50): Connected successfully [03:29:59][D][rtttl:094]: Playback finished
This is the configuration:
# Insert your SSID and Your PWD after inital setup wifi: networks: - ssid: 'ASUS2' # Enter your WiFi SSID here. Example: `ssid: 'your_network_name'` bssid: '24:4B:FE:D1:F7:E9' #Enter your wifi password here. Example: `password: 'abcde123456'` password: '**********' manual_ip: static_ip: 192.168.50.134 gateway: 192.168.50.50 subnet: 255.255.255.0 #- ssid: 'ASUS' # bssid: '24:4B:FE:D1:F7:E8' # password: '*************' ap: ssid: ${name} # Enable the captive portal for inital WiFi setup captive_portal: dashboard_import: package_import_url: github://adonno/tagreader/tagreader.yaml improv_serial: substitutions: name: tagreader friendly_name: TagReader esphome: name: $name platform: ESP8266 board: d1_mini # Automatically add the mac address to the name # so you can use a single firmware for all devices name_add_mac_suffix: true # This will allow for (future) project identification, # configuration and updates. project: name: adonno.tag_reader version: "1.4" # If buzzer is enabled, notify on api connection success on_boot: priority: -10 then: - wait_until: api.connected: - logger.log: API is connected! #- rtttl.play: "success:d=24,o=5,b=100:c,g,b" - light.turn_on: id: activity_led brightness: 100% red: 0% green: 0% blue: 100% flash_length: 500ms - switch.turn_on: buzzer_enabled - switch.turn_on: led_enabled # Define switches to control LED and buzzer from HA switch: - platform: template name: "${friendly_name} Buzzer Enabled" id: buzzer_enabled icon: mdi:volume-high optimistic: true restore_state: true entity_category: config - platform: template name: "${friendly_name} LED enabled" id: led_enabled icon: mdi:alarm-light-outline optimistic: true restore_state: true entity_category: config # Define buttons for writing tags via HA button: - platform: template name: Write Tag Random id: write_tag_random # Optional variables: icon: "mdi:pencil-box" on_press: then: - light.turn_on: id: activity_led brightness: 100% red: 100% green: 0% blue: 100% - lambda: |- static const char alphanum[] = "0123456789abcdef"; std::string uri = "https://www.home-assistant.io/tag/"; for (int i = 0; i < 8; i++) uri += alphanum[random_uint32() % (sizeof(alphanum) - 1)]; uri += "-"; for (int j = 0; j < 3; j++) { for (int i = 0; i < 4; i++) uri += alphanum[random_uint32() % (sizeof(alphanum) - 1)]; uri += "-"; } for (int i = 0; i < 12; i++) uri += alphanum[random_uint32() % (sizeof(alphanum) - 1)]; auto message = new nfc::NdefMessage(); message->add_uri_record(uri); ESP_LOGD("tagreader", "Writing payload: %s", uri.c_str()); id(pn532_board).write_mode(message); - rtttl.play: "write:d=24,o=5,b=100:b" - wait_until: not: pn532.is_writing: - light.turn_off: id: activity_led - rtttl.play: "write:d=24,o=5,b=100:b,b" - platform: template name: Clean Tag id: clean_tag icon: "mdi:nfc-variant-off" on_press: then: - light.turn_on: id: activity_led brightness: 100% red: 100% green: 64.7% blue: 0% - lambda: 'id(pn532_board).clean_mode();' - rtttl.play: "write:d=24,o=5,b=100:b" - wait_until: not: pn532.is_writing: - light.turn_off: id: activity_led - rtttl.play: "write:d=24,o=5,b=100:b,b" - platform: template name: Cancel writing id: cancel_writing icon: "mdi:pencil-off" on_press: then: - lambda: 'id(pn532_board).read_mode();' - light.turn_off: id: activity_led - rtttl.play: "write:d=24,o=5,b=100:b,b" - platform: restart name: "${friendly_name} Restart" entity_category: config # Enable logging logger: # level: VERY_VERBOSE # level: VERBOSE # Enable Home Assistant API api: services: - service: rfidreader_tag_ok then: - rtttl.play: "beep:d=16,o=5,b=100:b" - service: rfidreader_tag_ko then: - rtttl.play: "beep:d=8,o=5,b=100:b" - service: play_rtttl variables: song_str: string then: - rtttl.play: !lambda 'return song_str;' - service: write_tag_id variables: tag_id: string then: - light.turn_on: id: activity_led brightness: 100% red: 100% green: 0% blue: 0% - lambda: |- auto message = new nfc::NdefMessage(); std::string uri = "https://www.home-assistant.io/tag/"; uri += tag_id; message->add_uri_record(uri); id(pn532_board).write_mode(message); - rtttl.play: "write:d=24,o=5,b=100:b" - wait_until: not: pn532.is_writing: - light.turn_off: id: activity_led - rtttl.play: "write:d=24,o=5,b=100:b,b" - service: write_music_tag variables: music_url: string music_info: string then: - light.turn_on: id: activity_led brightness: 100% red: 100% green: 0% blue: 0% - lambda: |- auto message = new nfc::NdefMessage(); std::string uri = ""; std::string text = ""; uri += music_url; text += music_info; if ( music_url != "" ) { message->add_uri_record(uri); } if ( music_info != "" ) { message->add_text_record(text); } id(pn532_board).write_mode(message); - rtttl.play: "write:d=24,o=5,b=100:b" - wait_until: not: pn532.is_writing: - light.turn_off: id: activity_led - rtttl.play: "write:d=24,o=5,b=100:b,b" # Enable OTA upgrade ota: i2c: scan: False frequency: 400kHz globals: - id: source type: std::string - id: url type: std::string - id: info type: std::string pn532_i2c: id: pn532_board on_tag: then: - if: condition: switch.is_on: led_enabled then: - light.turn_on: id: activity_led brightness: 100% red: 0% green: 100% blue: 0% flash_length: 500ms - delay: 0.15s #to fix slow component - lambda: |- id(source)=""; id(url)=""; id(info)=""; if (tag.has_ndef_message()) { auto message = tag.get_ndef_message(); auto records = message->get_records(); for (auto &record : records) { std::string payload = record->get_payload(); std::string type = record->get_type(); size_t hass = payload.find("https://www.home-assistant.io/tag/"); size_t applemusic = payload.find("https://music.apple.com"); size_t spotify = payload.find("https://open.spotify.com"); size_t sonos = payload.find("sonos-2://"); if (type == "U" and hass != std::string::npos ) { ESP_LOGD("tagreader", "Found Home Assistant tag NDEF"); id(source)="hass"; id(url)=payload; id(info)=payload.substr(hass + 34); } else if (type == "U" and applemusic != std::string::npos ) { ESP_LOGD("tagreader", "Found Apple Music tag NDEF"); id(source)="amusic"; id(url)=payload; } else if (type == "U" and spotify != std::string::npos ) { ESP_LOGD("tagreader", "Found Spotify tag NDEF"); id(source)="spotify"; id(url)=payload; } else if (type == "U" and sonos != std::string::npos ) { ESP_LOGD("tagreader", "Found Sonos app tag NDEF"); id(source)="sonos"; id(url)=payload; } else if (type == "T" ) { ESP_LOGD("tagreader", "Found music info tag NDEF"); id(info)=payload; } else if ( id(source)=="" ) { id(source)="uid"; } } } else { id(source)="uid"; } - if: condition: lambda: 'return ( id(source)=="uid" );' then: - homeassistant.tag_scanned: !lambda |- ESP_LOGD("tagreader", "No HA NDEF, using UID"); return x; else: - if: condition: lambda: 'return ( id(source)=="hass" );' then: - homeassistant.tag_scanned: !lambda 'return id(info);' else: - homeassistant.event: event: esphome.music_tag data: reader: !lambda |- return App.get_name().c_str(); source: !lambda |- return id(source); url: !lambda |- return id(url); info: !lambda |- return id(info); - if: condition: switch.is_on: buzzer_enabled then: - rtttl.play: "success:d=24,o=5,b=100:c,g,b" # Define the buzzer output output: - platform: esp8266_pwm pin: D7 id: buzzer binary_sensor: - platform: status name: "${friendly_name} Status" entity_category: diagnostic text_sensor: - platform: version hide_timestamp: true name: "${friendly_name} ESPHome Version" entity_category: diagnostic - platform: wifi_info ip_address: name: "${friendly_name} IP Address" icon: mdi:wifi entity_category: diagnostic ssid: name: "${friendly_name} Connected SSID" icon: mdi:wifi-strength-2 entity_category: diagnostic # Define buzzer as output for RTTTL rtttl: output: buzzer # Configure LED light: - platform: neopixelbus variant: WS2812 pin: D8 num_leds: 1 flash_transition_length: 500ms type: GRB id: activity_led name: "${friendly_name} LED" restore_mode: ALWAYS_OFF
Closing issue since we moved to email, Reflashing didn't solve the issue we will try with a replacement device
I'm having problems with the small NFC reader. This is the log i see via USB Serial:
This is the configuration: