Problème scénario bluetooth

Bonjour,
Hier j’ai installer des clé bluetooth Asus BT400, grâce au lien d’un membre, j’ai bien installé le driver de la clé
Aujourd’hui en démarrant mon gsm j’ai eut ce message

[2024-04-13 07:33:02][SCENARIO] -- Début : Scenario lance manuellement.
[2024-04-13 07:33:02][SCENARIO] - Exécution du sous-élément de type [condition] : if   #[Monitoring][Wifi GSM Laurent][Statut]# == 1 OU #[Bluetooth][B GSM Laurent][Etat_local]# == 1  OU  #[Antennes Bluetooth][Nut Laurent][Présent]# == 1
[2024-04-13 07:33:02][SCENARIO] Evaluation de la condition : [1 == 1 OU #[Bluetooth][B GSM Laurent][Etat_local]# == 1  OU  1 == 1] = 1 == 1 OU #[Bluetooth][B GSM Laurent][Etat_local]# == 1  OU  1 == 1
[2024-04-13 07:33:02][SCENARIO] Expression non valide : 1 == 1 OU #[Bluetooth][B GSM Laurent][Etat_local]# == 1  OU  1 == 1
[2024-04-13 07:33:02][SCENARIO] Fin correcte du scénario

j’ai essayé en mettant Etat, Etat local ou L’antenne et j’ai toujours le même résultat expression non valide, j’ai exactement le même scénario pour ma femme et elle il n’y a pas de problème

j’ai fait le test de désactiver puis activer le bluetooth de mon gsm et cela fonctionne bien, je suis hors ligne puis en ligne

voici le log du plugin

[2024-04-13 07:43:09] DEBUG  : This is a heartbeat from antenna Antenne GSM version=2.2.5 alive=1
[2024-04-13 07:43:10] DEBUG [root](Thread-2) : Received timeout for device: 5c:ed:f4:fb:74:cf
[2024-04-13 07:43:10] DEBUG [root](Thread-2) : [191] 5C:ED:F4:FB:74:CF (B GSM Lars) is unreachable
[2024-04-13 07:43:10] DEBUG [root](Thread-2) : [191]: lastStateDate: 2024-04-12 22:56:19
[2024-04-13 07:43:10] DEBUG [root](Thread-2) : [191]: thresholdDate: 2024-04-12 22:59:19
[2024-04-13 07:43:10] DEBUG [root](Thread-2) : [191]: datetime.utcnow(): 2024-04-13 05:43:10.688113
[2024-04-13 07:43:10] DEBUG [root](Thread-2) : [191]: isReachableLastPolling: False
[2024-04-13 07:43:10] DEBUG [root](Thread-2) : [191]: isReachable: 0, is datetime.utcnow() > thresholdDate ? True
[2024-04-13 07:43:13] DEBUG [root](Thread-2) : elapsed time 6.209103107452393, next loop in 3.7908968925476074 seconds
[2024-04-13 07:43:17] DEBUG [asyncio](Thread-2) : Using selector: EpollSelector
[2024-04-13 07:43:17] DEBUG [root](Thread-2) : Adding [155]: 78:D8:40:91:11:42 (B  GSM Laurent)
[2024-04-13 07:43:17] DEBUG [root](Thread-2) : Adding [191]: 5C:ED:F4:FB:74:CF (B GSM Lars)
[2024-04-13 07:43:17] DEBUG [root](Thread-2) : Adding [454]: 48:BC:E1:1B:21:85 (B GSM Virgi)
[2024-04-13 07:43:17] DEBUG [root](Thread-2) : Number of devices to poll: 3
[2024-04-13 07:43:17] DEBUG [root](Thread-2) : Sending bluetooth name request to 3 devices (try 1/2)
[2024-04-13 07:43:19] DEBUG [root](Thread-2) : Received timeout for device: 48:bc:e1:1b:21:85
[2024-04-13 07:43:19] DEBUG [root](Thread-2) : [454] 48:BC:E1:1B:21:85 (B GSM Virgi) is unreachable
[2024-04-13 07:43:19] DEBUG [root](Thread-2) : [454]: lastStateDate: 2024-04-12 23:03:07
[2024-04-13 07:43:19] DEBUG [root](Thread-2) : [454]: thresholdDate: 2024-04-12 23:06:07
[2024-04-13 07:43:19] DEBUG [root](Thread-2) : [454]: datetime.utcnow(): 2024-04-13 05:43:19.127362
[2024-04-13 07:43:19] DEBUG [root](Thread-2) : [454]: isReachableLastPolling: False
[2024-04-13 07:43:19] DEBUG [root](Thread-2) : [454]: isReachable: 0, is datetime.utcnow() > thresholdDate ? True
[2024-04-13 07:43:20] DEBUG [root](Thread-2) : Received timeout for device: 5c:ed:f4:fb:74:cf
[2024-04-13 07:43:20] DEBUG [root](Thread-2) : [191] 5C:ED:F4:FB:74:CF (B GSM Lars) is unreachable
[2024-04-13 07:43:20] DEBUG [root](Thread-2) : [191]: lastStateDate: 2024-04-12 22:56:19
[2024-04-13 07:43:20] DEBUG [root](Thread-2) : [191]: thresholdDate: 2024-04-12 22:59:19
[2024-04-13 07:43:20] DEBUG [root](Thread-2) : [191]: datetime.utcnow(): 2024-04-13 05:43:20.694508
[2024-04-13 07:43:20] DEBUG [root](Thread-2) : [191]: isReachableLastPolling: False
[2024-04-13 07:43:20] DEBUG [root](Thread-2) : [191]: isReachable: 0, is datetime.utcnow() > thresholdDate ? True
[2024-04-13 07:43:22] DEBUG [root](Thread-2) : Sending bluetooth name request to 1 devices (try 2/2)
[2024-04-13 07:43:24] DEBUG [root](Thread-2) : Received timeout for device: 78:d8:40:91:11:42
[2024-04-13 07:43:24] DEBUG [root](Thread-2) : [155] 78:D8:40:91:11:42 (B  GSM Laurent) is unreachable
[2024-04-13 07:43:24] DEBUG [root](Thread-2) : [155]: lastStateDate: 2024-04-13 05:42:47.923917
[2024-04-13 07:43:24] DEBUG [root](Thread-2) : [155]: thresholdDate: 2024-04-13 05:45:47.923917
[2024-04-13 07:43:24] DEBUG [root](Thread-2) : [155]: datetime.utcnow(): 2024-04-13 05:43:24.279944
[2024-04-13 07:43:24] DEBUG [root](Thread-2) : [155]: isReachableLastPolling: True
[2024-04-13 07:43:24] DEBUG [root](Thread-2) : [155]: isReachable: True, is datetime.utcnow() > thresholdDate ? False
[2024-04-13 07:43:25] DEBUG [root](Thread-3) : Send to jeedom :  {'action': 'heartbeat', 'version': '2.2.5', 'alive': 1, 'source': 'local'}
[2024-04-13 07:43:25] DEBUG  : This is a heartbeat from antenna local version=2.2.5 alive=1
[2024-04-13 07:43:25] DEBUG [root](Thread-3) : Status Code :  200
[2024-04-13 07:43:25] DEBUG [root](Thread-3) : Jeedom reply :  {'success': True, 'value': 0}
[2024-04-13 07:43:28] DEBUG [root](Thread-2) : elapsed time 11.313668966293335, next loop in 0 seconds
[2024-04-13 07:43:28] DEBUG [asyncio](Thread-2) : Using selector: EpollSelector
[2024-04-13 07:43:28] DEBUG [root](Thread-2) : Adding [155]: 78:D8:40:91:11:42 (B  GSM Laurent)
[2024-04-13 07:43:28] DEBUG [root](Thread-2) : Adding [191]: 5C:ED:F4:FB:74:CF (B GSM Lars)
[2024-04-13 07:43:28] DEBUG [root](Thread-2) : Adding [454]: 48:BC:E1:1B:21:85 (B GSM Virgi)
[2024-04-13 07:43:28] DEBUG [root](Thread-2) : Number of devices to poll: 3
[2024-04-13 07:43:28] DEBUG [root](Thread-2) : Sending bluetooth name request to 3 devices (try 1/2)
[2024-04-13 07:43:30] DEBUG [root](Thread-2) : Received timeout for device: 5c:ed:f4:fb:74:cf
[2024-04-13 07:43:30] DEBUG [root](Thread-2) : [191] 5C:ED:F4:FB:74:CF (B GSM Lars) is unreachable
[2024-04-13 07:43:30] DEBUG [root](Thread-2) : [191]: lastStateDate: 2024-04-12 22:56:19
[2024-04-13 07:43:30] DEBUG [root](Thread-2) : [191]: thresholdDate: 2024-04-12 22:59:19
[2024-04-13 07:43:30] DEBUG [root](Thread-2) : [191]: datetime.utcnow(): 2024-04-13 05:43:30.440674
[2024-04-13 07:43:30] DEBUG [root](Thread-2) : [191]: isReachableLastPolling: False
[2024-04-13 07:43:30] DEBUG [root](Thread-2) : [191]: isReachable: 0, is datetime.utcnow() > thresholdDate ? True
[2024-04-13 07:43:32] DEBUG [root](Thread-2) : Received timeout for device: 48:bc:e1:1b:21:85
[2024-04-13 07:43:32] DEBUG [root](Thread-2) : [454] 48:BC:E1:1B:21:85 (B GSM Virgi) is unreachable
[2024-04-13 07:43:32] DEBUG [root](Thread-2) : [454]: lastStateDate: 2024-04-12 23:03:07
[2024-04-13 07:43:32] DEBUG [root](Thread-2) : [454]: thresholdDate: 2024-04-12 23:06:07
[2024-04-13 07:43:32] DEBUG [root](Thread-2) : [454]: datetime.utcnow(): 2024-04-13 05:43:32.007869
[2024-04-13 07:43:32] DEBUG [root](Thread-2) : [454]: isReachableLastPolling: False
[2024-04-13 07:43:32] DEBUG [root](Thread-2) : [454]: isReachable: 0, is datetime.utcnow() > thresholdDate ? True
[2024-04-13 07:43:33] DEBUG [root](Thread-2) : Sending bluetooth name request to 1 devices (try 2/2)
[2024-04-13 07:43:34] DEBUG [root](Thread-2) : Received response from device: 78:d8:40:91:11:42: RNP 12 Plus
[2024-04-13 07:43:34] DEBUG [root](Thread-2) : [155] 78:D8:40:91:11:42 (B  GSM Laurent) is reachable
[2024-04-13 07:43:39] DEBUG  : This is a heartbeat from antenna Antenne GSM version=2.2.5 alive=1
[2024-04-13 07:43:40] DEBUG [root](Thread-2) : elapsed time 11.311671733856201, next loop in 0 seconds
[2024-04-13 07:43:40] DEBUG [asyncio](Thread-2) : Using selector: EpollSelector
[2024-04-13 07:43:40] DEBUG [root](Thread-2) : Adding [191]: 5C:ED:F4:FB:74:CF (B GSM Lars)
[2024-04-13 07:43:40] DEBUG [root](Thread-2) : Adding [454]: 48:BC:E1:1B:21:85 (B GSM Virgi)
[2024-04-13 07:43:40] DEBUG [root](Thread-2) : Number of devices to poll: 2
[2024-04-13 07:43:40] DEBUG [root](Thread-2) : Sending bluetooth name request to 2 devices (try 1/2)
[2024-04-13 07:43:41] DEBUG [root](Thread-2) : Received timeout for device: 5c:ed:f4:fb:74:cf
[2024-04-13 07:43:41] DEBUG [root](Thread-2) : [191] 5C:ED:F4:FB:74:CF (B GSM Lars) is unreachable
[2024-04-13 07:43:41] DEBUG [root](Thread-2) : [191]: lastStateDate: 2024-04-12 22:56:19
[2024-04-13 07:43:41] DEBUG [root](Thread-2) : [191]: thresholdDate: 2024-04-12 22:59:19
[2024-04-13 07:43:41] DEBUG [root](Thread-2) : [191]: datetime.utcnow(): 2024-04-13 05:43:41.751191
[2024-04-13 07:43:41] DEBUG [root](Thread-2) : [191]: isReachableLastPolling: False
[2024-04-13 07:43:41] DEBUG [root](Thread-2) : [191]: isReachable: 0, is datetime.utcnow() > thresholdDate ? True
[2024-04-13 07:43:43] DEBUG [root](Thread-2) : Received timeout for device: 48:bc:e1:1b:21:85
[2024-04-13 07:43:43] DEBUG [root](Thread-2) : [454] 48:BC:E1:1B:21:85 (B GSM Virgi) is unreachable
[2024-04-13 07:43:43] DEBUG [root](Thread-2) : [454]: lastStateDate: 2024-04-12 23:03:07
[2024-04-13 07:43:43] DEBUG [root](Thread-2) : [454]: thresholdDate: 2024-04-12 23:06:07
[2024-04-13 07:43:43] DEBUG [root](Thread-2) : [454]: datetime.utcnow(): 2024-04-13 05:43:43.317325
[2024-04-13 07:43:43] DEBUG [root](Thread-2) : [454]: isReachableLastPolling: False
[2024-04-13 07:43:43] DEBUG [root](Thread-2) : [454]: isReachable: 0, is datetime.utcnow() > thresholdDate ? True

avez vous une idée de ce que cela pourrait être ?
merci

Salut

Si scénario, il faudrait le donner en entier et pas uniquement le résultat.

« Ou » doit s’écrire || et « et » &&

1 « J'aime »

voila le scénario, j’ai toujours utilisé le OU et ET en majuscule et je n’ai jamais eut de soucis , j’avais essayé || mais en étant sous mac, je devais copier les barres d’un topic les coller dans le presse papier et ensuite les recopier dans le scénario
voila le scénario

Les choses changent et si je le signalais, c’est parce que cela n’est plus ou sera un jour plus possible d’avoir ET et OU. L’arrivée de la v4.4 peut-etre.

Antoine

Merci je vais recoller les barres dans le presse papier alors :blush:
j’ai supprimé le scénario et refais avec les || et && mais toujours même problème je ne comprends pas pq l’expression est non valide

#[Bluetooth][B GSM Laurent][Etat_local]#

À vérifier si correctement entrée ou si active. Idem celle avec wifi.

Antoine

tout est bien activé dans le plugin et je viens de refaire le test quand je coupe le bluetooth ca se déconnecte(après 3 min) et quand je l’active ca se reconnecte

j’ai relancé le scénario de ma femme et aucun problème il fonctionne correctement pourtant il n’y a que les noms qui changent

[2024-04-13 09:02:59][SCENARIO] -- Début : Scenario lance manuellement.
[2024-04-13 09:02:59][SCENARIO] - Exécution du sous-élément de type [condition] : if  #[Monitoring][Wifi GSM Virgi][Statut]# == 1  OU #[Bluetooth][B GSM Virgi][Etat]# == 1  OU  #[Antennes Bluetooth][Nut Virgi][Présent]# == 1
[2024-04-13 09:02:59][SCENARIO] Evaluation de la condition : [1 == 1  OU 1 == 1  OU  1 == 1] = Vrai
[2024-04-13 09:02:59][SCENARIO] - Exécution du sous-élément de type [action] : then
[2024-04-13 09:02:59][SCENARIO] Exécution de la commande [Virtuel][VVirginie][On]
[2024-04-13 09:02:59][SCENARIO] Fin correcte du scénario

Oui mais on voit bien que lea commandes sont évaluées correctement, valeur au lieu de nom.

Donc il y a un souci sur la commande. Change son nomentre la par l’outils…

Salut,

Je ne vois pas encore le lien mais ca fait 2eme cas avec une « expression non valide » qu’à priori on ne comprend pas.

Je me dis que les deux pourraient avoir une cause similaire.

Ca marche, je viens de changer le nom (pourtant je l’avais deja fait) mais cette fois ci pas d’espace et un point entre les 2

[2024-04-13 09:58:40][SCENARIO] -- Début : Scenario lance manuellement.
[2024-04-13 09:58:40][SCENARIO] - Exécution du sous-élément de type [condition] : if #[Antennes Bluetooth][Nut Laurent][Présent]# == 1  || #[Monitoring][Wifi GSM Laurent][Statut]# == 1  || #[Bluetooth][Bl.Laurent][Etat]# == 1
[2024-04-13 09:58:40][SCENARIO] Evaluation de la condition : [1 == 1  || 1 == 1  || 1 == 1] = Vrai
[2024-04-13 09:58:40][SCENARIO] - Exécution du sous-élément de type [action] : then
[2024-04-13 09:58:40][SCENARIO] Exécution de la commande [Virtuel][VLaurent][On]
[2024-04-13 09:58:40][SCENARIO] Fin correcte du scénario

Celui de ma femme il y a des espaces pourtant c’est très bizarre