Plugin SmartThings

Bonjour.

Je viens de mettre sur le marché en beta un nouveau plugin SmartThings.

Voilà une présentation succincte du plugin.

Je rajoute une page pour installer et configurer le plugin

En synchronisant, on récupère les appareils, les emplacements (locations) et les pièces (peut-être bientôt les App installées) enregistrés sur le compte SmartThings.

Sur l’équipement « emplacement », on peut lier un pièce Jeedom à une pièce SmartThings : à chaque nouvel appareil ajouté, en fonction de la pièce SmartThings, et de l’association affectée, elle sera affectée.

Un bouton permet d’afficher les info brutes à communiquer pour pouvoir intégrer un appareil ou une nouvelle commande. (à transmettre en balise préformattée)

Je vous mets la liste des équipements configurés pour l’instant :
Samsung OCF Washer,
Samsung OCF Refrigerator
Samsung OCF TV(à tester)
Samsung OCF Air Conditioner(à tester)
Samsung OCF Dishwasher(à tester)
Logitech Harmony Hub
Harmony Activities
Mobile Presence

Edit du 19/12 : Tous les appareils sont désormais gérés.

Je mets en ligne une doc prochainement.

Le changelog est disponible ici.

1 « J'aime »

Hello :wave:t2:
Nouvelle beta :
Mise à jour des infos d’emplacement et pièces en cas de modification dans ST,
Ajout de « Logitech Harmony Hub » (activité et Hub uniquement, pas de devices)
Ajout de Mobile Presence

Hello,

Dommage que ma TV Samsung qui était sur l’appli SmartThings ai rendu l’âme car j’aurais bien testé ton plugin :sleepy:

hello j’ai une tv samsung connecte sur smarthing je serai ravi de pouvoir beta tester

Ah oui, effectivement. Rachètes-en une autre. :rofl:

J’ai pas encore testé toutes les fonctionnalités des SmartApp qu’on peut ajouter manuellement via code/template, ni les possibilités d’implémenter d’autres équipement que ceux dispos dans la liste de l’App, mais je vois qu’il y a un certain intérêt de développement sur le community SmartThings.
(j’ai même vu qu’on peut exploiter ses appareils en direct via l’IP…)
Plein de chose à faire sur ce plugin :slight_smile:

Malheureusement je crois plus au père noël :slight_smile:

Sur l’appli mobile j’ai aussi les lampes Hue qui remonte c’est prévu de ton coté?

Oui, en fonction des retours.
Le plugin remonte tous les appareils du compte en créant un équipement. Et un bouton affiche le résultat brut.
Pour l’instant, seule une petite liste d’appareil a des commandes fixes.
(je prévois d’inclure des commandes automatiquement, en fonction des capacités)

1 « J'aime »

plugin installer… config ok
ma tv est remonté
image
mais les commandes ne font rien

Tu as les logs en debug stp.
Ca ressemble à ça.

[2020-12-09 15:10:23][DEBUG] : DEBUGGGGGG COMMMANDE  : freezer::thermostatCoolingSetpoint::setCoolingSetpoint::
[2020-12-09 15:10:23][DEBUG] : Body built : {"commands":[{"component":"freezer","capability":"thermostatCoolingSetpoint","command":"setCoolingSetpoint","arguments":[-19]}]}
[2020-12-09 15:10:23][DEBUG] : REQ sendRequesthttps://api.smartthings.com/v1/devices/33se5d3f-bbf0-3669-c75s-7ba03dsc013ea/commands

g dit de la merde sa fonctionne sauf l’etat muet ne change pas

Ok, cool.

Dans Infos brut, quelle est la valeur de audioMute > mute > value ?
Sinon copie le json ici

{
   components: {
      main: {
         mediaPlayback: {
            supportedPlaybackCommands: {
               value: null,
               timestamp: "2020-12-09T14:06:19.723Z"
            },
            playbackStatus: {
               value: null,
               timestamp: "2020-12-09T14:06:19.723Z"
            }
         },
         audioVolume: {
            volume: {
               value: 12,
               unit: "%",
               timestamp: "2020-12-07T18:26:23.266Z"
            }
         },
         "samsungvd.supportsPowerOnByOcf": {
            supportsPowerOnByOcf: {
               value: "true",
               timestamp: "2020-12-07T18:20:22.313Z"
            }
         },
         mediaInputSource: {
            supportedInputSources: {
               value: [
                  "digitalTv",
                  "HDMI1"
               ],
               timestamp: "2020-12-07T18:26:18.741Z"
            },
            inputSource: {
               value: "digitalTv",
               timestamp: "2020-12-07T18:26:18.741Z"
            }
         },
         "custom.tvsearch": [],
         "samsungvd.ambient": {
            supportedAmbientApps: {
               value: null,
               timestamp: "2020-12-09T14:05:21.247Z"
            }
         },
         refresh: [],
         "custom.error": {
            error: {
               value: null,
               timestamp: "2020-12-09T14:03:18.707Z"
            }
         },
         execute: {
            data: {
               value: null,
               data: [],
               timestamp: "2020-12-09T14:04:19.426Z"
            }
         },
         switch: {
            switch: {
               value: "on",
               timestamp: "2020-12-09T14:13:46.237Z"
            }
         },
         tvChannel: {
            tvChannel: {
               value: "1",
               timestamp: "2020-12-07T18:26:23.866Z"
            },
            tvChannelName: {
               value: "TF1",
               timestamp: "2020-12-07T18:26:23.866Z"
            }
         },
         ocf: {
            st: {
               value: null,
               timestamp: "2020-12-09T14:02:19.330Z"
            },
            mndt: {
               value: null,
               timestamp: "2020-12-09T14:01:18.374Z"
            },
            mnfv: {
               value: "T-KTSU2DEUC-1304.0",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnhw: {
               value: "",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            di: {
               value: "9ca1cc0e-f602-1c0f-4d44-5f89560c0928",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnsl: {
               value: null,
               timestamp: "2020-12-09T14:00:48.030Z"
            },
            dmv: {
               value: "res.1.1.0,sh.1.1.0",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            n: {
               value: "[TV] tv salon",
               timestamp: "2020-12-07T18:35:04.984Z"
            },
            mnmo: {
               value: "UE43TU7125KXXC",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            vid: {
               value: "VD-STV_2018_K",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnmn: {
               value: "Samsung Electronics",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnml: {
               value: "",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnpv: {
               value: "5.5",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnos: {
               value: "Tizen",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            pi: {
               value: "9ca1cc0e-f602-1c0f-4d44-5f89560c0928",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            icv: {
               value: "core.1.1.0",
               timestamp: "2020-12-07T18:20:22.264Z"
            }
         },
         "custom.picturemode": {
            pictureMode: {
               value: "Dynamique",
               timestamp: "2020-12-07T18:26:23.652Z"
            },
            supportedPictureModes: {
               value: [
                  "Dynamique",
                  "FILMMAKER MODE",
                  "Standard",
                  "Cinéma",
                  "Naturel"
               ],
               timestamp: "2020-12-07T18:20:22.910Z"
            },
            supportedPictureModesMap: {
               value: [
                  {
                     id: "modeDynamic",
                     name: "Dynamique"
                  },
                  {
                     id: "modeFilmmakerMode",
                     name: "FILMMAKER MODE"
                  },
                  {
                     id: "modeStandard",
                     name: "Standard"
                  },
                  {
                     id: "modeMovie",
                     name: "Cinéma"
                  },
                  {
                     id: "modeNatural",
                     name: "Naturel"
                  }
               ],
               timestamp: "2020-12-07T18:20:22.910Z"
            }
         },
         "custom.accessibility": [],
         "custom.recording": [],
         "custom.disabledCapabilities": {
            disabledCapabilities: {
               value: null,
               timestamp: "2020-12-09T13:59:18.196Z"
            }
         },
         "samsungvd.ambient18": [],
         "custom.soundmode": {
            supportedSoundModesMap: {
               value: [
                  {
                     id: "modeStandard",
                     name: "Standard"
                  },
                  {
                     id: "modeAmplify",
                     name: "Amplifier"
                  }
               ],
               timestamp: "2020-12-07T18:20:22.679Z"
            },
            soundMode: {
               value: "Standard",
               timestamp: "2020-12-07T18:20:22.679Z"
            },
            supportedSoundModes: {
               value: [
                  "Standard",
                  "Amplifier"
               ],
               timestamp: "2020-12-07T18:20:22.679Z"
            }
         },
         audioMute: {
            mute: {
               value: "unmuted",
               timestamp: "2020-12-07T18:20:22.479Z"
            }
         },
         mediaTrackControl: {
            supportedTrackControlCommands: {
               value: null,
               timestamp: "2020-12-09T13:58:19.639Z"
            }
         },
         "custom.launchapp": [],
         "samsungvd.firmwareVersion": {
            firmwareVersion: {
               value: "3.4.0",
               timestamp: "2020-12-07T18:20:22.962Z"
            }
         }
      }
   }
}

Ok, je vois. Passe la commande info Muet en string au lieu de binaire, en attendant.
Je corrige ça.

J’ai envoyé la modif.
Laisse en binaire du coup et sauvegarde l’équipement.
J’ai ajouté 2 commandes info pour la chaine.

cool j’ai la chaine maintenant
pour muet tjrs pareil

{
   components: {
      main: {
         mediaPlayback: {
            supportedPlaybackCommands: {
               value: null,
               timestamp: "2020-12-09T14:06:19.723Z"
            },
            playbackStatus: {
               value: null,
               timestamp: "2020-12-09T14:06:19.723Z"
            }
         },
         audioVolume: {
            volume: {
               value: 12,
               unit: "%",
               timestamp: "2020-12-07T18:26:23.266Z"
            }
         },
         "samsungvd.supportsPowerOnByOcf": {
            supportsPowerOnByOcf: {
               value: "true",
               timestamp: "2020-12-07T18:20:22.313Z"
            }
         },
         mediaInputSource: {
            supportedInputSources: {
               value: [
                  "digitalTv",
                  "HDMI1"
               ],
               timestamp: "2020-12-07T18:26:18.741Z"
            },
            inputSource: {
               value: "digitalTv",
               timestamp: "2020-12-07T18:26:18.741Z"
            }
         },
         "custom.tvsearch": [],
         "samsungvd.ambient": {
            supportedAmbientApps: {
               value: null,
               timestamp: "2020-12-09T14:05:21.247Z"
            }
         },
         refresh: [],
         "custom.error": {
            error: {
               value: null,
               timestamp: "2020-12-09T14:03:18.707Z"
            }
         },
         execute: {
            data: {
               value: null,
               data: [],
               timestamp: "2020-12-09T14:04:19.426Z"
            }
         },
         switch: {
            switch: {
               value: "on",
               timestamp: "2020-12-09T14:13:46.237Z"
            }
         },
         tvChannel: {
            tvChannel: {
               value: "1",
               timestamp: "2020-12-07T18:26:23.866Z"
            },
            tvChannelName: {
               value: "TF1",
               timestamp: "2020-12-07T18:26:23.866Z"
            }
         },
         ocf: {
            st: {
               value: null,
               timestamp: "2020-12-09T14:02:19.330Z"
            },
            mndt: {
               value: null,
               timestamp: "2020-12-09T14:01:18.374Z"
            },
            mnfv: {
               value: "T-KTSU2DEUC-1304.0",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnhw: {
               value: "",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            di: {
               value: "9ca1cc0e-f602-1c0f-4d44-5f89560c0928",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnsl: {
               value: null,
               timestamp: "2020-12-09T14:00:48.030Z"
            },
            dmv: {
               value: "res.1.1.0,sh.1.1.0",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            n: {
               value: "[TV] tv salon",
               timestamp: "2020-12-07T18:35:04.984Z"
            },
            mnmo: {
               value: "UE43TU7125KXXC",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            vid: {
               value: "VD-STV_2018_K",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnmn: {
               value: "Samsung Electronics",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnml: {
               value: "",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnpv: {
               value: "5.5",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnos: {
               value: "Tizen",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            pi: {
               value: "9ca1cc0e-f602-1c0f-4d44-5f89560c0928",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            icv: {
               value: "core.1.1.0",
               timestamp: "2020-12-07T18:20:22.264Z"
            }
         },
         "custom.picturemode": {
            pictureMode: {
               value: "Dynamique",
               timestamp: "2020-12-07T18:26:23.652Z"
            },
            supportedPictureModes: {
               value: [
                  "Dynamique",
                  "FILMMAKER MODE",
                  "Standard",
                  "Cinéma",
                  "Naturel"
               ],
               timestamp: "2020-12-07T18:20:22.910Z"
            },
            supportedPictureModesMap: {
               value: [
                  {
                     id: "modeDynamic",
                     name: "Dynamique"
                  },
                  {
                     id: "modeFilmmakerMode",
                     name: "FILMMAKER MODE"
                  },
                  {
                     id: "modeStandard",
                     name: "Standard"
                  },
                  {
                     id: "modeMovie",
                     name: "Cinéma"
                  },
                  {
                     id: "modeNatural",
                     name: "Naturel"
                  }
               ],
               timestamp: "2020-12-07T18:20:22.910Z"
            }
         },
         "custom.accessibility": [],
         "custom.recording": [],
         "custom.disabledCapabilities": {
            disabledCapabilities: {
               value: null,
               timestamp: "2020-12-09T13:59:18.196Z"
            }
         },
         "samsungvd.ambient18": [],
         "custom.soundmode": {
            supportedSoundModesMap: {
               value: [
                  {
                     id: "modeStandard",
                     name: "Standard"
                  },
                  {
                     id: "modeAmplify",
                     name: "Amplifier"
                  }
               ],
               timestamp: "2020-12-07T18:20:22.679Z"
            },
            soundMode: {
               value: "Standard",
               timestamp: "2020-12-07T18:20:22.679Z"
            },
            supportedSoundModes: {
               value: [
                  "Standard",
                  "Amplifier"
               ],
               timestamp: "2020-12-07T18:20:22.679Z"
            }
         },
         audioMute: {
            mute: {
               value: "unmuted",
               timestamp: "2020-12-07T18:20:22.479Z"
            }
         },
         mediaTrackControl: {
            supportedTrackControlCommands: {
               value: null,
               timestamp: "2020-12-09T13:58:19.639Z"
            }
         },
         "custom.launchapp": [],
         "samsungvd.firmwareVersion": {
            firmwareVersion: {
               value: "3.4.0",
               timestamp: "2020-12-07T18:20:22.962Z"
            }
         }
      }
   }
}

Coquille corrigée. Sur le marché.

j’ai bien une valeur pour mute a 0 mais elle ne varie pas quand je met muet ou non… et les infos de la chaine son tjr sur TF1 meme si je change de chaine

{
   components: {
      main: {
         mediaPlayback: {
            supportedPlaybackCommands: {
               value: null,
               timestamp: "2020-12-09T14:06:19.723Z"
            },
            playbackStatus: {
               value: null,
               timestamp: "2020-12-09T14:06:19.723Z"
            }
         },
         audioVolume: {
            volume: {
               value: 12,
               unit: "%",
               timestamp: "2020-12-07T18:26:23.266Z"
            }
         },
         "samsungvd.supportsPowerOnByOcf": {
            supportsPowerOnByOcf: {
               value: "true",
               timestamp: "2020-12-07T18:20:22.313Z"
            }
         },
         mediaInputSource: {
            supportedInputSources: {
               value: [
                  "digitalTv",
                  "HDMI1"
               ],
               timestamp: "2020-12-07T18:26:18.741Z"
            },
            inputSource: {
               value: "digitalTv",
               timestamp: "2020-12-07T18:26:18.741Z"
            }
         },
         "custom.tvsearch": [],
         "samsungvd.ambient": {
            supportedAmbientApps: {
               value: null,
               timestamp: "2020-12-09T14:05:21.247Z"
            }
         },
         refresh: [],
         "custom.error": {
            error: {
               value: null,
               timestamp: "2020-12-09T14:03:18.707Z"
            }
         },
         execute: {
            data: {
               value: null,
               data: [],
               timestamp: "2020-12-09T14:04:19.426Z"
            }
         },
         switch: {
            switch: {
               value: "on",
               timestamp: "2020-12-09T19:18:43.020Z"
            }
         },
         tvChannel: {
            tvChannel: {
               value: "1",
               timestamp: "2020-12-07T18:26:23.866Z"
            },
            tvChannelName: {
               value: "TF1",
               timestamp: "2020-12-07T18:26:23.866Z"
            }
         },
         ocf: {
            st: {
               value: null,
               timestamp: "2020-12-09T14:02:19.330Z"
            },
            mndt: {
               value: null,
               timestamp: "2020-12-09T14:01:18.374Z"
            },
            mnfv: {
               value: "T-KTSU2DEUC-1304.0",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnhw: {
               value: "",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            di: {
               value: "9ca1cc0e-f602-1c0f-4d44-5f89560c0928",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnsl: {
               value: null,
               timestamp: "2020-12-09T14:00:48.030Z"
            },
            dmv: {
               value: "res.1.1.0,sh.1.1.0",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            n: {
               value: "[TV] tv salon",
               timestamp: "2020-12-07T18:35:04.984Z"
            },
            mnmo: {
               value: "UE43TU7125KXXC",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            vid: {
               value: "VD-STV_2018_K",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnmn: {
               value: "Samsung Electronics",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnml: {
               value: "",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnpv: {
               value: "5.5",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            mnos: {
               value: "Tizen",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            pi: {
               value: "9ca1cc0e-f602-1c0f-4d44-5f89560c0928",
               timestamp: "2020-12-07T18:20:22.264Z"
            },
            icv: {
               value: "core.1.1.0",
               timestamp: "2020-12-07T18:20:22.264Z"
            }
         },
         "custom.picturemode": {
            pictureMode: {
               value: "Dynamique",
               timestamp: "2020-12-07T18:26:23.652Z"
            },
            supportedPictureModes: {
               value: [
                  "Dynamique",
                  "FILMMAKER MODE",
                  "Standard",
                  "Cinéma",
                  "Naturel"
               ],
               timestamp: "2020-12-07T18:20:22.910Z"
            },
            supportedPictureModesMap: {
               value: [
                  {
                     id: "modeDynamic",
                     name: "Dynamique"
                  },
                  {
                     id: "modeFilmmakerMode",
                     name: "FILMMAKER MODE"
                  },
                  {
                     id: "modeStandard",
                     name: "Standard"
                  },
                  {
                     id: "modeMovie",
                     name: "Cinéma"
                  },
                  {
                     id: "modeNatural",
                     name: "Naturel"
                  }
               ],
               timestamp: "2020-12-07T18:20:22.910Z"
            }
         },
         "custom.accessibility": [],
         "custom.recording": [],
         "custom.disabledCapabilities": {
            disabledCapabilities: {
               value: null,
               timestamp: "2020-12-09T13:59:18.196Z"
            }
         },
         "samsungvd.ambient18": [],
         "custom.soundmode": {
            supportedSoundModesMap: {
               value: [
                  {
                     id: "modeStandard",
                     name: "Standard"
                  },
                  {
                     id: "modeAmplify",
                     name: "Amplifier"
                  }
               ],
               timestamp: "2020-12-07T18:20:22.679Z"
            },
            soundMode: {
               value: "Standard",
               timestamp: "2020-12-07T18:20:22.679Z"
            },
            supportedSoundModes: {
               value: [
                  "Standard",
                  "Amplifier"
               ],
               timestamp: "2020-12-07T18:20:22.679Z"
            }
         },
         audioMute: {
            mute: {
               value: "unmuted",
               timestamp: "2020-12-07T18:20:22.479Z"
            }
         },
         mediaTrackControl: {
            supportedTrackControlCommands: {
               value: null,
               timestamp: "2020-12-09T13:58:19.639Z"
            }
         },
         "custom.launchapp": [],
         "samsungvd.firmwareVersion": {
            firmwareVersion: {
               value: "3.4.0",
               timestamp: "2020-12-07T18:20:22.962Z"
            }
         }
      }
   }
}

Possible que certaines infos remontent pas immédiatement, voire restent figées à une valeur :confused: J’ai le cas avec mon congélateur.
Debranche là TV à l’occase. Et revérifie.

dommage, on pourrait faire tellement de truc… mais déjà rien que de pouvoir géré le son avec des vrai valeur c top hate de pouvoir tester ou aider sur d’autres fonctionalté pour la tv

1 « J'aime »

j’ai éteint electriquement la tv hier comme tu ma dit, depusi les commandes fonctionne toujour, en revanche les infos remonte pas elle ce mettent pas a jour