adonno / tagreader

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

No NFC Tag is reading #75

Closed ollimagic closed 3 years ago

ollimagic commented 3 years ago

I Build everything like in the description but no tag arrived in Home Assistant NFC i add tham vie Mobile but nothing happen when i use tham on the reader

dmeus commented 3 years ago

Likewise, would love to learn how to fix this.

adonno commented 3 years ago

Would you mind sending me a picture of the "Reader? " are the Jumpers correct? (1 up 2 Down)

dmeus commented 3 years ago

Would you mind sending me a picture of the "Reader? " are the Jumpers correct? (1 up 2 Down)

Atm they are 1 down, 2 up as stated in the readme? Connection to my network works (d1 has an ip adress) and home assistant discovered 4 entities. At least so far so good. No dice on recognising a tag tho... in the esphome log it also only states ‘api connected’, no further log. Is that normal?

adonno commented 3 years ago

They have to be 1UP 2DOWN

image

That should solve the issue

ollimagic commented 3 years ago

i guess i did everything like on your picture

Am So., 22. Nov. 2020 um 17:30 Uhr schrieb Andrea Donno < notifications@github.com>:

They have to be 1UP 2DOWN

[image: image] https://user-images.githubusercontent.com/13216947/99909351-511fb780-2ce8-11eb-99e2-e5b71bdceb0a.png

That should solve the issue

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/adonno/tagreader/issues/75#issuecomment-731773329, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIMLZXOBZ2KLSN2TOP3RGK3SRE4DHANCNFSM4T6RP5JQ .

ollimagic commented 3 years ago

yes the reader appears in hassio

Am So., 22. Nov. 2020 um 17:39 Uhr schrieb Olli Boe ollimagic@gmail.com:

i guess i did everything like on your picture

Am So., 22. Nov. 2020 um 17:30 Uhr schrieb Andrea Donno < notifications@github.com>:

They have to be 1UP 2DOWN

[image: image] https://user-images.githubusercontent.com/13216947/99909351-511fb780-2ce8-11eb-99e2-e5b71bdceb0a.png

That should solve the issue

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/adonno/tagreader/issues/75#issuecomment-731773329, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIMLZXOBZ2KLSN2TOP3RGK3SRE4DHANCNFSM4T6RP5JQ .

ollimagic commented 3 years ago

INFO Reading configuration /config/esphome/Tag2.yaml... INFO Starting log output from tagreader.local using esphome API INFO Connecting to tagreader.local:6053 (192.168.178...) INFO Successfully connected to tagreader.local [17:42:44][I][app:105]: ESPHome version 1.16.0-dev compiled on Nov 22 2020, 16:28:28

[17:42:44][C][wifi:303]: SSID: .... [17:42:44][C][wifi:304]: IP Address: 192.168.178... [17:42:44][C][wifi:306]: BSSID: [redacted]

[17:42:44][C][wifi:311]: Signal strength: -48 dB ▂▄▆█ [17:42:44][C][wifi:315]: Channel: 1 [17:42:44][C][wifi:316]: Subnet: 255.255.255.0 [17:42:44][C][wifi:317]: Gateway: 192.168.178.1 [17:42:44][C][wifi:318]: DNS1: 192.168.178.1

[17:42:44][C][i2c:028]: I2C Bus: [17:42:44][C][i2c:029]: SDA Pin: GPIO4 [17:42:44][C][i2c:030]: SCL Pin: GPIO5 [17:42:44][C][i2c:031]: Frequency: 400000 Hz [17:42:44][C][template.switch:058]: Template Switch 'TagReader Buzzer Enabled'

[17:42:44][C][template.switch:059]: Restore State: NO [17:42:44][C][template.switch:060]: Optimistic: YES [17:42:44][C][template.switch:058]: Template Switch 'TagReader LED enabled'

[17:42:44][C][template.switch:059]: Restore State: NO [17:42:44][C][template.switch:060]: Optimistic: YES [17:42:44][C][esp8266_pwm:022]: ESP8266 PWM: [17:42:44][C][esp8266_pwm:023]: Pin: GPIO13 (Mode: OUTPUT) [17:42:44][C][esp8266_pwm:024]: Frequency: 988.0 Hz [17:42:44][C][fastled:019]: FastLED light: [17:42:44][C][fastled:020]: Num LEDs: 1 [17:42:44][C][fastled:021]: Max refresh rate: 400

[17:42:44][C][logger:186]: Level: DEBUG [17:42:44][C][logger:187]: Log Baud Rate: 115200 [17:42:44][C][logger:188]: Hardware UART: UART0

[17:42:44][C][light:180]: Default Transition Length: 0.0s [17:42:44][C][light:181]: Gamma Correct: 2.80

[17:42:44][C][pn532:333]: Update Interval: 1.0s [17:42:44][C][pn532_i2c:041]: Address: 0x24 [17:42:44][C][status:034]: Status Binary Sensor 'TagReader Status' [17:42:44][C][status:034]: Device Class: 'connectivity'

[17:42:44][C][captive_portal:169]: Captive Portal: [17:42:44][C][ota:029]: Over-The-Air Updates: [17:42:44][C][ota:030]: Address: tagreader.local:8266 [17:42:44][C][api:095]: API Server: [17:42:44][C][api:096]: Address: tagreader.local:6053

dmeus commented 3 years ago

Tried switching the -well- switches (given that I first set them as pictured in the readme), still nothing. They are now in this position: according to my understanding 1 is in the up position now?

0B4D29FE-1319-425B-9EBF-1D63241D0E55

When I try to access the logs in esphome-dev, the logger shows nothing after ‘INFO Successfully connected to tagreader.local’. I’m guessing this is a red herring...

adonno commented 3 years ago

Would you mind checking your solders? SDA seems a bit "bad"
Could you please also post a picture from your D1 as well?

In addition, maybe try checking directly with the ESP connected to your PC and getting the logs via USB by using ESPHome flasher https://github.com/esphome/esphome-flasher/releases
Connect the ESP to your pc and select the right com port and hit view logs

ollimagic commented 3 years ago

hi i tried everything different boards different cable but nothing how can i log if something happen on the reader in esplog i see that [0;36m[D][wifi:339]: Found networks: [0m [0;32m[I][wifi:385]: - 'FritzBox' D [6m [0;33mÔûéÔûäÔûå [0;37mÔûê [0m [0m [0;36m[D][wifi:386]: Channel: 1 [0m [0;36m[D][wifi:387]: RSSI: -59 dB [0m [0;32m[I][wifi:385]: - 'FritzBox' D [6m [0;33mÔûéÔûä [0;37mÔûåÔûê [0m [0m [0;36m[D][wifi:386]: Channel: 6 [0m [0;36m[D][wifi:387]: RSSI: -71 dB [0m [0;32m[I][wifi:385]: - 'FritzBox' D [6m [0;33mÔûéÔûä [0;37mÔûåÔûê [0m [0m [0;36m[D][wifi:386]: Channel: 6 [0m [0;36m[D][wifi:387]: RSSI: -73 dB [0m [0;36m[D][wifi:389]: - [5m'1xxBox' [6m D [6m [0;33mÔûéÔûäÔûå [0;37mÔûê [0m [0m [0;36m[D][wifi:389]: - [5m'xxZugang' [6m D [6m [0;33mÔûéÔûäÔûå [0;37mÔûê [0m [0m [0;36m[D][wifi:389]: - [5m'' [6m D [6m [0;33mÔûéÔûä [0;37mÔûåÔûê [0m [0m [0;36m[D][wifi:389]: - [5m'MieterZugang' [6m D [6m [0;33mÔûéÔûä [0;37mÔûåÔûê [0m [0m [0;36m[D][wifi:389]: - [5m'FritzMa' [6m D [6m [0;33mÔûéÔûä [0;37mÔûåÔûê [0m [0m [0;36m[D][wifi:389]: - [5m'FritzMa' [6m D [6m [0;33mÔûéÔûä [0;37mÔûåÔûê [0m [0m [0;36m[D][wifi:389]: - [5m'FritzMa' [6m D [6m [0;33mÔûéÔûä [0;37mÔûåÔûê [0m [0m [0;36m[D][wifi:389]: - [5m'FritzMa' [6m I [6m [0;31mÔûé [0;37mÔûäÔûåÔûê [0m [0m [0;32m[I][wifi:194]: WiFi Connecting to 'FritzBox'... [0m [0;32m[I][wifi:457]: WiFi Connected! [0m [0;35m[C][wifi:303]: SSID: [5m'FritzBox' [6m [0m [0;35m[C][wifi:304]: IP Address: 192.168.178.83 [0m [0;35m[C][wifi:306]: BSSID: [5m2C:91:AB:96:80:23 [6m [0m [0;35m[C][wifi:307]: Hostname: 'tagreader' [0m [0;35m[C][wifi:311]: Signal strength: -51 dB [0;33mÔûéÔûäÔûå [0;37mÔûê [0m [0m [0;35m[C][wifi:315]: Channel: 1 [0m [0;35m[C][wifi:316]: Subnet: 255.255.255.0 [0m [0;35m[C][wifi:317]: Gateway: 192.168.178.1 [0m [0;35m[C][wifi:318]: DNS1: 192.168.178.1 [0m [0;35m[C][wifi:319]: DNS2: (IP unset) [0m [0;36m[D][wifi:466]: Disabling AP... [0m [0;35m[C][ota:029]: Over-The-Air Updates: [0m [0;35m[C][ota:030]: Address: tagreader.local:8266 [0m [0;35m[C][api:022]: Setting up Home Assistant API server... [0m [0;32m[I][app:059]: setup() finished successfully! [0m [0;32m[I][app:105]: ESPHome version 1.16.0-dev compiled on Nov 22 2020, 16:28:28 [0m [0;35m[C][wifi:443]: WiFi: [0m [0;35m[C][wifi:303]: SSID: [5m'FritzBox' [6m [0m [0;35m[C][wifi:304]: IP Address: 192.168.178.83 [0m [0;35m[C][wifi:306]: BSSID: [5m2C:91:AB:96:80:23 [6m [0m [0;35m[C][wifi:307]: Hostname: 'tagreader' [0m [0;35m[C][wifi:311]: Signal strength: -52 dB [0;33mÔûéÔûäÔûå [0;37mÔûê [0m [0m [0;35m[C][wifi:315]: Channel: 1 [0m [0;35m[C][wifi:316]: Subnet: 255.255.255.0 [0m [0;35m[C][wifi:317]: Gateway: 192.168.178.1 [0m [0;35m[C][wifi:318]: DNS1: 192.168.178.1 [0m [0;35m[C][wifi:319]: DNS2: (IP unset) [0m [0;35m[C][i2c:028]: I2C Bus: [0m [0;35m[C][i2c:029]: SDA Pin: GPIO4 [0m [0;35m[C][i2c:030]: SCL Pin: GPIO5 [0m [0;35m[C][i2c:031]: Frequency: 400000 Hz [0m [0;35m[C][template.switch:058]: Template Switch 'TagReader Buzzer Enabled' [0m [0;35m[C][template.switch:058]: Icon: 'mdi:volume-high' [0m [0;35m[C][template.switch:059]: Restore State: NO [0m [0;35m[C][template.switch:060]: Optimistic: YES [0m [0;35m[C][template.switch:058]: Template Switch 'TagReader LED enabled' [0m [0;35m[C][template.switch:058]: Icon: 'mdi:alarm-light-outline' [0m [0;35m[C][template.switch:059]: Restore State: NO [0m [0;35m[C][template.switch:060]: Optimistic: YES [0m [0;35m[C][esp8266_pwm:022]: ESP8266 PWM: [0m [0;35m[C][esp8266_pwm:023]: Pin: GPIO13 (Mode: OUTPUT) [0m [0;35m[C][esp8266_pwm:024]: Frequency: 1000.0 Hz [0m [0;35m[C][fastled:019]: FastLED light: [0m [0;35m[C][fastled:020]: Num LEDs: 1 [0m [0;35m[C][fastled:021]: Max refresh rate: 400 [0m [0;35m[C][logger:185]: Logger: [0m [0;35m[C][logger:186]: Level: DEBUG [0m [0;35m[C][logger:187]: Log Baud Rate: 115200 [0m [0;35m[C][logger:188]: Hardware UART: UART0 [0m [0;35m[C][light:178]: Light 'TagReader LED' [0m [0;35m[C][light:180]: Default Transition Length: 0.0s [0m [0;35m[C][light:181]: Gamma Correct: 2.80 [0m [0;35m[C][pn532:321]: PN532: [0m [0;35m[C][pn532:333]: Update Interval: 1.0s [0m [0;35m[C][pn532_i2c:041]: Address: 0x24 [0m [0;35m[C][status:034]: Status Binary Sensor 'TagReader Status' [0m [0;35m[C][status:034]: Device Class: 'connectivity' [0m [0;35m[C][rtttl:017]: Rtttl [0m [0;35m[C][captive_portal:169]: Captive Portal: [0m [0;35m[C][ota:029]: Over-The-Air Updates: [0m [0;35m[C][ota:030]: Address: tagreader.local:8266 [0m [0;35m[C][api:095]: API Server: [0m [0;35m[C][api:096]: Address: tagreader.local:6053 [0m [0;36m[D][main:119]: API is connected! [0m [0;36m[D][rtttl:037]: Playing song success [0m [0;36m[D][light:265]: 'TagReader LED' Setting: [0m [0;36m[D][light:274]: State: ON [0m [0;36m[D][light:278]: Brightness: 100% [0m [0;36m[D][light:287]: Red=0%, Green=0%, Blue=100% [0m [0;36m[D][light:297]: Flash Length: 0.5s [0m [0;36m[D][binary_sensor:036]: 'TagReader Status': Sending state ON [0m [0;36m[D][api.connection:604]: Client 'Home Assistant 0.118.2 (192.168.178.200)' connected successfully! [0m [0;36m[D][rtttl:093]: Playback finished [0m [0;32m[I][ota:046]: Boot seems successful, resetting boot loop counter. [0m

Am So., 22. Nov. 2020 um 23:50 Uhr schrieb Andrea Donno < notifications@github.com>:

Would you mind checking your solders? SDA seems a bit "bad" Could you please also post a picture from your D1 as well?

In addition, maybe try checking directly with the ESP connected to your PC and getting the logs via USB by using ESPHome flasher https://github.com/esphome/esphome-flasher/releases Connect the ESP to your pc and select the right com port and hit view logs

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/adonno/tagreader/issues/75#issuecomment-731860537, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIMLZXOK6IJKH66OKBMRDQ3SRGIUVANCNFSM4T6RP5JQ .

adonno commented 3 years ago

with the ESP connect to the PC and logging, hit the reset button so the logs will be shown from the beginning

As already asked before, would you mind sending a picture of your Wiring? The more picture the better, top, bottom, wiring, ... etc.

ollimagic commented 3 years ago

;l l£ƒ| älÓ| ─ dõ c|Å├õô{█cäcä¹g'ƒl'o£Òýc8äçl;l{$p¹gÓ â dî£ b gÒ|ýdç Åcî¾og´ $îÄ$É'o dn{çôøo #dsøÆ' cl £# çølsø³├g£[I][logger:166]: Log initialized [C][ota:366]: There have been 0 suspected unsuccessful boot attempts. [I][app:029]: Running through setup()... [C][esp8266_pwm:017]: Setting up ESP8266 PWM Output... [C][fastled:010]: Setting up FastLED light... [C][light:097]: Setting up light 'TagReader LED'... [D][light:265]: 'TagReader LED' Setting: [D][light:278]: Brightness: 100% [D][light:287]: Red=100%, Green=100%, Blue=100% [C][pn532:027]: Setting up PN532... [W][i2c:070]: Received NACK on transmit of address 0x24 [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [W][i2c:086]: Requesting 1 bytes from 0x24 failed! [E][pn532:031]: Error sending version command [E][component:092]: Component was marked as failed. [D][binary_sensor:034]: 'TagReader Status': Sending initial state OFF [C][wifi:033]: Setting up WiFi... [D][wifi:324]: Starting scan... [D][wifi:339]: Found networks: [I][wifi:385]: - 'FritzBox' D ÔûéÔûäÔûåÔûê [D][wifi:386]: Channel: 1 [D][wifi:387]: RSSI: -45 dB [I][wifi:385]: - 'FritzBox' D ÔûéÔûäÔûåÔûê [D][wifi:386]: Channel: 6 [D][wifi:387]: RSSI: -66 dB [I][wifi:385]: - 'FritzBox' D ÔûéÔûäÔûåÔûê [D][wifi:386]: Channel: 6 [D][wifi:387]: RSSI: -78 dB [D][wifi:389]: - 'MieterZugang' D ÔûéÔûäÔûåÔûê [D][wifi:389]: - '1und1Box' D ÔûéÔûäÔûåÔûê [D][wifi:389]: - '' D ÔûéÔûäÔûåÔûê [D][wifi:389]: - 'MieterZugang' D ÔûéÔûäÔûåÔûê [D][wifi:389]: - 'FritzMa' D ÔûéÔûäÔûåÔûê [D][wifi:389]: - 'FritzMa' I ÔûéÔûäÔûåÔûê [I][wifi:194]: WiFi Connecting to 'FritzBox'... [I][wifi:457]: WiFi Connected! [C][wifi:303]: SSID: 'FritzBox' [C][wifi:304]: IP Address: 192.168.178.83 [C][wifi:306]: BSSID: 2C:91:AB:96:80:23 [C][wifi:307]: Hostname: 'tagreader' [C][wifi:311]: Signal strength: -53 dB ÔûéÔûäÔûåÔûê [C][wifi:315]: Channel: 1 [C][wifi:316]: Subnet: 255.255.255.0 [C][wifi:317]: Gateway: 192.168.178.1 [C][wifi:318]: DNS1: 192.168.178.1 [C][wifi:319]: DNS2: (IP unset) [D][wifi:466]: Disabling AP... [C][ota:029]: Over-The-Air Updates: [C][ota:030]: Address: tagreader.local:8266 [C][api:022]: Setting up Home Assistant API server... [I][app:059]: setup() finished successfully! [I][app:105]: ESPHome version 1.16.0-dev compiled on Nov 22 2020, 16:28:28 [C][wifi:443]: WiFi: [C][wifi:303]: SSID: 'FritzBox' [C][wifi:304]: IP Address: 192.168.178.83 [C][wifi:306]: BSSID: 2C:91:AB:96:80:23 [C][wifi:307]: Hostname: 'tagreader' [C][wifi:311]: Signal strength: -53 dB ÔûéÔûäÔûåÔûê [C][wifi:315]: Channel: 1 [C][wifi:316]: Subnet: 255.255.255.0 [C][wifi:317]: Gateway: 192.168.178.1 [C][wifi:318]: DNS1: 192.168.178.1 [C][wifi:319]: DNS2: (IP unset) [C][i2c:028]: I2C Bus: [C][i2c:029]: SDA Pin: GPIO4 [C][i2c:030]: SCL Pin: GPIO5 [C][i2c:031]: Frequency: 400000 Hz [C][template.switch:058]: Template Switch 'TagReader Buzzer Enabled' [C][template.switch:058]: Icon: 'mdi:volume-high' [C][template.switch:059]: Restore State: NO [C][template.switch:060]: Optimistic: YES [C][template.switch:058]: Template Switch 'TagReader LED enabled' [C][template.switch:058]: Icon: 'mdi:alarm-light-outline' [C][template.switch:059]: Restore State: NO [C][template.switch:060]: Optimistic: YES [C][esp8266_pwm:022]: ESP8266 PWM: [C][esp8266_pwm:023]: Pin: GPIO13 (Mode: OUTPUT) [C][esp8266_pwm:024]: Frequency: 1000.0 Hz [C][fastled:019]: FastLED light: [C][fastled:020]: Num LEDs: 1 [C][fastled:021]: Max refresh rate: 400 [C][logger:185]: Logger: [C][logger:186]: Level: DEBUG [C][logger:187]: Log Baud Rate: 115200 [C][logger:188]: Hardware UART: UART0 [C][light:178]: Light 'TagReader LED' [C][light:180]: Default Transition Length: 0.0s [C][light:181]: Gamma Correct: 2.80 [C][pn532:321]: PN532: [C][pn532:333]: Update Interval: 1.0s [C][pn532_i2c:041]: Address: 0x24 [C][status:034]: Status Binary Sensor 'TagReader Status' [C][status:034]: Device Class: 'connectivity' [C][rtttl:017]: Rtttl [C][captive_portal:169]: Captive Portal: [C][ota:029]: Over-The-Air Updates: [C][ota:030]: Address: tagreader.local:8266 [C][api:095]: API Server: [C][api:096]: Address: tagreader.local:6053 [D][main:119]: API is connected! [D][rtttl:037]: Playing song success [D][light:265]: 'TagReader LED' Setting: [D][light:274]: State: ON [D][light:278]: Brightness: 100% [D][light:287]: Red=0%, Green=0%, Blue=100% [D][light:297]: Flash Length: 0.5s [D][binary_sensor:036]: 'TagReader Status': Sending state ON [D][api.connection:604]: Client 'Home Assistant 0.118.2 (192.168.178.200)' connected successfully! [D][rtttl:093]: Playback finished

ollimagic commented 3 years ago

20201123_122712

ollimagic commented 3 years ago

20201123_122718 ![Uploading 20201122_173642.jpg…]()

ollimagic commented 3 years ago

the connectors are all working i testet tham

ollimagic commented 3 years ago

i mean the solder points have all connection sorry for my english

adonno commented 3 years ago

image

Please invert the switchtes and retry

ollimagic commented 3 years ago

now ist is working i change the nfc reade board again hurraaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

ollimagic commented 3 years ago

sorry for wasting your time i guess my boad was defect

dmeus commented 3 years ago

Would you mind checking your solders? SDA seems a bit "bad" Could you please also post a picture from your D1 as well?

In addition, maybe try checking directly with the ESP connected to your PC and getting the logs via USB by using ESPHome flasher https://github.com/esphome/esphome-flasher/releases Connect the ESP to your pc and select the right com port and hit view logs

I have double checked the solders and they are transferring a signal between the D1 and PN532. This works for both SDA and SCL. Photo of the D1 below. When I hook the device up to my laptop, open the logs in ESPHome Flasher and hold an NFC card against the reader it recognizes the tags.

[19:39:43][D][pn532:159]: Found new tag '04-2B-5C-EA-B3-6D-80' [19:39:49][D][pn532:159]: Found new tag '04-2C-5F-EA-B3-6D-80'

Full log minus wifi details:

[19:50:38][C][wifi:311]: Signal strength: -51 dB ▂▄▆█ [19:50:38][C][wifi:315]: Channel: 11 [19:50:38][C][wifi:316]: Subnet: 255.255.255.0 [19:50:38][C][wifi:317]: Gateway: 192.168.0.1 [19:50:38][C][wifi:318]: DNS1: 195.130.130.3 [19:50:38][C][wifi:319]: DNS2: 195.130.131.3 [19:50:38][C][i2c:028]: I2C Bus: [19:50:38][C][i2c:029]: SDA Pin: GPIO4 [19:50:38][C][i2c:030]: SCL Pin: GPIO5 [19:50:38][C][i2c:031]: Frequency: 400000 Hz [19:50:38][C][template.switch:058]: Template Switch 'TagReader Buzzer Enabled'

[19:50:38][C][template.switch:059]: Restore State: NO [19:50:38][C][template.switch:060]: Optimistic: YES [19:50:38][C][template.switch:058]: Template Switch 'TagReader LED enabled'

[19:50:38][C][template.switch:059]: Restore State: NO [19:50:38][C][template.switch:060]: Optimistic: YES [19:50:38][C][esp8266_pwm:022]: ESP8266 PWM: [19:50:38][C][esp8266_pwm:023]: Pin: GPIO13 (Mode: OUTPUT) [19:50:38][C][esp8266_pwm:024]: Frequency: 988.0 Hz [19:50:38][C][fastled:019]: FastLED light: [19:50:38][C][fastled:020]: Num LEDs: 1 [19:50:38][C][fastled:021]: Max refresh rate: 400

[19:50:38][C][logger:186]: Level: DEBUG [19:50:38][C][logger:187]: Log Baud Rate: 115200 [19:50:38][C][logger:188]: Hardware UART: UART0

[19:50:39][C][light:180]: Default Transition Length: 0.0s [19:50:39][C][light:181]: Gamma Correct: 2.80

[19:50:39][C][pn532:333]: Update Interval: 1.0s [19:50:39][C][pn532_i2c:041]: Address: 0x24 [19:50:39][C][status:034]: Status Binary Sensor 'TagReader Status' [19:50:39][C][status:034]: Device Class: 'connectivity'

[19:50:39][C][captive_portal:169]: Captive Portal: [19:50:39][C][ota:029]: Over-The-Air Updates: [19:50:39][C][ota:030]: Address: tagreader.local:8266 [19:50:39][C][api:095]: API Server: [19:50:39][C][api:096]: Address: tagreader.local:6053

Edit1: Logs state a few minutes later: [19:54:55][W][api.connection:048]: Invalid preamble from 192.168.0.240 [19:54:55][D][api:067]: Disconnecting 192.168.0.240

Edit2: It seems like the api connects at random. I get no extended logs via usb (only found tags, no info on the 8266) until I also open ESPHome in Home Assistant.

IMG_2233

dmeus commented 3 years ago

OK, I deleted the node in ESPHome and compiled a new firmware. Flashed it to the D1, filled in wifi details via the captive portal and rebooted the whole thing. Same scenario as above. ESPHome shows no logs for the node except 'connected', ESPHome flasher shows everything as stated above when I open the node in HA. Tags are recognized by ESPHome Flasher when I present them but they trigger no automation. I can't for the life of me figure out where this is going wrong. Any more tips @adonno ?

adonno commented 3 years ago

OK, I deleted the node in ESPHome and compiled a new firmware. Flashed it to the D1, filled in wifi details via the captive portal and rebooted the whole thing. Same scenario as above. ESPHome shows no logs for the node except 'connected', ESPHome flasher shows everything as stated above when I open the node in HA. Tags are recognized by ESPHome Flasher when I present them but they trigger no automation. I can't for the life of me figure out where this is going wrong. Any more tips @adonno ?

Wait, hold on, the reader send the tag ID to HA? I thought that was the issue ? Well then it's an issue with your automation please share your automation .