Salut Jared, après avoir remis le dernier firmware (javais fait le downgrade hier) je n'ai plus mes activités, jusque là tout va bien.jared a écrit : ↑20 déc. 2018, 15:37Voila comment j'ai fait :
Télécharger les fichiers ici : https://github.com/home-assistant/pyhar ... /pyharmony
Les mettre à la place dans le dossier plugin/harmonyhub/3rdparty/PyHarmony/harmony (faites une copie du dossier si ça vous rassure)
Modifier le fichier __main__.py en supprimant lignes 10 et 11 "from pyharmony" (garder la suite de la ligne)
Vérifier que vous avez bien python3 installé
Installer les dépendances python nécessaires (de mémoire je n'avais pas asyncio, websockets et aiohttp ) en lançant :
pip3 install nom_du_package
Dans le fichier plugin/harmonyhub/core/class/harmonyhub.class.php, remplacer les 4 ou 5 occurence de python par python3
enjoy
Après on est pas à l'abri que logitech bloque le port 8080 dans une future maj...
J'ai téléchargé les fichiers modifier le fichier main.py et installé les dépendances de python3 nécessaires.
Mais pourtant je n'arrive pas à récupérer mes activités dans le plugin, mais dans les logs on voit bien les activités et commandes, une idée de ce que j'aurai pu loupé ?
DAns le log pourtant je vois des choses
Code : Tout sélectionner
[2018-12-20 18:06:55][DEBUG] : Sortie console : { "Activities": { "-1": "PowerOff", "20735264": "LiveBox sur TV", "20735267": "PC sur Projo", "20735269": "SATELLITE sur TV", "21717930": "VERANDA-NAS", "26244097": "Smart TV Samsung", "26963351": "Oppo sur TV", "27428443": "PC sur TV", "28603831": "SACD 2 sur TV", "31972493": "Oppo sur projo", "32831053": "CHROMECAST TV", "32836807": "LiveBox sur Projo", "32836967": "Satellite sur Projo" }, "Devices": { "Amplificateur Classe": { "commands": [ "PowerOff", "PowerOn", "PowerToggle", "Mute", "VolumeDown", "VolumeUp", "DirectionDown", "DirectionLeft", "DirectionRight", "DirectionUp", "Select", "Menu", "Info", "Display", "Dolby PLIIMatrix", "DolbyPL2Movie", "DolbyPL2Music", "DolbyPLII", "DTSDigitalEX", "DTSNeo6", "DTSNeo6Cinema", "DTSNeo6CinemaES", "DTSNeo6Music", "DTSNeo6MusicES", "DTSSurroundEX", "F1", "F2", "F3", "F4", "Home", "Input1", "Input10", "Input11", "Input12", "Input13", "Input14", "Input15", "Input16", "Input17", "Input18", "Input19", "Input2", "Input20", "Input3", "Input4", "Input5", "Input6", "Input7", "Input8", "Input9", "InputNext", "InputPrevious", "LipSync", "Mode", "Mono", "MoviePlus", "MusicPlus", "Night", "PresetConfig", "Profile", "Stereo", "Trim" ], "id": "36930487" }, "Atlas HD-200s": { "commands": [ "PowerToggle", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "Mute", "VolumeDown", "VolumeUp", "ChannelPrev", "ChannelDown", "ChannelUp", "DirectionDown", "DirectionLeft", "DirectionRight", "DirectionUp", "OK", "Stop", "Play", "Rewind", "Pause", "FastForward", "Record", "SkipBack", "SkipForward", "Menu", "Back", "Teletext", "Favorite", "Sleep", "Green", "Red", "Blue", "Yellow", "Epg", "Info", "Exit", "Freeze", "Panal", "Reset", "Sat", "Stream", "Tv/Radio" ], "id": "36930490" }, "DOTSTONE HDMI SWITCHER": { "commands": [ "Power Toggle", "InputHdmi1", "InputHdmi2", "InputHdmi3", "InputHdmi4" ], "id": "53551921" }, "Ecran Kimex": { "commands": [ "DirectionDown", "DirectionUp", "Select", "Stop" ], "id": "36930493" }, "Enregistreur num\u00e9rique Orange": { "commands": [ "PowerToggle", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "Mute", "VolumeDown", "VolumeUp", "ChannelDown", "ChannelUp", "DirectionDown", "DirectionLeft", "DirectionRight", "DirectionUp", "Select", "Stop", "Play", "Rewind", "Pause", "FastForward", "Record", "SkipBack", "SkipForward", "Return", "Menu", "List", "Green", "Red", "Blue", "Yellow", "Guide", "Info", "Exit", "VOD" ], "id": "37117816" }, "HDFury Commutateur AV": { "commands": [ "PowerOff", "PowerOn", "4:2:0Off", "4:2:0On", "AudioHDMI", "AudioJack", "AutoSwOff", "AutoSwOn", "AutoSwPForceOff", "AutoSwPForceOn", "AVRDemoModeOff", "AVRDemoModeOn", "BlueLedOff", "BlueLedOn", "CECHDRRepOff", "CECHDRRepOn", "CECLAAudioProc", "CECLAVideoProc", "CECOff", "CECOn", "EDID2ChOff", "EDID2ChOn", "EDID3DAllowed", "EDID3DRemoved", "EDID5.1ChOff", "EDID5.1ChOn", "EDIDAllAudioOff", "EDIDAllAudioOn", "EDIDAutoMix", "EDIDAutomixAlg0", "EDIDAutomixAlg1", "EDIDAutomixAlg2", "EDIDAutomixAlg3", "EDIDBT2020Off", "EDIDBT2020On", "EDIDCusTable1", "EDIDCusTable10", "EDIDCusTable11", "EDIDCusTable12", "EDIDCusTable13", "EDIDCusTable14", "EDIDCusTable15", "EDIDCusTable16", "EDIDCusTable17", "EDIDCusTable18", "EDIDCusTable19", "EDIDCusTable2", "EDIDCusTable20", "EDIDCusTable21", "EDIDCusTable22", "EDIDCusTable23", "EDIDCusTable24", "EDIDCusTable25", "EDIDCusTable3", "EDIDCusTable4", "EDIDCusTable5", "EDIDCusTable6", "EDIDCusTable7", "EDIDCusTable8", "EDIDCusTable9", "EDIDCustom", "EDIDFixed", "EDIDHDRDPOff", "EDIDHDRDPOn", "EDIDYCbCrAllow", "EDIDYCbCrRemove", "Hdcp1.4", "Hdcp2.2", "HDROff", "HDROn", "Input1", "Input2", "LogoLedOff", "LogoLedOn", "MatrixSwap", "MatrixThru", "MuteOff", "MuteOn", "Reset", "SamsungHDROff", "SamsungHDROn", "SendCECLP", "SendCECSP" ], "id": "44575807" }, "LiveBox": { "commands": [ "PowerToggle", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "Mute", "VolumeDown", "VolumeUp", "ChannelDown", "ChannelUp", "DirectionDown", "DirectionLeft", "DirectionRight", "DirectionUp", "Select", "Stop", "Play", "Rewind", "Pause", "FastForward", "Record", "SkipBack", "SkipForward", "Return", "Menu", "List", "Green", "Red", "Blue", "Yellow", "Guide", "Info", "Exit", "VOD" ], "id": "36930488" }, "Oppo UDP-205": { "commands": [ "PowerOff", "PowerOn", "PowerToggle", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "Clear", "Mute", "VolumeDown", "VolumeUp", "DirectionDown", "DirectionLeft", "DirectionRight", "DirectionUp", "Enter", "Stop", "Play", "Rewind", "Eject", "Pause", "FastForward", "ChapterPrev", "ChapterNext", "Return", "TopMenu", "Pop-UpMenu", "Subtitle", "Audio", "Repeat", "RepeatA-B", "Setup", "Green", "Red", "Blue", "Yellow", "Info", "PageDown", "PageUp", "Zoom", "Dimmer", "Goto", "Home", "Input", "Light", "Option", "PictureMenu", "PureAudio", "Resolution" ], "id": "45560926" }, "TV Samsung Salon": { "commands": [ "PowerOff", "PowerOn", "PowerToggle", "-", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "Mute", "VolumeDown", "VolumeUp", "ChannelPrev", "ChannelDown", "ChannelUp", "DirectionDown", "DirectionLeft", "DirectionRight", "DirectionUp", "Select", "Stop", "Play", "Rewind", "Pause", "FastForward", "Record", "Return", "Menu", "Subtitle", "TTX/Mix", "TeletextSize", "C", "B", "D", "A", "Green", "Red", "Blue", "Yellow", "Guide", "Info", "Exit", "AD", "ChannelList", "EManual", "InputAv1", "InputComponent", "InputExt", "InputHdmi1", "InputHdmi2", "InputHdmi3", "InputHdmi4", "InputTv", "SmartHub", "Source", "TeletextCancel", "TeletextHold", "TeletextIndex", "TeletextMode", "TeletextNextPage", "TeletextPreviousPage", "TeletextReveal", "TeletextStore", "TeletextSubPage", "Tools" ], "id": "36930492" }, "Vid\u00e9oprojecteur": { "commands": [ "PowerToggle", "DirectionDown", "DirectionLeft", "DirectionRight", "DirectionUp", "Enter", "Menu", "Back", "Info", "Ratio", "3D", "AcuMotion", "Bright", "Cont", "Freeze", "Gamma", "HDR", "Hide", "InputHdmi/Mhl", "InputVga", "Mode", "Sharp", "Source", "SuperRes" ], "id": "53551604" }, "Yamaha rx-v681": { "commands": [ "PowerOff", "PowerOn", "PowerToggle", "NumberEnter", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "Mute", "VolumeDown", "VolumeUp", "DirectionDown", "DirectionLeft", "DirectionRight", "DirectionUp", "Enter", "iPodStop", "iPodPlay", "iPodRewind", "iPodPause", "iPodFastForward", "iPodPreviousTrack", "iPodNextTrack", "OnScreen", "FM", "AM", "PresetPrev", "TuneDown", "TuneUp", "PresetNext", "Sleep", "Info", "Display", "InputPandora", "DSPEnhancer", "DspMovie", "DspMusic", "DspPureDirect", "DspStraight", "DspSurDecode", "HdmiOut", "InputAirplay", "InputAudio1", "InputAudio2", "InputAv1", "InputAv2", "InputAv3", "InputAv4", "InputAv5", "InputAv6", "InputBluetooth", "InputHdmi1", "InputHdmi2", "InputHdmi3", "InputHdmi4", "InputHdmi5", "InputNet", "InputNetRadio", "InputRhapsody", "InputServer", "InputSirius", "InputSpotify", "InputTuner", "InputUsb", "InputV-Aux", "Mode", "Option", "Party", "ProgramDown", "ProgramUp", "SceneBd/Dvd", "SceneNet", "SceneRadio", "SceneTv", "TunerBand", "TunerMemory", "UsbFastForward", "UsbNextTrack", "UsbPause", "UsbPlay", "UsbPreviousTrack", "UsbRewind", "UsbStop" ], "id": "38368553" } } } { "activity": [ { "VolumeActivityRole": "36930487", "activityOrder": 3, "activityTypeDisplayName": "Default", "baseImageUri": "https://rcbu-test-ssl-amr.s3.amazonaws.com/", "controlGroup": [ { "function": [ { "action": "{\"command\":\"0\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "0", "name": "Number0" }, { "action": "{\"command\":\"1\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "1", "name": "Number1" }, { "action": "{\"command\":\"2\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "2", "name": "Number2" }, { "action": "{\"command\":\"3\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "3", "name": "Number3" }, { "action": "{\"command\":\"4\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "4", "name": "Number4" }, { "action": "{\"command\":\"5\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "5", "name": "Number5" }, { "action": "{\"command\":\"6\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "6", "name": "Number6" }, { "action": "{\"command\":\"7\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "7", "name": "Number7" }, { "action": "{\"command\":\"8\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "8", "name": "Number8" }, { "action": "{\"command\":\"9\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "9", "name": "Number9" } ], "name": "NumericBasic" }, { "function": [ { "action": "{\"command\":\"Mute\",\"type\":\"IRCommand\",\"deviceId\":\"36930487\"}", "label": "Mute", "name": "Mute" }, { "action": "{\"command\":\"VolumeDown\",\"type\":\"IRCommand\",\"deviceId\":\"36930487\"}", "label": "Volume Down", "name": "VolumeDown" }, { "action": "{\"command\":\"VolumeUp\",\"type\":\"IRCommand\",\"deviceId\":\"36930487\"}", "label": "Volume Up", "name": "VolumeUp" } ], "name": "Volume" }, { "function": [ { "action": "{\"command\":\"ChannelPrev\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Prev Channel", "name": "PrevChannel" }, { "action": "{\"command\":\"ChannelDown\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Channel Down", "name": "ChannelDown" }, { "action": "{\"command\":\"ChannelUp\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Channel Up", "name": "ChannelUp" } ], "name": "Channel" }, { "function": [ { "action": "{\"command\":\"DirectionDown\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Direction Down", "name": "DirectionDown" }, { "action": "{\"command\":\"DirectionLeft\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Direction Left", "name": "DirectionLeft" }, { "action": "{\"command\":\"DirectionRight\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Direction Right", "name": "DirectionRight" }, { "action": "{\"command\":\"DirectionUp\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Direction Up", "name": "DirectionUp" }, { "action": "{\"command\":\"OK\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Select", "name": "Select" } ], "name": "NavigationBasic" }, { "function": [ { "action": "{\"command\":\"Stop\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Stop", "name": "Stop" }, { "action": "{\"command\":\"Play\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Play", "name": "Play" }, { "action": "{\"command\":\"Rewind\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Rewind", "name": "Rewind" }, { "action": "{\"command\":\"Pause\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Pause", "name": "Pause" }, { "action": "{\"command\":\"FastForward\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Fast Forward", "name": "FastForward" } ], "name": "TransportBasic" }, { "function": [ { "action": "{\"command\":\"Record\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Record", "name": "Record" } ], "name": "TransportRecording" }, { "function": [ { "action": "{\"command\":\"SkipBack\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Skip Backward", "name": "SkipBackward" }, { "action": "{\"command\":\"SkipForward\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Skip Forward", "name": "SkipForward" } ], "name": "TransportExtended" }, { "function": [ { "action": "{\"command\":\"Menu\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Menu", "name": "Menu" }, { "action": "{\"command\":\"Back\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Back", "name": "Back" } ], "name": "NavigationDVD" }, { "function": [ { "action": "{\"command\":\"Favorite\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Favorite", "name": "Favorite" } ], "name": "NavigationDSTB" }, { "function": [ { "action": "{\"command\":\"Epg\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Guide", "name": "Guide" }, { "action": "{\"command\":\"Info\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Info", "name": "Info" }, { "action": "{\"command\":\"Exit\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Exit", "name": "Exit" } ], "name": "NavigationExtended" }, { "function": [ { "action": "{\"command\":\"Sleep\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Sleep", "name": "Sleep" } ], "name": "Setup" }, { "function": [ { "action": "{\"command\":\"Green\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Green", "name": "Green" }, { "action": "{\"command\":\"Red\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Red", "name": "Red" }, { "action": "{\"command\":\"Blue\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Blue", "name": "Blue" }, { "action": "{\"command\":\"Yellow\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Yellow", "name": "Yellow" } ], "name": "ColoredButtons" }, { "function": [ { "action": "{\"command\":\"Teletext\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Teletext", "name": "Teletext" } ], "name": "Teletext" } ], "enterActions": [], "fixit": { "36930487": { "Input": "Input 3", "Power": "On", "id": "36930487" }, "36930488": { "Power": "Off", "id": "36930488", "isRelativePower": true }, "36930490": { "Input": "TV", "Power": "On", "id": "36930490", "isRelativeInput": true, "isRelativePower": true }, "36930492": { "Input": "HDMI 2", "Power": "On", "id": "36930492" }, "36930493": { "Power": "Off", "id": "36930493" }, "37117816": { "Power": "Off", "id": "37117816", "isRelativePower": true }, "38368553": { "Power": "Off", "id": "38368553" }, "44575807": { "Power": "Off", "id": "44575807" }, "45560926": { "Power": "Off", "id": "45560926", "isRelativeInput": true }, "53551604": { "Power": "Off", "id": "53551604", "isRelativeInput": true }, "53551921": { "Power": "Off", "id": "53551921", "isRelativePower": true } }, "icon": "userdata: 0x4454c8", "id": "20735269", "imageKey": "Activity/A648AC27-8B04-4CAD-A2B2-82A83BCDB741.png", "isAVActivity": true, "isMultiZone": false, "isTuningDefault": false, "label": "SATELLITE sur TV", "roles": { "ChannelChangingActivityRole": "36930490", "DisplayActivityRole": "36930492", "VolumeActivityRole": "36930487" }, "rules": [], "sequences": [], "suggestedDisplay": "WatchTV", "type": "VirtualTelevisionN", "zones": null }, { "VolumeActivityRole": "36930487", "activityOrder": 10, "activityTypeDisplayName": "Default", "baseImageUri": "https://rcbu-test-ssl-amr.s3.amazonaws.com/", "controlGroup": [ { "function": [ { "action": "{\"command\":\"0\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "0", "name": "Number0" }, { "action": "{\"command\":\"1\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "1", "name": "Number1" }, { "action": "{\"command\":\"2\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "2", "name": "Number2" }, { "action": "{\"command\":\"3\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "3", "name": "Number3" }, { "action": "{\"command\":\"4\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "4", "name": "Number4" }, { "action": "{\"command\":\"5\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "5", "name": "Number5" }, { "action": "{\"command\":\"6\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "6", "name": "Number6" }, { "action": "{\"command\":\"7\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "7", "name": "Number7" }, { "action": "{\"command\":\"8\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "8", "name": "Number8" }, { "action": "{\"command\":\"9\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "9", "name": "Number9" } ], "name": "NumericBasic" }, { "function": [ { "action": "{\"command\":\"Mute\",\"type\":\"IRCommand\",\"deviceId\":\"36930487\"}", "label": "Mute", "name": "Mute" }, { "action": "{\"command\":\"VolumeDown\",\"type\":\"IRCommand\",\"deviceId\":\"36930487\"}", "label": "Volume Down", "name": "VolumeDown" }, { "action": "{\"command\":\"VolumeUp\",\"type\":\"IRCommand\",\"deviceId\":\"36930487\"}", "label": "Volume Up", "name": "VolumeUp" } ], "name": "Volume" }, { "function": [ { "action": "{\"command\":\"ChannelPrev\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Prev Channel", "name": "PrevChannel" }, { "action": "{\"command\":\"ChannelDown\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Channel Down", "name": "ChannelDown" }, { "action": "{\"command\":\"ChannelUp\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Channel Up", "name": "ChannelUp" } ], "name": "Channel" }, { "function": [ { "action": "{\"command\":\"DirectionDown\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Direction Down", "name": "DirectionDown" }, { "action": "{\"command\":\"DirectionLeft\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Direction Left", "name": "DirectionLeft" }, { "action": "{\"command\":\"DirectionRight\",\"type\":\"IRCommand\",\"deviceId\":\"36930490\"}", "label": "Direction Right",
[2018-12-20 18:07:02][DEBUG] : Execution de :sudo /usr/bin/python3 /var/www/html/plugins/harmonyhub/core/class/../../3rdparty/PyHarmony/harmony/__main__.py --harmony_ip 192.168.1.36 show_current_activity