Developpement - bbox_sagemcom

Bonjour,

J’ai mis à jour la beta du plugin pour ceux qui sont sous la v4 (ce qui n’est pas mon cas). Merci de me dire si c’est OK avant que je le passe en stable.

Et bonne Année !

Hello
Je vois une stable en mise à jour. Est on compatible V4 ?
Merci

En théorie oui mais faute de personne l’ayant testé…

Merci pour ta réponse.
Je vais essayé de monter une béta à mon domicile et je te fait un retour.

Hello @Alucard29
Comme promis, je test le plugin en V4.0.38
Pour info, la Bbox n’est pour l’instant pas sur le réseau de Jeedom (Je suis en train de tester hors de mon domicile)
1 : Dans la conf; il n’y a pas l’image (OK en V3)
image
2 : J’ai au bout d’un moment :


3: La log en debug

[2020-01-24 16:20:02][DEBUG] : [cron] Function called
[2020-01-24 16:20:02][DEBUG] : [box_monitor_api] Function called
[2020-01-24 16:20:02][DEBUG] : [box_monitor_api] Selected connexion type is : 1
[2020-01-24 16:20:02][DEBUG] : [box_monitor_api] corresponding key is : xdsl
[2020-01-24 16:20:02][DEBUG] : [box_monitor_api] Try to find a Wan connection
[2020-01-24 16:20:02][DEBUG] : [api_request] Function called
[2020-01-24 16:20:02][DEBUG] : [api_request] Send request to : https://10.168.1.254/api/v1/wan/ip
[2020-01-24 16:23:02][DEBUG] : [cron] Function called
[2020-01-24 16:23:02][DEBUG] : [box_monitor_api] Function called
[2020-01-24 16:23:02][DEBUG] : [box_monitor_api] Selected connexion type is : 1
[2020-01-24 16:23:02][DEBUG] : [box_monitor_api] corresponding key is : xdsl
[2020-01-24 16:23:02][DEBUG] : [box_monitor_api] Try to find a Wan connection
[2020-01-24 16:23:02][DEBUG] : [api_request] Function called
[2020-01-24 16:23:02][DEBUG] : [api_request] Send request to : https://10.168.1.254/api/v1/wan/ip
[2020-01-24 16:25:13][DEBUG] : [api_request] Error is : Failed to connect to 10.168.1.254 port 443: Connection timed out
[2020-01-24 16:25:13][DEBUG] : [box_monitor_api] BBox not detected or bad response
[2020-01-24 16:25:13][DEBUG] : [box_monitor_api] VoIP detection
[2020-01-24 16:25:13][DEBUG] : [api_request] Function called
[2020-01-24 16:25:13][DEBUG] : [api_request] Send request to : https://10.168.1.254/api/v1/voip
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Function called
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Selected mode is : api
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Custom variable is equal to : 0
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Présence Box
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Redémarrer
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Lumière On
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Lumière Off
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Lumière
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Internet
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Wifi
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Wifi On
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Wifi Off
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : TV
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : VoIP
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : IP Wan
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Numéro
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Temps de fonctionnement
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Débit descendant
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Débit ascendant
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Reçu
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Envoyé
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Variation Reçu
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Variation Envoyé
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Appels Manqués
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Messages vocaux
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Appeler
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Raccrocher
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Périphériques
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Liste
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Journal des appels
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Journal des messages
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postUpdate] Start process for : Chaîne
[2020-01-24 16:26:07][DEBUG] : [postUpdate] currentCmd exist so test if is object and custom is requested
[2020-01-24 16:26:07][DEBUG] : [postSave] Function called
[2020-01-24 16:26:07][DEBUG] : [postSave] Custom variable is equal to : 0
[2020-01-24 16:26:07][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=bbox_sagemcom function=remove callInstallFunction=1

Bonjour. Merci pour ce plugin que je viens de me procurer.

Je suis en Belgique, avec une Bbox V3+ (Sagem). A priori, je suppose qu’elle devrait fonctionner?
Je viens de configurer l’ip et le pass (pas de user?) mais pour l’instant cela ne fonctionne pas encore.
Il y a une procédure spéciale pour les Bbox de Proximus (belgique) ?
J’ai essayé un peu toutes les options dispo :slight_smile:

1 « J'aime »

Bonjour,

@Claude69 : Bon je crois qua je vais finir par passer à la v4 pour tester car sinon on est pas sortis de l’auberge…

@Geoffroy : Ce plugin est pour les Boxs Bouygues Telecom. Peu de chances que ça fonctionne avec des box Porximus dsl

T’inquiètes, il n’y as pas urgence.

bonjour @Alucard29,
Je suis chez free actuellement et je vais peut etre passer chez Bouygues.
Aujourd’hui je fais de la détection de présence via le plugin freebox qui me remonte l’info de mon telephone qui est connecté en wifi ou pas. Est ce que ce plugin fait la même chose?

Merci

Bonjour,

Oui vous pouvez le faire mais ce n’est pas immédiat. Il faudra parser une chaîne de caractères pour cela.

Ah c’est à dire ? Si c’est pas immédiat c’est au bout de combien de temps?
Parser c’est pour que ça soit immédiat ?
J’ai pas vraiment besoin que ça soit immédiat.

Je voulais dire que mon plugin, certes renvoi l’info des équipements présents, mais que c’est sous la forme d’une chaine de caractères. Il faut donc que tu fasse toi-même un script qui vienne lire cette chaine et rechercher ton téléphone dedans.

Ah !!! car je viens de résilier free et je vais avoir cette box et donc je me servais de la présence du téléphone sur la box pour mes scénarios. Le problème c’est que je sais pas faire de script.

Pour gérer la présence de ton téléphone tu peux utiliser le plugin network, pas besoin de script

@iPapy oui je l’utilise déjà mais je fais une 2ème condition avec la box pour éviter les déconnexions.
Sinon tant pis je ferais autrement. Je vais essayer avec la géolocalisation de l’iphone.

il y a aussi le plugin « Détection de téléphone (Bluetooth) » qui permet de faire une détection par Bluetooth en 2ème condition :wink:

je ne connais pas ce plugin je vais voir. Ca fonctionne avec le bluetooth du pi ?

oui cela fonctionne avec le Bluetooth du pi sans problème et même avec Blea d’actif

Merci je regarde comment activer le bluetooth :wink:

Si tu as pas désactivé le Bluetooth dans ton config.txt normalement il devrait être actif par defaut