c’est donc notre coupable !
il va falloir que tu crées un scénario avec un bloc code, et que tu colles ceci puis l’executes :
require_once dirname(__FILE__) . '/../../plugins/JeedomConnect/core/class/JeedomConnectWidget.class.php';
$widgetId = 354;
$widget = JeedomConnectWidget::getWidgets($widgetId)[0];
$widget['widgetJC'] = '{"name":"Aspirateur","actions":[{"id":"8162","name":"Du00e9marrer","index":0,"subtype":"other","image":{"source":"fa","name":"play","prefix":"fas"},"options":[]},{"id":"8164","name":"Pause","index":1,"subtype":"other","image":{"source":"fa","name":"pause","prefix":"fas"},"options":[]},{"id":"8163","name":"Arru00eater","index":2,"subtype":"other","image":{"source":"fa","name":"stop","prefix":"fas"},"options":[]},{"id":"8165","name":"Home","index":3,"subtype":"other","image":{"source":"fa","name":"home","prefix":"fas"},"options":[]},{"id":"8166","name":"Spot","index":4,"subtype":"other","image":{"source":"fa","name":"dot-circle","prefix":"fas"},"options":[]},{"id":"8167","name":"Trouver","index":5,"subtype":"other","image":{"source":"fa","name":"globe","prefix":"fas"}}],"image":{"source":"user","name":"zone.png"},"statusImages":[],"moreWidgets":[],"display":"detail","hideTitle":false,"hideSubTitle":false,"hideStatus":false,"hideIcon":false,"type":"generic-action-other","blockDetail":false,"enable":true,"room":5,"moreInfos":[{"type":"cmd","id":"8150","human":"#[Rez de chaussu00e9][Aspirateur][Statut]#","name":"Statut","unit":""},{"type":"cmd","id":"8153","human":"#[Rez de chaussu00e9][Aspirateur][Surface nettoyu00e9e]#","name":"Surface nettoyu00e9e","unit":"m2"},{"type":"cmd","id":"8154","human":"#[Rez de chaussu00e9][Aspirateur][Duru00e9e nettoyage]#","name":"Duru00e9e nettoyage","unit":""},{"type":"cmd","id":"8155","human":"#[Rez de chaussu00e9][Aspirateur][Erreur]#","name":"Erreur","unit":""},{"type":"cmd","id":"8151","human":"#[Rez de chaussu00e9][Aspirateur][Batterie]#","name":"Batterie","unit":"%"}],"id":354}' ;
config::save('widget::'.$widgetId, $widget , 'JeedomConnect' ) ;