Oh you KNOW I'm building one! Where's my D1mini???
@JB-rh1ir4 жыл бұрын
nevermind ! got it working with the TTS ,so now it's basically a wifi speaker with dynamic content! Awesome work MrDIY !
@MrDIYca4 жыл бұрын
Great to hear! I'm guessing you pointed the URL to the TTS folder?
@MadLabZ2 жыл бұрын
Just found your channel, I've been looking for this specific project now on and off for about three years, thankyou!!!
@MrDIYca2 жыл бұрын
Glad I could help!
@bensekh3 жыл бұрын
Thank you MrDIY. I've made it. I even wired it up with PAM8403 and Loudspeaker. Very cool project!
@MrDIYca3 жыл бұрын
Glad you like it!
@arkadian-labs3 жыл бұрын
this is amazing! great work! I will definitely use it. Thanks!!!!
@AndrewDanne4 жыл бұрын
That is awesome.! Thank you. I'm playing with ESP8266's with Home Assistant and this looks like a great project to use for all sorts of local notifications.
@yosoyestoyartoАй бұрын
Its possible to use an esp32cam together with the playlable sound. So i can use one module only and not 2? One for playing the mp3 file and anotehr to stream de video ? my idea its to use one module, in this case an esp32cam in my doorbell.
@fantasygraph4 ай бұрын
ok nice project: get a problem with the firmware that you direct flash from the browser. work perfect on one notifier. but if i try to add a second notifier on my network with a different mqtt topic, the 2 notifiers get a spam of mqtt message and run in loop. if i switch off one of the notifier, all is now ok on the remaining notifier. i tryed to flash on one of the notifier the firmware from the current source code (Firmware config version 'MrD3') .the problem of loop is not there, but i can't play anything on this notifier (no output, no error... no status playing nor idle in the mqtt message) edit: seem that the mqtt topic configuration of the direct flash firmware accept a name like XXXXXXX, and the source code one need a /XXXXXX (with a /)
@santorcuato4 жыл бұрын
It looks really nice. Will try with an ESP32 and let you know. Thanks for sharing.
@MrDIYca4 жыл бұрын
By the way, you will probably need to download the source code and compile it yourself. The bin file was made for ESP8266 devices. Let me know how that goes.
@yosoyestoyarto2 жыл бұрын
I try it today, and no sound for mp3, or tts; ringtone are ok. try the mp3 file on an external server to avoid HA permissions and no sound. Update: I get it working. the url for playing mp3 needs to be http no https
@misha15332 жыл бұрын
can you help me? There is connection to GND port for ground by audio cable and RX simultaneously for other 2 wires, isn't there?
@yosoyestoyarto2 жыл бұрын
@@misha1533 because its not in stereo, he put the 2 channel in the same speaker, be carefull no all amps allow that.
@ChristopheBoudeauDivisionRuine Жыл бұрын
Excellent. Now I will do it and then I will stop calling my childrens many time to eat or to wake-up. I will just use mqqt to send a Wifi audio notification.👌
@UndregoGrey10 ай бұрын
Hi thx for the project. Issue i picked up with the supplied bin files is that you can not have multiple devices on the same network. the moment a 2nd device connect then none of them work. I am trying to compile your source but a lot of details are not included.
@PlayMoro2013 Жыл бұрын
Great project , i have two running for a long time and they are very useful. One of the units I did even have a good side effect of bad wiring that is detecting slow wifi ( or being impacted by slow wifi) and will make a clicking sound .I do not want to fix that as it seems useful to get such warring like that and might even try to setup the notifier to check the wifi signal
@MrDIYca Жыл бұрын
Nice, thanks for sharing .. that is an interesting use
@clintAdventures Жыл бұрын
mine makes a clicking sound. how is this from slow wifi?
@PlayMoro2013 Жыл бұрын
@@clintAdventures Once the unit start to connect to wifi or loses the connection there is a clicking sound . As said that is a side effect of bad wiring and only noticed on one unit. You may test from your side how losing the WiFi signal is being handled in code if that could be useful as a feature . I could not post video here but I think if you scoped your output you will get the idea
@llg.2084 жыл бұрын
Very cool project, will give it a try :) Thanks for sharing!
@yuchoy1 Жыл бұрын
The say function reminds me so much of SAM on my old Commodore 64!
@SuperVitcom Жыл бұрын
you can also connect the speakers to the device running home Assistants and configure it as media_player mpd
@EngineerFromPakistan4 ай бұрын
I want to build a project that connects 50 speakers (every speak has its different esp that connects) to a webpage and play music on all the speakers together. Please guide me on how I should start.
@WayneRigley3 жыл бұрын
Yep.. KZbin counter and Google mini speaker .. ding you have another follower
@MrDIYca3 жыл бұрын
Right on!
@michaelbatchelder4 жыл бұрын
nice project, will give it a try
@MrDIYca4 жыл бұрын
let me know how that goes!
@kenmcmullan93303 ай бұрын
I'm inspired. I've been trying to get audio output from a D1 Mini for a while. The PWM output on a GPIO seems to be software only, and there's a lot of interrupts going on, so it was quite poor. this looks like a "serial port abuser". I'll look closer. My use case is almost exactly the same as yours: I want to subscribe to an MQTT topics and have it say the words!
@garycornelius78153 жыл бұрын
Great project and video and thanks for sharing! However, I tried to get working on an ESP32 and it does seem to work and just loops at start - Anyone got this working on ESP32? (I will order same board as MrDIY, unless I hear back and try again!). Regards the sound crackling and popping some people have commented on possibly I had a similar thing on another circuit and it disappeared as soon as I changed from a cheap USB wall plug + going into a standard wall socket to a direct much more stable USB wall socket!
@HiagoCosta3 ай бұрын
is it possible to change tasmota to esphome ? i would like to create this DIY doorbell, but I already have ESPhome with an ESP32 and a doorbell camera using it
@patjohn7753 жыл бұрын
I am looking to do something similar but way simpler. I need my esp32 to play audio files when some pins are activated, but the audio won’t change so it can be stored locally and played locally. Neat project though
@StrongBad2108 ай бұрын
Awesome project. I don't see where you used the amplifier, just the ESP board. What am I missing? I have flashed my board, and setup my MQTT server on HA, but HA doesn't recognize the board. Should it behave this way?
@tamildesan8378 ай бұрын
I am about to by the amplifier mentioned, got the same doubt. Have you figured it out? Are there any connection diagram?
@hamadalmarri21413 жыл бұрын
Very cool idea . I’m wondering if this project can be used for Muslim Azan/ Adan ? The problem with the time it is not fixed for 5 times a day . That would be a great project for Muslims . Thanks a lot
@JJustYarik Жыл бұрын
Thank you so much!!! I repeat step by step and it is working
@henkoschoeman960815 күн бұрын
This is working great with a D1 mini. Is there any chance this can be setup to work through HTTPS
@CancunManny4 жыл бұрын
OMG, what a simple but great solution. Two questions, as someone asked, how difficult would it be to add playback through bluetooth as well. This way we can use any bluetooth speaker including echo dots, etc. Also, how difficult would it be to make it stereo, or if already stereo which would be the other pin for the other channel?
@MrDIYca4 жыл бұрын
I haven't looked into the bluetooth option due to the range limitations. You can always send Audio over Bluetooth gateway without ESP8266. The ESPAudio library which I use only supports mono playback. Stereo might not even be possible on the ESP8266 alone.
@CancunManny4 жыл бұрын
@@MrDIYca Thanks for the quick reply
@RoSi4You4 жыл бұрын
I will 100% build one. Thank you!
@C8008C4 жыл бұрын
Runs perfectly. Thank you :) Could you have another function to switch a Gpio? To switch off the amp filter via a relay
@MrDIYca4 жыл бұрын
Thank you. I don't see why not. Give it a try!
@easthulk994 жыл бұрын
This will be my next project... tq for sharing
@stanislavshulaev87632 жыл бұрын
I've used D1mini v 3.0.0, and can't connect to AP. It says that the password is incorrect. what am i doing wrong? Get this: 23:33:57.262 -> AP password was not set in configuration 23:33:57.262 -> State changing from: 0 to 1 23:33:57.262 -> Setting up AP: MrDIYNotifier-145574 23:33:57.309 -> With default password: 23:33:58.152 -> AP IP address: 192.168.4.1 23:33:58.152 -> AP password was not set. 23:33:58.152 -> WiFi SSID was not set. 23:33:58.152 -> Will stay in AP mode. 23:33:58.152 -> State changed from: 0 to 1 23:33:59.559 -> [MQTT] /status idle
@danneh19824 жыл бұрын
This is just what i've been looking for! I've ordered the bits now and will be attempting as soon as they arrive. I have one question how are you sharing the mp3 files from your HA server? Sorry if a silly question i'm still very new to it!
@MrDIYca4 жыл бұрын
You can use the "Hosting Files" option in HA. Check www.home-assistant.io/integrations/http/#hosting-files
@danneh19824 жыл бұрын
@@MrDIYca Thanks thats saved me a lot of head scratching :D
@danneh19824 жыл бұрын
Back again with another question! my parts have finally arrived and ive started putting it together but i have one question - can i power the PAM8403 from the 5v and ground pins of the d1 or should i have a seperate powersupply?
@mandeepmails3 жыл бұрын
Simply Awesome!!! I think this creates opportunities for multiple projects using wemos. Question - considering I would like to have WiFi AirPlay + DLNA to work with my TV and any device over WiFi. Would it be average for me to buy any regular home theatre speakers (with inbuilt Amp) and put wemos with every speaker (to make that truly-wireless-home-theatre-system) Appreciate any tips/guidance on this. I already have NOdered setup for inside home with full on mqtt stuff. That I’m planning to use with regular doorbell.
@MrDIYca3 жыл бұрын
Hello and thank you. I don't think you will be happy with the audio quality if you use this in a "home theater" settings: the device is under powered, the DAC is of low resolution, mono output, and the wifi lag will probably drive you nuts. But it is sill excellent for audio notifications in home automation, or as an audio player of a sort. I hope that helped.
@mandeepmails3 жыл бұрын
@@MrDIYca i appreciate your answer. Have one thought that i need something like that in the big drawing room that i don't want to wire across (missed the big opportunity during construction) is there a way i can do it. using multiple raspberry pi 3B+ would you that be better ? Also, while reviewing volumio i read that has significant wifi instability, whereas RuneAudio is better. any way to achieve it ? with your expertise i'm willing to hear if there's anything i can do it :)
@satiaxsanti13 жыл бұрын
@@mandeepmails You can use a esp32 with an external dac
@sjaakjochems384810 ай бұрын
Hi, I made the project, all works great. I attached a 10 Euro speaker without any problem. Volume, tone, status, say are working good. Mp3 files seem have a configuration problem, but I suspect to get this fixed aswell.
@brunomiguelcanteirodacunha6800 Жыл бұрын
hello MrDiy know de play is not working
@caiomon5 ай бұрын
Hi! Great project! I am looking for a DIY intercom for a team to comunicate in live events, do you believe I could use ESP8266 for this purpose? Sending real time audio from one device to another? Hollyland comunicators are way to expensive here and I got excited with a DIY tally light project and started researching on a DIY solution for comunication between the team on live events on YT.
@MrDIYca5 ай бұрын
Thanks. Check Chris' work - kzbin.info/www/bejne/mpDLZGuOacSYh7M
@timcowell90314 жыл бұрын
I've tried this and cannot get this to work, I can get the audio to play when it connects for the first time... but when trying to send message via MQTT nothing happens. I've manually tried to push message etc. any options?
@timcowell90314 жыл бұрын
Ok, I got it working however in the node red MQTT out I had to remove the / from /mydiynotifier/play so mine looked like this mydiynotifier/play and for some reason that worked????
@MrDIYca4 жыл бұрын
@Tim Cowell You are right, that extra "/" was missing in the bin package. I uploaded a new bin file. Thanks a lot!
@PaulPhillipsIndy Жыл бұрын
Wish I understood the code well enough to convert this to run on an ESP32 as I don't have any WemosD1. Found a github where they ported your code to work with ESP32, but it locks up if you give it a stream, you can't issue further MQTT commands if it's playing a continuous web stream. Sadly it even freezes up the web interface of the ESP32. Was really hopping to be able to tie this into my openHAB.
@102diy Жыл бұрын
Very good job! 👍
@hecjr29648 ай бұрын
Newbie here, Awesome project, thank you, accomplish to connect to MQTT and wifi heard sound, :) YES! just cant seem to publish to speaker any example of YAML to play Mp3 would be very appreciated if you or anyone has time... Thanks again!
@MrDIYca8 ай бұрын
You are on the right track - I recommend you take a look at this post community.home-assistant.io/t/turn-an-esp8266-wemosd1mini-into-an-audio-notifier-for-home-assistant-play-mp3-tts-rttl/211499
@hecjr29648 ай бұрын
@@MrDIYca Thank you so much for getting back to me so quickly, appreciate it and will do, Thanks again!!
@matrix_returned Жыл бұрын
Great! I am also looking something even without external servers.
@lilchera79052 жыл бұрын
Home wifi credentials is something we want to create an SSID and password ?
@amirghorbanian130028 күн бұрын
this is awesome ! thank you
@kevinedward41082 жыл бұрын
Hey, Where Can i Get My MQTT Server?
@MrDIYca2 жыл бұрын
that is something you need to install on a server
@kevinedward41082 жыл бұрын
@@MrDIYca Can u Help Me?
@MrDIYca2 жыл бұрын
@@kevinedward4108 try googling "how to install an mqtt server", I am sure you will find great tutorials out there
@tomidabjakoaudytorprzewazn88533 жыл бұрын
Can use only http, not mqtt?
@MaxGoddur3 жыл бұрын
A nice project just broke out a new mini. One question how are you getting 12v down to 3.3v for the input to power the mini? Not familiar with that shield you used.
@MrDIYca3 жыл бұрын
Hi Rud, I am not using 12v to power the d1 mini. I am using the 5v from the USB.
@MaxGoddur3 жыл бұрын
@@MrDIYca ah ok, didn't see the USB plugged in so that is why I was asking.
@yourdream83 жыл бұрын
Hi, I've built this and have it all integrated with HA. When I play the audio file over the ESP connected to any speakers I've tried. It has a lot of static when the file plays. I even soldered a 3.5 mm jack to the rx and ground pins as shown in the video. I've tried different variations of audio formats as well. Does anyone know how I can fix this? Otherwise its perfect.
@MrDIYca3 жыл бұрын
the best way to eliminate statics is to go with an external I2S DAC like MAX98357A.
@yourdream83 жыл бұрын
@@MrDIYca I ordered one. How would I wire this and will it work with your bin file? Thank you for your help.
@MrDIYca3 жыл бұрын
@@yourdream8 check James' repo. He did excatly that. github.com/aspork42/speaker
@madebyjunk15014 жыл бұрын
Wow amazing💓👍💪 Thanks for sharing
@MrDIYca4 жыл бұрын
Thanks for visiting!
@valbuz Жыл бұрын
Hi Great Project! But is it possible to deactivate the AP after config?
@MrDIYca Жыл бұрын
yes, that is possible if you want to code it that way
@misha15332 жыл бұрын
There is connection to GND port for ground by audio cable and RX simultaneously for other 2 wires, right?
@yuchoy1 Жыл бұрын
Your design looks amazing, exactly the function I need, but can I use this directly with Home Assistant without setting up a special MQTT broker? I have looked up the setup instructions for Mosquitto on my NAS, but it looks like a bit more than I can handle. I use NodeRed with HA all the time without issues BTW. I have flashed my D1 Mini with your bin file, but it seems to not work without an MQTT broker. There are boxes that I cannot fill in. thanks for your help!
@MrDIYca Жыл бұрын
Try this post - community.home-assistant.io/t/turn-an-esp8266-wemosd1mini-into-an-audio-notifier-for-home-assistant-play-mp3-tts-rttl/211499 If I remember correctly, someone posted an alternative solution using ESPHome.
@yuchoy1 Жыл бұрын
@@MrDIYca Thanks for your response. I was able to add Mosquitto as an AddOn in Home Assistant, and configuration was relatively straightforward. My notifier (your design) now works beautifully. Next I will try the mod that has the MAX98357A, to clean up the audio. Thanks again, nice work, so glad you shared it!
@mrtchedamaia Жыл бұрын
Hi mate, I did the exactly just like you did, but the sound is not clear... how to make it clear?
@Юрий-х9л1п2 жыл бұрын
Hey! Great stuff! I use Home Assistant and RHVoice voice synthesizer, can you tell me how to output mp3 generated RHVoice from HA to your DIY Wifi Audio Notifier?
@yosoyestoyarto2 жыл бұрын
the sound of mp3 needs to be in specific sample rate or something? because its sound very bad on some files
@MrDIYca2 жыл бұрын
I found better luck with low sampled files - less processing needed.
@Francois_Dupont9 ай бұрын
i was trying to make this using ESP-32 board and it seems the Tasmotizer program doesnt support this board. anyway thank you very much for your work!
@MrDIYca9 ай бұрын
You might want to check schmurtz's work at github.com/schmurtzm/MrDiy-Audio-Notifier
@Francois_Dupont9 ай бұрын
@@MrDIYca Ahh!! Thank you very much!! ESPhome should really integrate this somehow in their programs. i searched for days online how to play music with any speakers and people all said you needed special compatible speakers. i wish your work was more well known.
@Francois_Dupont9 ай бұрын
@@MrDIYca sorry to bother you again. sadly i have another question if i could take a bit of your time. i have everything working now, but i am wondering where to store .mp3 files and how to format the url for the esp32 board. for example i put a test.mp3 inside a new "media" folder with the file editor of homeassistant. then i try to send "192.168.0.35/homeassistant/media/test.mp3". it never works. i have tried alot of formulation, but it is not working. i can manage to play RTTTL tones, and voice correctly. if you can please help me a little bit with this i would be very happy.
@MrDIYca9 ай бұрын
Glad to hear it is working for you. You might want to explore this post for HA troubleshooting - community.home-assistant.io/t/turn-an-esp8266-wemosd1mini-into-an-audio-notifier-for-home-assistant-play-mp3-tts-rttl/211499
@Francois_Dupont9 ай бұрын
@@MrDIYca Thank you i will try.
@zulkarnainkarim Жыл бұрын
How to get those mqtt?
@sagaardusagaardu40483 жыл бұрын
Hello, Interesting project, what is the connection diagram of the amplifier with the wemos D1 and the speaker?
@itichi1011854 жыл бұрын
Nice project! I have built one and it's working well. I have one issue with text say command. When I publish mqtt with the text, it says the text twice. How can this be corrected? please reply
@MrDIYca4 жыл бұрын
Intersting. Did you check the command is not sent twice? what MQTT client are you using?
@itichi1011854 жыл бұрын
@@MrDIYca well I am sending it through call sevice from home assistant developer section
@itichi1011854 жыл бұрын
I am trying to connect two projects, will it work with two projects in same wifi, is there any way to change mqtt topic
@arnoldmic4 жыл бұрын
Excellent project. I am using openhab2 on raspberry pi, is there any easy way to share the mp3 file?
@MrDIYca4 жыл бұрын
Sadly, I don't have any experience with openhab but worst case scenario you can always install Apache/Nginx on RPi's OS and use www folder directly. Good luck.
@arnoldmic4 жыл бұрын
@@MrDIYca thanks for the reply. I'll do on weekend.
@phillipmaus96343 жыл бұрын
Hi, thanks a lot for sharing this great project. I tried to compile the source code with the 'define USE_I2S' - option to use an external DAC. Unfortunately it did not work as I got several error messages within Arduino. Could you provide another *.BIN file for that option? Thanks!
@MrDIYca3 жыл бұрын
Thanks. I am working on another project that uses an external DAC and will release a bin file with it but this won't be out for months unfortunately.
@phillipmaus96343 жыл бұрын
OK, I see. Maybe there someone else out there who has succesfully compiled the code?
@AndrewVanTil8 ай бұрын
@@MrDIYca Did this ever make it out? Thanks.
@lilchera79052 жыл бұрын
What is home wifi credentials?
@MrDIYca2 жыл бұрын
Your own Wi-Fi at home where the device can connect to the Internet
@lilchera79052 жыл бұрын
@@MrDIYca does ESP8266 have permanent SSID and password ?
@muzammilbathi64833 жыл бұрын
Its good but air kindly tell me if i need to play alaram when sensor sense the person so which code i will edit
@Youcancallmesua2 жыл бұрын
Hi Mr DiY, I also complete your code with ESP V3.2 and EspSound Version 1.9.5. It is not working well as your bin file. The MP3 sound not smoothing and drop. Could you please specify me the library version for audio and esp version? It is very hurry up please
@Youcancallmesua2 жыл бұрын
I also found the solution. The cause is an option for IP model in Arduino build lwIP option. Just select the model build Higher Bandwidth so that the stream do not drop suddenly.
@terrymaker47813 жыл бұрын
Has anyone tried building a standalone server that does not use MQTT?
@DilnuwanAmaraweera Жыл бұрын
That's awesome and Thank You
@misha15332 жыл бұрын
is it possible to play m3u, like stream in radio in that way?
@splash1281004 жыл бұрын
❤️ Thank you
@benoitd9423 күн бұрын
hi very good tutorial. What i don't understand is the wiring between the wemos and the Amplifier ? do you use an amplifier ? thanks
@MrDIYca23 күн бұрын
Yes, the IKEA speaker has a built-in amp
@benoitd9423 күн бұрын
@@MrDIYca Can you share the link where i can find that speaker? thx
@benoitd9423 күн бұрын
@@MrDIYca what about the jack pinout ? please show me how to realise that cable ?
@benoitd9423 күн бұрын
seems more clear now, don’t need an amplifier only a speaker with a built-in amplifier (please share the link for the Ikea one) need also a jack with this wiring: D1Wemos RX to Left and Right jack D1Wemos Gnd to ground jack I will try that soon Regards
@JB-rh1ir4 жыл бұрын
Hi! It's working great !One question :In setup(raspi,hassio) from node red how to use google ttl ?I cannot find a way to send the temporary mp3 file what I must have from google ttl service, (the tts endpoint)
@egeainc3 жыл бұрын
Hi, how are you? Did you find a way to use google tts? or change the language? Thank you
@aryeguetta85924 жыл бұрын
As far as I can see it - this is ONE Flash project. After I upload the BIN Files I can NOT see it as a COM Port anymore. That is a bit shame since I want to be able to test it and see if it works for me and if need to upload an update that would be great to have the COM Port back. No place on the page you have mentioned the username and password for the web interface - that made me wondering a lot till I looked in the comments here. I think that you should put the info on the main page as well. Regarding the COM Port I would be happy to get back to work with my D1 Mini again as a COM Port and not loosing it at all. I am sure that the BIN file just overwritten my bootloader and that is the reason I can NOT see my device anymore in COM Ports. Please let me know How to make it back with tasmota or what should I do if I need to upgrade the firmware? One of the changes I want to make is the topic. How can I do that? and How it can be done after the First time of flashing? Thanks for the project.
@MrDIYca4 жыл бұрын
Hi Arye, that is good idea. I will add the username (admin) to the README. The COM port is managed by the OS not ESP8266. No code on the ESP8266 should prevent you from seeing the COMs. Maybe check your cable/restart and try again.
@elkoNDesigner6 ай бұрын
Im really new to this, how you make your mp3 files to an url? Thanks
@@MrDIYca I dont know how to do it, is my first time with this.
@rychei53934 жыл бұрын
Wut? I LOVE this! I would like to hook something like this to automate the regular changing of my doorbell chime with some sort of calendar. I hate those manual mp3 door bell options, I want wifi and scheduling, Could do the same with seasonal door/window/alarm alerts? Halp!
@MrDIYca4 жыл бұрын
You probably want to look into a home automation system like Home Assistant for that. They are capable of doing all that kind of logic and automation.
@wattage2007 Жыл бұрын
This is ingenious. I was thinking I'd have to order an I2S DAC and learn how to write an arduino sketch for MQTT integration to get something like this on the go. Turns out I've got a WemosD1 Mini and a couple of amplifiers lying around and I'll be doing this tomorrow! Thanks!
@Youcancallmesua2 жыл бұрын
It is working smoothly but get wrong if two Wemos flash custom bin file. The problem is the MQTT client ID. Could you please change MQTT client ID for each device by involving their chip ID to the suffix. Very nice project and impression your experience.
@MrDIYca2 жыл бұрын
Thanks! Yes, this change was added in the source code but not in the bin file. Just rebuild it and you should be good.
@Youcancallmesua2 жыл бұрын
@@MrDIYca Thank you very much for your prompt reply. I have one more question could you please fix it. The issue is the speaker generates noise "bup..bup" every change the mp3 link. So my question is how to suppress it.
@gradek1113 жыл бұрын
Is it possible to change the TTS voice (i.e. male->femaile) and change the speaking language?
@MrDIYca3 жыл бұрын
No, the voice is fixed.
@DerNerdChannel3 жыл бұрын
does it react to mqtt commands quickly or is there a couple secs of delay?
@jqzIII Жыл бұрын
The first command I sent using mqtt, a stream url, was lighting fast. Really surprised me.
@rasimmonds4 жыл бұрын
Hi, I don't understand the wiring 'ground to ground'. My speaker cable just has left and right channels, what do I connect the ground pin to? Thanks
@MrDIYca4 жыл бұрын
Sometimes the ground wire is the cable shield - try that.
@rasimmonds4 жыл бұрын
Thanks!
@fernando89482 жыл бұрын
Awesome proyect
@MrDIYca2 жыл бұрын
Thank you! Cheers!
@manuelmatus2959 Жыл бұрын
Hi! Great video! I have tasmotized my D1 mini and I was able to connect it to my home assistant. I get the little sound that one should hear when connected to the wifi and mqtt server. However, when I call a [ "/mrdiynotifier/say" ; payload: Hello ] nothing happens. Also, in the installation of wifi credentials, at the end was a new configuration that was not present in the video, it was MQTT Topic (which I left blank). Please help!!!
@MrDIYca Жыл бұрын
Yes, I added that field after the video. You can set it to /mrdiynotifier
@manuelmatus2959 Жыл бұрын
@@MrDIYca Thanks for your reply! I have added the /mrdiynotifier to the MQTT Topic. I get the connection sound, but when try to publish a [ /mrdiynotifier/say ; payload: Hello ]. Then I try doing /mrdiynotifier/status, I get nothing either. I think I have done all correctly. I am trying to send the commands via "Developer Tools/Services/Service:MQTT.publish/ and then: service: mqtt.publish data: topic: /mrdiynotifier/say payload: "test" Any other idea on what could be wrong?
@er.jugalmandal77363 жыл бұрын
How can I create a url for audio notifier and what should I fill the access I'd and password please let me know
@MrDIYca3 жыл бұрын
You can use any HTTP ( not HTTPS) server to host the mp3 and use their URL. For the portal login from the local network, use 'admin' for username and the same password you set for the access point to login ( default 'mrdiy.ca')
@ilyassiddiqi77394 жыл бұрын
Thanks for sharing. Earlier I had one made up with mini MP3 player but for sure this option is better. I will try it soon.
@MrDIYca4 жыл бұрын
You are welcome. That is exactly what I was trying to avoid. Just keep in mind that this is not a replacement to a full mp3 player - it is more of a notifier than an entertainment player.
@ighost_13372 жыл бұрын
Is there any update on this ?
@StePhanMckillen4 жыл бұрын
10 out 10 bro thanks
@MrDIYca4 жыл бұрын
You are weclome!
@nawafbana81003 жыл бұрын
Wemos D1 Mini was connected to WIFI (I can hear the initial sound), but from home assistant I cannot hear the mp3 or TTS or ... :(
@MrDIYca3 жыл бұрын
It looks like it could be topics issue. Maybe check the MQTT topics?
@nawafbana81003 жыл бұрын
@@MrDIYca (Ringtone) and (say text) are working fine, only I have problem with loading audio files in home assistant, is it due to samba security?
@RoSi4You4 жыл бұрын
So, it is topic in setup where I should send commands please? I've setup diynotifier1, and inject to /dyinotifier1/play string with mp3 (through Node-RED) and nothing happened. After turning on it plays a welcome sound, but refuses to play anything else. Should I see some info in debug window after sending commands through MQTT? Or it prints just info at boot? Through MQTT explorer I can see, that message goes to the topic. It also gives me a status on /diynotifier1/status - "connected" and then "idle". But after injecting, of play command, no "playing" status appears. Thank you! This is my debug log: Loaded config 'iwcThingName'= 'DIY notifier 1' Loaded config 'iwcApPassword'= Loaded config 'iwcWifiSsid'= 'Virus24' Loaded config 'iwcWifiPassword'= Loaded config 'iwcApTimeout'= '30' Loaded config 'mqttServer'= '192.168.1.200' Loaded config 'mqttUser'= 'mqtt' Loaded config 'mqttPass'= Loaded config 'mqttTopic'= 'diynotifier1' SkipApStartup mode was applied State changing from: 0 to 3 Connecting to [*******] (password is hidden) State changed from: 0 to 3 WiFi connected IP address: 192.168.1.11 State changing from: 3 to 4 Accepting connection ================================================================== MrDIY Notifier ================================================================== Connected to Wifi [192.168.1.11] status: connected Connected to MQTT: mrdiynotifier status: idle State changed from: 3 to 4
@MrDIYca4 жыл бұрын
It looks like the device never receives MQTT messages. Did you change the MQTT topics yourself in the code or using the setup portal?
@RoSi4You4 жыл бұрын
@@MrDIYca In the portal. Now, if I delete that topic in the setup, should it go back to mrdiynotifier? I'll try and let u know. *EDIT* : It didn't revert back to that topic, but when i put mrdiynotifier into portal, it works. Horray. Now trying to change back to another topic.
@MrDIYca4 жыл бұрын
@@RoSi4You I would try another MQTT client like MQTTBox to make sure the MQTT message is sent correctly first. Because it looks like you are connected corretly, the MQTT prefix is good but the device is not getting any messages.
@RoSi4You4 жыл бұрын
@@MrDIYca Changed to notif1, and it works! *Hooray!* Another though I have is, if You might consider to add support for light, like project here: github.com/CosmicMac/ESParkle It will be great!
@ericvandewalle90033 жыл бұрын
Hi, i am having problems with using 2 boards at the same time. I have given them each there own different mqtt-topic( used the bin with custom mqtt topic). I can acces them through webbrowser on their own ip adress. Seperate they work fine, but if i power them up at the same time none work. Do i have to change someting in the code to be able too use 2 at a time?
@MrDIYca3 жыл бұрын
Hi Eric, I replied to your Gitlab issue here gitlab.com/MrDIYca/mrdiy-audio-notifier/-/issues/8
@ericvandewalle90033 жыл бұрын
@@MrDIYca thank you for quick response and fix
@Automatasyt3 жыл бұрын
I dont speak english, so please dont bother about any mistakes. Your project were really helpfull, I would like to know how do you acess the mp3 archive in the local network
@satiaxsanti13 жыл бұрын
He is using Home Assistant, you can use any web server in windows you have xampp, witch is your language ?
@Automatasyt3 жыл бұрын
@@satiaxsanti1 thanks for the tip, i decided to set up a python webserver for communication between the pc and a esp network. My language is portuguese!
@satiaxsanti13 жыл бұрын
@@Automatasyt Ok, if you need help, just write me on instagram @im_sanso. I speak Spanish, so English is better :)
@rasimmonds4 жыл бұрын
I have got as far as connecting everything up, but no connection sound and scripts don't play anything either. Board is connected to MQTT as logs show: 1597599645: New connection from 192.168.1.19 on port 1883. [INFO] found user1 on Home Assistant 1597599646: Client MrDIY Notifier already connected, closing old connection. 1597599646: New client connected from 192.168.1.19 as MrDIY Notifier (p2, c1, k15, u'user1'). Speaker makes static noise when plugging in audio jack so I am guessing my soldering is ok. Any ideas how to investigate further?
@MrDIYca4 жыл бұрын
hi rdak, when you send a command to the /play topic, do yo get anything on the /status topic?
@rasimmonds4 жыл бұрын
@@MrDIYca I sorted it. Being a total noob at electronics, I decided the easiest way to connect would be to use Pi jumper cables to connect to the board and then join these to the speaker wire. It was either a bad connection or jumper cables aren't a suitable wire for this job. All working now, thanks!
@donny_bahama4 жыл бұрын
Is there any way to make it play PLAYLISTS?
@MrDIYca4 жыл бұрын
Not natively, no. A thought: I dont' know if this is even doable but you can try to get something like NodeRed to send a '/play' command for the first MP3 file's URL in the playlist, then wait for the 'idle' /status (meaning playing is done) then send the second "/play" command with the next URL ... and so on.
@piratesofbytes3 жыл бұрын
Wow cool project 👌🏼
@ahmedelwan91294 жыл бұрын
hello when i try to play or stream mp3 files there is alot of noise and it's play at very slow speed
@MrDIYca4 жыл бұрын
Hi Ahmed, did you try using a diffrent esp8266 module/board?
@TecSanento3 жыл бұрын
can we extend this to be used as a homeassitant mqtt media player ?
@MrDIYca3 жыл бұрын
I don't see why not. It is just MQTT commands.
@alexl662 жыл бұрын
Thanks you for this project! What is the user name when I want to login later when it is connected to local WIFI?
@MrDIYca2 жыл бұрын
You are welcome. username (admin) and password (same as the wifi AP).
@alexl662 жыл бұрын
@@MrDIYca Do you have a tip to minimize the noise , I have quite some noise and clicking...I'm not using the recommended amp yet, just external amp
@sshah8763 жыл бұрын
Great device, well done, hey is there any auto reboot on mqtt failure, or remote reboot using mqtt or daily reboot possible in the firmware that you wrote?
@MrDIYca3 жыл бұрын
Not built-in but you should be able to add it easily in the source code
@sshah8763 жыл бұрын
@@MrDIYca Hey is it possible to play an mp3 file stored in local net share and accessed by sending http url to this device "without" connecting to MQTT server, this way this device could be shared by two servers!
@elnurmehdiyev5062 Жыл бұрын
Really cool project, but How to get it to play mp3 from ?
@MrDIYca Жыл бұрын
Thanks. It only supports HTTP.
@James-xw3pl4 жыл бұрын
Thanks for the plugin, I have tasmotizer my D1 Mini with your bin file that you provided and also joined it to my WIFI, but when it try to browse to the D1 mini IP address it request for username & password can you please advice what the username and password will be Thanks
@MrDIYca4 жыл бұрын
Hi James, the username is 'admin' and the password is the same as the AP's.
@James-xw3pl4 жыл бұрын
@@MrDIYca Thanks for you help
@James-xw3pl4 жыл бұрын
I was able to login
@TheDiverJim3 жыл бұрын
I'm trying to follow along, but I can't get the board to show up in HA. I'm not sure what I'm doing wrong. Think it is my Mosquito config in HA. is there any good documentation on this?
@MrDIYca3 жыл бұрын
Hi Jim, I recommend you test the MQTT msgs on an MQTT client first (something like MQTT Explorer) to make sure they are indeed sent out. If that works then work on MQTT-HA intergration ( this is a good start www.home-assistant.io/integrations/mqtt/). Hope that helps.
@TheDiverJim3 жыл бұрын
@@MrDIYca yep, it’s either that the speaker’s built in amp isn’t strong enough or I’m hooking up the wrong wire.
@MrDIYca3 жыл бұрын
Are you connecting the Gnd-Rx to an amp input or to a passive speaker directly? Yes, it is a good idea to always double check that wiring.
@TheDiverJim3 жыл бұрын
@@MrDIYca because the speaker is powered separately, I believe its going to an amp. Using a nodeMCU v1 and the rx pin to the audio lines. The ground is connected to gnd but I don’t think it’s going to the speaker. Because the input from the speaker is 2 wire.
@maartent84014 жыл бұрын
Thanks. This works great!!!.. Only thing is after an mp3 is done playing (using both stream and play topic) the speaker click and pops.
@MrDIYca4 жыл бұрын
Great! and ya, mine sometimes does the pop sound but before it plays the mp3, couldn't find a quick way around it. Maybe someone out there can share a solution.
@MLJTI4 жыл бұрын
MrDIY wonder if it has something to do with to mp3 bitrate. Playing the ringtone works without noise.
@MrDIYca4 жыл бұрын
It is possible. Maybe it was a high bitrate or maybe network buferring issue.
@greggotcher93364 жыл бұрын
@@MrDIYca I get a popping before and after the mp3 plays. I also seem to have a hissing sound while the mp3 is playing. The hissing isn't terrible, but you can tell that it is there. Any thoughts on how I might cure this.