EnOcean PTM250 DB mqtt connection doens't fully work as intended

Hello people from the internet. I’m curently working on an Enocean project for my internship and I have some trouble with it. So basically im trying to use my PTM250 in home assistant but i get these two errors: “uknown sensor” & “connection failed” but when i press my switch it displays the data and all the other stuff.

2024-03-18 14:54:28,290 INFO: Logging to file: /config/enoceanmqtt.log
2024-03-18 14:54:28,293 INFO: Loading config file /data/enoceanmqtt.conf
2024-03-18 14:54:28,300 DEBUG: Created sensor: {'name': 'enoceanmqtt/PTM215', 'address': 4277664828, 'rorg': 246, 'func': 2, 'type': 2, 'persistent': 1}
2024-03-18 14:54:28,301 DEBUG: Global config: {'enocean_port': '/dev/ttyUSB0', 'log_packets': 'true', 'overlay': 'HA', 'db_file': '/data/enoceanmqtt_db.json', 'mapping_file': '', 'ha_dev_name_in_entity': 'False', 'mqtt_discovery_prefix': 'homeassistant/', 'mqtt_host': 'xxxxxxxxxx', 'mqtt_port': '1883', 'mqtt_client_id': 'enocean_gateway', 'mqtt_keepalive': '60', 'mqtt_prefix': 'enoceanmqtt/', 'mqtt_user': 'xxxxxx', 'mqtt_pwd': '*****', 'mqtt_debug': 'true'}
2024-03-18 14:54:28,596 INFO: Selected overlay : Home Assistant
2024-03-18 14:54:31,673 INFO: Mapping file correctly read: /app/enocean-mqtt/enoceanmqtt/overlays/homeassistant/mapping.yaml
2024-03-18 14:54:31,675 INFO: Device database /data/enoceanmqtt_db.json correctly read/created
2024-03-18 14:54:31,677 INFO: Authenticating: xxxxxxx
2024-03-18 14:54:31,678 DEBUG: Connecting to host xxxxxxxx, port 1883, keepalive 60
2024-03-18 14:54:31,686 INFO: SerialCommunicator started
2024-03-18 14:54:31,687 INFO: Auto Teach-in is disabled
2024-03-18 14:54:31,689 WARNING: Replacing Packet.optional with default value.
2024-03-18 14:54:31,789 INFO: Sending packet
2024-03-18 14:54:31,790 DEBUG: 0x05 ['0x8'] [] OrderedDict()
2024-03-18 14:54:31,894 DEBUG: 0x02 ['0x0', '0xff', '0xf9', '0x5f', '0x0'] ['0xa'] OrderedDict()
2024-03-18 14:54:31,896 INFO: got response packet: OK
2024-03-18 14:54:36,714 DEBUG: Connection failed, retrying
2024-03-18 14:54:44,724 DEBUG: Connection failed, retrying
2024-03-18 14:54:46,981 DEBUG: FE:F7:FC:3C->FF:FF:FF:FF (-48 dBm): 0x01 ['0xf6', '0x50', '0xfe', '0xf7', '0xfc', '0x3c', '0x30'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x30', '0x0'] OrderedDict()
2024-03-18 14:54:46,983 INFO: received: FE:F7:FC:3C->FF:FF:FF:FF (-48 dBm): 0x01 ['0xf6', '0x50', '0xfe', '0xf7', '0xfc', '0x3c', '0x30'] ['0x1', '0xff', '0xff', '0xff', '0xff', '0x30', '0x0'] OrderedDict()
2024-03-18 14:54:46,991 DEBUG: enoceanmqtt/PTM215: R1 (Rocker 1st action)=Button BI 
2024-03-18 14:54:46,993 DEBUG: enoceanmqtt/PTM215: EB (Energy bow)=pressed 
2024-03-18 14:54:46,994 DEBUG: enoceanmqtt/PTM215: R2 (Rocker 2nd action)=Button AI 
2024-03-18 14:54:46,995 DEBUG: enoceanmqtt/PTM215: SA (2nd action)=No 2nd action 
2024-03-18 14:54:46,997 DEBUG: enoceanmqtt/PTM215: T21 (T21)=True 
2024-03-18 14:54:46,998 DEBUG: enoceanmqtt/PTM215: NU (NU)=True 
2024-03-18 14:54:47,000 DEBUG: enoceanmqtt/PTM215: Sent MQTT: {"_RSSI_": -48, "_DATE_": "2024-03-18T14:54:46.981525", "R1": 2, "EB": 1, "R2": 0, "SA": 0, "T21": true, "NU": true}
2024-03-18 14:54:47,189 DEBUG: FE:F7:FC:3C->FF:FF:FF:FF (-48 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xf7', '0xfc', '0x3c', '0x20'] ['0x2', '0xff', '0xff', '0xff', '0xff', '0x30', '0x0'] OrderedDict()
2024-03-18 14:54:47,190 INFO: received: FE:F7:FC:3C->FF:FF:FF:FF (-48 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xf7', '0xfc', '0x3c', '0x20'] ['0x2', '0xff', '0xff', '0xff', '0xff', '0x30', '0x0'] OrderedDict()
2024-03-18 14:54:47,197 DEBUG: enoceanmqtt/PTM215: R1 (Rocker 1st action)=Button AI 
2024-03-18 14:54:47,198 DEBUG: enoceanmqtt/PTM215: EB (Energy bow)=released 
2024-03-18 14:54:47,200 DEBUG: enoceanmqtt/PTM215: R2 (Rocker 2nd action)=Button AI 
2024-03-18 14:54:47,201 DEBUG: enoceanmqtt/PTM215: SA (2nd action)=No 2nd action 
2024-03-18 14:54:47,202 DEBUG: enoceanmqtt/PTM215: T21 (T21)=True 
2024-03-18 14:54:47,204 DEBUG: enoceanmqtt/PTM215: NU (NU)=False 
2024-03-18 14:54:47,206 DEBUG: enoceanmqtt/PTM215: Sent MQTT: {"_RSSI_": -48, "_DATE_": "2024-03-18T14:54:47.188807", "R1": 0, "EB": 0, "R2": 0, "SA": 0, "T21": true, "NU": false}
2024-03-18 14:54:53,733 DEBUG: Connection failed, retrying
2024-03-18 14:54:57,452 DEBUG: FF:F6:F0:00->05:16:40:B7 (-80 dBm): 0x01 ['0xd2', '0x3', '0x1e', '0xff', '0xf6', '0xf0', '0x0', '0x80'] ['0x1', '0x5', '0x16', '0x40', '0xb7', '0x50', '0x0'] OrderedDict()
2024-03-18 14:54:57,454 INFO: received: FF:F6:F0:00->05:16:40:B7 (-80 dBm): 0x01 ['0xd2', '0x3', '0x1e', '0xff', '0xf6', '0xf0', '0x0', '0x80'] ['0x1', '0x5', '0x16', '0x40', '0xb7', '0x50', '0x0'] OrderedDict()
2024-03-18 14:54:57,458 INFO: unknown sensor: FF:F6:F0:00
2024-03-18 14:55:06,743 DEBUG: Connection failed, retrying

I have this feeling there is something wrong with my config file.

//devices.yaml
[PTM215]
address         = 0xFEF7FC3C
rorg            = 0xF6
func            = 0x02
type            = 0x02
persistent      = 1
//configuration.yaml
default_config:

binary_sensor:
  - platform: enocean
    id: [0xFE, 0xF7, 0xFC, 0x3C]

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

and i would like when i press the switch it shows it in my mqtt explorer. Any help with this is appreciated if you need more info ill provide it. fyi i’m very clueless about MQTT and HA so the more explantions and tips are welcome.