V4.0.0 beta : démon ne démarre pas

Hello,
Je viens d’installer la v4.0.0 du 22/08 et le demo ne démarre pas. Voici le log:

22 08:24:03] DEBUG  computePresence = 0
[2026-08-22 08:24:03] DEBUG  computePresence = 0
[2026-08-22 08:24:03] DEBUG      processing updateGlobalDevice with [Maison][Tel-Rom-BT]-->0
[2026-08-22 08:24:03] DEBUG      processing updateGlobalDevice with [Maison][Tel_Marie_BT]-->0
[2026-08-22 08:24:03] DEBUG  updateGlobalDevice: state=0/nb1=0/nbDevices=2
[2026-08-22 08:24:42] INFO  Launching remotes ...
[2026-08-22 08:24:42] ERROR  Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2026-08-22 08:24:42] INFO  Using mode: legacy
[2026-08-22 08:24:42] INFO  Lancement démon phone_detection : sudo /usr/bin/python3 /var/www/html/plugins/phone_detection/core/class/../../resources/phone_detectiond/phone_detectiond.py  --device hci0 --loglevel debug --apikey NkE4shcXIaISX3rkQdi9an7DKygkyHVqbscj7ldicCPHQXOVMZ6L5G82VaimCLsp --pidfile /tmp/jeedom/phone_detection/phone_detectiond.pid --socketport 55009 --sockethost "127.0.0.1" --callback http://127.0.0.1:80/plugins/phone_detection/core/php/phone_detection.php --daemonname "local" --interval 30 --present_interval 55 --absentThreshold 180
Traceback (most recent call last):
File "/var/www/html/plugins/phone_detection/core/class/../../resources/phone_detectiond/phone_detectiond.py", line 49, in <module>
from pd_mqtt_notifier import MqttNotifier
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/pd_mqtt_notifier.py", line 27, in <module>
import paho.mqtt.client as mqtt
ModuleNotFoundError: No module named 'paho'
[2026-08-22 08:24:47] ERROR  Impossible de lancer le démon phone_detection, relancer le démon en debug et vérifiez la log
[2026-08-22 08:25:06] DEBUG  computePresence = 0
[2026-08-22 08:25:06] DEBUG  computePresence = 0
[2026-08-22 08:25:06] DEBUG      processing updateGlobalDevice with [Maison][Tel-Rom-BT]-->0
[2026-08-22 08:25:06] DEBUG      processing updateGlobalDevice with [Maison][Tel_Marie_BT]-->0
[2026-08-22 08:25:06] DEBUG  updateGlobalDevice: state=0/nb1=0/nbDevices=2

Et celui des dépendances :

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_phone_detection
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../resources/install_composer.sh
+ sudo /var/www/html/core/class/../../resources/install_composer.sh
Begin installation of composer
--2026-08-22 08:20:14--  https://getcomposer.org/installer
Resolving getcomposer.org (getcomposer.org)... 2001:41d0:304:300::18ef, 57.128.19.244
Connecting to getcomposer.org (getcomposer.org)|2001:41d0:304:300::18ef|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 59524 (58K) [application/octet-stream]
Saving to: 'composer-setup.php'
0K .......... .......... .......... .......... .......... 86% 2.99M 0s
50K ........                                              100% 60.6M=0.02s
2026-08-22 08:20:14 (3.45 MB/s) - 'composer-setup.php' saved [59524/59524]
All settings correct for using Composer
Downloading...
Composer (version 2.10.2) successfully installed to: /var/www/html/core/ajax/composer.phar
Use it: php composer.phar
End installation of composer
+ echo 3
+ cd /var/www/html/core/class/../../plugins/phone_detection
+ rm -rf vendor
+ export COMPOSER_ALLOW_SUPERUSER=1
+ COMPOSER_ALLOW_SUPERUSER=1
+ export COMPOSER_HOME=/tmp/composer
+ COMPOSER_HOME=/tmp/composer
+ sudo composer install --no-ansi --no-dev --no-interaction --no-plugins --no-progress --no-scripts --optimize-autoloader
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Composer could not detect the root package (plugins/phone_detection) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Package operations: 3 installs, 0 updates, 0 removals
- Installing paragonie/random_compat (v9.99.100): Extracting archive
- Installing paragonie/constant_time_encoding (v2.7.0): Extracting archive
- Installing phpseclib/phpseclib (3.0.43): Extracting archive
Generating optimized autoload files
1 package you are using is looking for funding.
Use the `composer fund` command to find out more!
+ sudo chown -R www-data:www-data LICENSE README.md changelog.md composer.json composer.lock core desktop images plugin_info resources vendor
+ echo 4
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end phone_detection
+ echo 5
+ rm /tmp/jeedom_install_in_progress_phone_detection
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Et mes infos :

Informations Jeedom Atlas

Core : 4.6.1 (master)
DNS Jeedom Atlas : oui

Plugin : Détection de téléphone (Bluetooth)
Version : 2026-08-22 01:23:32 (beta)
Statut Démon : Stoppé - (2026-08-22 08:24:42)
Santé
🟢 Matériel : Atlas
🟢 Système à jour : OK
🟢 Cron actif : OK
🟢 Scénario actif : OK
🟢 Démarré : OK 2026-08-22 06:26:04
🟢 Date système (dernière heure enregistrée) : OK 2026-08-22 08:27:31 (2026-08-22 07:52:02)
🟢 Droits sudo : OK
🟢 Version Jeedom : 4.6.1
🟢 Version OS : debian 12.14
🟢 Version PHP : 8.2.31
🟢 Nombre de processus Apache : 11
🟢 Version OS : Linux JeedomAtlas 6.16.4-arm64 #1 SMP PREEMPT 2026-06-26 aarch64 GNU/Linux  [12.14]
🟢 Version database : 10.11.14-MariaDB-0+deb12u2
🟢 Espace disque libre : 64 %
🟢 Connexion active/max/autorisée : 13/28/151
🟢 Taille base de données : 85.06 MB
🟢 Espace disque libre tmp : 100 %
🟢 Mémoire disponible : 74 % (Total 3849 Mo)
🟢 Mémoire suffisante : 0 
🟢 Erreur I/O : 0
🟢 Swap disponible : 100 % (Total 1024 Mo)
🟢 Swappiness : 10 %
🟢 Charge : 0.69 - 0.9 - 0.98
🟢 Configuration réseau interne : OK
🟢 Configuration réseau externe : OK
🟢 Node : v22.23.1 
🟢 Python 3 : Python 3.11.2 
🟢 Persistance du cache : OK
🟢 Apache private tmp : OK

Salut,

manque le log des dépendances :wink: en cas de question, toujours fournir tous les logs dispo :wink:

on y verra qu’elles ne sont pas installées à mon avis

j’ai regardé rapidement le code ici phone_detection/core at develop · sebmafate/phone_detection · GitHub
si c’est toujours le dépot du plugin, ca ne peut pas fonctionner ni sur deb11 et encore moins sur deb12

Recommandations:

  • adapter packages.json pour gérer les dépendances via celui-ci.
  • corriger le script install_apt.sh (et le renommer pour éviter toute ambiguïté) pour gérer les venv sur les antennes, ne plus l’utiliser pour jeedom / local mais uniquement pour les antennes (si pas fait les antennes ne peuvent être installées que sous deb11)
  • supprimer les méthodes dependancy_install & dependancy_info qui sont inutiles ici puisque packages.json
  • corriger les appels au démon pour ne pas utiliser en dur /usr/bin/python3 qui ne fonctionnera pas sous deb12 (cf. doc)
1 « J'aime »

J’ai ajouté le log des dépendances dans mon message initial (je les ai relancées une fois. Ce serait d’ailleurs une amélioration pas mal : indiquer clairement la date et heure de lancement au début du log dépendances).
Je suppose que tes recommandations sont pour le développeur ?

ca confirme ce que je disais

oui

1 « J'aime »

question HS: tu fais ca sur l’atlas sur laquelle tu as un problème? donc tu utilises qd meme le bluetooth sur cette atlas? j’avais cru comprendre que ce n’était pas le cas sur l’autre sujet

Yes sur la même atlas. Même désactivé compètement j’ai des crashs.

Bonjour @rom.jou

Je ne vois pas l’installation de paco.mqtt dans le fichier d’installation. J’ai du raté quelque chose au merge. Tu peux l’installer avec la commande

pip3 install paho-mqtt

je vais fixer dans le weekend si je trouve le temps en regardant les conseils de mips

Benoit

Non il ne peut pas faire ça car il est sous debian 12

Merci @Mips pour le lien et les infos. Je ne connaissais pas cette notion de venv. Je vais mettre a jour le code en suivant les recommandations.
J’ai trouve 2 erreurs dans la doc que tu m’as partage. Est-ce que je fais une PR ?
Cordialement
Benoit

Tu peux m’en dire plus avant?
En privé si tu préfères.
Histoire qu’on soit sur que ce sont des erreurs et pas une incompréhension; la discussion sera plus facile ici que sur une PR je pense

Hello, est-ce que tu as avancé sur un fix pour la beta ? Ou bien il vaut mieux que je revienne à la stable en attendant ?

Bonjour ,

Oui j’ai avancé mais mes modifications demandent pas mal de tests sur des instances nouvelles pour vérifier l’installation en local et sur des antennes distantes. Je suis en vacances, donc ça va me prendre encore un peu de temps.

Benoît

1 « J'aime »

Ok merci pour ta réponse, je suis repassé en stable :wink:

Bonjour,
j’ai fini les tests aujourd’hui, et j’ai pousse tous les changements dans la branch beta. Ils devraient etre disponible demain.
Benoit

1 « J'aime »

Hello, je ne vois toujours pas de mise à jour dispo pour la beta sur le market, il faut cibler le github directement ?

normalement non. sebmafate qui est le owner du plugin m’a transfere le github, je vois bien mes changements dans la branch, et dans la sienne si je regarde son repo. Mais, contrairement a d’habitude, on dirait que ca n’a pas declenche le “build” chez jeedom.

Bonjour,

C’est parce que ce dépôt t’a été transféré et que jusqu’à maintenant le market ne suivait pas les redirections GitHub. C’est normalement corrigé côté market, la mise à jour devrait apparaître cette nuit ou après une synchronisation manuelle.

@benoit5672 : as-tu accès à la configuration du plugin sur le market ? Si oui, il faudrait quand même mettre ton pseudo GitHub dans le champ Utilisateur ou organisation du dépôt.

2 « J'aime »

Mise à jour beta faite ce matin, tout fonctionne en mode MQTT.
Par contre dès que je passe en mode legacy j’ai une erreur.

2026-10-06 18:42:24] INFO [root](Thread-2 (__run)) : [39] Set "Tel-Rom-BT" phone present [AC:3E:B1:0A:50:D1]
[2026-10-06 18:42:24] DEBUG [root](Thread-2 (__run)) : mqtt-notifier[Tel-Rom-BT]: isReachable: True
[2026-10-06 18:42:24] DEBUG [root](Thread-2 (__run)) : MQTT publish queued: topic=[phone_detection/local/status/Tel-Rom-BT payload={"macAddress":"AC:3E:B1:0A:50:D1","isReachable":true,"lastStateDate":"2026-10-06T18:42:24"} mid=1606 rc=0 (No error.)
[2026-10-06 18:42:24] DEBUG [root](Thread-2 (__run)) : MQTT publish confirmed: topic=phone_detection/local/status/Tel-Rom-BT mid=1606
[2026-10-06 18:42:24] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"status":{"Tel-Rom-BT":{"macAddress":"AC:3E:B1:0A:50:D1","isReachable":true,"lastStateDate":"2026-10-06T18:42:24"}}}}}
[2026-10-06 18:42:24] INFO  Update device status (1) from antenna local for [Maison][Tel-Rom-BT]
[2026-10-06 18:42:24] INFO  Update value from 0 to 1 for [Maison][Tel-Rom-BT][Etat_local]
[2026-10-06 18:42:24] DEBUG  computePresence = 1
[2026-10-06 18:42:24] DEBUG      processing updateGlobalDevice with [Maison][Tel-Rom-BT]-->1
[2026-10-06 18:42:24] DEBUG      processing updateGlobalDevice with [Maison][Tel_Marie_BT]-->1
[2026-10-06 18:42:24] DEBUG  updateGlobalDevice: state=1/nb1=2/nbDevices=2
[2026-10-06 18:42:26] DEBUG [root](Thread-3 (__run)) : mqtt-hearbeat: alive: True, version: 4.0.0
[2026-10-06 18:42:26] DEBUG [root](Thread-3 (__run)) : MQTT publish queued: topic=[phone_detection/local/heartbeat payload={"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:42:26.329187+00:00"} mid=1607 rc=0 (No error.)
[2026-10-06 18:42:26] DEBUG [root](Thread-3 (__run)) : MQTT publish confirmed: topic=phone_detection/local/heartbeat mid=1607
[2026-10-06 18:42:26] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"heartbeat":{"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:42:26.329187+00:00"}}}}
[2026-10-06 18:42:26] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:42:38] DEBUG [root](Thread-2 (__run)) : Received response from device: 80:96:98:2F:D4:90: iPhone de Marie
[2026-10-06 18:42:38] DEBUG [root](Thread-2 (__run)) : [41] 80:96:98:2F:D4:90 (Tel_Marie_BT) is reachable
[2026-10-06 18:42:56] DEBUG [root](Thread-3 (__run)) : mqtt-hearbeat: alive: True, version: 4.0.0
[2026-10-06 18:42:56] DEBUG [root](Thread-3 (__run)) : MQTT publish queued: topic=[phone_detection/local/heartbeat payload={"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:42:56.383098+00:00"} mid=1608 rc=0 (No error.)
[2026-10-06 18:42:56] DEBUG [root](Thread-3 (__run)) : MQTT publish confirmed: topic=phone_detection/local/heartbeat mid=1608
[2026-10-06 18:42:56] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"heartbeat":{"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:42:56.383098+00:00"}}}}
[2026-10-06 18:42:56] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:43:05] DEBUG [root](Thread-2 (__run)) : elapsed time 56.14454650878906, next loop in 3.8554534912109375 seconds
[2026-10-06 18:43:09] DEBUG [asyncio](Thread-2 (__run)) : Using selector: EpollSelector
[2026-10-06 18:43:09] DEBUG [root](Thread-2 (__run)) : mobile: Tel-Rom-BT, isReachableLastPolling: True -> isPollingRequested: True (delta:0), lastPollDate: 1791304929, nextPollDate: 1791304989
[2026-10-06 18:43:09] DEBUG [root](Thread-2 (__run)) : Adding [39]: AC:3E:B1:0A:50:D1 (Tel-Rom-BT)
[2026-10-06 18:43:09] DEBUG [root](Thread-2 (__run)) : mobile: Tel_Marie_BT, isReachableLastPolling: True -> isPollingRequested: True (delta:0), lastPollDate: 1791304929, nextPollDate: 1791304989
[2026-10-06 18:43:09] DEBUG [root](Thread-2 (__run)) : Adding [41]: 80:96:98:2F:D4:90 (Tel_Marie_BT)
[2026-10-06 18:43:09] DEBUG [root](Thread-2 (__run)) : Number of devices to poll: 2
[2026-10-06 18:43:09] DEBUG [root](Thread-2 (__run)) : requestInterval: 60, loop: 2, timetowait: 27.5
[2026-10-06 18:43:09] DEBUG [root](Thread-2 (__run)) : attempt: 1/2, number of mobiles: 2, btRequestInterval: 13.75
[2026-10-06 18:43:24] DEBUG [root](Thread-2 (__run)) : Received response from device: AC:3E:B1:0A:50:D1: Pixel 7
[2026-10-06 18:43:24] DEBUG [root](Thread-2 (__run)) : [39] AC:3E:B1:0A:50:D1 (Tel-Rom-BT) is reachable
[2026-10-06 18:43:26] DEBUG [root](Thread-3 (__run)) : mqtt-hearbeat: alive: True, version: 4.0.0
[2026-10-06 18:43:26] DEBUG [root](Thread-3 (__run)) : MQTT publish queued: topic=[phone_detection/local/heartbeat payload={"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:43:26.437274+00:00"} mid=1609 rc=0 (No error.)
[2026-10-06 18:43:26] DEBUG [root](Thread-3 (__run)) : MQTT publish confirmed: topic=phone_detection/local/heartbeat mid=1609
[2026-10-06 18:43:26] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"heartbeat":{"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:43:26.437274+00:00"}}}}
[2026-10-06 18:43:26] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:43:38] DEBUG [root](Thread-2 (__run)) : Received response from device: 80:96:98:2F:D4:90: iPhone de Marie
[2026-10-06 18:43:38] DEBUG [root](Thread-2 (__run)) : [41] 80:96:98:2F:D4:90 (Tel_Marie_BT) is reachable
[2026-10-06 18:43:56] DEBUG [root](Thread-3 (__run)) : mqtt-hearbeat: alive: True, version: 4.0.0
[2026-10-06 18:43:56] DEBUG [root](Thread-3 (__run)) : MQTT publish queued: topic=[phone_detection/local/heartbeat payload={"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:43:56.491257+00:00"} mid=1610 rc=0 (No error.)
[2026-10-06 18:43:56] DEBUG [root](Thread-3 (__run)) : MQTT publish confirmed: topic=phone_detection/local/heartbeat mid=1610
[2026-10-06 18:43:56] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"heartbeat":{"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:43:56.491257+00:00"}}}}
[2026-10-06 18:43:56] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:44:05] DEBUG [root](Thread-2 (__run)) : elapsed time 56.157180309295654, next loop in 3.8428196907043457 seconds
[2026-10-06 18:44:09] DEBUG [asyncio](Thread-2 (__run)) : Using selector: EpollSelector
[2026-10-06 18:44:09] DEBUG [root](Thread-2 (__run)) : mobile: Tel-Rom-BT, isReachableLastPolling: True -> isPollingRequested: True (delta:0), lastPollDate: 1791304989, nextPollDate: 1791305049
[2026-10-06 18:44:09] DEBUG [root](Thread-2 (__run)) : Adding [39]: AC:3E:B1:0A:50:D1 (Tel-Rom-BT)
[2026-10-06 18:44:09] DEBUG [root](Thread-2 (__run)) : mobile: Tel_Marie_BT, isReachableLastPolling: True -> isPollingRequested: True (delta:0), lastPollDate: 1791304989, nextPollDate: 1791305049
[2026-10-06 18:44:09] DEBUG [root](Thread-2 (__run)) : Adding [41]: 80:96:98:2F:D4:90 (Tel_Marie_BT)
[2026-10-06 18:44:09] DEBUG [root](Thread-2 (__run)) : Number of devices to poll: 2
[2026-10-06 18:44:09] DEBUG [root](Thread-2 (__run)) : requestInterval: 60, loop: 2, timetowait: 27.5
[2026-10-06 18:44:09] DEBUG [root](Thread-2 (__run)) : attempt: 1/2, number of mobiles: 2, btRequestInterval: 13.75
[2026-10-06 18:44:24] DEBUG [root](Thread-2 (__run)) : Received response from device: AC:3E:B1:0A:50:D1: Pixel 7
[2026-10-06 18:44:24] DEBUG [root](Thread-2 (__run)) : [39] AC:3E:B1:0A:50:D1 (Tel-Rom-BT) is reachable
[2026-10-06 18:44:26] DEBUG [root](Thread-3 (__run)) : mqtt-hearbeat: alive: True, version: 4.0.0
[2026-10-06 18:44:26] DEBUG [root](Thread-3 (__run)) : MQTT publish queued: topic=[phone_detection/local/heartbeat payload={"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:44:26.545739+00:00"} mid=1611 rc=0 (No error.)
[2026-10-06 18:44:26] DEBUG [root](Thread-3 (__run)) : MQTT publish confirmed: topic=phone_detection/local/heartbeat mid=1611
[2026-10-06 18:44:26] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"heartbeat":{"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:44:26.545739+00:00"}}}}
[2026-10-06 18:44:26] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:44:37] DEBUG [root](Thread-2 (__run)) : Received response from device: 80:96:98:2F:D4:90: iPhone de Marie
[2026-10-06 18:44:37] DEBUG [root](Thread-2 (__run)) : [41] 80:96:98:2F:D4:90 (Tel_Marie_BT) is reachable
[2026-10-06 18:44:56] DEBUG [root](Thread-3 (__run)) : mqtt-hearbeat: alive: True, version: 4.0.0
[2026-10-06 18:44:56] DEBUG [root](Thread-3 (__run)) : MQTT publish queued: topic=[phone_detection/local/heartbeat payload={"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:44:56.600130+00:00"} mid=1612 rc=0 (No error.)
[2026-10-06 18:44:56] DEBUG [root](Thread-3 (__run)) : MQTT publish confirmed: topic=phone_detection/local/heartbeat mid=1612
[2026-10-06 18:44:56] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"heartbeat":{"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:44:56.600130+00:00"}}}}
[2026-10-06 18:44:56] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:45:05] DEBUG [root](Thread-2 (__run)) : Tel-Rom-BT: periodic refresh (300s) --> status: True
[2026-10-06 18:45:05] DEBUG [root](Thread-2 (__run)) : mqtt-notifier[Tel-Rom-BT]: isReachable: True
[2026-10-06 18:45:05] DEBUG [root](Thread-2 (__run)) : MQTT publish queued: topic=[phone_detection/local/status/Tel-Rom-BT payload={"macAddress":"AC:3E:B1:0A:50:D1","isReachable":true,"lastStateDate":"2026-10-06T18:44:24"} mid=1613 rc=0 (No error.)
[2026-10-06 18:45:06] DEBUG [root](Thread-2 (__run)) : MQTT publish confirmed: topic=phone_detection/local/status/Tel-Rom-BT mid=1613
[2026-10-06 18:45:06] DEBUG [root](Thread-2 (__run)) : Tel_Marie_BT: periodic refresh (300s) --> status: True
[2026-10-06 18:45:06] DEBUG [root](Thread-2 (__run)) : mqtt-notifier[Tel_Marie_BT]: isReachable: True
[2026-10-06 18:45:06] DEBUG [root](Thread-2 (__run)) : MQTT publish queued: topic=[phone_detection/local/status/Tel_Marie_BT payload={"macAddress":"80:96:98:2F:D4:90","isReachable":true,"lastStateDate":"2026-10-06T18:44:37"} mid=1614 rc=0 (No error.)
[2026-10-06 18:45:06] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"status":{"Tel-Rom-BT":{"macAddress":"AC:3E:B1:0A:50:D1","isReachable":true,"lastStateDate":"2026-10-06T18:44:24"}}}}}
[2026-10-06 18:45:06] INFO  Update device status (1) from antenna local for [Maison][Tel-Rom-BT]
[2026-10-06 18:45:06] INFO  Update value from 1 to 1 for [Maison][Tel-Rom-BT][Etat_local]
[2026-10-06 18:45:06] DEBUG  computePresence = 1
[2026-10-06 18:45:06] DEBUG [root](Thread-2 (__run)) : MQTT publish confirmed: topic=phone_detection/local/status/Tel_Marie_BT mid=1614
[2026-10-06 18:45:06] DEBUG [root](Thread-2 (__run)) : elapsed time 56.2706880569458, next loop in 3.729311943054199 seconds
[2026-10-06 18:45:06] DEBUG      processing updateGlobalDevice with [Maison][Tel-Rom-BT]-->1
[2026-10-06 18:45:06] DEBUG      processing updateGlobalDevice with [Maison][Tel_Marie_BT]-->1
[2026-10-06 18:45:06] DEBUG  updateGlobalDevice: state=1/nb1=2/nbDevices=2
[2026-10-06 18:45:06] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"status":{"Tel_Marie_BT":{"macAddress":"80:96:98:2F:D4:90","isReachable":true,"lastStateDate":"2026-10-06T18:44:37"}}}}}
[2026-10-06 18:45:06] INFO  Update device status (1) from antenna local for [Maison][Tel_Marie_BT]
[2026-10-06 18:45:06] INFO  Update value from 1 to 1 for [Maison][Tel_Marie_BT][Etat_local]
[2026-10-06 18:45:06] DEBUG  computePresence = 1
[2026-10-06 18:45:06] DEBUG      processing updateGlobalDevice with [Maison][Tel-Rom-BT]-->1
[2026-10-06 18:45:06] DEBUG      processing updateGlobalDevice with [Maison][Tel_Marie_BT]-->1
[2026-10-06 18:45:06] DEBUG  updateGlobalDevice: state=1/nb1=2/nbDevices=2
[2026-10-06 18:45:09] DEBUG [asyncio](Thread-2 (__run)) : Using selector: EpollSelector
[2026-10-06 18:45:09] DEBUG [root](Thread-2 (__run)) : mobile: Tel-Rom-BT, isReachableLastPolling: True -> isPollingRequested: True (delta:0), lastPollDate: 1791305049, nextPollDate: 1791305109
[2026-10-06 18:45:09] DEBUG [root](Thread-2 (__run)) : Adding [39]: AC:3E:B1:0A:50:D1 (Tel-Rom-BT)
[2026-10-06 18:45:09] DEBUG [root](Thread-2 (__run)) : mobile: Tel_Marie_BT, isReachableLastPolling: True -> isPollingRequested: True (delta:0), lastPollDate: 1791305049, nextPollDate: 1791305109
[2026-10-06 18:45:09] DEBUG [root](Thread-2 (__run)) : Adding [41]: 80:96:98:2F:D4:90 (Tel_Marie_BT)
[2026-10-06 18:45:09] DEBUG [root](Thread-2 (__run)) : Number of devices to poll: 2
[2026-10-06 18:45:09] DEBUG [root](Thread-2 (__run)) : requestInterval: 60, loop: 2, timetowait: 27.5
[2026-10-06 18:45:09] DEBUG [root](Thread-2 (__run)) : attempt: 1/2, number of mobiles: 2, btRequestInterval: 13.75
[2026-10-06 18:45:25] DEBUG [root](Thread-2 (__run)) : Received response from device: 80:96:98:2F:D4:90: iPhone de Marie
[2026-10-06 18:45:25] DEBUG [root](Thread-2 (__run)) : [41] 80:96:98:2F:D4:90 (Tel_Marie_BT) is reachable
[2026-10-06 18:45:26] DEBUG [root](Thread-3 (__run)) : mqtt-hearbeat: alive: True, version: 4.0.0
[2026-10-06 18:45:26] DEBUG [root](Thread-3 (__run)) : MQTT publish queued: topic=[phone_detection/local/heartbeat payload={"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:45:26.654446+00:00"} mid=1615 rc=0 (No error.)
[2026-10-06 18:45:26] DEBUG [root](Thread-3 (__run)) : MQTT publish confirmed: topic=phone_detection/local/heartbeat mid=1615
[2026-10-06 18:45:26] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"heartbeat":{"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:45:26.654446+00:00"}}}}
[2026-10-06 18:45:26] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:45:37] DEBUG [root](Thread-2 (__run)) : Received response from device: AC:3E:B1:0A:50:D1: Pixel 7
[2026-10-06 18:45:37] DEBUG [root](Thread-2 (__run)) : [39] AC:3E:B1:0A:50:D1 (Tel-Rom-BT) is reachable
[2026-10-06 18:45:56] DEBUG [root](Thread-3 (__run)) : mqtt-hearbeat: alive: True, version: 4.0.0
[2026-10-06 18:45:56] DEBUG [root](Thread-3 (__run)) : MQTT publish queued: topic=[phone_detection/local/heartbeat payload={"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:45:56.708737+00:00"} mid=1616 rc=0 (No error.)
[2026-10-06 18:45:56] DEBUG [root](Thread-3 (__run)) : MQTT publish confirmed: topic=phone_detection/local/heartbeat mid=1616
[2026-10-06 18:45:56] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"heartbeat":{"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:45:56.708737+00:00"}}}}
[2026-10-06 18:45:56] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:46:05] DEBUG [root](Thread-2 (__run)) : elapsed time 56.15811228752136, next loop in 3.8418877124786377 seconds
[2026-10-06 18:46:09] DEBUG [asyncio](Thread-2 (__run)) : Using selector: EpollSelector
[2026-10-06 18:46:09] DEBUG [root](Thread-2 (__run)) : mobile: Tel-Rom-BT, isReachableLastPolling: True -> isPollingRequested: True (delta:0), lastPollDate: 1791305109, nextPollDate: 1791305169
[2026-10-06 18:46:09] DEBUG [root](Thread-2 (__run)) : Adding [39]: AC:3E:B1:0A:50:D1 (Tel-Rom-BT)
[2026-10-06 18:46:09] DEBUG [root](Thread-2 (__run)) : mobile: Tel_Marie_BT, isReachableLastPolling: True -> isPollingRequested: True (delta:0), lastPollDate: 1791305109, nextPollDate: 1791305169
[2026-10-06 18:46:09] DEBUG [root](Thread-2 (__run)) : Adding [41]: 80:96:98:2F:D4:90 (Tel_Marie_BT)
[2026-10-06 18:46:09] DEBUG [root](Thread-2 (__run)) : Number of devices to poll: 2
[2026-10-06 18:46:09] DEBUG [root](Thread-2 (__run)) : requestInterval: 60, loop: 2, timetowait: 27.5
[2026-10-06 18:46:09] DEBUG [root](Thread-2 (__run)) : attempt: 1/2, number of mobiles: 2, btRequestInterval: 13.75
[2026-10-06 18:46:24] DEBUG [root](Thread-2 (__run)) : Received response from device: 80:96:98:2F:D4:90: iPhone de Marie
[2026-10-06 18:46:24] DEBUG [root](Thread-2 (__run)) : [41] 80:96:98:2F:D4:90 (Tel_Marie_BT) is reachable
[2026-10-06 18:46:26] DEBUG [root](Thread-3 (__run)) : mqtt-hearbeat: alive: True, version: 4.0.0
[2026-10-06 18:46:26] DEBUG [root](Thread-3 (__run)) : MQTT publish queued: topic=[phone_detection/local/heartbeat payload={"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:46:26.763208+00:00"} mid=1617 rc=0 (No error.)
[2026-10-06 18:46:26] DEBUG [root](Thread-3 (__run)) : MQTT publish confirmed: topic=phone_detection/local/heartbeat mid=1617
[2026-10-06 18:46:26] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"heartbeat":{"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:46:26.763208+00:00"}}}}
[2026-10-06 18:46:26] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:46:38] DEBUG [root](Thread-2 (__run)) : Received response from device: AC:3E:B1:0A:50:D1: Pixel 7
[2026-10-06 18:46:38] DEBUG [root](Thread-2 (__run)) : [39] AC:3E:B1:0A:50:D1 (Tel-Rom-BT) is reachable
[2026-10-06 18:46:56] DEBUG [root](Thread-3 (__run)) : mqtt-hearbeat: alive: True, version: 4.0.0
[2026-10-06 18:46:56] DEBUG [root](Thread-3 (__run)) : MQTT publish queued: topic=[phone_detection/local/heartbeat payload={"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:46:56.817444+00:00"} mid=1618 rc=0 (No error.)
[2026-10-06 18:46:56] DEBUG [root](Thread-3 (__run)) : MQTT publish confirmed: topic=phone_detection/local/heartbeat mid=1618
[2026-10-06 18:46:56] DEBUG  Receiving MQTT message: {"phone_detection":{"local":{"heartbeat":{"alive":true,"version":"4.0.0","timestamp":"2026-10-06T16:46:56.817444+00:00"}}}}
[2026-10-06 18:46:56] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:47:05] DEBUG [root](Thread-2 (__run)) : elapsed time 56.15620970726013, next loop in 3.843790292739868 seconds
[2026-10-06 18:47:09] DEBUG [asyncio](Thread-2 (__run)) : Using selector: EpollSelector
[2026-10-06 18:47:09] DEBUG [root](Thread-2 (__run)) : mobile: Tel-Rom-BT, isReachableLastPolling: True -> isPollingRequested: True (delta:0), lastPollDate: 1791305169, nextPollDate: 1791305229
[2026-10-06 18:47:09] DEBUG [root](Thread-2 (__run)) : Adding [39]: AC:3E:B1:0A:50:D1 (Tel-Rom-BT)
[2026-10-06 18:47:09] DEBUG [root](Thread-2 (__run)) : mobile: Tel_Marie_BT, isReachableLastPolling: True -> isPollingRequested: True (delta:0), lastPollDate: 1791305169, nextPollDate: 1791305229
[2026-10-06 18:47:09] DEBUG [root](Thread-2 (__run)) : Adding [41]: 80:96:98:2F:D4:90 (Tel_Marie_BT)
[2026-10-06 18:47:09] DEBUG [root](Thread-2 (__run)) : Number of devices to poll: 2
[2026-10-06 18:47:09] DEBUG [root](Thread-2 (__run)) : requestInterval: 60, loop: 2, timetowait: 27.5
[2026-10-06 18:47:09] DEBUG [root](Thread-2 (__run)) : attempt: 1/2, number of mobiles: 2, btRequestInterval: 13.75
[2026-10-06 18:47:25] DEBUG [root](Thread-2 (__run)) : Received timeout for device: AC:3E:B1:0A:50:D1
[2026-10-06 18:47:25] DEBUG [root](Thread-2 (__run)) : [39] AC:3E:B1:0A:50:D1 (Tel-Rom-BT) is unreachable
[2026-10-06 18:47:25] DEBUG [root](Thread-2 (__run)) : [39]: lastStateDate: 1791305198
[2026-10-06 18:47:25] DEBUG [root](Thread-2 (__run)) : [39]: thresholdDate: 1791305378
[2026-10-06 18:55:18] DEBUG [root](Thread-2 (__run)) : Number of devices to poll: 2
[2026-10-06 18:55:18] DEBUG [root](Thread-2 (__run)) : requestInterval: 60, loop: 2, timetowait: 27.5
[2026-10-06 18:55:18] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:55:18] DEBUG [root](Thread-3 (__run)) : Status Code :  200
[2026-10-06 18:55:18] DEBUG [root](Thread-3 (__run)) : Jeedom reply :  {'success': True, 'value': 0}
[2026-10-06 18:55:18] DEBUG [root](Thread-2 (__run)) : attempt: 1/2, number of mobiles: 2, btRequestInterval: 13.75
[2026-10-06 18:55:33] DEBUG [root](Thread-2 (__run)) : Received response from device: 80:96:98:2F:D4:90: iPhone de Marie
[2026-10-06 18:55:33] DEBUG [root](Thread-2 (__run)) : [41] 80:96:98:2F:D4:90 (Tel_Marie_BT) is reachable
[2026-10-06 18:55:33] INFO [root](Thread-2 (__run)) : [41] Set "Tel_Marie_BT" phone present [80:96:98:2F:D4:90]
[2026-10-06 18:55:33] DEBUG [root](Thread-2 (__run)) : jeedom-notifier[41]: isReachable: True
[2026-10-06 18:55:33] ERROR [asyncio](Thread-2 (__run)) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffff9c120090>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.11/asyncio/selector_events.py", line 1009, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 132, in data_received
self.processResponse({"mac":mac,"name":name})
File "/var/www/html/plugins/phone_detection/core/class/../../resources/phone_detectiond/phone_detectiond.py", line 141, in processResponse
if self.notifier.setDeviceStatus(device):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/pd_jeedom_notifier.py", line 75, in setDeviceStatus
msg = {'action': 'update_device_status', 'name' : device.humanName, 'isReachable': (0,1)[device.isReachable], 'macAddress': device.macAddress, 'lastStateDate': device.lastStateDate.isoformat()}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'isoformat'
[2026-10-06 18:55:48] DEBUG [root](Thread-3 (__run)) : jeedom-heartbeat: alive: True, version: 4.0.0
[2026-10-06 18:55:48] DEBUG [root](Thread-3 (__run)) : Send to jeedom :  {'action': 'heartbeat', 'version': '4.0.0', 'alive': 1, 'source': 'local'}
[2026-10-06 18:55:48] DEBUG  This is a heartbeat from antenna local version=4.0.0 alive=1
[2026-10-06 18:55:48] DEBUG [root](Thread-3 (__run)) : Status Code :  200
[2026-10-06 18:55:48] DEBUG [root](Thread-3 (__run)) : Jeedom reply :  {'success': True, 'value': 0}
[2026-10-06 18:55:58] DEBUG  Inscription au plugin mqtt2
[2026-10-06 18:55:58] INFO  Launching remotes ...
[2026-10-06 18:55:59] DEBUG  Inscription au plugin mqtt2
[2026-10-06 18:56:00] INFO  Launching remotes ...
[2026-10-06 18:56:01] ERROR  Erreur sur la fonction deamon_start du plugin : Vous devez attendre au moins 45 secondes entre deux lancements du démon. Dernier lancement : 2026-10-06 18:55:17
[2026-10-06 18:56:03] DEBUG  computePresence = 0
[2026-10-06 18:56:03] DEBUG  computePresence = 0
[2026-10-06 18:56:03] DEBUG      processing updateGlobalDevice with [Maison][Tel-Rom-BT]-->0
[2026-10-06 18:56:03] DEBUG      processing updateGlobalDevice with [Maison][Tel_Marie_BT]-->0
[2026-10-06 18:56:03] DEBUG  updateGlobalDevice: state=0/nb1=0/nbDevices=2

bonjour @Aurelien ,
non je n’ai pas acces a la configuration du plugin sur le market. Il est gere par @sebastien_ferrand.
Sebastien, est-ce que tu pourrais mettre mon pseudo GitHub (benoit5672) dans le champ Utilisateur ou organisation du dépôt.
merci
Benoit

Merci @rom.jou pour le retour,

J’ai fixe le probleme. La modification devrait etre disponible demain matin.

Benoit

2 « J'aime »