#127

Sdílet
Vložit
  • čas přidán 26. 08. 2024
  • In this and the next videos, I build a Home Automation system with Sonoff Switches, Wemos Mini PIR sensors, MQTT, Pi Zero, and Alexa. Without one line of coding.
    Links:
    Espurna original: bitbucket.org/...
    Espurna IOTappStory: github.com/Sen...
    IOTappStory Wiki: iotappstory.com...
    From Alex Sfyrakis1
    For those who have problems seeing the root html just run the following commands:
    sudo wget www.scargill.ne... -O /var/www/html/index.html
    sudo wget www.scargill.ne... -O /var/www/html/reset.css
    If you want to support the channel and buy from Banggood use this link to start your shopping: bit.ly/2jAQEf4 (no additional charges for you)
    / andreas-spiess-7331894...
    / spiessa

Komentáře • 178

  • @gsagum
    @gsagum Před 7 lety +1

    Andreas... im having a marathon of your videos right now.. Very good videos ! I should have seen these videos a long time ago..
    Please keep it up!.

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      Thanks for your nice words! I saw the view counter jumping up when you were viewing ;-)

  • @PatrizioBekerle
    @PatrizioBekerle Před 7 lety

    Thank a lot for this wonderful series! It opened my eyes to a lot new topics! Your DietPi image even worked on my RPi B+, thanks a lot for that too! And what you can do with Node Red really blew my mind! Cheers from Austria!

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      Thanks. Just drove two times through Austria last week...

    • @0xpbek
      @0xpbek Před 7 lety

      That's awesome! :)
      Meanwhile I also got the things together to flash a Sonoff switch (www.amazon.de/gp/product/B0711HTYZ2)! It took me a day to figure out that I have to use DOUT mode to flash it, instead of DIO. Flashing always worked, but no program did actually run and I didn't get any serial output...
      But I still have troubles getting a serial output with your images from github.com/SensorsIot/IOTappStory.com/tree/master/IotAppStoryLoader. I got the loader working on the device but it just doesn't output anything on the serial board. When I upload something in an Arduino-sketch that does a `serial.print` it actually produces an output...
      I got your "blinking led" examples working from your iotappstory.com (that really is a great project, thanks a lot for it!), but the Espurna app just didn't do anything on my Sonoff, again no serial output to debug anything...
      Did you ever have the problem that you didn't get serial output? Or was serial debugging turned off in your images?

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      We are in a major overhaul of IOTappstory.com. I will create a video in the next weeks. If you want to try the new version, you find the library already in the Arduino IDE (just search for iotappstory).

    • @PatrizioBekerle
      @PatrizioBekerle Před 7 lety

      Oh, I will do that, thank you!

    • @0xpbek
      @0xpbek Před 7 lety

      I love that you added the library into the Arduino-repository! I tried it yesterday and finally after quite some fiddling got github.com/iotappstory/ESP8266-Library/blob/master/examples/IOTAppStoryLoader/IOTAppStoryLoader.ino working on my Sonoff. I now have serial output, but that version is lacking the "/close" http-endpoint to get the device in "production-mode". Do you have the source code for the loader from github.com/iotappstory/ESP8266-Loader? I never was able to make the binaries fully work for my Sonoff...

  • @aliaghil1
    @aliaghil1 Před 6 lety +1

    Great job,thank you for sharing it. I prefer to use everything in my home network, not outside that. More security and more reliability...

  • @hexinli
    @hexinli Před 6 lety

    While watching this video, my Echo went nuts every time you said "Alexa" :) Thanks for a nice, comprehensive video (as always).

    • @AndreasSpiess
      @AndreasSpiess  Před 6 lety +1

      Can you imagine what happened when I recorded and cut the episode :-) I had to switch it off...

  • @peterkaczmarczyk4891
    @peterkaczmarczyk4891 Před 7 lety

    Hi Mister Swiss Accent
    First of all, i would like to thank you for your excellent video tutorials. i know how much time you are spending on this stuff. Big Thumbs up.
    Encouraged by this video i started to build my own automation system. But to be honest this stuff nearly screwed me up. Being a newbie it showed to be tough work to get my system running. I spend nearly 3 weeks to set up the raspberry, the development tools and to build my own firmware.
    I got stuck nearly every problem that could occur during the build process. Fiddling with linux was one of the issues.
    Due to some basic programming experience i thought that it would be easy to build my firmware.Wrong assumption.
    The build process was a trial and error approach due to the spare information for the firmware build. Most annoying was the fact that there is a plethora of information in the internet. But as a newbie i could not figure out if this information was useful for managing my problems. Most items i found were outdated, wrong context or even worse just false.
    Finally i found 2 major information that helped me out.
    I would like to ask you if it is possible from your side to provide us with a video showing a brief overview of setting up the environment, the build process and TOOLS (i.e. Platformio vs. Arduinoi) and hints to avoid the pitfalls for the build process.
    One of my major time consuming issue was to figure out how to configure the right Arduino Development Environment. Newbies will find really nothing starting for the first time.
    Thanks again
    Regards

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      This is, what I call learning! We all went through it and it is not easy to get a shortcut. Because of the fact, that, as you described, if you do not know, you cannot distinguish between good and bad.
      Concerning Arduino: This could have been a simple one. I have no idea why you even bothered with platformio. Even I do not do this...
      My channel is not targeted to the beginners. So, the chance is small that I will do a general introduction. I try to do introductions to particular topics.
      But with your experience, you fit now perfectly to this channel ;-)

    • @peterkaczmarczyk4891
      @peterkaczmarczyk4891 Před 7 lety

      Thanks for your reply. You are right basic stuff is covered all over the internet. My motivation to ask you for build tutorial was the fact that i got stucked with Tasmota due to a stupid misunderstandig: to get this firmware running. I just had to hardcode my access point into the firmware code. With espurna i had trouble with the ap issue as well because of the IP address.
      Thanks and good luck

  • @pioupioupioupioupify
    @pioupioupioupioupify Před 7 lety +1

    And this is how skynet began....
    Great stuff btw. Learned a lot.
    PS: For people that don't have alexa there are guides on how to duplicate the functionality with a raspberry pi. Or if you are proficient with python you can do DIY speech recognition with the SpeechRecognition package.

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      :-)
      Concerning voice recognition: I saw the Raspby thing, but when the presenter added everything necessary, the difference to a Echo Dot was small and the performance not as good. So, I think, the 60 $ deal is ok for the small Dot.
      But to experiment is a different thing, of course...

    • @squalazzo
      @squalazzo Před 7 lety +1

      and the original amazon product, with its array of microphones, is incredibly reliable even in noisy rooms, while the raspberry one, can't ear you talking if there's music playing...
      a raspberry + a mic array cost more than an Echo Dot...

    • @pioupioupioupioupify
      @pioupioupioupioupify Před 7 lety

      Hmm, yes, that's probably the case, the authentic raspberries are disappointingly slow. I have an orange pie on order that I want to try, maybe it will perform better. So far I was using my desktop to prototype voice recognition and it works well, especially with the google APIs.

    • @ufohunter3688
      @ufohunter3688 Před 7 lety

      I use the voice recognition on my Acer Android tablet all the time. It has no problem of taking dictation and notes even when I speak fast. Some words are misunderstood, but I go through the text once to format it. I correct those few mistakes.
      The trick is not to look at the screen and just speak normally. Then when you go back to edit, you can pick out the mistakes easily. I found it to be about 90% accurate hands free.

    • @ufohunter3688
      @ufohunter3688 Před 7 lety

      If I had to learn only one programming language today, it would be python.
      However, I started out with K&R C back in '84 (On a PC running Dos and a "C" compiler from Life Boat Associates).
      Every modern language, seems to be a water-down version of C. So why switch?
      Ease of use. One python statement may take many lines of C code. But with C, you can do logical operations at the speed of machine language. There lays the difference and the power of C. That's why ALL compilers are written in C.

  • @garrypkeogh
    @garrypkeogh Před 7 lety

    Well done Andreas, more inspiration. I am still waiting for LoRa hardware and in an idle moment last week ordered a USB microphone to add AI to a not very busy Raspberry Pi3. Parallel projects (well sort of) in Ireland and Switzerland. Thanks again!

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      I read, that the Microphone on the Raspby does not work well. So, it seems more experimental. I will try the way to enhance Alexa by programming it on AWS. One of my subscribers already did it. So, we can compare at the end...

  • @RobEinstein
    @RobEinstein Před 7 lety

    I think you know, you could have run 'alexa' in the raspberry pi (just attaching a microphone).
    Really well done btw!!!! Congratulation and thank you for sharing your projects with us!

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety +1

      Concerning Alexa: See my last comment.
      And thank you for your nice words!

    • @RobEinstein
      @RobEinstein Před 7 lety

      I watched the video and wrote the comment (didn't reload the page...) just seen you commented about it. You're right.
      You're welcome. Keep up the great work! Love your videos.

  • @waltsteinchen
    @waltsteinchen Před 7 lety +2

    Great video Andreas!
    Guess getting things done without arguing is the reason why so man *men* use Alexa ;-)
    I also started using the fauxmoESP library (and still have 9 devices running that way).
    But in the meantime I switched to implementing real Alexa skills, because you the have more options that way (the fauxmoESP is limited to say switch ON/OFF).
    This is done by a LAMBDA function (this is java script) implemented in Amazon, calling back to a WebService in my house.
    This way I was able to implement (translated to english) things like "Alexa query home status" .. and she is replying with some system parameters in my house ... or "Alexa query callers" which goes to my DSL router (a Fritzbox), reading out the latest callers while I'm absent and telling them to me.
    Since I'm diabetic I implemented a few functions where I can tell Alexa to store the amount of insuling I injected per voice and querying later .. so she tells me ... 5 entries injected 1 hour and 10 minutes ago.
    Very handy!

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      Sounds very interesting. Is this a paid service? It is definitively something I want to try. Is there a good tutorial?
      And maybe I need some additional help...

  • @Emtron_Technologies
    @Emtron_Technologies Před 7 lety +1

    Excellent idea Andreas.

  • @dl8cy
    @dl8cy Před 7 lety

    Jetzt hab ich wieder Zeit Deine spannenden Videos zu schauen - der Stress ist vorbei, gestern war Prüfung und heute war die Zulassung im Briefkasten 73 DL8CY

  • @MMphego
    @MMphego Před 7 lety +4

    Andreas, where do you get the time to make all this?
    Great work, I love your channel

  • @lawaver
    @lawaver Před 5 lety +1

    Hi, I am just starting out with IoT and do enjoy your videos. In this video you say you have saved all the necessary libraries (ESP Sensor Espurna 1.6.9) on the IOTAppstory website. I cannot find these anywhere on the website. I have even registered but still with no luck. Can you point me in the right direction please. Kind regards...

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      This is a very old video. Maybe you watch the newest about IOTappstory. A lot changed since then

  • @damny0utoobe
    @damny0utoobe Před 7 lety +1

    espurna... what a great find

  • @AndersJackson
    @AndersJackson Před 7 lety

    You should not use spaces in host names. You can use A-Z, 0-9 - and _. Upper or lower case doesn't matter for the name, but usually by convention one usually uses lower case for host names.

  • @jean-claudechevalley5663

    Hello Andreas, I'm trying today, in 2019 (about 3 years after you published this video), to follow your explanations and build my own Sonoff Basic and PIR_sensor. Just to know, your ESPURNA bin file is not anymore on IOTAppStory. So, I need to recompile myself and also, if I get your "github.com/SensorsIot/Espurna...", it use a first version of IOTappStory .... After 3 years, it's totaly normal but just to say, it was not so easy (for me). Thanks a lot for your job!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      As you mentioned, I can not support all project repositories. If you want you can create a pull request...

  • @rusttaf
    @rusttaf Před 4 lety

    Hi Andreas, this is just great channel, thank you for sharing your experiences with all of us.
    Have you ever considered controlling home heating system on your own?

    • @AndreasSpiess
      @AndreasSpiess  Před 4 lety

      Our heating systems are completely automatic. They switch on in autumn and off in spring. The temperature is controlled separately for every room. So I do not have to add a lot ;-)

  • @MauroSedrani
    @MauroSedrani Před 7 lety

    Great stuff, as usual!

  • @Nisse1002
    @Nisse1002 Před 7 lety

    Please help! In the Movie at 8.20. You should reboot the Sonoff to start the upload of the espurna firmware to the device. It only goes back to the config screen. I don't see any activity on the serial monitor as decribed in the movie. Is config of my device wrong in IOT maybe?

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      Remote diagnostics is hard. Did you follow all steps? What do you see in the Serial?

  • @chuxxsss
    @chuxxsss Před 7 lety

    Andrea's I wish you had done this last year. When I was having problems with the sonoffs and Node-red. I must reprogram the boards for Alexa. I wrote my own code which is crap but works. Do you have to upgrade the tasmato software from the IOTstore cloud server? Also great episode I don't know where you fine the time mate. Wind turbine blades together may send a photo soon.

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety +1

      Tasmota so far does not work with IOTappstory.com. Maybe I will port it once. But it is similar to Espurna. And of course, I am interested in your "wind experiments"!

  • @Inspironator
    @Inspironator Před 7 lety

    Hahaha, I liked your joke, "that one is worth the price of Alexa"

  • @cooljey86
    @cooljey86 Před 6 lety

    Nice Andreas! I’m just starting to get into Node Red. I’m trying to create a two way switch with Tasmota T1 touch. Right now it works one way but not both ways. Meaning A switch controlling B switch but I can’t seem to get B controlling A

    • @AndreasSpiess
      @AndreasSpiess  Před 6 lety

      I do not know Tasmota. But I am sure you will succeed if you want!

    • @cooljey86
      @cooljey86 Před 6 lety

      Andreas Spiess what I meant was, how to group the switches as one on Node red?

  • @tonybell1597
    @tonybell1597 Před 6 lety

    Mind is well and truly Blown Andreas, however, first step: Account on IOTAppstory created....

  • @philmurphy3662
    @philmurphy3662 Před 6 lety

    Hi Andreas,
    Will this work with google mini as I don’t have an Alex?
    Thank you for your help I love your vids and look forward to Sundays having a coffee and learning something new.
    Cheers
    Phil

    • @AndreasSpiess
      @AndreasSpiess  Před 6 lety

      I do not know as I do not own ad google mini. Maybe somebody knows more than me?

  • @ufohunter3688
    @ufohunter3688 Před 7 lety

    I am pretty sure I saw a project that used a Pi to do the Alexa thing as well. You might be able to use that and make a complete solution in one go.

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      +UFOhunter There is a discussion about that below in the comments...

    • @ufohunter3688
      @ufohunter3688 Před 7 lety

      I got to learn to scroll through the comments first. Sorry

  • @squalazzo
    @squalazzo Před 7 lety +2

    hi Andreas!
    what about Alexa, how did you get it? As far as I know, it's sold only in USA, UK and maybe Germany... and, did you have to do special mods to you amazon account to have it working in Switzerland? Do Amazon make regional restrictions on its use?
    thanks

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety +6

      +squalazzo Do not tell Mr. Trump: It is an illegal immigrant and I smuggled it from Germany to Switzerland...
      And yes, I can not enter the place I live. But because this is close to the border, the weather is similar. And she knows our radio stations.

    • @johnerrington9371
      @johnerrington9371 Před 7 lety +2

      You can export via an export house like opas.com. Initially you could only set a US time zone, but recently all time zones can be set. This means time based functions (eg set an alarm for time t) now work on local time. No need to tell Mr Trump anything once you have one - Alexa is always listening and the NSA will already know :-)

    • @axelao9661
      @axelao9661 Před 7 lety +1

      if you wanna buy one maybe you might look at this web page .
      www.bigapplebuddy.com/
      Is a shop in New York, that send products (only sold in the USA) to Europe.
      If you want to get a free quote, they will respond to you with a very detailed quote (trust me, I did it). The total price: 50$ service fee + shipping cost + U.S sales taxes + product cost(amazon dot, google home,amazon echo...).
      i couldn't buy one because...$$$$$$$

  • @AlexandreLeone
    @AlexandreLeone Před 7 lety

    Fantastic!

  • @Jhinsydney
    @Jhinsydney Před 7 lety

    Awesome!!!!!

  • @chixxxxi
    @chixxxxi Před 7 lety

    Thanks for the video Andreas, I learned a lot. What I don't understand: Is your override node always giving out what you put in, ie a string or a number? I am trying something with BigTimer, works fine, but puts out a string when in manual mode and a number when in auto mode. Gruess us Bärn

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      You can see what the node does if you read the code. If I remember right, it passes the input to the output if the override is off.

    • @chixxxxi
      @chixxxxi Před 7 lety

      Thanks, I have got that up and running in the meantime.

  • @Brainstorm4300
    @Brainstorm4300 Před 7 lety

    *Someone give me a link to download the bug books!*

  • @JohnJCouture
    @JohnJCouture Před 6 lety

    Dr. Spiees, thank you for the excellent channel. I echo the comments below ... where do you find the time to do this and still have a regular job.
    Anyway I have been through this video and #93 and #34 and .... When I load IASLoader and compile it using an ESP8266-201 I get
    Arduino: 1.8.5 (Windows 8.1), Board: "Generic ESP8266 Module, 80 MHz, ck, 26 MHz, 40MHz, DIO, 1M (512K SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200"
    Build options changed, rebuilding all
    Y:\arduino\code\libraries\IOTAppStory-ESP8266\src\IOTAppStory.cpp: In member function 'int IOTAppStory::dPinConv(String)':
    Y:\arduino\code\libraries\IOTAppStory-ESP8266\src\IOTAppStory.cpp:526:56: error: 'D0' was not declared in this scope
    if (orgVal == "D0" || orgVal == "16") return D0;
    ^
    Is it because I am using the ESP8266-201? I don't have a Wemos.

    • @AndreasSpiess
      @AndreasSpiess  Před 6 lety

      It is very important you use the newest library downloaded from GitHub and the 2.4 release for ESP32. If you still have problems the best way is to open an issue on Github.

  • @peterl1699
    @peterl1699 Před 7 lety

    you got a new sub🙉

  • @Tab13111
    @Tab13111 Před 3 lety

    Maybe it was a mistake to watch this video next to an echo at 11pm 🤣

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      :-)) Now I know I should "hide" the command...

  • @raulmad6600
    @raulmad6600 Před 6 lety

    Hi Andreas i cannot find the Sonoff Standard Espurna firmware iotappstory.com

    • @AndreasSpiess
      @AndreasSpiess  Před 6 lety

      Espurna and IOTappstory are not compatible so far.

  • @MMphego
    @MMphego Před 7 lety

    Andreas, Do you have any tutorial on how to flash ESPurna firmware on a Sonoff switch?

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      No. Just as I showed in this video.

    • @MMphego
      @MMphego Před 7 lety

      Thanks, I followed the wiki page: bitbucket.org/xoseperez/espurna/wiki/ArduinoIDE.md
      How did you get Amazon to ship you the Amazon Echo dot, I have been trying to order from the UK to South Africa, but they don't ship outside UK?

  • @azizbayouni5691
    @azizbayouni5691 Před 6 lety

    Is it possible to restore EWeLink firmware to Sonoff after flashing tasmota ?

    • @AndreasSpiess
      @AndreasSpiess  Před 6 lety

      I do not know if you get the .bin file of EWLink

  • @magnusnelenius649
    @magnusnelenius649 Před 7 lety

    Hi again, I am planning to use the Sonoff T1 switch and I discovered that I have to use a newer version of Espurna than the current 1.6.9. New newest version (as 2017-08-25) seems to be 1.9.0. Was it much work to make it IoTAppStory-compatable and could you give me a hint how to do that upgrade?

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      +Magnus Nelénius Maybe you wait for the next video about Iotappstory We even have now a library in the Arduino IDE (just search for iotappstory)

    • @magnusnelenius649
      @magnusnelenius649 Před 7 lety

      Excellent! Looking forward to that!

  • @kisssys5414
    @kisssys5414 Před 6 lety

    I was able to use Esptool and flash two Sonof Switches. They accept my credentials and come up with a new IP address. I have never been able to get the screen that allows me to enter the Iotappstory ID. I flashed with the latest loader bin. Anyone have any suggestions.

    • @AndreasSpiess
      @AndreasSpiess  Před 6 lety +1

      Maybe you send an email at info@IOTappstory.com. Maybe Onno can help you.

    • @kisssys5414
      @kisssys5414 Před 6 lety

      I was finally able to get this to work as it shown by compiling the IASloader and uploading from Arduino. Exactly want I wanted to stay away from because of it's inability to be backward compatible with other projects I have. I have to have several versions from 1.0.1 to 1.8.3 of Arduino to work all my projects. Using your compiled file and esptool appeared to work normally except for the fact it never gave me the 4 row menu with IOTappstory. After a lot of time I can get on with this project.

  • @Andrew-rc3vh
    @Andrew-rc3vh Před 2 lety

    I thought this was the original meaning of the word hacker: a guy who buys a bit of corporate hardware made by Americans who employ a kind of techno-protectionism and manages to modify it so the hardware does what they want as opposed to what the corporation wants it to do. Recall Tim Berners-Lee hacking that word processor by using a spare 32bit space in the encoding to use for an IP address.

    • @AndreasSpiess
      @AndreasSpiess  Před 2 lety

      I agree and still use the word in this context.

  • @magnusnelenius649
    @magnusnelenius649 Před 7 lety

    Hi Andreas, I have made the PIR-sensor with the same components as in your video, including the tantalum capacitor across the ESP8266 on the WeMos board. It works but I get lots of false triggers and I don't have a cat to blame :-( Have you seen this also?

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      I have several of them working in my lab without problems. Maybe a small capacitor across the output pin of the sensor or a little more distance between the sensor and the ESP helps.

    • @magnusnelenius649
      @magnusnelenius649 Před 7 lety

      OK, I will try that and/or an adjustable PIR-sensor.

  • @metaspan
    @metaspan Před 5 lety

    Perhaps you should consider running a Mycroft instead of Alexa or Google home. They claim to be more privacy conscious.

  • @thomaskaktus1644
    @thomaskaktus1644 Před 7 lety

    Hi Andreas, how to initiate the Sonoff to download a selected Programm of IotAppstory.com. On my build PIR Sensor is a button on D3. Reset Button on Sonoff does not work. Thanks Thomas

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      I suggest you wait for the new video about IOTappstory.com

    • @thomaskaktus1644
      @thomaskaktus1644 Před 7 lety

      I definitely will see it, but I can't wait. I'll try to rebuild your voice and motion controlled bench lite and ran from one issue to another. For my tests with my Flash issue I compiled a Tasmota it I give it a try now. Maybe i try your version with another Sonoff

  • @vinceherried497
    @vinceherried497 Před 7 lety

    I see you put a cap across your Wemos mini. What symptoms does this cure? I notice I have occasions where I have to request upload several times. Does the cap fix that?

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      If you mean the (yellow) Kapton tape: This is to prevent a short between the Wemos and the PIR sensor. The box is quite small.

    • @TheKetsa
      @TheKetsa Před 7 lety

      I believe he's talking about the tantalum capacitor.

    • @vinceherried497
      @vinceherried497 Před 7 lety +1

      the tantalum capacitor

  • @soeren72
    @soeren72 Před 7 lety

    Is there a forum connected to iotappstory ? My ESP8266 contacts iot but i get: 500 ESP MAC not configured for updates

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      There is no forum. Did you look at the log files in iotappstory.com? There, you should get more info for debugging.

    • @soeren72
      @soeren72 Před 7 lety

      Ok, It was in the log that I saw it did contact on the initial firmware, but as I understand it, I got the "500 ESP MAC not configured for updates" When the project was to be loaded onto the ESP, do I need a portforward in my router/NAT

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      Was your username also soeren72?

    • @soeren72
      @soeren72 Před 7 lety

      No, it's sorlok

    • @onnodirkzwager3537
      @onnodirkzwager3537 Před 7 lety

      Hi Sorlok welcome at IAS
      Looking at the logs it seems like you added your device and project after your initial testing.
      If so, a simple retry of the update procedure (short btn press) should result in a succesfull download of the demo blink app.
      If you keep having problems please contact me at iotappstory@gmail.com and we will get this figured out.

  • @geoffstate
    @geoffstate Před 7 lety

    At 7:10min you select the app we need but you did not say how we get this app into our own selection list. I have tried from iotappstory.com/firmware-item/67/sonoff-standard-espurna# but clicking the "Add to My Apps" link does nothing.

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      +Geoff Jenkins Did you watch the videos concerning iotappstory? There, I go more into the details.

    • @geoffstate
      @geoffstate Před 7 lety

      Andreas Spiess Yes but I had forgotten. For older folks you need to add an audio referral like you often do in your videos. I did get there eventually, thanks.

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      +Geoff Jenkins As you write: old guys sometimes forget things ;-) sorry for that!

  • @ufohunter3688
    @ufohunter3688 Před 7 lety +12

    I can't keep up with technology. Its moving faster than I can learn! Anyone else have this problem?
    By the time I finish something. I have to had learned 10 things to do that one thing. By the time I am done, something new comes along and bam... all over again!
    It has been my experience, that if you want your orders followed, get married... I am sure your wife will follow your orders to the letter! (Devil's advise)

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety +7

      +UFOhunter 1. Priority is fun. So I learn what seems interesting for me.
      And I am married. So, for sure, you live in another country. Here, the women do not need an Alex ;-) Only men an Alexa.

    • @rowifi
      @rowifi Před 7 lety

      UFOhunter Yeah, you are so right! I do hardware software mechanical etc, and all these new frameworks keep coming 10 to the dozen. It's hard to know which technology is the latest and best way to go.

    • @MotSter
      @MotSter Před 7 lety

      Yup. It Never Stops

    • @TheKetsa
      @TheKetsa Před 7 lety +2

      Dont worry, it'll get even worse as technology progresses faster and faster and your aging brain slows down. . .

    • @fullyboricua2554
      @fullyboricua2554 Před 7 lety +1

      @UFOHunter that will only be true if you fall for every "technology hype" that pops out every other day.
      The basic are (and will be) still the same. The tech used in this project is WAAAAYYY overkill.
      And if you think this is moving fast, I invite you to take a look at web development technologies/frameworks in the last 5 years!

  • @thinkwareltd
    @thinkwareltd Před 7 lety

    Hi Andreas,
    Tried creating an account on iotappstory (thinkware) but won't let me login. Followed reset password etc, but still no luck.

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      +Christopher Taylor I will flag it to Onno, who is the owner of the backend

    • @onnodirkzwager3537
      @onnodirkzwager3537 Před 7 lety

      Hi Chris we have sent you an email with solutions. Please let us know how it went.

  • @vinceherried497
    @vinceherried497 Před 7 lety

    at 10:21 I see a tantilum capacitor on the wemos mini

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      +Vince Herried Aha. Capacitor! I made a video where I showed the influence of such a capacitor on the current spikes. If you run at 3.3 volt this might make a difference

    • @vinceherried497
      @vinceherried497 Před 7 lety

      I saw that video. But thought the wemos devices had sufficient capacitors. I'm working on a project with a ESP12s board and definitely need caps for it. Now I will try capacitor add on, on my wemos minis

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      +Vince Herried Maybe it is an overkill. I never checked. The Wemos have a quit good voltage regulator.

  • @Ed19601
    @Ed19601 Před 7 lety +11

    Video #128, How to make Alexa speak with a Swiss accent

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety +3

      Tough problem, I think. Maybe, Amazon will do it if they sell it here...

  • @thomaskaktus1644
    @thomaskaktus1644 Před 7 lety

    Hi all, i tried to flash 2 sonoff basic with the IOPAppstory loader and now both are Dead. Im still able the reflash them with everything i want, but nothing happens. Even a simple Blink example does not work. Has anyone done a backup of the original Firmware and can can provide it to me? I searched tons of hours with no luck, and so i ask hereThanks a lotThomas

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      I think, the Sonoff firmware is proprietary.

    • @thomaskaktus1644
      @thomaskaktus1644 Před 7 lety

      yes it is, but with ESP Tool it should be possible to create a backup as bin file anyway.

    • @thomaskaktus1644
      @thomaskaktus1644 Před 7 lety

      somehow like this: python ./esptool.py --port /dev/ttyUSB4 --baud 115200 read_flash 0x00000 0x400000 backup.img

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      This is the result of your command: 1drv.ms/u/s!AifVcl0bSyX8hZtEN65iOOdeIZJ8bw

    • @thomaskaktus1644
      @thomaskaktus1644 Před 7 lety

      Hi Andreas , this is quite nice of you, trying to help me. What i wrote before is a snippet i found on another page. Obviously the image is to big for a Sonoff. So Adress Room has to be adjusted. I guess it should be python ./esptool.py --port /dev/ttyUSB4 --baud 115200 read_flash 0x00000 0x100000 backup.img
      Can you retry this for me too? Thanks a lot
      Thomas

  • @Benjamin-gw7gd
    @Benjamin-gw7gd Před 7 lety

    Hallo Andreas,
    Ich han d idee gha, en server zum downloade vo chliine dateie zmache zB es beld aber well ichs ned über miis nodemcu zum laufe bring han ich dänkt du de König vom esp8266 chönntisch doch es schpanneds video dezue mache wie me SPIFFS zäme met emne Http server im heimnetzwerk mache cha. En spezielle NAS so zäge.
    Und no en frog, ben ech de einzigscht schwiizer do?

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      +Seníor Jesus Ich bin leider überhaupt nicht gut in Html und kann das nicht. Ich glaube auch, dass das sehr sehr langsam wäre. Da würde ich eher zu einem PI zero oder Orange Pi tendieren. Die sind besser in so was. Und auch nicht viel teurer.
      Es hat viele Schweizer Zuschauer. Die meisten melden sich vermutlich nicht und von denen, die sich melden, schreiben fast alle in Englisch, vermutlich, damit es die andern auch verstehen.

    • @Benjamin-gw7gd
      @Benjamin-gw7gd Před 7 lety

      With client.setNoDelay(1) speeds up to 187kps are possible so it wouldnt be so slow. Thanks for the fast response :). Keep up the good work

  • @magnusnelenius649
    @magnusnelenius649 Před 7 lety

    Hi Andreas,
    I finally got time and tried to install this on a Sonoff but run into a problem after a new firmware was downloaded from IoTAppstury.com.
    A lost my connection to my local WiFi and the user/password for mobile-access don't work.
    My workflow and console aoutput is below.
    Do you have a clue what's wrong?
    BR
    Magnus
    1) Flash Sonoff_Loader (1M-128k).bin with ESP8266 Flash Downloader
    2) Green LED on Sonoff is blinking
    3) Disconnect power
    4) wait 20 sec
    5) Connect power
    6) Got the message:
    !!!!!!!!!!!!!!! Please press reset button. ONLY FIRST TIME AFTER SERIAL LOAD! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    7) Disconnect power
    8) Enter SSID, password and name AP-name: IP-phone
    9) Device downloads Receiving sonoff-standard-espurna-1.6.9-p67.bin and Receiving lab-light-espurna-1.6.9-2061.spiffs.bin
    10) AFter reset it can no loger access my WiFi and starts up it's own accesspoint instead
    11) The AP-name is also not changed to IP-phone
    12) Trying to connect via mobile phone but it won't accept any credentials (tried: admin, fibonacci, SONOFF_07E452)
    I have also tried to compile my own Sonoff Espruna with same result. One differense is that I dont't have a spiffs.bin in that case (don't know how to make one).
    When I press the button on the Sonoff the status for the relay changes but no WiFi-connection :-(
    Some output from serial monitor: (at first I have WiFi-access 192.168.0.105 but after sketch update no WiFi access)
    Connected to WiFi... :-)
    ------------------ Writing Config --------------------------------
    Stored Odi_Network
    Going to IOTappStory.com
    MAC: xx:xx:xx:xx:xx:xx
    IP = 192.168.0.105
    Updating Sketch from...
    Update_server iotappstory.com
    UPDATE_URL /ota/esp8266-v1.php
    FIRMWARE_VERSION IOTappStoryLoader V1.2
    SKETCH_UPDATE_FAILD Error (6): Update error: ERROR[6]: Stream Read Timeout
    Updating Sketch from...
    Update_server iotappstory.com
    UPDATE_URL /ota/esp8266-v1.php
    FIRMWARE_VERSION IOTappStoryLoader V1.2
    SKETCH_UPDATE_OK
    Updating SPIFFS from...
    Update_server iotappstory.com
    UPDATE_URL /ota/esp8266-v1.php
    FIRMWARE_VERSION IOTappStoryLoader V1.2
    ---------- SPIFFS_UPDATE_NO_UPDATES ------------------
    Returning from IOTAppstory
    ets Jan 8 2013,rst cause:1, boot mode:(3,7)
    load 0x4010f000, len 1384, room 16
    tail 8
    chksum 0x2d
    csum 0x2d
    v09f0c112
    @cp:0
    ld
    ESPurna 1.6.9
    xose.perez@gmail.com
    tinkerman.cat
    ChipID: 07E452
    CPU frequency: 80 MHz
    Last reset reason: Software/System restart
    Memory size: 1048576 bytes
    Free heap: 32960 bytes
    Firmware size: 443344 bytes
    Free firmware space: 450560 bytes
    [SETTINGS] EEPROM size: 4096 bytes
    [SETTINGS] Settings size: 3085 bytes
    [SETTINGS] Saving
    [WEBSERVER] Webserver running on port 80
    [RELAY] Number of relays: 1
    [BUTTON] Number of buttons: 1
    [LED] Number of leds: 1
    [LED] Led auto indicator is ON
    Wi-Fi not connected...
    [MAIN] Time: Time not set
    [MAIN] Uptime: 20 seconds
    [MAIN] Free heap: 29080 bytes
    [MAIN] Power: 3127 mV
    [WIFI] Creating access point
    [WIFI] MODE AP --------------------------------------
    [WIFI] SSID SONOFF_xxxxxx
    [WIFI] PASS admin
    [WIFI] IP 192.168.4.1
    [WIFI] MAC yy:yy:yy:yy:yy:yy
    [WIFI] ----------------------------------------------
    [MDNS] OK

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      The ESP seems to wait for your input from your smartphone. You should find a network with the name SONOFF_xxxxxx and if you connect to it, maybe you get directly to a screen. otherwise, you have to enter 192.168.4.1. Maybe it helps...

    • @magnusnelenius649
      @magnusnelenius649 Před 7 lety

      Yes, I can connect to 192.168.4.1 from my smartphone but the problem is that it won't accept any of the usernames/password that I have tried (admin won't work) so I got stuck with wrong credentials. Is there a way to reset the saved credentials?

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      This display asks for the WLAN credentials

    • @magnusnelenius649
      @magnusnelenius649 Před 7 lety

      Thanx for pointing me to the right direction so I could test some more. The problem was that my smartphone cropped the verification dialog and only showed the fields for username (not password) and OK button. Problem solved.

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      :-)

  • @t540985
    @t540985 Před 5 lety

    This is one of my ho,me lamps using Sonoff S20 upgraded with i4things example - feel free to switch it ON or OFF :) it actually goes On or OFF :)
    www.b2net.net/wimbledon/me_l.html
    example : github.com/i4things/NodeAPI/tree/master/examples/ESP8266-01/1CH_RELAY/thing

  • @ThatGuy-nv2wo
    @ThatGuy-nv2wo Před 7 lety

    Title spelled wrong, missing "h"

  • @franzmaurer2744
    @franzmaurer2744 Před 7 lety

    Hi Andreas,
    hopefully you can help me out.
    I installed the Raspberry Pi Zero W DietPi with fixed IP address 192.168.1.5
    Starting from a PC 192.168.1.1 I get Peter's menu and unning Node_RED, SqlLite, etc works fine. MQTT messages flow constantly in that environment. Settings in Node-RED for a MQTT node: Server: 192.168.1.5, Port 1883, no SSL, Client ID blank, Security: blanks, use legacy MQTT 3.1 support selected.
    I want to add Sonoff MQTT functionality. After several trials I ended up with Arendst Sonoff-Tasmota code, which loads fine on the Sonoff Basic. I get the Sonoff Basic menu on my PC or smart phone and I am able to manipulate the Sonoff using the console and the commands from
    github.com/arendst/Sonoff-Tasmota/wiki/Commands
    It uses the PubSubClient for MQTT from knolleary.net and the latest Sonoff-Tasmota firmware 5.1.320170520.
    The standard sonoff.ino code is used on the Sonoff. In user_config.h is defined:
    #define MQTT_HOST "192.168.1.5"
    #define MQTT_Port 1883
    #define MQTT_USER ""
    #define MQTT_PASS ""
    My problem: I cannot connect via MQTT to the RPi (the WiFi connection is OK). Error message is:
    MQTT: Attempting connection...
    mDNS: Query done with 0 mqtt services found
    MQTT: Connect FAILED to 192.168.1.5:1883, rc 5. Retry in 10 seconds
    rc= 5 means: MQTTCONNECT_UNAUTHORIZED - the client was not authorized to connect.
    So I guess the client MQTT_USER is not really empty or the RPi does expect some user information.
    Do you have any clue how to get connected from the Sonoff to the RPi DietPi MQTT?
    Thanks in advance.
    Franz

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      I would check the broker with MQTTlens (a Chrome add-on). Then, you see, if it works without user/pwd. Or you check the Mosquitto docu on how to switch it off.
      Make also sure that mosquitto really runs (by using mosquitto_sub and _pub), and mosquitto -v to check what happpens.

    • @AndreasSpiess
      @AndreasSpiess  Před 7 lety

      +Franz Maurer Glad to read that it works now...

  • @dijoxx
    @dijoxx Před 4 lety

    The video itself is good, but I really dislike the "without coding" part. This approach adds a lot of external dependencies and complexity instead of doing it in a lean way with the code. Also takes away all the fun and geekiness of the maker spirit.