sebmafate / phone_detection

Jeedom plugin to detect phone by using bluetooth
GNU General Public License v3.0
1 stars 2 forks source link

Fatal write error on socket transport protocol #36

Open Sternor71 opened 8 months ago

Sternor71 commented 8 months ago

Bonjour, Tout d'abord merci pour ce magnifique plugin :)

Malheureusement depuis les deux dernières mise à jour il semble y avoir un problème de droit sur l'utilisation du protocole Bluetooth ou quelque chose dans ce genre. Voici l'erreur que j'ai malgré la réinstallation des dépendances et la réinstallation du plugin. J'ai remplacé les vrais adresse MAC par XX:XX:XX:XX:XX:XX manuellement ^^

[2024-01-04 16:29:05]DEBUGroot : Sending bluetooth name request to 2 devices (try 1/2) [2024-01-04 16:29:10]DEBUGroot : Sending bluetooth name request to 2 devices (try 2/2) [2024-01-04 16:29:16]WARNINGroot : No response for mac XX:XX:XX:XX:XX:XX [2024-01-04 16:29:16]WARNINGroot : No response for mac XX:XX:XX:XX:XX:XX [2024-01-04 16:29:16]DEBUGroot : Clemence: periodic refresh (300s) --> status: 0 [2024-01-04 16:29:16]DEBUGroot : [4]: device status: 0 [2024-01-04 16:29:16]DEBUGroot : Send to jeedom : {'action': 'update_device_status', 'id': '4', 'value': 0, 'source': 'local'} [2024-01-04 17:29:16]INFO : Update device status (0) from antenna local for [Maison][C] [2024-01-04 17:29:16]INFO : Update value from 0 to 0 for [Maison][C][Etat_local] [2024-01-04 17:29:16]DEBUG : computePresence = 0 [2024-01-04 17:29:16]DEBUG : [Maison][C]-->0 [2024-01-04 17:29:16]DEBUG : [Maison][J]-->0 [2024-01-04 17:29:16]DEBUG : updateGlobalDevice: state=0/nb1=0/nbDevices=2 [2024-01-04 16:29:16]DEBUGroot : Status Code : 200 [2024-01-04 16:29:16]DEBUGroot : Jeedom reply : {'success': True, 'value': 0} [2024-01-04 16:29:16]DEBUGroot : Jean-philippe: periodic refresh (300s) --> status: 0 [2024-01-04 16:29:16]DEBUGroot : [2]: device status: 0 [2024-01-04 16:29:16]DEBUGroot : Send to jeedom : {'action': 'update_device_status', 'id': '2', 'value': 0, 'source': 'local'} [2024-01-04 17:29:17]INFO : Update device status (0) from antenna local for [Maison][J] [2024-01-04 17:29:17]INFO : Update value from 0 to 0 for [Maison][J][Etat_local] [2024-01-04 17:29:17]DEBUG : computePresence = 0 [2024-01-04 17:29:17]DEBUG : [Maison][C]-->0 [2024-01-04 17:29:17]DEBUG : [Maison][J]-->0 [2024-01-04 17:29:17]DEBUG : updateGlobalDevice: state=0/nb1=0/nbDevices=2 [2024-01-04 16:29:17]DEBUGroot : Status Code : 200 [2024-01-04 16:29:17]DEBUGroot : Jeedom reply : {'success': True, 'value': 0} [2024-01-04 16:29:17]DEBUGroot : elapsed time 11.508318424224854, next loop in 0 seconds [2024-01-04 16:29:17]DEBUGasyncio : Using selector: EpollSelector

[2024-01-04 16:29:17]DEBUGroot : Number of devices to poll: 2 [2024-01-04 16:29:17]ERRORasyncio : Fatal write error on socket transport protocol: transport: <_SelectorSocketTransport fd=11 read=idle write=> Traceback (most recent call last): File "/usr/lib/python3.7/asyncio/selector_events.py", line 857, in write n = self._sock.send(data) PermissionError: [Errno 1] Operation not permitted [2024-01-04 16:29:17]DEBUGroot : Sending bluetooth name request to 2 devices (try 1/2) [2024-01-04 16:29:22]DEBUGroot : Sending bluetooth name request to 2 devices (try 2/2) [2024-01-04 16:29:23]DEBUGroot : Send to jeedom : {'action': 'heartbeat', 'version': '2.2.1', 'alive': 1, 'source': 'local'} [2024-01-04 17:29:23]DEBUG : This is a heartbeat from antenna local version=2.2.1 alive=1 [2024-01-04 16:29:23]DEBUGroot : Status Code : 200 [2024-01-04 16:29:23]DEBUGroot : Jeedom reply : {'success': True, 'value': 0} [2024-01-04 16:29:28]WARNINGroot : No response for mac XX:XX:XX:XX:XX:XX [2024-01-04 16:29:28]WARNINGroot : No response for mac XX:XX:XX:XX:XX:XX [2024-01-04 16:29:28]DEBUGroot : elapsed time 11.321707010269165, next loop in 0 seconds [2024-01-04 16:29:28]DEBUGasyncio : Using selector: EpollSelector

[2024-01-04 16:29:28]DEBUGroot : Number of devices to poll: 2 [2024-01-04 16:29:28]ERRORasyncio : Fatal write error on socket transport protocol: transport: <_SelectorSocketTransport fd=11 read=idle write=> Traceback (most recent call last): File "/usr/lib/python3.7/asyncio/selector_events.py", line 857, in write n = self._sock.send(data) PermissionError: [Errno 1] Operation not permitted [2024-01-04 16:29:28]DEBUGroot : Sending bluetooth name request to 2 devices (try 1/2) [2024-01-04 16:29:33]DEBUGroot : Sending bluetooth name request to 2 devices (try 2/2) [2024-01-04 16:29:39]WARNINGroot : No response for mac XX:XX:XX:XX:XX:XX [2024-01-04 16:29:39]WARNINGroot : No response for mac XX:XX:XX:XX:XX:XX [2024-01-04 16:29:39]DEBUGroot : elapsed time 11.32079792022705, next loop in 0 seconds [2024-01-04 16:29:39]DEBUGasyncio : Using selector: EpollSelector

[2024-01-04 16:29:39]DEBUGroot : Number of devices to poll: 2 [2024-01-04 16:29:39]ERRORasyncio : Fatal write error on socket transport protocol: transport: <_SelectorSocketTransport fd=11 read=idle write=> Traceback (most recent call last): File "/usr/lib/python3.7/asyncio/selector_events.py", line 857, in write n = self._sock.send(data) PermissionError: [Errno 1] Operation not permitted

Plugin version 2024-01-04 01:21:09

Le système que j'utilise est une RPI3 : Version OS | debian 10.13 Version PHP | 7.3.31-1~deb10u2 | Apache | 17 Version OS | Linux jdpb-rpi01 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux [10.13] Version database | 10.3.36-MariaDB-0+deb10u

Jeedom Version : 4.3.21

Les téléphones utilisés : Pixel 7 et Mi5

Si vous avez besoin de logs/informations supplémentaires ou d'essais n'hésitez pas à me contacter. Cordialement,