adonno / tagreader

Simple to build/use NFC tag reader, specially created for Home Assistant
https://adonno.com
GNU General Public License v3.0
1.13k stars 175 forks source link

Can't make it work ... #205

Closed Elmout33 closed 1 year ago

Elmout33 commented 1 year ago

Hi, I follow all steps describe but nothing works ...

I have HA on a Raspberry pi 4 so I can't install from it to the D1 Mini so I try to do so from my computer. It seems ok according to the log in the windows console : INFO Reading configuration C:\Users\lerou\Desktop\tagreader-1.yaml... INFO Generating C++ source... INFO Compiling app... Processing tagreader (board: d1_mini; framework: arduino; platform: platformio/espressif8266 @ 3.2.0) ------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html PLATFORM: Espressif 8266 (3.2.0) > WeMos D1 R2 and mini HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:

Leaving... Hard resetting via RTS pin... INFO Successfully uploaded program. INFO Starting log output from COM3 with baud rate 115200 [20:58:05]rll\x90r☻$↕\xe2n

\xc4 l\xc7 b|\x8e\x90☻↕\x92r↕b\xc4 b♦\xf2nn☻lnn↕b b∟p\x8c$blrlp\xf2n►☻

\x90 l \x8c☻

b n\xe2n\xc7 \xc4♦ b\xc4\xf2nn'l\x8c♦l☻\x90↕↕nn $☻☻nr\x8e\x92\x92n

rr\x92`☻p\xf2n►☻

r\x8c∟∟b ♦☻ b n\xe2n ♦ b\xc4\xf2nn' ♦l☻\x90↕↕nn $☻☻nr\x8e\x92\x92n

r↕l`☻r\x92\x92n

r↕l`☻\x9c☻

\xec♦r

l☻\xfc\x82n\x92☻[I][logger:258]: Log initialized [20:58:05][C][ota:469]: There have been 0 suspected unsuccessful boot attempts. [20:58:05][I][app:029]: Running through setup()... [20:58:05][I][i2c.arduino:175]: Performing I2C bus recovery [20:58:05][D][template.switch:050]: Restored state OFF [20:58:05][D][switch:017]: 'TagReader Buzzer Enabled' Turning OFF. [20:58:05][D][switch:037]: 'TagReader Buzzer Enabled': Sending state OFF [20:58:05][D][template.switch:050]: Restored state OFF [20:58:05][D][switch:017]: 'TagReader LED enabled' Turning OFF. [20:58:05][D][switch:037]: 'TagReader LED enabled': Sending state OFF [20:58:05][C][esp8266_pwm:017]: Setting up ESP8266 PWM Output... [20:58:05][C][light:036]: Setting up light 'TagReader LED'... [20:58:05][D][light:035]: 'TagReader LED' Setting: [20:58:05][D][light:040]: Color mode: RGB [20:58:05][D][light:084]: Transition length: 1.0s [20:58:05][C][pn532:018]: Setting up PN532... [20:58:05][E][pn532:022]: Error sending version command [20:58:05][E][component:113]: Component pn532 was marked as failed. [20:58:05][D][binary_sensor:034]: 'TagReader Status': Sending initial state OFF [20:58:05][D][text_sensor:067]: 'TagReader ESPHome Version': Sending state '2022.11.1' [20:58:05][C][wifi:037]: Setting up WiFi... [20:58:05][C][wifi:038]: Local MAC: C8:C9:A3:0A:CD:F7 [20:58:05][D][wifi:048]: Loaded saved wifi settings: Wifi PopMoutHouse [20:58:05][D][wifi:386]: Starting scan... [20:58:11][D][wifi:401]: Found networks: [20:58:11][I][wifi:444]: - 'Wifi PopMoutHouse' (80:CC:9C:47:D7:DD) ▂▄▆█ [20:58:11][D][wifi:446]: Channel: 1 [20:58:11][D][wifi:447]: RSSI: -72 dB [20:58:11][D][wifi:449]: - 'DaikinAP17331' (C4:AC:59:C5:6D:97) ▂▄▆█ [20:58:11][D][wifi:449]: - 'DaikinAP06739' (C4:AC:59:C5:63:3F) ▂▄▆█ [20:58:11][D][wifi:449]: - 'Bbox-9F32E9B4' (F0:4D:D4:17:F5:70) ▂▄▆█ [20:58:11][D][wifi:449]: - 'FreeWifi_secure' (E4:9E:12:10:9E:F3) ▂▄▆█ [20:58:11][D][wifi:449]: - 'Freebox-109EF1' (E4:9E:12:10:9E:F2) ▂▄▆█ [20:58:11][D][wifi:449]: - 'Bbox-6ABBD6F0' (84:1E:A3:AE:51:F0) ▂▄▆█ [20:58:11][I][wifi:257]: WiFi Connecting to 'Wifi PopMoutHouse'... [20:58:13][I][wifi:518]: WiFi Connected! [20:58:13][C][wifi:362]: Local MAC: C8:C9:A3:0A:CD:F7

[20:58:13][C][wifi:364]: IP Address: 192.168.1.35 [20:58:13][C][wifi:365]: BSSID: 80:CC:9C:47:D7:DD

[20:58:13][C][wifi:369]: Signal strength: -78 dB ▂▄▆█ [20:58:13][C][wifi:373]: Channel: 1 [20:58:13][C][wifi:374]: Subnet: 255.255.255.0 [20:58:13][C][wifi:375]: Gateway: 192.168.1.1 [20:58:13][C][wifi:376]: DNS1: 192.168.1.1 [20:58:13][C][wifi:377]: DNS2: 0.0.0.0 [20:58:13][D][wifi:527]: Disabling AP... [20:58:13][C][ota:093]: Over-The-Air Updates: [20:58:13][C][ota:094]: Address: tagreader.local:8266 [20:58:13][C][api:025]: Setting up Home Assistant API server... [20:58:13][I][app:062]: setup() finished successfully! [20:58:13][D][text_sensor:067]: 'TagReader Connected SSID': Sending state 'Wifi PopMoutHouse' [20:58:13][D][text_sensor:067]: 'TagReader IP Address': Sending state '192.168.1.35' [20:58:13][I][app:102]: ESPHome version 2022.11.1 compiled on Nov 18 2022, 20:57:07 [20:58:13][I][app:104]: Project adonno.tag_reader version 1.4

[20:58:13][C][wifi:362]: Local MAC: C8:C9:A3:0A:CD:F7

[20:58:13][C][wifi:364]: IP Address: 192.168.1.35 [20:58:13][C][wifi:365]: BSSID: 80:CC:9C:47:D7:DD

[20:58:13][C][wifi:369]: Signal strength: -78 dB ▂▄▆█ [20:58:13][C][wifi:373]: Channel: 1 [20:58:13][C][wifi:374]: Subnet: 255.255.255.0 [20:58:13][C][wifi:375]: Gateway: 192.168.1.1 [20:58:13][C][wifi:376]: DNS1: 192.168.1.1 [20:58:13][C][wifi:377]: DNS2: 0.0.0.0

[20:58:13][C][logger:294]: Level: DEBUG [20:58:13][C][logger:295]: Log Baud Rate: 115200 [20:58:13][C][logger:296]: Hardware UART: UART0 [20:58:13][C][i2c.arduino:052]: I2C Bus: [20:58:13][C][i2c.arduino:053]: SDA Pin: GPIO4 [20:58:13][C][i2c.arduino:054]: SCL Pin: GPIO5 [20:58:13][C][i2c.arduino:055]: Frequency: 400000 Hz [20:58:13][C][i2c.arduino:058]: Recovery: bus successfully recovered [20:58:13][C][template.switch:058]: Template Switch 'TagReader Buzzer Enabled'

[20:58:13][C][template.switch:059]: Restore State: YES [20:58:13][C][template.switch:060]: Optimistic: YES [20:58:13][C][template.switch:058]: Template Switch 'TagReader LED enabled'

[20:58:13][C][template.switch:059]: Restore State: YES [20:58:13][C][template.switch:060]: Optimistic: YES [20:58:13][C][esp8266_pwm:022]: ESP8266 PWM: [20:58:13][C][esp8266_pwm:023]: Pin: GPIO13 [20:58:13][C][esp8266_pwm:024]: Frequency: 1000.0 Hz

[20:58:13][C][light:106]: Default Transition Length: 1.0s [20:58:13][C][light:107]: Gamma Correct: 2.80 [20:58:13][C][restart.button:017]: Restart Button 'TagReader Restart'

[20:58:13][C][pn532:359]: Update Interval: 1.0s [20:58:13][C][pn532_i2c:128]: Address: 0x24 [20:58:13][C][status:034]: Status Binary Sensor 'TagReader Status' [20:58:13][C][status:034]: Device Class: 'connectivity' [20:58:13][C][version.text_sensor:021]: Version Text Sensor 'TagReader ESPHome Version'

[20:58:13][C][captive_portal:088]: Captive Portal:

[20:58:13][C][mdns:104]: Hostname: tagreader-0acdf7 [20:58:13][C][ota:093]: Over-The-Air Updates: [20:58:13][C][ota:094]: Address: tagreader.local:8266 [20:58:13][C][api:138]: API Server: [20:58:13][C][api:139]: Address: tagreader.local:6053 [20:58:13][C][api:143]: Using noise encryption: NO [20:58:13][C][improv_serial:032]: Improv Serial: [20:58:13][C][wifi_info:009]: WifiInfo IPAddress 'TagReader IP Address'

[20:58:13][C][wifi_info:011]: WifiInfo SSID 'TagReader Connected SSID'

[21:03:05][I][ota:113]: Boot seems successful, resetting boot loop counter. [21:09:45][D][api:102]: Accepted 192.168.1.30 [21:09:45][D][main:414]: API is connected! [21:09:45][D][rtttl:038]: Playing song success [21:09:45][D][light:035]: 'TagReader LED' Setting: [21:09:45][D][light:046]: State: ON [21:09:45][D][light:050]: Brightness: 100% [21:09:45][D][light:057]: Red: 0%, Green: 0%, Blue: 100% [21:09:45][D][light:077]: Flash length: 0.5s [21:09:45][D][switch:013]: 'TagReader Buzzer Enabled' Turning ON. [21:09:45][D][switch:037]: 'TagReader Buzzer Enabled': Sending state ON [21:09:45][D][switch:013]: 'TagReader LED enabled' Turning ON. [21:09:45][D][switch:037]: 'TagReader LED enabled': Sending state ON [21:09:45][D][binary_sensor:036]: 'TagReader Status': Sending state ON [21:09:45][D][api.connection:917]: ESPHome Logs 2022.11.1 (192.168.1.30): Connected successfully [21:09:45][I][app:102]: ESPHome version 2022.11.1 compiled on Nov 18 2022, 20:57:07 [21:09:45][I][app:104]: Project adonno.tag_reader version 1.4

[21:09:45][C][wifi:362]: Local MAC: C8:C9:A3:0A:CD:F7

[21:09:45][C][wifi:364]: IP Address: 192.168.1.35 [21:09:45][C][wifi:365]: BSSID: 80:CC:9C:47:D7:DD

[21:09:45][C][wifi:369]: Signal strength: -76 dB ▂▄▆█ [21:09:45][C][wifi:373]: Channel: 1 [21:09:45][C][wifi:374]: Subnet: 255.255.255.0 [21:09:45][C][wifi:375]: Gateway: 192.168.1.1 [21:09:45][C][wifi:376]: DNS1: 192.168.1.1 [21:09:45][C][wifi:377]: DNS2: 0.0.0.0

[21:09:45][C][logger:294]: Level: DEBUG [21:09:45][C][logger:295]: Log Baud Rate: 115200 [21:09:45][C][logger:296]: Hardware UART: UART0 [21:09:45][C][i2c.arduino:052]: I2C Bus: [21:09:45][C][i2c.arduino:053]: SDA Pin: GPIO4 [21:09:45][C][i2c.arduino:054]: SCL Pin: GPIO5 [21:09:45][C][i2c.arduino:055]: Frequency: 400000 Hz [21:09:45][C][i2c.arduino:058]: Recovery: bus successfully recovered [21:09:45][C][template.switch:058]: Template Switch 'TagReader Buzzer Enabled'

[21:09:45][C][template.switch:059]: Restore State: YES [21:09:45][C][template.switch:060]: Optimistic: YES [21:09:45][C][template.switch:058]: Template Switch 'TagReader LED enabled'

[21:09:45][C][template.switch:059]: Restore State: YES [21:09:45][C][template.switch:060]: Optimistic: YES [21:09:45][C][esp8266_pwm:022]: ESP8266 PWM: [21:09:45][C][esp8266_pwm:023]: Pin: GPIO13 [21:09:45][C][esp8266_pwm:024]: Frequency: 988.0 Hz

[21:09:45][C][light:106]: Default Transition Length: 1.0s [21:09:45][C][light:107]: Gamma Correct: 2.80 [21:09:45][D][rtttl:094]: Playback finished [21:09:45][C][restart.button:017]: Restart Button 'TagReader Restart'

[21:09:45][C][pn532:359]: Update Interval: 1.0s [21:09:45][C][pn532_i2c:128]: Address: 0x24 [21:09:45][C][status:034]: Status Binary Sensor 'TagReader Status' [21:09:45][C][status:034]: Device Class: 'connectivity' [21:09:45][C][version.text_sensor:021]: Version Text Sensor 'TagReader ESPHome Version'

[21:09:46][C][captive_portal:088]: Captive Portal:

[21:09:46][C][mdns:104]: Hostname: tagreader-0acdf7 [21:09:46][C][ota:093]: Over-The-Air Updates: [21:09:46][C][ota:094]: Address: tagreader.local:8266 [21:09:46][C][api:138]: API Server: [21:09:46][C][api:139]: Address: tagreader.local:6053 [21:09:46][C][api:143]: Using noise encryption: NO [21:09:46][C][improv_serial:032]: Improv Serial: [21:09:46][C][wifi_info:009]: WifiInfo IPAddress 'TagReader IP Address'

[21:09:46][C][wifi_info:011]: WifiInfo SSID 'TagReader Connected SSID'

[21:10:29][W][api.connection:083]: ESPHome Logs 2022.11.1 (192.168.1.30): Connection closed [21:10:29][D][binary_sensor:036]: 'TagReader Status': Sending state OFF [21:10:36][D][api:102]: Accepted 192.168.1.30 [21:10:36][D][binary_sensor:036]: 'TagReader Status': Sending state ON [21:10:36][D][api.connection:917]: ESPHome Logs 2022.11.1 (192.168.1.30): Connected successfully [21:10:36][I][app:102]: ESPHome version 2022.11.1 compiled on Nov 18 2022, 20:57:07 [21:10:36][I][app:104]: Project adonno.tag_reader version 1.4

[21:10:36][C][wifi:362]: Local MAC: C8:C9:A3:0A:CD:F7

[21:10:36][C][wifi:364]: IP Address: 192.168.1.35 [21:10:36][C][wifi:365]: BSSID: 80:CC:9C:47:D7:DD

[21:10:36][C][wifi:369]: Signal strength: -76 dB ▂▄▆█ [21:10:37][C][wifi:373]: Channel: 1 [21:10:37][C][wifi:374]: Subnet: 255.255.255.0 [21:10:37][C][wifi:375]: Gateway: 192.168.1.1 [21:10:37][C][wifi:376]: DNS1: 192.168.1.1 [21:10:37][C][wifi:377]: DNS2: 0.0.0.0

[21:10:37][C][logger:294]: Level: DEBUG [21:10:37][C][logger:295]: Log Baud Rate: 115200 [21:10:37][C][logger:296]: Hardware UART: UART0 [21:10:37][C][i2c.arduino:052]: I2C Bus: [21:10:37][C][i2c.arduino:053]: SDA Pin: GPIO4 [21:10:37][C][i2c.arduino:054]: SCL Pin: GPIO5 [21:10:37][C][i2c.arduino:055]: Frequency: 400000 Hz [21:10:37][C][i2c.arduino:058]: Recovery: bus successfully recovered [21:10:37][C][template.switch:058]: Template Switch 'TagReader Buzzer Enabled'

[21:10:37][C][template.switch:059]: Restore State: YES [21:10:37][C][template.switch:060]: Optimistic: YES [21:10:37][C][template.switch:058]: Template Switch 'TagReader LED enabled'

[21:10:37][C][template.switch:059]: Restore State: YES [21:10:37][C][template.switch:060]: Optimistic: YES [21:10:37][C][esp8266_pwm:022]: ESP8266 PWM: [21:10:37][C][esp8266_pwm:023]: Pin: GPIO13 [21:10:37][C][esp8266_pwm:024]: Frequency: 988.0 Hz

[21:10:37][C][light:106]: Default Transition Length: 1.0s [21:10:37][C][light:107]: Gamma Correct: 2.80 [21:10:37][C][restart.button:017]: Restart Button 'TagReader Restart'

[21:10:37][C][pn532:359]: Update Interval: 1.0s [21:10:37][C][pn532_i2c:128]: Address: 0x24 [21:10:37][C][status:034]: Status Binary Sensor 'TagReader Status' [21:10:37][C][status:034]: Device Class: 'connectivity' [21:10:37][C][version.text_sensor:021]: Version Text Sensor 'TagReader ESPHome Version'

[21:10:37][C][captive_portal:088]: Captive Portal:

[21:10:37][C][mdns:104]: Hostname: tagreader-0acdf7 [21:10:37][C][ota:093]: Over-The-Air Updates: [21:10:37][C][ota:094]: Address: tagreader.local:8266 [21:10:37][C][api:138]: API Server: [21:10:37][C][api:139]: Address: tagreader.local:6053 [21:10:37][C][api:143]: Using noise encryption: NO [21:10:37][C][improv_serial:032]: Improv Serial: [21:10:37][C][wifi_info:009]: WifiInfo IPAddress 'TagReader IP Address'

[21:10:37][C][wifi_info:011]: WifiInfo SSID 'TagReader Connected SSID'

[21:10:57][W][api.connection:083]: ESPHome Logs 2022.11.1 (192.168.1.30): Connection closed [21:10:57][D][binary_sensor:036]: 'TagReader Status': Sending state OFF`

So I go to HA and a new card was discovered "tagreader-0acdf7". I click on "Adopt" to create a new card with a friendly name. I go to Setting -> Integration -> Device -> Add ESPHOME -> set @IP and have a device added.

But when I pass a nfc card on the nfc reader, nothing appear in Setting -> Tags or in the log on the device ...

I am doing something wrong ? What I have missed ?

Thanks a lot for your help.

But since I got nothing when I pass a card on NFC reader ...

adonno commented 1 year ago

Your issue is here, image

Can you upload picture from your soldering?

Elmout33 commented 1 year ago

Here pictures.

PXL_20221118_205114351 MP PXL_20221118_205126589 MP PXL_20221118_205134568

Elmout33 commented 1 year ago

Hi @adonno, I make the real solidering (yesterday just for test I just plug the component whitout soldering).

My error message disappear :) and my tag are now detected in Home Assistant ! image

Thanks a lot for your quick answer !