Hello,
i’m new user,
I have a pn532 that I plugged into an esp32 spinnaker.
In the esp32 log the tag is recognized, but I can’t start an automation.
my esp32.yaml :
captive_portal:
spi:
clk_pin: GPIO14
mosi_pin: GPIO13
miso_pin: GPIO12
pn532_spi:
cs_pin: GPIO15
update_interval: 1s
binary_sensor:
- platform: pn532
uid: 04-1D-62-8A-C8-48-80
name: "Entrée Maison Vert"
and my automation :
alias: La balise Entrée Maison est analysée
description: ""
trigger:
- platform: tag
tag_id: 7a6150d3-1171-4418-8536-4692f0808822
id: 04-1D-62-8A-C8-48-80
condition: []
action:
- type: turn_on
device_id: bcda12cb9a4632c62a2542b9aed6e8ba
entity_id: switch.sonoff_100009e8c0
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 4
milliseconds: 0
- service: tts.google_translate_say
data:
entity_id: media_player.rpifab
message: >-
Bienvenue, il fait {{
states('sensor.sonoff_1000bcfab1_temperature')}} degré dans la maison.
- delay:
hours: 0
minutes: 0
seconds: 7
milliseconds: 0
- type: turn_off
device_id: bcda12cb9a4632c62a2542b9aed6e8ba
entity_id: switch.sonoff_100009e8c0
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 4
milliseconds: 0
- type: turn_on
device_id: 6167275ddfe82c767204926c3147c649
entity_id: switch.sonoff_1001746639
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- type: turn_on
device_id: 4c1fd9e0055cbeace9c9d3265c83185e
entity_id: light.sonoff_10011075aa
domain: light
brightness_pct: 75
mode: single
It’s work with my android phone, but not with pn532,
logs:
[14:59:28][W][api.connection:071]: ::FFFF:C0A8:F2: Socket operation failed: CONNECTION_CLOSED errno=128
[14:59:47][D][binary_sensor:036]: 'Entrée Maison Vert': Sending state ON
[14:59:47][D][pn532:283]: Mifare ultralight
[14:59:47][D][pn532:295]: Waiting to read next tag
[14:59:49][D][binary_sensor:036]: 'Entrée Maison Vert': Sending state OFF
Do you have an idea ?