Bonjour,
Me voila en vacances avec des ESP32 et des capteurs plein la table
J’ai un ESP32 et un ESP32-CAM qui fonctionne déjà, je passe au NFC que j’arrive à faire fonctionner avec mon téléphone.
Là je dispose d’un ESP 32 :
De cartes RFID-RC522 :
https://www.fnac.com/mp39247644/3Pcs-MFRC-522-RFID-Carte-IC-Radiofrequence-Lecteur-de-Capteur-Inductif-S50-Module-Porte-cles-pour-Arduino-TE938/w-4
Voici le yaml :
esphome:
name: esp32rfid1
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "TyK1D8AAndg3wm+OccccccccccyhMnklnu8kC4whqEo="
ota:
password: "863d46vvvvvvvvvv771194188020d616"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32Rfid1 Fallback Hotspot"
password: "DvXXXXXHM534"
captive_portal:
spi:
clk_pin: GPIO18
mosi_pin: GPIO23
miso_pin: GPIO19
rc522_spi:
cs_pin: GPIO15
#update_interval: 1s
on_tag:
then:
- homeassistant.tag_scanned: !lambda 'return x;'
binary_sensor:
- platform: rc522
uid: 74-10-37-94
name: "RC522 RFID Tag"
Il est bien en ligne :
Le log de l’install :
INFO Reading configuration /config/esphome/esp32rfid1.yaml...
WARNING GPIO15 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing esp32rfid1 (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 3.5.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- <AsyncTCP-esphome> 1.2.2
|-- <WiFi> 1.0
|-- <FS> 1.0
|-- <Update> 1.0
|-- <ESPAsyncWebServer-esphome> 2.1.0
| |-- <AsyncTCP-esphome> 1.2.2
|-- <DNSServer> 1.1.0
|-- <ESPmDNS> 1.0
|-- <noise-c> 0.1.4
| |-- <libsodium> 1.10018.1
|-- <SPI> 1.0
RAM: [= ] 12.8% (used 41852 bytes from 327680 bytes)
Flash: [===== ] 54.0% (used 990186 bytes from 1835008 bytes)
========================= [SUCCESS] Took 11.02 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of esp32rfid1.local
INFO -> 192.168.1.39
INFO Uploading /data/esp32rfid1/.pioenvs/esp32rfid1/firmware.bin (990288 bytes)
Uploading: [============================================================] 100% Done...
INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from esp32rfid1.local using esphome API
INFO Successfully connected to esp32rfid1.local
[19:37:06][I][app:102]: ESPHome version 2022.6.2 compiled on Jul 22 2022, 19:31:00
[19:37:06][C][wifi:491]: WiFi:
[19:37:06][C][wifi:353]: Local MAC: 94:B5:55:F9:12:C0
[19:37:06][C][wifi:354]: SSID: [redacted]
[19:37:06][C][wifi:355]: IP Address: 192.168.1.39
[19:37:06][C][wifi:357]: BSSID: [redacted]
[19:37:06][C][wifi:358]: Hostname: 'esp32rfid1'
[19:37:06][C][wifi:360]: Signal strength: -66 dB ▂▄▆█
[19:37:06][C][wifi:364]: Channel: 11
[19:37:06][C][wifi:365]: Subnet: 255.255.255.0
[19:37:06][C][wifi:366]: Gateway: 192.168.1.254
[19:37:06][C][wifi:367]: DNS1: 192.168.1.254
[19:37:06][C][wifi:368]: DNS2: 0.0.0.0
[19:37:06][C][logger:275]: Logger:
[19:37:06][C][logger:276]: Level: DEBUG
[19:37:06][C][logger:277]: Log Baud Rate: 115200
[19:37:07][C][logger:278]: Hardware UART: UART0
[19:37:07][C][spi:097]: SPI bus:
[19:37:07][C][spi:098]: CLK Pin: GPIO18
[19:37:07][C][spi:099]: MISO Pin: GPIO19
[19:37:07][C][spi:100]: MOSI Pin: GPIO23
[19:37:07][C][spi:102]: Using HW SPI: YES
[19:37:07][C][rc522:099]: RC522:
[19:37:07][E][rc522:104]: Reset command failed!
[19:37:07][C][rc522:110]: Update Interval: 1.0s
[19:37:07][C][rc522:113]: Tag 'RC522 RFID Tag'
[19:37:07][C][rc522_spi:021]: CS Pin: GPIO15
[19:37:07][C][captive_portal:088]: Captive Portal:
[19:37:07][C][mdns:084]: mDNS:
[19:37:07][C][mdns:085]: Hostname: esp32rfid1
[19:37:07][C][ota:085]: Over-The-Air Updates:
[19:37:07][C][ota:086]: Address: esp32rfid1.local:3232
[19:37:07][C][ota:089]: Using Password.
[19:37:07][C][api:138]: API Server:
[19:37:07][C][api:139]: Address: esp32rfid1.local:6053
[19:37:07][C][api:141]: Using noise encryption: YES
[19:37:09][D][api:102]: Accepted ::FFFF:C0A8:120
[19:37:09][D][api.connection:861]: Home Assistant 2022.7.5 (::FFFF:C0A8:120): Connected successfully
Résultat → Inconnu:
J’ai changé le RC522 une fois pour voir mais pas mieux.
Merci de vos idées pour mes belles vancances domotique
Bob
Ma configuration
System Health
version | core-2022.7.5 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.10.5 |
os_name | Linux |
os_version | 5.15.32-v8 |
arch | aarch64 |
timezone | Europe/Paris |
config_dir | /config |
Home Assistant Community Store
GitHub API | ok |
---|---|
GitHub Content | ok |
GitHub Web | ok |
GitHub API Calls Remaining | 4876 |
Installed Version | 1.26.2 |
Stage | running |
Available Repositories | 1073 |
Downloaded Repositories | 19 |
Home Assistant Cloud
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Home Assistant OS 8.2 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2022.07.0 |
agent_version | 1.2.1 |
docker_version | 20.10.14 |
disk_total | 457.7 GB |
disk_used | 17.9 GB |
healthy | true |
supported | true |
board | rpi4-64 |
supervisor_api | ok |
version_api | ok |
installed_addons | deCONZ (6.15.0), Let’s Encrypt (4.12.5), File editor (5.3.3), Samba share (10.0.0), Network UPS Tools (0.11.0), Spotify Connect (0.12.1), Terminal & SSH (9.6.0), Portainer (2.0.0), InfluxDB (4.5.0), Grafana (7.6.0), Node-RED (13.1.0), Studio Code Server (5.2.0), ESPHome (2022.6.2) |
Dashboards
dashboards | 2 |
---|---|
resources | 13 |
views | 10 |
mode | storage |
Recorder
oldest_recorder_run | 18 juillet 2022 à 16:22 |
---|---|
current_recorder_run | 22 juillet 2022 à 18:53 |
estimated_db_size | 209.54 MiB |
database_engine | sqlite |
database_version | 3.38.5 |
Spotify
api_endpoint_reachable | ok |
---|