Wifi Audio Notifier using ESP8266: Play MP3, TTS & RTTL

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2024
  • Make ESP8266 play MP3 files, TTS and RTTL tones over MQTT. Buy the Wemos D1 Mini store.mrdiy.ca/product/wemos-...
    Install the code directly using a web browser
    ====================================
    mrdiyca.gitlab.io/mrdiy-esp-o...
    Get the Parts
    ==================================
    ╚═ Wemos d1 mini (4M version)
    ■ geni.us/wemos1min (Amazon)
    ■ s.click.aliexpress.com/e/_Af36zD (AliExpress)
    ╚═ Amplifier shown in video
    ■ geni.us/Tpnn (Amazon)
    ■ s.click.aliexpress.com/e/_A5OaIg (AliExpress)
    Source Code
    ==================================
    gitlab.com/MrDIYca/mrdiy-audi...
    username: admin
    password: same as the wifi AP you setup
    DISCLAIMER: Some of the links found here may be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you to use my links/codes, it's just one more way to support me and my work. Much of the information contained is based on personal knowledge and experience. It is the responsibility of the viewer to independently verify all information.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 248

  • @AndrewDanne
    @AndrewDanne 3 ปีที่แล้ว +4

    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.

  • @DrZzs
    @DrZzs 3 ปีที่แล้ว +17

    Oh you KNOW I'm building one! Where's my D1mini???

  • @MadLabZ
    @MadLabZ 2 ปีที่แล้ว +2

    Just found your channel, I've been looking for this specific project now on and off for about three years, thankyou!!!

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      Glad I could help!

  • @llg.208
    @llg.208 3 ปีที่แล้ว +3

    Very cool project, will give it a try :)
    Thanks for sharing!

  • @bensekh
    @bensekh 3 ปีที่แล้ว +7

    Thank you MrDIY. I've made it. I even wired it up with PAM8403 and Loudspeaker. Very cool project!

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +2

      Glad you like it!

  • @arkadianeu
    @arkadianeu 2 ปีที่แล้ว +2

    this is amazing! great work! I will definitely use it. Thanks!!!!

  • @JB-rh1ir
    @JB-rh1ir 3 ปีที่แล้ว +2

    nevermind ! got it working with the TTS ,so now it's basically a wifi speaker with dynamic content! Awesome work MrDIY !

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Great to hear! I'm guessing you pointed the URL to the TTS folder?

  • @alv1nxx
    @alv1nxx ปีที่แล้ว +1

    This is genius... pure gold, thanks for sharing !

  • @user-on3ck5ok8z
    @user-on3ck5ok8z 9 หลายเดือนก่อน +1

    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.👌

  • @matrix_returned
    @matrix_returned 7 หลายเดือนก่อน

    Great!
    I am also looking something even without external servers.

  • @RoSi4You
    @RoSi4You 3 ปีที่แล้ว +2

    I will 100% build one. Thank you!

  • @yuchoy1
    @yuchoy1 11 หลายเดือนก่อน +1

    The say function reminds me so much of SAM on my old Commodore 64!

  • @sagaardusagaardu4048
    @sagaardusagaardu4048 3 ปีที่แล้ว

    Hello,
    Interesting project, what is the connection diagram of the amplifier with the wemos D1 and the speaker?

  • @easthulk99
    @easthulk99 3 ปีที่แล้ว +1

    This will be my next project... tq for sharing

  • @user-dk4bf1kw2v
    @user-dk4bf1kw2v 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?

  • @ilyassiddiqi7739
    @ilyassiddiqi7739 3 ปีที่แล้ว

    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.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      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.

  • @danneh1982
    @danneh1982 3 ปีที่แล้ว +2

    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!

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +3

      You can use the "Hosting Files" option in HA. Check www.home-assistant.io/integrations/http/#hosting-files

    • @danneh1982
      @danneh1982 3 ปีที่แล้ว +1

      @@MrDIYca Thanks thats saved me a lot of head scratching :D

    • @danneh1982
      @danneh1982 3 ปีที่แล้ว

      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?

  • @JJustYarik
    @JJustYarik ปีที่แล้ว +1

    Thank you so much!!! I repeat step by step and it is working

  • @wattage2007
    @wattage2007 ปีที่แล้ว +2

    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!

  • @misha1533
    @misha1533 2 ปีที่แล้ว

    There is connection to GND port for ground by audio cable and RX simultaneously for other 2 wires, right?

  • @santorcuato
    @santorcuato 3 ปีที่แล้ว +1

    It looks really nice. Will try with an ESP32 and let you know. Thanks for sharing.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +2

      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.

  • @muzammilbathi6483
    @muzammilbathi6483 3 ปีที่แล้ว

    Its good but air kindly tell me if i need to play alaram when sensor sense the person so which code i will edit

  • @UndregoGrey
    @UndregoGrey 5 หลายเดือนก่อน +1

    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.

  • @patjohn775
    @patjohn775 3 ปีที่แล้ว +1

    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

  • @mandeepmails
    @mandeepmails 3 ปีที่แล้ว

    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.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      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.

    • @mandeepmails
      @mandeepmails 3 ปีที่แล้ว

      @@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 :)

    • @satiaxsanti1
      @satiaxsanti1 3 ปีที่แล้ว

      @@mandeepmails You can use a esp32 with an external dac

  • @102diy
    @102diy ปีที่แล้ว +1

    Very good job! 👍

  • @piratesofbytes
    @piratesofbytes 2 ปีที่แล้ว

    Wow cool project 👌🏼

  • @splash128100
    @splash128100 3 ปีที่แล้ว +1

    ❤️ Thank you

  • @madebyjunk1501
    @madebyjunk1501 3 ปีที่แล้ว +1

    Wow amazing💓👍💪 Thanks for sharing

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Thanks for visiting!

  • @MaxGoddur
    @MaxGoddur 3 ปีที่แล้ว

    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.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Hi Rud, I am not using 12v to power the d1 mini. I am using the 5v from the USB.

    • @MaxGoddur
      @MaxGoddur 3 ปีที่แล้ว +1

      @@MrDIYca ah ok, didn't see the USB plugged in so that is why I was asking.

  • @DilnuwanAmaraweera
    @DilnuwanAmaraweera ปีที่แล้ว

    That's awesome and Thank You

  • @C8008C
    @C8008C 3 ปีที่แล้ว

    Runs perfectly. Thank you
    :)
    Could you have another function to switch a Gpio?
    To switch off the amp filter via a relay

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      Thank you. I don't see why not. Give it a try!

  • @CancunManny
    @CancunManny 3 ปีที่แล้ว

    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?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      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.

    • @CancunManny
      @CancunManny 3 ปีที่แล้ว

      @@MrDIYca Thanks for the quick reply

  • @SuperVitcom
    @SuperVitcom ปีที่แล้ว +1

    you can also connect the speakers to the device running home Assistants and configure it as media_player mpd

  • @michaelbatchelder
    @michaelbatchelder 3 ปีที่แล้ว +1

    nice project, will give it a try

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      let me know how that goes!

  • @EngineerFromPakistan
    @EngineerFromPakistan 19 ชั่วโมงที่ผ่านมา

    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.

  • @sshah876
    @sshah876 2 ปีที่แล้ว

    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?

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว +1

      Not built-in but you should be able to add it easily in the source code

    • @sshah876
      @sshah876 2 ปีที่แล้ว

      @@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!

  • @mrtchedamaia
    @mrtchedamaia ปีที่แล้ว

    Hi mate, I did the exactly just like you did, but the sound is not clear... how to make it clear?

  • @misha1533
    @misha1533 2 ปีที่แล้ว

    is it possible to play m3u, like stream in radio in that way?

  • @PlayMoro2013
    @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
      @MrDIYca  ปีที่แล้ว

      Nice, thanks for sharing .. that is an interesting use

    • @clintAdventures
      @clintAdventures ปีที่แล้ว

      mine makes a clicking sound. how is this from slow wifi?

    • @PlayMoro2013
      @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

  • @fernando8948
    @fernando8948 2 ปีที่แล้ว +1

    Awesome proyect

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      Thank you! Cheers!

  • @lilchera7905
    @lilchera7905 ปีที่แล้ว

    Home wifi credentials is something we want to create an SSID and password ?

  • @garycornelius7815
    @garycornelius7815 3 ปีที่แล้ว +1

    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!

  • @PaulPhillipsIndy
    @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.

  • @PileofKyle
    @PileofKyle 3 ปีที่แล้ว

    Amazing!!

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Thank you! Cheers!

  • @StrongBad210
    @StrongBad210 3 หลายเดือนก่อน

    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?

    • @tamildesan837
      @tamildesan837 3 หลายเดือนก่อน

      I am about to by the amplifier mentioned, got the same doubt. Have you figured it out? Are there any connection diagram?

  • @caiomon
    @caiomon 17 วันที่ผ่านมา

    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.

    • @MrDIYca
      @MrDIYca  16 วันที่ผ่านมา +1

      Thanks. Check Chris' work - th-cam.com/video/d_h38X4_eQQ/w-d-xo.html

  • @yuchoy1
    @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
      @MrDIYca  11 หลายเดือนก่อน +1

      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
      @yuchoy1 11 หลายเดือนก่อน +1

      @@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!

  • @sjaakjochems3848
    @sjaakjochems3848 5 หลายเดือนก่อน

    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.

  • @StePhanMckillen
    @StePhanMckillen 3 ปีที่แล้ว +1

    10 out 10 bro thanks

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      You are weclome!

  • @fantasygraph
    @fantasygraph 9 วันที่ผ่านมา +1

    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 /)

  • @hamadalmarri2141
    @hamadalmarri2141 3 ปีที่แล้ว

    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

  • @maartent8401
    @maartent8401 3 ปีที่แล้ว

    Thanks. This works great!!!.. Only thing is after an mp3 is done playing (using both stream and play topic) the speaker click and pops.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      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.

    • @MLJTI
      @MLJTI 3 ปีที่แล้ว

      MrDIY wonder if it has something to do with to mp3 bitrate. Playing the ringtone works without noise.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      It is possible. Maybe it was a high bitrate or maybe network buferring issue.

    • @greggotcher9336
      @greggotcher9336 3 ปีที่แล้ว

      @@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.

  • @ericvandewalle9003
    @ericvandewalle9003 3 ปีที่แล้ว

    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?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      Hi Eric, I replied to your Gitlab issue here gitlab.com/MrDIYca/mrdiy-audio-notifier/-/issues/8

    • @ericvandewalle9003
      @ericvandewalle9003 3 ปีที่แล้ว

      @@MrDIYca thank you for quick response and fix

  • @alexl66
    @alexl66 2 ปีที่แล้ว

    Thanks you for this project! What is the user name when I want to login later when it is connected to local WIFI?

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว +1

      You are welcome. username (admin) and password (same as the wifi AP).

    • @alexl66
      @alexl66 2 ปีที่แล้ว

      @@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

  • @rasimmonds
    @rasimmonds 3 ปีที่แล้ว

    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

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Sometimes the ground wire is the cable shield - try that.

    • @rasimmonds
      @rasimmonds 3 ปีที่แล้ว +1

      Thanks!

  • @phillipmaus9634
    @phillipmaus9634 3 ปีที่แล้ว +1

    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!

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      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.

    • @phillipmaus9634
      @phillipmaus9634 3 ปีที่แล้ว

      OK, I see. Maybe there someone else out there who has succesfully compiled the code?

    • @AndrewVanTil
      @AndrewVanTil 4 หลายเดือนก่อน

      @@MrDIYca Did this ever make it out? Thanks.

  • @manuelmatus2959
    @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
      @MrDIYca  ปีที่แล้ว

      Yes, I added that field after the video. You can set it to /mrdiynotifier

    • @manuelmatus2959
      @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?

  • @rychei5393
    @rychei5393 3 ปีที่แล้ว

    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!

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      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.

  • @DerNerdChannel
    @DerNerdChannel 2 ปีที่แล้ว

    does it react to mqtt commands quickly or is there a couple secs of delay?

    • @zianian
      @zianian ปีที่แล้ว

      The first command I sent using mqtt, a stream url, was lighting fast. Really surprised me.

  • @gradek111
    @gradek111 3 ปีที่แล้ว

    Is it possible to change the TTS voice (i.e. male->femaile) and change the speaking language?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      No, the voice is fixed.

  • @itichi101185
    @itichi101185 3 ปีที่แล้ว +1

    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

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Intersting. Did you check the command is not sent twice? what MQTT client are you using?

    • @itichi101185
      @itichi101185 3 ปีที่แล้ว

      @@MrDIYca well I am sending it through call sevice from home assistant developer section

    • @itichi101185
      @itichi101185 3 ปีที่แล้ว

      I am trying to connect two projects, will it work with two projects in same wifi, is there any way to change mqtt topic

  • @yourdream8
    @yourdream8 2 ปีที่แล้ว +1

    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.

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      the best way to eliminate statics is to go with an external I2S DAC like MAX98357A.

    • @yourdream8
      @yourdream8 2 ปีที่แล้ว

      @@MrDIYca I ordered one. How would I wire this and will it work with your bin file? Thank you for your help.

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      @@yourdream8 check James' repo. He did excatly that. github.com/aspork42/speaker

  • @RoSi4You
    @RoSi4You 3 ปีที่แล้ว

    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

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      It looks like the device never receives MQTT messages. Did you change the MQTT topics yourself in the code or using the setup portal?

    • @RoSi4You
      @RoSi4You 3 ปีที่แล้ว

      @@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.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      @@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.

    • @RoSi4You
      @RoSi4You 3 ปีที่แล้ว +2

      @@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!

  • @valbuz
    @valbuz 10 หลายเดือนก่อน

    Hi
    Great Project!
    But is it possible to deactivate the AP after config?

    • @MrDIYca
      @MrDIYca  9 หลายเดือนก่อน

      yes, that is possible if you want to code it that way

  • @yosoyestoyarto
    @yosoyestoyarto ปีที่แล้ว

    the sound of mp3 needs to be in specific sample rate or something? because its sound very bad on some files

    • @MrDIYca
      @MrDIYca  ปีที่แล้ว

      I found better luck with low sampled files - less processing needed.

  • @tomidabjakoaudytorprzewazn8853
    @tomidabjakoaudytorprzewazn8853 3 ปีที่แล้ว +1

    Can use only http, not mqtt?

  • @JB-rh1ir
    @JB-rh1ir 3 ปีที่แล้ว +2

    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)

    • @superchizo
      @superchizo 3 ปีที่แล้ว

      Hi, how are you? Did you find a way to use google tts? or change the language? Thank you

  • @arnoldmic
    @arnoldmic 3 ปีที่แล้ว +1

    Excellent project. I am using openhab2 on raspberry pi, is there any easy way to share the mp3 file?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      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.

    • @arnoldmic
      @arnoldmic 3 ปีที่แล้ว +1

      @@MrDIYca thanks for the reply. I'll do on weekend.

  • @rasimmonds
    @rasimmonds 3 ปีที่แล้ว

    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?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      hi rdak, when you send a command to the /play topic, do yo get anything on the /status topic?

    • @rasimmonds
      @rasimmonds 3 ปีที่แล้ว +1

      @@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!

  • @timcowell9031
    @timcowell9031 3 ปีที่แล้ว +1

    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?

    • @timcowell9031
      @timcowell9031 3 ปีที่แล้ว +1

      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????

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      ​@Tim Cowell You are right, that extra "/" was missing in the bin package. I uploaded a new bin file.
      Thanks a lot!

  • @hecjr2964
    @hecjr2964 3 หลายเดือนก่อน

    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!

    • @MrDIYca
      @MrDIYca  3 หลายเดือนก่อน

      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

    • @hecjr2964
      @hecjr2964 3 หลายเดือนก่อน +1

      @@MrDIYca Thank you so much for getting back to me so quickly, appreciate it and will do, Thanks again!!

  • @TheDiverJim
    @TheDiverJim 3 ปีที่แล้ว

    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?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      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.

    • @TheDiverJim
      @TheDiverJim 3 ปีที่แล้ว

      @@MrDIYca yep, it’s either that the speaker’s built in amp isn’t strong enough or I’m hooking up the wrong wire.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      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.

    • @TheDiverJim
      @TheDiverJim 3 ปีที่แล้ว

      @@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.

  • @TecSanento
    @TecSanento 2 ปีที่แล้ว

    can we extend this to be used as a homeassitant mqtt media player ?

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      I don't see why not. It is just MQTT commands.

  • @HoianElectric
    @HoianElectric 2 ปีที่แล้ว

    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.

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      Thanks! Yes, this change was added in the source code but not in the bin file. Just rebuild it and you should be good.

    • @HoianElectric
      @HoianElectric 2 ปีที่แล้ว

      @@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.

  • @HoianElectric
    @HoianElectric 2 ปีที่แล้ว

    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

    • @HoianElectric
      @HoianElectric 2 ปีที่แล้ว +2

      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.

  • @aryeguetta8592
    @aryeguetta8592 3 ปีที่แล้ว

    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.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      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.

  • @clintAdventures
    @clintAdventures 3 ปีที่แล้ว

    whenever i reboot the d1 mini i have to reneter all the wifi/mqtt details again otherwise it will not work. possible to get some kind of fix for this?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Yes, there is an open issue here gitlab.com/MrDIYca/mrdiy-audio-notifier/-/issues/1. I am working on it. :)

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      I updated the bin file for a fix for this issue. Please redownload it, try again and let me know.

    • @clintAdventures
      @clintAdventures 3 ปีที่แล้ว +1

      @@MrDIYca thank you for this appreciate it. Would it be possible to adapt this to output the audio over blue tooth or would that take a lot of work? My thought is instead of external speakers have the audio go to my echo dots as they can work as blue tooth speakers.

  • @ahmedelwan9129
    @ahmedelwan9129 3 ปีที่แล้ว

    hello when i try to play or stream mp3 files there is alot of noise and it's play at very slow speed

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Hi Ahmed, did you try using a diffrent esp8266 module/board?

  • @elkoNDesigner
    @elkoNDesigner 2 หลายเดือนก่อน

    Im really new to this, how you make your mp3 files to an url? Thanks

    • @MrDIYca
      @MrDIYca  2 หลายเดือนก่อน

      community.home-assistant.io/t/turn-an-esp8266-wemosd1mini-into-an-audio-notifier-for-home-assistant-play-mp3-tts-rttl/211499

    • @elkoNDesigner
      @elkoNDesigner 2 หลายเดือนก่อน

      @@MrDIYca I dont know how to do it, is my first time with this.

  • @James-xw3pl
    @James-xw3pl 3 ปีที่แล้ว

    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

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Hi James, the username is 'admin' and the password is the same as the AP's.

    • @James-xw3pl
      @James-xw3pl 3 ปีที่แล้ว

      @@MrDIYca Thanks for you help

    • @James-xw3pl
      @James-xw3pl 3 ปีที่แล้ว +1

      I was able to login

  • @Automatasyt
    @Automatasyt 3 ปีที่แล้ว

    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

    • @satiaxsanti1
      @satiaxsanti1 3 ปีที่แล้ว +1

      He is using Home Assistant, you can use any web server in windows you have xampp, witch is your language ?

    • @Automatasyt
      @Automatasyt 3 ปีที่แล้ว

      @@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!

    • @satiaxsanti1
      @satiaxsanti1 3 ปีที่แล้ว

      @@Automatasyt Ok, if you need help, just write me on instagram @im_sanso. I speak Spanish, so English is better :)

  • @stanislavshulaev8763
    @stanislavshulaev8763 ปีที่แล้ว

    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

  • @ighost_1337
    @ighost_1337 ปีที่แล้ว

    Is there any update on this ?

  • @zulkarnainkarim
    @zulkarnainkarim ปีที่แล้ว

    How to get those mqtt?

  • @nawafbana8100
    @nawafbana8100 2 ปีที่แล้ว

    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 ... :(

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      It looks like it could be topics issue. Maybe check the MQTT topics?

    • @nawafbana8100
      @nawafbana8100 2 ปีที่แล้ว

      ​@@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?

  • @er.jugalmandal7736
    @er.jugalmandal7736 3 ปีที่แล้ว

    How can I create a url for audio notifier and what should I fill the access I'd and password please let me know

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      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')

  • @andriessyx5225
    @andriessyx5225 3 ปีที่แล้ว

    Helo,
    made this for my Home assistant setup.
    How can I connect 2 ESP8266 in a different room? Now I have looked into the log file of MQTT and it notice that there is "already MrDIY notifier connected and close the old connection" as result that non of them are working.
    If I disconnect 1 esp8266 than the other one works.
    Do you have a solution for that?
    Thx

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Hi Andries, which bin file did you use? did you try the _mqtt version? This allows mutiple instances.

    • @andriessyx5225
      @andriessyx5225 3 ปีที่แล้ว

      @@MrDIYca hi, i use the MrDIY_notifier.bin. I will try the other one and let you know.

    • @andriessyx5225
      @andriessyx5225 3 ปีที่แล้ว

      @@MrDIYca ok have try the notifier custom mqtt but still the same. What do I have to do extra?

    • @andriessyx5225
      @andriessyx5225 3 ปีที่แล้ว

      @@MrDIYca with the notifier_custom_MQTT.bin file i see that i have a an extra field "topic". What should I fill in?? I didn't fill it in and the speaker but it doesn't work. It connect to the wifi and hear the sound but does not play anything else that i inject on Nodered. I uploaded the notifier.bin file and the speakers works directly. What am i doing wrong?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Hi, for that field, you need to put the MQTT topic prefix. For example, if you put 'livingroom' your MQTT play command topic becomes 'livingroom/play'.

  • @terrymaker4781
    @terrymaker4781 3 ปีที่แล้ว

    Has anyone tried building a standalone server that does not use MQTT?

  • @Francois_Dupont
    @Francois_Dupont 4 หลายเดือนก่อน

    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!

    • @MrDIYca
      @MrDIYca  4 หลายเดือนก่อน

      You might want to check schmurtz's work at github.com/schmurtzm/MrDiy-Audio-Notifier

    • @Francois_Dupont
      @Francois_Dupont 4 หลายเดือนก่อน

      @@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_Dupont
      @Francois_Dupont 4 หลายเดือนก่อน

      @@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.

    • @MrDIYca
      @MrDIYca  4 หลายเดือนก่อน

      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_Dupont
      @Francois_Dupont 4 หลายเดือนก่อน

      @@MrDIYca Thank you i will try.

  • @MrCheakheang
    @MrCheakheang 3 ปีที่แล้ว

    I have try many time, while plug the jack in to speaker there is welcome sound. but while public mqtt message there nothing hear..., i not sure what is wrong? and how to debug it?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Since you are able to hear the welcome sound, it means Wifi and MQTT are connected correctly. What MQTT topic are you using to send the play commands?

    • @MrCheakheang
      @MrCheakheang 3 ปีที่แล้ว

      the MQTT Topic setting is : myspeaker
      call service:
      payload: '192.168.123.222:8123/local/alarm1.mp3'
      topic: /myspeaker/play

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Are you seeing any status updates on the "/myspeaker/status" MQTT topic?

    • @MrCheakheang
      @MrCheakheang 3 ปีที่แล้ว +1

      @@MrDIYca I can successful do:
      I am using MQTT Explorer to monitor
      1. "/myspeaker/say" , payload : Hello ==> return hello from speaker
      2. "/myspeaker/tone", payload: Soap:d=8,o=5,b=125:g,a,c6,p,a,4c6,4p,a,g,e,c,4p,4g,a ==> return tone from speaker.
      3. "/myspeaker/status" - show idle
      but
      4. "/myspeaker/play" & "/myspeaker/stream" , payload: 192.168.123.222:8123/local/bell_in_temple.mp3 ==> some time show status "Error" and some time "Idle".
      I am not sure if this because of ssl certificate or not? i have try to run the url from chrome of my pc is working well. kindly advice. thank you.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Did you try using http instead of https?

  • @donnyferris5521
    @donnyferris5521 3 ปีที่แล้ว

    Is there any way to make it play PLAYLISTS?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      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.

  • @brunomiguelcanteirodacunha6800
    @brunomiguelcanteirodacunha6800 ปีที่แล้ว

    hello MrDiy know de play is not working

  • @ilyassiddiqi7739
    @ilyassiddiqi7739 3 ปีที่แล้ว +1

    I tried it and it worked without any hiccups. I wish if this particular
    audio library or any other audio library could make use of an external
    microphone to issue voice command to trigger an output on Wemos d1 mini
    or NODE MCU. If this is possible then we may be able to make a DIY stand alone
    smart audio system to issue commands to our automation.
    I will wait for your comments.
    Thanks again for sharing such a practical automation idea.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      The ESP8266 is not really capable of processing any kind of audio recognition but maybe it could be used as a gateway to stream an audio feed to something like rhasspy. I haven't looked into that but it is definitely an interesting idea. Thanks for watching!

    • @ilyassiddiqi7739
      @ilyassiddiqi7739 3 ปีที่แล้ว

      @@MrDIYca Thanks .

  • @andriessyx5225
    @andriessyx5225 3 ปีที่แล้ว

    Is there a way were I can change the IP to a Static IP?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      Yes, the full source is available.

    • @andriessyx5225
      @andriessyx5225 2 ปีที่แล้ว

      @@MrDIYca can you help me out a bit? I think that I should write here the static adress but don't no were exactly and how...
      // WifiManager -----------------------------
      #ifdef ESP8266
      String ChipId = String(ESP.getChipId(), HEX);
      #elif ESP32
      String ChipId = String((uint32_t) ESP.getEfuseMac(), HEX);
      #endif
      String thingName = String("MrDIY Notifier - ") + ChipId;
      #define wifiInitialApPassword "mrdiy.ca"
      char mqttServer[16];
      char mqttUserName[32];
      char mqttUserPassword[32];
      char mqttTopicPrefix[32];
      char mqttTopic[MQTT_MSG_SIZE];
      DNSServer dnsServer;
      WebServer server(80);
      IotWebConf iotWebConf(thingName.c_str(), &dnsServer, &server, wifiInitialApPassword, "MrD3");
      IotWebConfParameter mqttServerParam = IotWebConfParameter("MQTT server", "mqttServer", mqttServer, sizeof(mqttServer) );
      IotWebConfParameter mqttUserNameParam = IotWebConfParameter("MQTT username", "mqttUser", mqttUserName, sizeof(mqttUserName));
      IotWebConfParameter mqttUserPasswordParam = IotWebConfParameter("MQTT password", "mqttPass", mqttUserPassword, sizeof(mqttUserPassword), "password");
      IotWebConfParameter mqttTopicParam = IotWebConfParameter("MQTT Topic", "mqttTopic", mqttTopicPrefix, sizeof(mqttTopicPrefix));

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      @@andriessyx5225 I have used a library called IotWebConf. There is a post on their github with someone using Static IP with code. This should be a good starting point github.com/prampec/IotWebConf/issues/171

  • @yosoyestoyarto
    @yosoyestoyarto 2 ปีที่แล้ว +2

    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

    • @misha1533
      @misha1533 2 ปีที่แล้ว

      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?

    • @yosoyestoyarto
      @yosoyestoyarto ปีที่แล้ว

      @@misha1533 because its not in stereo, he put the 2 channel in the same speaker, be carefull no all amps allow that.

  • @WayneRigley
    @WayneRigley 3 ปีที่แล้ว +1

    Yep.. TH-cam counter and Google mini speaker .. ding you have another follower

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      Right on!

  • @lilchera7905
    @lilchera7905 ปีที่แล้ว +1

    What is home wifi credentials?

    • @MrDIYca
      @MrDIYca  ปีที่แล้ว +1

      Your own Wi-Fi at home where the device can connect to the Internet

    • @lilchera7905
      @lilchera7905 ปีที่แล้ว

      @@MrDIYca does ESP8266 have permanent SSID and password ?

  • @TroyFrederickLim
    @TroyFrederickLim 3 ปีที่แล้ว

    Will this work on ESP01?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      Yes

    • @TroyFrederickLim
      @TroyFrederickLim 3 ปีที่แล้ว

      @@MrDIYca I tried it on ESP01 and it worked. However, it is a bit noisy as it has a crackling sound. I tried to shield it by covering it with aluminum foil but it didn't fix it. So I also ended up with the D1 mini as it has a much cleaner sound compared to the ESP01. Anyway, thank you so much for sharing this. I've been looking for this kind of solution for a long time. Now I can build a smart home without totally relying on the internet. 😊