Une synchronisation ne supprime pas l'équipement non présent

Bonjour,

J’ai un favoris qui me renvoie une erreur indiquant qu’un module n’est pas joignable (sur le site netatmo il n’apparait plus) :

module NAModule2 ( Anémomètre ) is not reachable !

J’ai donc lancé une synchronisation en espérant que ça me supprimerai ce module. Toutefois quand je regarde les logs, les commandes pour le vent sont créées (vers le début) :

[2020-11-06 10:01:32][DEBUG] : createEquipmentsAndCommands
[2020-11-06 10:01:39][INFO] : FETCH Netatamo API to get new data
[2020-11-06 10:01:39][DEBUG] : Netatmo\Clients\NAWSApiClient Object (     [conf:protected] => Array         (             [base_uri] => https://api.netatmo.com/             [services_uri] => https://api.netatmo.com/api             [access_token_uri] => https://api.netatmo.com/oauth2/token             [authorize_uri] => https://api.netatmo.com/oauth2/authorize             [client_id] => 5ed7485ca3932a007c4dfb2e             [client_secret] => ykyodw1hQYqxpRXWbo9vx6XEtCqvsP9iUMUl             [username] => netatmo3641@rblbpb.com             [password] => iS3d!hb2u88f$r#dYmHdsZ9uu@$x$tkSWxTMsUhFnE#LxFaEbmtUpK*8Y*R7La@p             [scope] => read_station         )      [refresh_token:protected] => 5ed747d6ec51f03b47212bfc|c0981ffd072b097c7591051bcc6fab3d     [access_token:protected] => 5ed747d6ec51f03b47212bfc|30bdb11fe30f56414ee930233bef2c6e     [expires_at:protected] => 1604664068 )
[2020-11-06 10:01:39][DEBUG] : Equipment : NetatmoData (LogicalID : 70:ee:50:13:0e:0c) created !
[2020-11-06 10:01:39][DEBUG] :  - Command : 421 refresh created !
[2020-11-06 10:01:39][DEBUG] :  - Command : 422 Pression created !
[2020-11-06 10:01:39][DEBUG] :  - Command : 423 Température created !
[2020-11-06 10:01:39][DEBUG] :  - Command : 424 Humidité created !
[2020-11-06 10:01:39][DEBUG] :  - Command : 425 Pluie created !
[2020-11-06 10:01:39][DEBUG] :  - Command : 426 Pluie (1h) created !
[2020-11-06 10:01:39][DEBUG] :  - Command : 427 Pluie (Journée) created !
[2020-11-06 10:01:39][DEBUG] :  - Command : 6481 Vitesse du vent created !
[2020-11-06 10:01:39][DEBUG] :  - Command : 6482 Direction du vent created !
[2020-11-06 10:01:39][DEBUG] :  - Command : 6483 Vitesse des rafales created !
[2020-11-06 10:01:39][DEBUG] :  - Command : 6484 Direction des rafales created !
[2020-11-06 10:01:39][DEBUG] : Array (     [0] => 70:ee:50:13:0e:0c )
[2020-11-06 10:01:39][DEBUG] : Call 'refresh' command for this object netatmoPublicDataCmd Object (     [id:protected] => 421     [logicalId:protected] => refresh     [generic_type:protected] =>      [eqType:protected] => netatmoPublicData     [name:protected] => Refresh     [order:protected] => 0     [type:protected] => action     [subType:protected] => other     [eqLogic_id:protected] => 48     [isHistorized:protected] => 0     [unite:protected] =>      [configuration:protected] => Array         (         )      [template:protected] => {"dashboard":"core::default","mobile":"core::default"}     [display:protected] => {"showStatsOnmobile":0,"showStatsOndashboard":0}     [value:protected] =>      [isVisible:protected] => 1     [alert:protected] => []     [_collectDate:protected] =>      [_valueDate:protected] =>      [_eqLogic:protected] => netatmoPublicData Object         (             [id:protected] => 48             [name:protected] => NetatmoData             [logicalId:protected] => 70:ee:50:13:0e:0c             [generic_type:protected] =>              [object_id:protected] => 1             [eqType_name:protected] => netatmoPublicData             [eqReal_id:protected] =>              [isVisible:protected] => 1             [isEnable:protected] => 1             [configuration:protected] => {"type":"NAMain","_id":"70:ee:50:13:0e:0c","createtime":"2020-06-03 08:53:57","updatetime":"2020-06-03 08:56:16"}             [timeout:protected] =>              [category:protected] => {"heating":"0","security":"0","energy":"0","light":"0","automatism":"0","multimedia":"0","default":"0"}             [display:protected] => {"height":"432px","width":"312px"}             [order:protected] => 3             [comment:protected] =>              [tags:protected] =>              [_debug:protected] =>              [_object:protected] => jeeObject Object                 (                     [id:protected] => 1                     [name:protected] => Maison                     [father_id:protected] =>                      [isVisible:protected] => 1                     [position:protected] =>                      [configuration:protected] => {"parentNumber":0,"tagColor":"#000000","tagTextColor":"#FFFFFF","desktop::summaryTextColor":"","mobile::summaryTextColor":"","hideOnDashboard":"0","summary::global::security":"0","summary::global::motion":"0","summary::global::door":"0","summary::global::windows":"0","summary::global::shutter":"0","summary::global::light":"0","summary::global::outlet":"0","summary::global::temperature":"0","summary::global::humidity":"0","summary::global::luminosity":"0","summary::global::power":"0","summary::hide::desktop::security":"0","summary::hide::desktop::motion":"0","summary::hide::desktop::door":"0","summary::hide::desktop::windows":"0","summary::hide::desktop::shutter":"0","summary::hide::desktop::light":"0","summary::hide::desktop::outlet":"0","summary::hide::desktop::temperature":"0","summary::hide::desktop::humidity":"0","summary::hide::desktop::luminosity":"0","summary::hide::desktop::power":"0","summary::hide::mobile::security":"0","summary::hide::mobile::motion":"0","summary::hide::mobile::door":"0","summary::hide::mobile::windows":"0","summary::hide::mobile::shutter":"0","summary::hide::mobile::light":"0","summary::hide::mobile::outlet":"0","summary::hide::mobile::temperature":"0","summary::hide::mobile::humidity":"0","summary::hide::mobile::luminosity":"0","summary::hide::mobile::power":"0","summary":{"security":[],"motion":[],"door":[],"windows":[],"shutter":[],"light":[],"outlet":[],"temperature":[],"humidity":[],"luminosity":[],"power":[]},"useCustomColor":"1"}                     [display:protected] => {"icon":"<i class=\"icon maison-house109\"><\/i>","tagColor":"#9b59b6","tagTextColor":"#ffffff","desktop::summaryTextColor":"#000000","dashboard::size":""}                     [image:protected] => {"type":"jpg","sha512":"0645137f2271bd7603f47349c99d214701951aa75ddc898d81bcfdaae77a8081a50ac165cef49fe6f9bc3ab7b1d7b0521ba7c1b3d0dc40487fc2985296b617a7"}                     [_child:protected] => Array                         (                         )                      [_changed:protected] =>                      [_summaryChanged:protected] =>                  )              [_needRefreshWidget:protected] =>              [_timeoutUpdated:protected] =>              [_batteryUpdated:protected] =>              [_changed:protected] =>              [_cmds] => Array                 (                     [refresh..] => netatmoPublicDataCmd Object  *RECURSION*                 )          )      [_needRefreshWidget:protected] =>      [_needRefreshAlert:protected] =>      [_changed:protected] =>  )
[2020-11-06 10:01:39][INFO] : Update values for Equipment : NetatmoData ( LogicalID : 70:ee:50:13:0e:0c )
[2020-11-06 10:01:39][DEBUG] :  -- start device [Main]
[2020-11-06 10:01:39][INFO] :  - Update value => Pressure (module : 70:ee:50:13:0e:0c) = 1032.8
[2020-11-06 10:01:39][DEBUG] :  -- end device [Main]
[2020-11-06 10:01:39][DEBUG] :  -- start device [module]
[2020-11-06 10:01:39][INFO] :  - Update value => Temperature (module : 02:00:00:13:2e:30) = 8
[2020-11-06 10:01:39][INFO] :  - Update value => Humidity (module : 02:00:00:13:2e:30) = 83
[2020-11-06 10:01:39][DEBUG] :  -- end device [module]
[2020-11-06 10:01:39][DEBUG] :  -- start device [module]
[2020-11-06 10:01:39][INFO] :  - Update value => Rain (module : 05:00:00:05:cf:64) = 0
[2020-11-06 10:01:39][INFO] :  - Update value => sum_rain_1 (module : 05:00:00:05:cf:64) = 0
[2020-11-06 10:01:39][INFO] :  - Update value => sum_rain_24 (module : 05:00:00:05:cf:64) = 0
[2020-11-06 10:01:39][DEBUG] :  -- end device [module]
[2020-11-06 10:01:39][DEBUG] :  -- start device [module]
[2020-11-06 10:01:39][DEBUG] :  - module not reachable, SKIP

Donc je ne voie pas trop comment faire pour désactiver ce module devenu inutile. Quelqu’un a des pistes ?

Bonjour,
De même c’est un équipement sous jeedom non ?
Supprime le manuellement.

Ce n’est pas l’équipement entier qui pose problème, seulement les commandes liées à l’anémomètre.
J’ai essayé (sans grande conviction) de désactiver l’affichage, et ça n’a rien changé.

En effet, ce cas n’est pas géré encore. Il y a plusieurs cas possibles :

  • l’anémomètre n’envoie plus de données temporairement. ; bug réseau …
  • l’anémomètre a été retiré de la station : déménagement…

Netatmo va réponde : reachable == false ( pour le temporaire) et virer la mentions en cas de retrait du parc.

Ainsi on peut prévoir un ménage sur les commandes ( d’un équipement ) lors d’une synchronisation. Mais quel serait le comportement idéal selon vous ?

Je viens de publier une nouvelle version ‹ Beta › qui supprimer les Commandes qui ne sont plus disponibles par la station. Voici le changelog : https://github.com/jim005/jeedom-netatmoPublicData/blob/beta/docs/fr_FR/changelog.md
Dispo demain sur le market Jeedom. En stable sous 15 jours.

J’espère que ça répondra à ta demande :slight_smile:

Je viens de tester cette Bêta, et ça fonctionne bien.
L’anémomètre a bien été supprimé lors de la synchronisation.

Merci pour cette mise à jour

1 « J'aime »