Downgrade Xiaomi Speaker Network UPNP

Bonjour à tous,

Quand j’étais sous jeedom j’uliseé cette enceinte avec LMS. Malheureusement mon côté mettre tout à jour ma fait defaut et j’ai perdu la fonction UPNP de cette enceinte. Voici une solution encore russe (pour ceux qui on lu mon poste pour le distributeur de croquette) qui fonctionne bien. Aller il faut encore sortir vos fer a souder.

Soluce pour downgrader vos Xiaomi Speaker Network.

  1. télécharger l’image 1.4 system-1.4.0.img.zip — Яндекс.Диск
  2. brancher votre ftdi232 en 3v3 ou autre usb serial sur les pins comme sur la photo.

  1. Avec Putty mettez vous en serial COM* (selon votre pc) vitesse 115200
  2. Allumer l’enceinte et regarder dans putty.

Créer une sauvegarde. (Toutes les procédures ci-dessous sont effectuées via le port console!)
Pour faire une sauvegarde de votre partition:

  1. Démarrez en modesécurité:
    Lorsque vous voyez au démarrage du système:
    Appuyez sur la touche [f] et appuyez sur [ENTER] pour passer en mode sécurité intégrée
    Appuyez sur la [1], [2], [3] ou [4] et appuyez sur [Entrée] pour sélectionner le niveau de débogage

    Appuyez sur f et entrez. Le système démarrera en mode sans échec.
  2. Insérez une clé USB formatée en fat32
    Après avoir inséré laclé USB,vérifiez si l’appareil est apparu:

ls /dev/sd*

La sortie de la commande doit contenir sda et sda1
Si le périphérique n’apparaît pas, exécutez les commandes:

mknod /dev/sda b 8 0
mknod /dev/sda1 b 8 1

  1. Montez la clé USB:

mkdir /tmp/flash
mount /dev/sda1 /tmp/flash

  1. Ensuite, nous regardons la division à partir de laquelle le système est chargé, exécutons la commande:

ubootenv

  1. Faites une sauvegarde sur une clé USB ( / dev / mmcblk0p7 - le nom de la section du paragraphe précédent):

dd if=/dev/mmcblk0p7 of=/tmp/flash/system.img

  1. Ensuite, démontez la clé USB:

umount /dev/sda1

  1. Maintenant, nous vérifions sur l’ordinateur le fichier system.img sur la clé USB (c’est notre sauvegarde).

La restauration à partir d’une sauvegarde est similaire à la création d’une sauvegarde, à l’exception du point 5:

  1. Restauration du système à partir d’une sauvegarde: Prendre le fichier télécharger plus haut system.img

dd if=/tmp/flash/system.img of=/dev/mmcblk0p7

Eteindre l’enceinte

Installer l apk MI SPEAKER pour reconfigurer le wifi.

Voila de retour en 1.4.

1 « J'aime »

Merci pour cette astuce malheureusement cette enceinte est introuvable snifff

1 « J'aime »

Hello.

On parle bien de l’enceinte blanche assez robuste qui dépote si oui j’en ai une sue j’utilise plus justement à cause de ça…

Elle est reconnue dans lms puis plus du tout… et c’est aléatoire donc j’ai remplacer dans la salle de bain celle ci par un Google home mini mais je sens que je vais la resortir suite à cette article

Donc pour le coup tu l’utilises avec quoi ton enceinte?

C est bien cette enceinte.
Je l’ai remis sur LMS et intégrer à Hassio avec Logitech Squeezebox.

Si vous avez des plans pour en avoir une je suis preneur j’en ai entendu que du bien.

Je trouve que ca rame un peu pour lancer de la musique dessus en upnp … pas de raté chez toi ?

Non je n’ai pas fait attention à ca.
Je te mets ma config LMS.

ok j’applique la même , j’ai a peu pres pareil et je test merci

tu le gère commande dans ha lms? j’ai tenté via node red mais a part play et pause j’arrive pas a grand chose et je trouve pas de flow dispo …

Tu l’as déjà downgrader ?
Je te joins mon noeud rouge pour la radio. Il faut un input_liste pour chaque appareil.

[{"id":"e254ac57.5aa52","type":"debug","z":"9000173c.57c758","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1170,"y":620,"wires":[]},{"id":"b2445399.da0e6","type":"cast-to-client","z":"9000173c.57c758","name":"","url":"","contentType":"audio/mp4","message":"","language":"fr","ip":"192.168.2.36","port":"","volume":"50","x":930,"y":540,"wires":[["e254ac57.5aa52"]],"icon":"node-red-contrib-cast/google-home1.svg"},{"id":"db6711e1.ca9d5","type":"api-call-service","z":"9000173c.57c758","name":"Stop Play","server":"a8c279c8.be8be8","version":1,"debugenabled":false,"service_domain":"media_player","service":"media_stop","entityId":"","data":"{\"entity_id\":\"{{media_player}}\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1000,"y":780,"wires":[["e254ac57.5aa52"]]},{"id":"c65f706f.18245","type":"cast-to-client","z":"9000173c.57c758","name":"","url":"","contentType":"audio/mp4","message":"","language":"fr","ip":"192.168.2.29","port":"","volume":"50","x":930,"y":600,"wires":[["e254ac57.5aa52"]],"icon":"node-red-contrib-cast/google-home-mini2.svg"},{"id":"c1bec9c4.c2e838","type":"api-call-service","z":"9000173c.57c758","name":"Xiaomi Speaker Network","server":"a8c279c8.be8be8","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.enceinte_mi_salle_de_bain","data":"{\"media_content_id\":\"{{{url}}}\",\"media_content_type\":\"music\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":950,"y":660,"wires":[["e254ac57.5aa52"]]},{"id":"d199e759.b1d7d8","type":"switch","z":"9000173c.57c758","name":"","property":"data.entity_id","propertyType":"msg","rules":[{"t":"eq","v":"input_select.radio_station_salon","vt":"str"},{"t":"eq","v":"input_select.radio_station_sdb","vt":"str"},{"t":"eq","v":"input_select.radio_xiaomi_speaker_network","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":710,"y":600,"wires":[["b2445399.da0e6"],["c65f706f.18245"],["c1bec9c4.c2e838"]]},{"id":"25018546.72f66a","type":"change","z":"9000173c.57c758","name":"Google Home Mini SdB","rules":[{"t":"set","p":"media_player","pt":"msg","to":"media_player.salle_de_bain","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":790,"wires":[["db6711e1.ca9d5"]]},{"id":"5efb0de2.382134","type":"change","z":"9000173c.57c758","name":"Google Home Salon","rules":[{"t":"set","p":"media_player","pt":"msg","to":"media_player.salon","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":759,"wires":[["db6711e1.ca9d5"]]},{"id":"932cba1c.5f0188","type":"change","z":"9000173c.57c758","name":"Xiaomi Speaker Network","rules":[{"t":"set","p":"media_player","pt":"msg","to":"media_player.enceinte_mi_salle_de_bain","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":819,"wires":[["db6711e1.ca9d5"]]},{"id":"d7c171e1.2ca09","type":"change","z":"9000173c.57c758","name":"Skyrock","rules":[{"t":"set","p":"url","pt":"msg","to":"http://icecast.skyrock.net/s/natio_mp3_128k","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/Skyrock.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":420,"wires":[["d199e759.b1d7d8"]]},{"id":"987291b6.a92b3","type":"change","z":"9000173c.57c758","name":"NRJ","rules":[{"t":"set","p":"url","pt":"msg","to":"http://cdn.nrjaudio.fm/audio1/fr/30001/mp3_128.mp3?origine=fluxradios","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/NRJ.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":450,"wires":[["d199e759.b1d7d8"]]},{"id":"b8aff968.e41368","type":"change","z":"9000173c.57c758","name":"Fun","rules":[{"t":"set","p":"url","pt":"msg","to":"http://streaming.radio.funradio.fr/fun-1-44-128","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/Fun.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":480,"wires":[["d199e759.b1d7d8"]]},{"id":"998d8f73.08624","type":"change","z":"9000173c.57c758","name":"Nostalgie","rules":[{"t":"set","p":"url","pt":"msg","to":"http://cdn.nrjaudio.fm/audio1/fr/30601/mp3_128.mp3?origine=fluxradios","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/Nostalgie.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":510,"wires":[["d199e759.b1d7d8"]]},{"id":"a1aa44.06f825c","type":"change","z":"9000173c.57c758","name":"BFM","rules":[{"t":"set","p":"url","pt":"msg","to":"http://chai5she.cdn.dvmr.fr/bfmbusiness","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/BFM.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":540,"wires":[["d199e759.b1d7d8"]]},{"id":"98d84e04.4f76f","type":"change","z":"9000173c.57c758","name":"Virgin","rules":[{"t":"set","p":"url","pt":"msg","to":"http://ais-live.cloud-services.paris:8000/virgin.mp3","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"},{"t":"set","p":"imageUrl","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":570,"wires":[["d199e759.b1d7d8"]]},{"id":"b1e0dc53.81073","type":"change","z":"9000173c.57c758","name":"FG","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radiofg.impek.com/fg","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/FG.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":600,"wires":[["d199e759.b1d7d8"]]},{"id":"56f1b700.3b6e78","type":"change","z":"9000173c.57c758","name":"MTI","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radiomti.ice.infomaniak.ch/radiomti.mp3","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/MTI.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":630,"wires":[["d199e759.b1d7d8"]]},{"id":"2909e79d.08f368","type":"change","z":"9000173c.57c758","name":"Scoop","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radioscooplyon.ice.infomaniak.ch/radioscoop-lyon-128.mp3","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/Scoop.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":660,"wires":[["d199e759.b1d7d8"]]},{"id":"af6cf9a1.79c168","type":"change","z":"9000173c.57c758","name":"FGunder","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radiofg.impek.com/ufg","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/FGunder.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":690,"wires":[["d199e759.b1d7d8"]]},{"id":"cf41a292.7abdc","type":"change","z":"9000173c.57c758","name":"FGdeep","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radiofg.impek.com/fgd","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/FGdeep.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":720,"wires":[["d199e759.b1d7d8"]]},{"id":"43c0b248.97f1ec","type":"change","z":"9000173c.57c758","name":"FGchic","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radiofg.impek.com/fgc","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/FGchic.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":750,"wires":[["d199e759.b1d7d8"]]},{"id":"20c10759.5fe2a8","type":"change","z":"9000173c.57c758","name":"Hitsradio","rules":[{"t":"set","p":"url","pt":"msg","to":"https://playerservices.streamtheworld.com/api/livestream-redirect/977_JAMZ.mp3","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/Hitsradio.jpg?v=0.103","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":780,"wires":[["d199e759.b1d7d8"]]},{"id":"8c555ffd.4a41a","type":"switch","z":"9000173c.57c758","name":"Aucune","property":"data.entity_id","propertyType":"msg","rules":[{"t":"eq","v":"input_select.radio_station_salon","vt":"str"},{"t":"eq","v":"input_select.radio_station_sdb","vt":"str"},{"t":"eq","v":"input_select.radio_xiaomi_speaker_network","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":520,"y":818,"wires":[["5efb0de2.382134"],["25018546.72f66a"],["932cba1c.5f0188"]]},{"id":"bc611635.b6f048","type":"switch","z":"9000173c.57c758","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Skyrock","vt":"str"},{"t":"eq","v":"NRJ","vt":"str"},{"t":"eq","v":"Fun","vt":"str"},{"t":"eq","v":"Nostalgie","vt":"str"},{"t":"eq","v":"BFM","vt":"str"},{"t":"eq","v":"Virgin","vt":"str"},{"t":"eq","v":"FG","vt":"str"},{"t":"eq","v":"MTI","vt":"str"},{"t":"eq","v":"Scoop","vt":"str"},{"t":"eq","v":"FGunder","vt":"str"},{"t":"eq","v":"FGdeep","vt":"str"},{"t":"eq","v":"FGchic","vt":"str"},{"t":"eq","v":"Hitsradio","vt":"str"},{"t":"eq","v":"Aucune","vt":"str"}],"checkall":"true","repair":false,"outputs":14,"x":290,"y":620,"wires":[["d7c171e1.2ca09"],["987291b6.a92b3"],["b8aff968.e41368"],["998d8f73.08624"],["a1aa44.06f825c"],["98d84e04.4f76f"],["b1e0dc53.81073"],["56f1b700.3b6e78"],["2909e79d.08f368"],["af6cf9a1.79c168"],["cf41a292.7abdc"],["43c0b248.97f1ec"],["20c10759.5fe2a8"],["8c555ffd.4a41a"]]},{"id":"6f583f15.0bae7","type":"server-state-changed","z":"9000173c.57c758","name":"Input Radio Salon","server":"a8c279c8.be8be8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.radio_station_salon","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":110,"y":560,"wires":[["bc611635.b6f048"]]},{"id":"ad09a910.4c2f88","type":"server-state-changed","z":"9000173c.57c758","name":"Input Radio SdB","server":"a8c279c8.be8be8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.radio_station_sdb","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":100,"y":620,"wires":[["bc611635.b6f048"]]},{"id":"92304df.cdb3bb","type":"server-state-changed","z":"9000173c.57c758","name":"Input Radio Xiaomi","server":"a8c279c8.be8be8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.radio_xiaomi_speaker_network","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":110,"y":680,"wires":[["bc611635.b6f048"]]},{"id":"a8c279c8.be8be8","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

j’avais pas fait l’upgrade en fait je pense vu qu’il est toujours reconnu

C est pour cela que sa ne fonctionne pas correctement. En firmware.2.x . on a perdu cette fonctionnalité de gérer l enceinte en wifi.

oki apres j’en ai tellement des enceintes que je pense que je vais la vendre celle la lol

Sympa ton flow pour les radio j’ai adapté a mes besoins et ca tourne bien on dirait… ca donne quoi sur lovelace?
par contre si tu veux stopper tu dois mettre une ligne a blanc ?

Je te partage sa quand J aurais accès à l ordinateur.
Sinon voici un screen. Tu clique sur l image sa se lance quand tu reclique sa passe sur aucune donc stop la lecture.

Sur off les icônes sont cachés.

Vachement sympa ça. Ok merci suis preneur du partage de carte lol

J’ai pris la carte jukebox mais j’ai pas le réglages du volume ni l’icône il me semble. Après j’ai pas creusé plus que ca encore par manque de temps

https://www.transfernow.net/yRqATJ102020

Juste un problème de taille pour le 13ieme icone. Faut que je peaufine.

Si quelqu’un c’est comment ne pas avoir l’écart en rouge. C’est une carte mais avec horizontal-stack du coup il n’y a pas de background.

Bon je dois encore bidouiller car je pense avoir des soucis d’indentation
image

bon c’est mieux

par contre si je comprends quand tu selectionnes une petite ca doit l’afficher en grand?

Bon on devie un peu je pense que tu pourras recrées un post car c’est un sujet intéressant :slight_smile:

@dckiller est-ce que tu peux utiliser plutôt un service de partage où il n’est pas nécessaire de télécharger des binaires ?

C’est pour se prémunir des virus (pas toi :wink:, mais d’autre personne, on sait jamais)

Personnellement, j’utilise Pastebin. (on peux même choisir le langage pour la coloration syntaxique)

Merci du partage en tout cas :+1: