#354

  Переглядів 211,232

Andreas Spiess

Andreas Spiess

3 роки тому

Tasmota and ESPHome, together with Home Assistant (Hassio) are covered in many videos for Home Automation. Most of them concentrate on flashing and integrating readily available devices and sensors. But which framework is better also for our do-it-yourself sensors, for ESP32 boards, and for deep-sleep? Tasmota or ESPhome? Or none? You will know the answer at the end of the video
I am a proud Patreon of @GreatScott!, @Electroboom, @Electronoobs, @EEVblog, and others
Links:
ESPhome: esphome.io/
Tasmota: github.com/arendst/Tasmota
VEML6070/75 UV: s.click.aliexpress.com/e/_dZs...
TCS34725 RGB/IR: s.click.aliexpress.com/e/_d6K...
TSL2561 Lux: s.click.aliexpress.com/e/_d7y...
ESP32 board used for this project: www.aliexpress.com/item/32845...
The links above usually are affiliate links which support the channel (no additional cost for you).
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com/sensorsiot
My Patreon Page: / andreasspiess
Discord: / discord
If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel
My Amazon.com shop: www.amazon.com/shop/andreassp...
For Banggood bit.ly/2jAQEf4
For AliExpress: bit.ly/2B0yTLL
For Amazon.de: amzn.to/2r0ZCYI
For Amazon UK: amzn.to/2mxBaJf
For ebay.com: ebay.to/2DuYXBp
profile.php?...
/ spiessa
www.instructables.com/member/...
Please do not try to Email me. This communication channel is reserved for my primary job
As an Amazon Associate, I earn from qualifying purchases
#nomidrollads

КОМЕНТАРІ: 642
@robert797905
@robert797905 3 роки тому
I like the way you covered these two very thoroughly. Thanks for this video!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad you liked it!
@Inspironator
@Inspironator 3 роки тому
Me too.
@TheHookUp
@TheHookUp 3 роки тому
Awesome video, pretty much the same conclusions I've come to: 1. Tasmota is easy and works really well for pre-defined products 2. ESPHome can allow non-programmers to get a "good enough" configuration for their home built projects, but if you already know how to write code in Arduino you are probably still better off writing your own custom firmware. For the OTA tasmota deep sleep on the roof problem: Send an MQTT message with retain, that way when Tasmota wakes up the next time it will grab that message and prevent deep sleep. After you make your update just send a blank retained message to that MQTT topic to clear it out.
@AndreasSpiess
@AndreasSpiess 3 роки тому
I saw the trick with the MQTT message and I thought I mentioned it in the video. The only problem is that I have to wait until it wakes up the next time. This is no problem if it is every 10 minutes... I assume not many people use these frameworks with deep-sleep. Otherwise, maybe somebody would have included this function into the administration: MQTT message sleep off, OTA, MQTT message sleep on... But anyway, I do not update my running devices that often.
@fuzzie4755
@fuzzie4755 3 роки тому
@@AndreasSpiess The only way to shorten the deepsleep is an external reset switch that you can reach. Maybe coupled with the deepsleep switch I mentioned above. To have no access to the device during the deepsleep is the nature of this feature. You can use rules to check is there is a new OTA update and go for this. But this will increase the uptime again and does not make sense in my mind.
@tfdsu
@tfdsu 3 роки тому
​@@AndreasSpiess, true, you can *deep-sleep.prevent* *on_message* and it's generally always good thing to *fast_connect: true*, unless you have really complex Wi-Fi roaming.
@dl8cy
@dl8cy 3 роки тому
Nice to see that the weekly publishing is back ... thanks for the video
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome! The holiday are over ;-)
@maxvandenberk7506
@maxvandenberk7506 2 роки тому
You are drawing me in to creating my own sensors and actuators for my home. The structured way you explain things is very helpful. Many thanks!
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome!
@Michaelguaylambert
@Michaelguaylambert 3 роки тому
I tried both. ESPHome is much more powerfull. You can do data treatment on the device itself before sending it to Home Assistant and avoid ugly data entering Home Assistant.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Also an interesting aspect. Thanks for mentioning
@JohnBackstrand
@JohnBackstrand 3 роки тому
Yeah, it's actually very useful for noisy and unreliable sensors!
@aeljandro2
@aeljandro2 3 роки тому
Hi Andreas, thanks for all these videos. I've learned a lot from you. You're a good teacher. 👍👍👍🦾
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thank you for the compliment!
@fredflintstone8048
@fredflintstone8048 2 роки тому
I wanted to take a moment to thank you for making this video. I'm running HA in a virtualbox VM at the moment while I await my pi to arrive. You provided some key information that I could not find in other videos regarding getting the first binary into my NodeMCU so that I can continue with OTA uploads. All the other videos had demos of ESPHome Add-on having ESPHome-Flash built in, which mine doesn't. You pointed me in the right direction with the download binary, and I found ESPHome-Flash executable for windows on the web and downloaded it.. All went well after that.. This NOOB thanks you very much for that, as well as the comparison which helped me to know what kind of options I have for working with these devices. I too have been writing code in C++ in the Arduino IDE for my ESP8266s and Arduinos for years doing all sorts of projects, some with web front ends. I'm just now starting to come up to speed in the world of Home Assistant, MQTT, and this way of building applications for integration of many devices not wanting to reinvent the wheel that so many others have worked so hard to build, and nicely.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you. You find also other videos about this topic on the channel...
@martyewise
@martyewise 3 роки тому
Very nice, as always, and precisely relevant to my current project. Thanks again.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad to read that it helped. I had this since quite some time on my list. It is always good if you know such things before you start to program...
@chellalialhcen
@chellalialhcen Рік тому
Woooow it's really a great work. Thank you so much for this detailed long video.😊❤
@AndreasSpiess
@AndreasSpiess Рік тому
My pleasure 😊
@mr.anonymous298
@mr.anonymous298 3 місяці тому
You are really a great teacher, sir. I appreciate your efforts.
@AndreasSpiess
@AndreasSpiess 3 місяці тому
Thank you!
@TZ500J
@TZ500J 3 роки тому
As usual nice video :-) There is another good project especially for esp8266, called ESPeasy. There are a lot of sensors, displays etc. supported
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thanks for the hint. I will have a look at it.
@LarryKapp1
@LarryKapp1 3 роки тому
Yes that is the one I have used - here is more info www.letscontrolit.com/forum/viewforum.php?f=1
@TZ500J
@TZ500J 3 роки тому
or here ;-) www.letscontrolit.com/wiki/index.php?title=ESPEasy
@PhG1961
@PhG1961 3 роки тому
@@LarryKapp1 Thnxs Larry ! It looks interesting !
@TD-er
@TD-er 3 роки тому
Thanks for pointing it out :) @Andreas Spiess, I am the maintainer of ESPEasy, so if you run into things, you can always ask. I will now continue watching your videos, to hopefully learn something myself as I usually do from your videos. @TZ500J, the ESP32 is also supported, even with Ethernet if you need it. Just a few more links: github.com/letscontrolit/ESPEasy ReadTheDocs: espeasy.readthedocs.io/en/latest/
@richard_wenner
@richard_wenner 3 роки тому
I've huge respect for the hours of work that must have gone on in the background, that allows you to display this level of experience! Well done GWTSA :) (Not my best English sentence :) )
@AndreasSpiess
@AndreasSpiess 3 роки тому
The video became a little longer than anticipated. But I was without ghost this week. So it was no problem. I had to look up GWTSA. Google said: Gamma-Weighed Two-Stream Approximation ;-)
@richard_wenner
@richard_wenner 3 роки тому
@@AndreasSpiess I'm never without my Gamma Weighted Two Stream Approximation but it will not be too long before it switches to 'guy with ....' as a tribute :)
@fibranijevidra
@fibranijevidra 2 роки тому
Thanks Andreas. Fantastic analysis and presentation as always.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad you liked it!
@klassichd10
@klassichd10 3 роки тому
Thanks for the great comparision. I use the old fashion method for the most of my ESP-based sensors. But I also tested Tasmota for sonoffs. ESPEasy for a simple S0 counter and ESHome for a CO2 sensor, because only here I could switch off the autocalibration of the CO2 sensor and could easily use an ESP32. All are running stable. BTW, the coolest sensor is the MLX90614ESF Far IR sensor. Using this and ambient temp , I calculate the cloudage. Helpful an unusual.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Interestingly you mention the MLX90614. I have one here, but not in the box "IR sensors" because I bought it as a temperature sensor ;-) I definitively have to try this one. Thanks.
@klassichd10
@klassichd10 3 роки тому
@@AndreasSpiess Yes, that is correct, it is a contactless temp sensor using the IR Radiation of an object.. Max Planck's groundbreaking finding and formula shows the realtionship to temp. I insert the sensor in a cable gland, facing it directly to the sky. no glass or anything else. in front of it
@klassichd10
@klassichd10 3 роки тому
Btw: I wrote more on the topic of measureing cloudage in ioBroker Forum and Homematic Forum forum.iobroker.net/topic/32195/himmelstemperatur-bew%C3%B6lkung-scheibenvereisung and homematic-forum.de/forum/viewtopic.php?f=27&t=40624&start=20#p574687
@ShALLaX
@ShALLaX 3 роки тому
Great video, as usual. If you’re using Home Assistant, to me it seems like the logical choice is ESPHome - purely because of the integration. I really like the YAML approach. I have around 23 devices in ESPHome, however they’re mostly Shelly 1PMs. Using YAML, I’m able to create templates and then include them into the device config using a YAML directive to avoid having to copy and paste the same thing dozens of times. The individual device scripts define variables to hold the unique device parameters (such as names), and these are used as tokens in the template. I also use variables to control the logic of how the particular device behaves e.g. Does it power on after a power failure, stay off or return to its previous state? Does it automatically switch on after being switched off (useful for stuff you might want to remotely switch off, but want to guarantee it switches back on - imagine using this to switch off your modem remotely to force it to power cycle). I feel it’s all very neat, tidy and modular. The YAML also has some pretty powerful directives and logic. For example, I’m able to detect the device temperature or current draw and act on it (e.g. to shut down when the device overheats or draws too much power). I can even write persistent data to the ROM to put the device in a “fail safe” state so that it won’t reenergise the relay until the overheat condition has been cleared manually. I wouldn’t like to put this kind of automation at a higher level. It really needs to be on the device itself in case Home Assistant is unavailable for some reason during an overheat. I like that I have the YAML that defines the full functionality of the device - that’s all I need. If I lose my device, I buy a new one and reflash it with the firmware derived from the YAML, and it behaves exactly as the device it replaced. The integration with the Home Assistant native API is also excellent. No need for MQTT. Add a sensor, and it just magically shows up in Home Assistant. You can even pass data from Home Assistant back into the device (such as acting on a button being pressed on another device).
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thanks for sharing your experience. A lot of interesting use cases to consider. I first have to get into HA. Currently I am on node-red...
@dougle03
@dougle03 2 роки тому
@@AndreasSpiess Home Assistant and Node Red work well together. Automations in Home Assistant are quite basic, whereas in NodeRed the sky is the limit. Note that you can run ESPHome in docker, so you don't 'need' to use the ingress version within Home Assistant.
@c1ph3rpunk
@c1ph3rpunk 2 роки тому
I’m interested in this templating approach in the YAML, can you share some example code or pointers to show how it’s implemented?
@ShALLaX
@ShALLaX 2 роки тому
@@c1ph3rpunk basically, split your sensors and switches out into separate files and include them all in the top-level device file: substitutions: # Unique name for the device, also acts as the host name. name: "shellypmbathroomfan" # Friendly name for display in Home Assistant. friendly_name: "Shelly PM Bathroom Fan" # Supports ALWAYS_ON and ALWAYS_OFF, however the latter is somewhat # meaningless if force_switch_back_on is true. This would cause the relay to # switch off during a reboot then switch back on after the # "force_switch_back_on" timer expires. RESTORE_DEFAULT_X are not supported # as this would require flash writes on each relay toggle, whereby reducing # the life of the device. default_mode: ALWAYS_ON # Set to true to force the switch back on after a delay when switched off. # Useful for a remote powercycle that would cause the remote client to lose # connectivity during the power cycle. force_switch_back_on: "false" # Disabling this is sometimes required for devices that consume a high amount # of current for prolonged periods. support_overheat_protection: "true" # Never a good idea to disable this as the device could catch fire or be # fried. support_overcurrent_protection: "true" ### Timer-related settings ### # Enables or disables the automated power-off timer. timer_enabled: "false" # Sets the duration, in seconds, after which the switch to turn off once # it has been turned on. default_timer_duration_seconds: "0" ### End timer-related settings ###
@eerorossi
@eerorossi 3 роки тому
Thanks for your excellent videos Andreas! Did not know about tasmota-display, but now I know✌
@AndreasSpiess
@AndreasSpiess 3 роки тому
I never used it, I just saw it during the making of this video
@tonysfun
@tonysfun 3 роки тому
I'm learning something new every time I watch Andreas!!! Andreas, you put smile in my heart and brain and I learn and learn more and more! Thank you for your hard work. (PS: I was under the Corona with my wife, so it took little time out of learning - that was the hardest part! Now we are like new again!)
@AndreasSpiess
@AndreasSpiess 3 роки тому
I hope everything went well! It seems that younger people generally suffer less. And now you are most probably immune, which is a good thing.
@tonysfun
@tonysfun 3 роки тому
@@AndreasSpiess At 65 I'm in the zone where it could go either way, but despite many other health problems it was "doable" and I didn't need any special medicine. If they would give me the same stuff as to the President Trump, I think I would take it. But it was like a cold and ZINC and lots of water and little food with apples and oranges helped also. Thank you very much Andreas!!!
@tonysfun
@tonysfun 3 роки тому
@@AndreasSpiess You are right, but once your age is over 65, it takes a long time to regain just most of your previous energy and brain! I'm glad not much damage so far, but it keeps testing you weeks and weeks after your main symptoms and temperature are gone.
@JohnCookNet
@JohnCookNet 3 роки тому
Thanks for sharing your observations. Well done Sir!
@AndreasSpiess
@AndreasSpiess 3 роки тому
My pleasure!
@TradieTrev
@TradieTrev 3 роки тому
Both projects are great IMO!; It gets you balls deep into the software engineering process. Learning the rules / automations really makes a device smart.
@AndreasSpiess
@AndreasSpiess 3 роки тому
I had to do it for a device for my brother. But I needed help. It was too complicated for me :-(
@domenicopalomba
@domenicopalomba 3 роки тому
As usual the scientific attitude in measuring based on real facts! Nicely done Andreas! I think an intermediate layer between ARdiuno IDE and tools like EspHome and Tasmota is the microPython. Flexible and simple enough at the same time...
@AndreasSpiess
@AndreasSpiess 3 роки тому
That was my idea when I made the video about it. But read once the comments :-(
@olafschermann1592
@olafschermann1592 3 роки тому
Great comparison. Thank you for all your research work and sharing.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad you enjoyed it!
@erich7431
@erich7431 Рік тому
Hi Andreas, first off, thanks again and again for all the content you are delivering. There's been significant development lately around both Tasmota and ESPHome. I would really love having a follow up video including those feature and your updated ranking. Also I have heard about ESPEasy but did not have time to have a deeper look. Looks like more an easy & straightforward way to integrate ESPxx...but probably not for the advanced users....
@AndreasSpiess
@AndreasSpiess Рік тому
Because I changed to Home Assistant, I usually use ESPhome. It is good enough for most cases. I think, the differences between the two platforms became very small. HA users will use ESPhome because it is so easy to setup. And the rest uses Tasmota (because it is so easy to setup) ;-) But the next video will be about another specialized platform: OpenMQTTGateway. You will see, why.
@erich7431
@erich7431 Рік тому
@@AndreasSpiess looking forward to it thanks !
@TonyPowell_Munich
@TonyPowell_Munich 3 роки тому
Andreas, very much appreciate your content. Learned a lot on this one!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad it was helpful!
@stefanf.5439
@stefanf.5439 3 роки тому
I saw esp home some weeks ago, and had not the time to read deeply into it. Thanks for the overview.
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome!
@guatagel2454
@guatagel2454 3 роки тому
If it weren't for Andreas' videos, I would never have dared to enter the world of ESPs. Now I make my own boards from ESP12F modules, both solar and battery powered. Thank you!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Great! I am glad I had a positive impact.
@BachtiarDwi
@BachtiarDwi 3 роки тому
Wow! a very comperhensive comparison, thanks Sir!
@AndreasSpiess
@AndreasSpiess 3 роки тому
My pleasure!
@WacKEDmaN
@WacKEDmaN 3 роки тому
very nice and concise video Andreas..keep at it mate!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thanks, will do!
@andrewlhoover
@andrewlhoover 3 роки тому
Great side-by-side video. I think you definitely captured the fundamental pros and cons of each. Personally, I think of tasmota as excellent control software (button, switch, relay devices) and ESPHome as very good data collection software (sensor nodes). I still primarily write my own software for many of my devices but have found that if I want to control something or get simple data, I gravitate to one of these two.
@AndreasSpiess
@AndreasSpiess 3 роки тому
So I think we are in line...
@javierguerrerob
@javierguerrerob 3 роки тому
Excelent work Andreas!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad you like it!
@electromatic138
@electromatic138 3 роки тому
Great Scott released a video on esphome today. What a coincidence.
@AndreasSpiess
@AndreasSpiess 3 роки тому
I saw it, too. Amazing.
@p1366
@p1366 3 роки тому
Thanks Andreas, very clear and understandable video. Your videos are still the best in the business!. My favorite is Tasmota, this is where I learned all about MQTT. Tasmota documentation is also very high quality. I use my Tasmota devices with Hass.io, I really like that, as well as controlling a Tasmota device with a controller (Hass.io) you can make your device work autonomously with rules, so if the device becomes isolated from the controller, it can still be useful with working with its own rules-based "automatons" . P
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thank you! I also found the Tasmota documentation very useful. However, rules are not easy for a beginner ;-)
@going_somewhere1882
@going_somewhere1882 3 роки тому
if I could I'll hit to like your video ten times. Very informative!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thank you!
@wassfila
@wassfila 3 роки тому
Excellent content, thanks for the informative video. Both Tasmota and ESP Home are winners as they help the DIY community have more choices, which help look at the same problem from different perspectives. Maybe in the future we could look at this sensors abstraction from scripting perspective ? Python and Javascript on microcontrollers ?
@AndreasSpiess
@AndreasSpiess 3 роки тому
Maybe these languages will get their space also on micros. Till then we have to select between C++ and libraries or frameworks like the ones shown here.
@terrentech
@terrentech 2 роки тому
Excellent video. Please do it again, updated for a current comparison. THANKS!
@AndreasSpiess
@AndreasSpiess 2 роки тому
So far I have no such plans. But you never know ;-)
@VolkerKtnbch
@VolkerKtnbch 3 роки тому
Very good video. Saved me a lot of time researching
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad it helped
@PeterPan-yu7pe
@PeterPan-yu7pe 3 роки тому
Greart and informative video, as usual!! At 9:42, you describe, that only OTA is available. I found on my RPI4 that when I connect the ESP to the USB connector of the RPI and then restart the ESPHome service in Home Assistant, the board will show up in ESPHome and I can Choose betwenn OTA and USB update. With this method, I can program virgin Boards directly from Home Assistant
@AndreasSpiess
@AndreasSpiess 3 роки тому
Yes, with HA it is possible.
@dragosadriananton
@dragosadriananton 3 роки тому
Thank you very much for video, really appreciate it. One important think: how are both integrate with HA, at this point I will give a point to EspHome as it have direct integration with HA. Tasmota is using a middleman, MQTT, to do this job.
@mulroneyp
@mulroneyp 3 роки тому
HiAndreas. Love your work! I like you and many others use both ESPHome and Tasmota, it depends on the use case. One thing I would point out for ESPHome is that if you are using Wemos D1 Mini, NodeMCU or TTGO ESP32 Cams you can use a standard micro USB to upload your ESPHome config. Just plug the USB into the Home Assistant Host and restart the ESPHome Add-On. Then you will see something like /dev/ttyUSB0 (USB2.0 - Serial) as an option for upload. This helps avoid the need for connecting jumpers to a UART connector. After that it is easy to do OTA updates.
@AndreasSpiess
@AndreasSpiess 3 роки тому
As mentioned: In my case it was a Docker customizing which prevented USB upload (I used IOTstack).
@Mr4yda4ok
@Mr4yda4ok 3 роки тому
Thanks for the video. Previously I have used balena os for pi(grafana, mqtt, db and custom application for data processing etc) and mongoose os for esp, found it pretty easy to use. Now want to try ESPhome.
@AndreasSpiess
@AndreasSpiess 3 роки тому
It should nicely fit into your Pi tools (I made my tests with node-red).
@indigonils
@indigonils 3 роки тому
Very well done overview! I've tried Tasmota a little bit, but found it harder to understand, and ESPhome covers my needs so far. But it's good to know how the two differ. Maybe I'll need Tasmota for something in the future. Thanks! Protip: ESPhome (in Docker) can upload over usb, but you need to first connect your ESP device to the computer running ESPhome, and then restart the ESPhome container. Then you should be able to select something like /dev/ttyUSB0 instead of OTA. (On Linux, I don't know about Windows.) And you can run the ESPhome dashboard without HA, if you install ESPhome manually with the "getting started through command line" guide. So it's not as straight forward, but possible.
@AndreasSpiess
@AndreasSpiess 3 роки тому
1. I assume it depends on the docker setup if you can use USB. I used IOTstack 2. As mentioned the video I tried to set it up but, as a Linux noob, I gave up after a while :-(
@dougwilkinson4624
@dougwilkinson4624 3 роки тому
I started using Tasmota after I lost IFTTT support for my lightbulbs and smartplugs. Using Tuya-convert made this possible. I went with Tasmota by default and like it so far, but have not used ESPHome or ESPEasy yet (I was too afraid of bricking my lights/plugs to explore much). As someone who has written code using Arduino/libraries for sensors/automation and then again in micropython, I was hesitant to use a framework, but didn't have a choice on these limited devices. I'll still use my own code for those things that require a more custom approach, but it's nice to let someone else worry about bug fixes for some things! And some things are just not possible with micropython for timing reasons (like IRremote) which I have to say works very well with Tasmota at least. I do as much using micropython as possible. Also use MQTT with HASS in docker. Thanks Andreas for the video and nudge to look at some of the other options!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thank you for sharing your experience. IFTTT seems to go "pro" and "paid" anyway...
@jackhoffman6120
@jackhoffman6120 3 роки тому
You never cease to amaze me. Like a heroin addict I am a "knowledge addict". So just like a junkie on the streets of Amsterdam who strolls the streets (That's what they used to do in the 90's. Perhaps Amsterdam has become more genteel these days.) for their next hit, I troll the internet for my drug. Unexpectedly I discover your UKposts "hit of knowledge" just as a junkie might find a loaded syringe to feed their addiction, your video satisfied my addiction for knowledge just now. This video was very interesting and drove home how difficult it is to keep up with technology. As soon as I begin to believe that I might understand a subject, I come to the realisation how little I really know. Your videos lay the foundation for further research. I often stop your video mid stream because unintentionally you mention one little thing (such as Adafruit's I2C addresses info in this video) and I'm off making "research notes". Keep pushing your "drugs". There's plenty of addicts out there who need them. I'm sure the next "hit" is going to be as good as the last.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thank you for your nice words. I usually have people like you in mind when I create my videos. I invest some time and you get a quick overview, but not wothout some details.
@ronaldhofman1726
@ronaldhofman1726 3 роки тому
One can do a request to the tasmota developers to add a sensor it is frequently updated, that's really good!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Good to know...
@hanseich
@hanseich 2 місяці тому
Thank you so much for this very detailed video. I just started to program a sensor in Arduino. Spent days in coding, but now I’m second guessing my progress. I’d love to use ESPHome for it, because of how I think I could integrate lots of other devices, but it seems very cumbersome to get it going. Have there been any significant changes in the last three years? It looks like the supported devices by ESP Home has grown significantly since the making of this video.
@AndreasSpiess
@AndreasSpiess 2 місяці тому
If you use Home Assistant, ESPhome is a good choice (if your sensor is supported). Otherwise maybe you find support in Tasmota. And watch my video of next Sunday ;-)
@timfoster5043
@timfoster5043 4 місяці тому
Good analysis. Thanks.
@AndreasSpiess
@AndreasSpiess 4 місяці тому
You are welcome!
@josefleyva_xizuth
@josefleyva_xizuth 3 роки тому
Your English is very clear, Hi from Mexico
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thank you!
@mibols
@mibols 3 роки тому
Thanks for the great video. I have not heard of tasmoadmin before. I use tasmota most often (also because of tuya-convert of several Gosund SP111 power monitor plugs). Also ESPeasy for an S0 counter.
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome!
@JAAPOP8
@JAAPOP8 3 роки тому
I like to think we're of the same age and we probably have similar backgrounds in education and profession. I'm sure we share the same interests and hobbies. You always impress me by being so productive and skilled in the field. Today again! Thank you for sharing!
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome! I am 64, a trained EE with a PhD in Business Administration. An interest in computers and RF...
@JAAPOP8
@JAAPOP8 3 роки тому
@@AndreasSpiess Here is why I said ".. I LIKE to think..." 1. I am older (67) 2. I do not hold a PhD 3. Long ago I was a trained EE, but then I became a manager of large high tech development groups. I now try to do small scale what I always talked about :) I am - like you - interested in computers and electronics (digital and analog). RF is still a lot of "magic" to me.... :) Again THANK YOU for your channel! PS On being a Linux noob we can shake hands..... after Covid19 by the way. :)
@anthonycalia1317
@anthonycalia1317 2 роки тому
A lot has changed since you made this video. A new comparison may be in order as both tools have evolved significantly.
@AndreasSpiess
@AndreasSpiess 2 роки тому
So far it is not on my list. But HA is there. Maybe I will cover this aspect then.
@neagoecatalin879
@neagoecatalin879 3 роки тому
Thank you for sharing this! I was also trying to standardize the way how to handle the ESP32 programming. On the way I have also found this "My Sensors" using Arduino and which I like them very much when using battery and solar power because they use NRF24 radio and are very energy efficient. Regarding the ESP32 sleep mode activation from ESP Home, would`t be possible to create an automation into Home Assistant that calls the sleep mode right after receiving the data package from the sensors node? Just an idea, didn`t tried yet by myself.
@AndreasSpiess
@AndreasSpiess 3 роки тому
I got some hints on how to do sleeping, but I did not try so far.
@JohnnieHougaardNielsen
@JohnnieHougaardNielsen 3 роки тому
The TSL2591 can be used on the precompiled Tasmota sensors binary by deactivating the TSL2561 driver: I2CDriver16 0
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thanks for the tip. I will try it!
@pambucol
@pambucol 3 роки тому
You have really fantastic videos.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad you like them!
@gunnarstoa
@gunnarstoa 3 роки тому
My google search last night: Tasmota vs ESPHome
@AndreasSpiess
@AndreasSpiess 3 роки тому
So I had a nearly perfect timing...
@c1ph3rpunk
@c1ph3rpunk 2 роки тому
And once again, I go looking and you have the answer. It’s been a year since this was made but here’s a couple things I’ve found in the past few days. I have HA on a Pi 3 and under the current version you can install ESPHome firmware OTA, directly or via a serial connection (if so connected, ttyUSB, etc). It lists 4 ways to install it, can’t remember all 4 off the top of my head. I started with Tasmota on a Sonoff and a NodeMCU and discovered you can use Tasmotizer to flash the ESPHome firmware as well. I run a Pi 4 as my lab “workstation” and found that to be more reliable than every other method I tried. The ESPHome flasher won’t run on armhf/arm64/Linux, Tasmotizer does. My current complaint on ESPHome, which I do seem to prefer, is the lack of syslog support that Tasmota has. I want to centralize logging for debugging and security monitoring (using Splunk) and syslog is almost universally the glue we use to hold that all together. For the deep sleep can you force it to sleep when the work is done using the deep_sleep.enter action?
@AndreasSpiess
@AndreasSpiess 2 роки тому
1. Another viewer wrote that many things changed since I made the video. Sometimes my videos help such changes ;-) 2. If I remember right I managed to get deep sleep working. But I do no more remember, how.
@c1ph3rpunk
@c1ph3rpunk 2 роки тому
@@AndreasSpiess yea, was hoping my comments might help future content or folks watching the video, 90% of it still applies despite how fast the IoT world moves. Sleep is next up on my list to try on the NodeMCU (8266) and an ESP32 and I’m guessing you’ll have something to help. I really need to support your Patreon, excellent work my friend, excellent work.
@albertroswell
@albertroswell 2 роки тому
thanks for the video!
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome!
@carpov73
@carpov73 3 роки тому
Hello Andreas, you are always a step beyond 😊, Thank you. You did not spoke about Espurna, any reason for that?
@AndreasSpiess
@AndreasSpiess 3 роки тому
I used it before Tasmota. It is very similar, but I thought, Tasmota is more popular amongst my viewers.
@michaelbatchelder
@michaelbatchelder 3 роки тому
Watch many of you guys and I appreciate the tutorials. I currently have both tasmota (shelly 1) and ESPhome (8266 with different sensors) running. Still have issues setting up stuff, actually made document explaining in my way to make it easier for me. Next project is to try to control a ceiling fan and the light associated with it. Any suggestions are welcome. I still have yet to flash my tuya smart plugs... also on my list. Another question, any smart light strip that can be run on home assistant, my current one only is recognized by Alexa. Oh and is there a way for home assistant to play announcements through Alexa?
@AndreasSpiess
@AndreasSpiess 3 роки тому
Creating documents for installations definitively is "best practice". It saved my a... quite a few times.
@IvanIvan1974
@IvanIvan1974 3 роки тому
I'm very glad to hear about "the son off switches" again, thanks.
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome!
@BradNagelBagel
@BradNagelBagel 2 роки тому
Great Video! Thank You
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad you liked it!
@randyarrasmith2013
@randyarrasmith2013 3 роки тому
Great video. All your videos are great. I did want to add to this one though: you gave a point to Tasmota in the section that discussed the OTA as the only option for ESPHome on initial flash and as a work around had to download the binary and use the flasher. Actually that is how I do it too but only because the computer running ESPHome is upstairs for me. If on the same computer running Docker, simply map the usb port to the docker container (or run in privileged mode). Then the USB device will be in the dropdown as well. Believe you also said that Tasmota has a nice one place to see all Tasmota devices but ESPhome does not, yet you show the page where the OTA drop down is which shows all the devices. It is for this reason I use a custom panel to being ESPHome in home assistant so I can see all esp devices in one place. So, anyway, just those 2 minor things I wanted to comment on. Going either route (Tastmota vs ESPhome) is 50/50 in most cases and probably will remain that way. I like ESPHome, especially being able to use any arduino library to make a custom component or even write my own.
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are right with Docker. I used IOTstack and it is not implemented there. Maybe they will change it in the future. It was not a big deal for me. Concerning TasmotaAdmin: I said that it shows much more information.
@MoDNcA
@MoDNcA 3 роки тому
You really should have a look at ESPEasy!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Noted!
@derschnurlich1512
@derschnurlich1512 3 роки тому
Ahh , well, I thought, damn why am I using something so exotic
@fernand237
@fernand237 3 роки тому
Or ESPecial, for dynamic automation on esp32
@JLBaselgia
@JLBaselgia 3 роки тому
I like your IKEA box 👌
@AndreasSpiess
@AndreasSpiess 3 роки тому
It is quite new and ideal for light sensors because it is not plastic
@FilipeNeto616
@FilipeNeto616 3 роки тому
Is the home assistant you show in the video installed through IOTstack? I'm asking this because I've notice you have supervisor and I was not able to install it with the supervisor. Thank for sharing your knowledge with us 👍 By the way, my personal choice is tasmota compiled by myself using vscode and platformio. It's not a walk in the park, but it's also not so difficult. With the override feature you can select the sensors to be included in the compiled file.
@AndreasSpiess
@AndreasSpiess 3 роки тому
I used standard IOTstack. And thank you for sharing your setup!
@GodzillazzZ
@GodzillazzZ 3 роки тому
i love Tasmota.. thx for great info sir
@AndreasSpiess
@AndreasSpiess 3 роки тому
My pleasure
@MartinKL
@MartinKL 3 роки тому
Thanks! very informative
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad it was helpful!
@fahnleindieselschweif5022
@fahnleindieselschweif5022 3 роки тому
Thank you very much for your videos. For battery operated sensors I would like to mention mySensors with a mqttEthernetGateway.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Mysensors support also other RF technology. Which is very good for deep sleep. Thanks for the tip!
@scorfman1
@scorfman1 3 роки тому
I use tasmota and esphome for many cots devices but I use mysensors for all my home built sensors. It has an important benefit in that it uses its own wireless mesh so only a single IP address and you don’t load your wifi with more sensors!
@StanleyProjects
@StanleyProjects Рік тому
Excellent video!
@AndreasSpiess
@AndreasSpiess Рік тому
Thank you very much!
@ByWire-yk8eh
@ByWire-yk8eh 3 роки тому
I've never made the Tasmota firmware work reliably on any of the multiple hardware platforms I have. They hang. However, most of the more recent (a year or more) Arduino ESP8266 WiFi Server examples seem to be very reliable. I've had one that controls a single relay work perfectly for about 6 months straight. Same hardware I tried with Tasmona. But I must say I had two extended power outages (two hours and ten hours), and after power was restored, it came back up without any intervention. Also, I have another ESP8266 WiFi Server that controls 20 GE Low Voltage relays, and it's worked perfectly for about 3 months so far.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thank you for sharing your experience. Fortunately I do not have a lot of power outages here...
@icedguy
@icedguy 3 роки тому
Man , you are the best!
@AndreasSpiess
@AndreasSpiess 3 роки тому
:-)
@Thamli
@Thamli 3 роки тому
Isn't there a ESPhome admin page add-on in HASS? I've downloaded it recently but not used it yet, using Tasmota mostly and not extensively. Also a superb video, a Belgian beer goes your way sir! A typical Swiss decision at the end 🤣
@__MJ__
@__MJ__ 3 роки тому
You can display esphome in hassio menu. Base status check is innode panel - red means not working, green ok. To check another things you can use special sensors (uptime, restart node, wifi status etc.). ESHome talks to HA via API - it is better and faster then mqtt (also more reliable). Tasmota is cross platform solution. ESPHome is designed to work with HA - with all its benefits. If you using HA ESPHome is only one good choice :)
@AndreasSpiess
@AndreasSpiess 3 роки тому
I used the Home Assistant add-on. But mine did not show a lot of info. It mainly was used for the deployment of the firmware. And I based everything on MQTT because this is an open standard and many of my subscribers do not use Home Assistant.
@jamesw5584
@jamesw5584 3 роки тому
I use node red for my home automation, I tried home assistant but I think you have a lot more control using node red. For instance my LoRa sensors all require some level of processing and I find this easy to do in node red and to display that information is simple. Same with the RF bridge and send and receiving raw codes. Im not sure if you can go down this far down the layers on the home assistant. The main draw back is remote access but thats no issue since I run ipsec server on my router and just dial in from my phone. Notifications are by email or text . I dont have to rely on an external systems this way
@AndreasSpiess
@AndreasSpiess 3 роки тому
It is well possible you could get everything done by HA using tricks. But as a casual user I forget a lot of these tricks. This is why I stick with Node-red for the moment. A little bit of JS is "unforgettable" for me...
@et752
@et752 3 роки тому
I peronally i use homeassistant as the central hub, but NodeRed (as an add in) for all the automations.
@dave_dennis
@dave_dennis 3 роки тому
Nice job selecting those AMS sensors. 😉. FYI that TSL2561 was the sensor used in the first iPhone. DE N5BOC
@dave_dennis
@dave_dennis 3 роки тому
Oh and you can get IR from the TSL2561 if you read only CH1. Throw away the data from CH0.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thanks for the advice. I have to try the trick with CH1. BTW: I programmed the redit talkgroup on my DMR radio and already talked with a US guy. So it seems to work also for DX ;-)
@Giblet535
@Giblet535 3 роки тому
I've been using Tasmota since the project started. I thought it was weird, you posting a video about Tasmota, since I built a custom ESP32 Tasmota (beta) firmware last Monday for an unsupported device. The .bin uses about a third of the available space on a WROOM-32U module. The project has been in use since last Monday evening and does what it needs to do. I only see Tasmota as the easiest way to get a web interface, MQTT, and OTA onto an Espressif project in a short time frame (usually an hour or so). I don't see its shortcomings as shortcomings, but as features *I* didn't implement yet. Using Git effectively is key to keeping my code and ever-changing Arendst's code in sync. I looked at ESPHome & decided that it's more difficult to use as a standalone device. I'll look at it again in a year. I don't like Home Assistant, its interface, its runtime architecture, or its functionality. I installed it for three days, realized HA is trying to be all things to all people, does none of those things well, and will always be one bad update away from everything in my house breaking and an angry spouse giving me That Look. Again. She's tiny, but scary.
@AndreasSpiess
@AndreasSpiess 3 роки тому
I decided to not compile Tasmota because I assume most people will not do it. I also did not implement custom sensors in ESPhome, because I tried for one hour and was not successful. The charm of framework is that they are easy to use and Tasmota would not be so successful without Tasmotizer and the bin files. Look at Espurna which was probably earlier than Tasmota...
@wouladjecabrelwen1006
@wouladjecabrelwen1006 3 роки тому
You are so amazing teacher
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thank you! 😃
@ferencszabo3504
@ferencszabo3504 3 роки тому
I like both of them very much.My house is a mix of both devices.
@AndreasSpiess
@AndreasSpiess 3 роки тому
I think both have advantages and disadvantages. Glad we have choice...
@patrickmaartense7772
@patrickmaartense7772 3 роки тому
andreas, there is an easy Windows ESPhome package available , either py 3 or 2.7 then serial works easy from your ws
@AndreasSpiess
@AndreasSpiess 3 роки тому
I think this is what I tried to install. But on my Pi...
@pentispent
@pentispent 2 роки тому
Many things changed with Tasmota 9.4 I have successfully flashed ESP32 with the latest tasmota and I see that it has support for mqtt, knx and many sensors. Already tested with RF and IR, works perfect, using mqtt and knx to control them
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you for your info. Just upgraded one of my Sonoffs today...
@joba1560
@joba1560 3 роки тому
Made my day at 16:25 mentioning my i2c id plug&play idea :) If you need IR values from TSL2561, I could publish the raw values easily in tasmota. They are available anyways, since they are needed for lux calculation. Would that help?
@AndreasSpiess
@AndreasSpiess 3 роки тому
If I remember right: The 2561 worked, The 2591 was the problem.
@jamescullins2709
@jamescullins2709 3 роки тому
This may a bit off-topic but I installed ESPhome latest version into homeassistant and all worked except when you try to compile, It does not connect to the internet so can not access the LIBs. when it installs ESPhome Network it has this
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thanks for the tip!
@muctop17
@muctop17 3 роки тому
Prepare for a fast ride today: "Fasten seatbelts!" 😁😮😂
@AndreasSpiess
@AndreasSpiess 3 роки тому
And still, it became long...
@stefans9990
@stefans9990 3 роки тому
Thanks for an interesting video, Andreas. I can only really comment for Tasmota. It find it fine for simple easy jobs, and I like that they have added syslogd telemetry (syslog to UDP port 514), which is lighter weight than MQTT for interval based telemetry. But when it comes to automation on the sensor itself (not centralized via say Node-Red), I feel I want a little more flexibility. The Rules of Tasmota are a pain to edit, and they are sometimes a little cryptic. For example, if you want rules to only trigger once on change, you have to enter this command Rule 5. Doh? It's cool in ESPHome that you effectively write the C++ and upload, but that's still a pain to debug. What I actually want is an easy to use interpreter with web-based debugging/breakpoints so that I can mess with it in its installed location until I'm happy. Almost like MicroPython, but that is way too sparse to really use. The closest I have found is this Annex RDS platform (sites.google.com/site/annexwifi/home) - it's BASIC (yes really, welcome to the 1980's :-), but with a file manager, breakpoint and single-step debugging, and really cool webserver integration if you know a little about web programming. I am not involved in that project, so this is not an advertisement :-) I just find it a quite useful alternative.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thanks for sharing your experience. You describe exactly what I wanted to say about the layering. You get different things on different levels. It is always a trade-off between "speed of deployment" and "flexibility".
@seandtrue
@seandtrue 3 роки тому
FWIW, if you connect a USB-serial to your Home Assistant machine, ESPHome will discover it and let you flash firmware. This works even with a dockerized install of HA running on a virtual machine hosted on my home NAS. (The only funky step there was remembering to assign the USB port on the NAS to the virtual machine). The port can be found as an alternate selection to OTA in the selection list. As far as startup time for the deep sleep problem, if you assign the address yourself (or make a DHCP reservation for the node once one has been assigned, and configure it as static in the node configuration), startup time is much better. And if the OTA update is problematic with sleeping systems, they can always be taken back to the development environment and programmed with the USB connection.
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are right with the definition inside Docker. Maybe they add it in hte IOTstack prokect. Concerning fixed IP address: This trick works for all ESP sketches, not only the frameworks. For some nodes I am really happy they have OTA because it is a pain in the a... to remove them where they are ;-)
@erwinkooi6669
@erwinkooi6669 3 роки тому
And as it turns out, "it depends"... 🤓 I switched from Tasmota to ESPhome a year ago, as I like to have more control over functions and scripts inside the controller. But then, I am quite well versed in programming. For people getting started in home automation, I still recommend Tasmota.
@AndreasSpiess
@AndreasSpiess 3 роки тому
So we are "on the same page"... My Tasmota works fine on my Sonoff Dual for the lab.
@BlownMacTruck
@BlownMacTruck 3 роки тому
I agree. I love ESPhome because I come from a coding background and its workflow is super convenient to me (aka I'm used to compiling / uploading all from the command line and I can easily parse and edit YAML in various IDEs / editors). It's highly extensible with a bunch of its modules as well and I like that you can talk to Home Assistant directly without running through MQTT. Tasmota is a lot more of a pain for me, but I can see how people less enamored with coding would prefer it.
@jeevakkuwar
@jeevakkuwar 3 роки тому
But can we use an esphome device without home assistant just like we can with a tasmota device ? I don’t have home assistant, and I’m looking to make few smart switches, tasmota looks good but when I reset it, I lose all my configurations and have to configure it again after reset. What would be the best solution? (Without hone assistant)
@AndreasSpiess
@AndreasSpiess 3 роки тому
It seems you can use ESPhome without HA.
@marcdraco2189
@marcdraco2189 3 роки тому
Hi Andreas, one small point, for most ARM MCUs, there's no real advantage between C/C++ and assembler. This made me sit up and think and I've noticed that modern compilers can make very efficient code without having to use (very hard) C shortcuts. It makes for much more portable and readable code without sacrificing speed!
@AndreasSpiess
@AndreasSpiess 3 роки тому
And there are other languages like Micropython around the corner...
@marcdraco2189
@marcdraco2189 3 роки тому
@@AndreasSpiess LUA too for the ESP boards but I do like my C for crushing quarts into tiny spaces while annoying older C programmers by writing verbose code that compiles to almost nothing while remaining readable!
@jedandecko5585
@jedandecko5585 3 роки тому
Great analyses, thank you. Maybe when you low on ideas for new video you can setup small system, I am guy that learn best when you show me from ground up :) I know you have done it in 5-6 separate videos, each step, but mini series or one long video will push more ppl to try it and then you can identify problems for us simple comoners :) Thank you for sharing, big fun :)
@AndreasSpiess
@AndreasSpiess 3 роки тому
This channel is not for beginners. Otherwise it would be boring for the typical subscribers :-(
@BummelCr
@BummelCr 10 місяців тому
Hi, tolles Video! Ich vermute es haben sich mittlerweile ein paar Dinge getan bei den beiden Projekten. Ich stehe auch gerade bei der Entscheidung und wollte auch wegen dem ganzen Code Stuff mit WiFi, MQTT mit DeepSleep eigentlich auch doch lieber zu ESPHome greifen. Das ist aber leider - wie du schon sagst - nicht ganze so Flexibel wie ich es mir vorstelle. Mit eigenem Code bin ich erstmal schon verzweifelt das Aufgeräumt in Headers mit Wifi/Webserver usw abzulegen. Ich finde leider keinen für mich passenden Beispiel-Code der all das mitbringt was ich gerne hätte (wollte es eigentlich direkt mit VS.Code angehen und aufgeräumten cpp/header Dateien). Hast du zufällig deinen Code für deine Sensoren irgendwo online gestellt?
@AndreasSpiess
@AndreasSpiess 10 місяців тому
Für Standardsensoren verwende ich (als Home Assistant User) nur noch ESPHome. Für alles andere verwende ich die Arduino IDE wegen der Libraries und Beispielen.
@BummelCr
@BummelCr 10 місяців тому
@@AndreasSpiess die Frage war auch mehr, ob du zufällig deinen Code mit dem DeepSleep für deine Batterie/Solar betriebenen Sensoren irgendwo Online gestellt hast. Mich würde deine Lösung dazu mal interessieren.
@AndreasSpiess
@AndreasSpiess 9 місяців тому
@@BummelCr Ich habe früher einige Videos über deep-sleep gemacht. Das Prinzip ist allerdings sehr einfach wenn du MQTT verwendest. In Setup WiFi starten, Sensorwert lesen, und als MQTT Message senden. Du kannst das Beispiel aus der MQTT library nehmen (ich verwende üblicherweise PubSubClient). Such mal mit "mqtt esp32 deep sleep"
@pete.n.
@pete.n. 3 роки тому
Any details on the solar power solution?I would be very interestedin this in order to automate our chicken coop with ESPHome and homeassistant
@AndreasSpiess
@AndreasSpiess 3 роки тому
As said, I connected three sensors to a ESP32 and do statistics on the Pi.
@pete.n.
@pete.n. 3 роки тому
@@AndreasSpiess i was more talking about the solar power solution
@EsbenDamgaard
@EsbenDamgaard 3 роки тому
Configuring deep-sleep on esphome, you could instead of the timeout, create an automation on the device (although i have not tested this): sensor: - platform: dallas on_value: then: - deep_sleep.enter: deep_sleep_1
@AndreasSpiess
@AndreasSpiess 3 роки тому
Thanks. I think I would have to wait till the MQTT messages are sent before I start deep-sleep. I will have a look at it in the future.
@paulfontaine7819
@paulfontaine7819 3 роки тому
Very interesting thanks. For sensors, would you consider a zigbee or z-wave mesh network because they can be meshed, are fast, low power and do not put load on the already unreliable WiFi network?
@AndreasSpiess
@AndreasSpiess 3 роки тому
I made a few videos about zigbee and use it in my home. You do not get all sensors ready-made.
@RossReedstrom
@RossReedstrom 3 роки тому
Zigbee for sensors is an interesting idea. For makers, what's missing is the zigbee equivalent of the cheap esp wifi modules: a few dollars/euros for something you can program with free tools, and come with the radio comms stack already in place. The zigbee alliance is focused on manufacturers, not makers.
@AndreasSpiess
@AndreasSpiess 3 роки тому
I use Xiaomi sensors and a dongle for a few bucks. No need for anything else for the moment. I just use available sensors. The rest is the turf of the ESPs...
@Palominostudio
@Palominostudio 3 роки тому
Greetings Andreas, There's a lot of hardware and software solutions for the maker to tinker with these days. I thank you for creating these in depth reviews and tutorials on what there is and how to go about it. i currently have a bme280 connected to an ESP32 which is sat outside on my windowsill upstairs. It is nice being able to see the weather outside from my browser on my pc or my smartphone. I must get act together and arrange for it to talk to Profilab, as that does data capture well and can do the controlling of actuators if need be. We had snow in the western Cape on Friday and it's interesting to see that the air pressure drops by 10 hectopascals in Johannesburg at the same time, that's 1400 km away. It takes 2 days for the cold air to reach us here afterwards. Very interesting. I also had fun doing data capture by loading a 0.5 Watt pv array with a resistor, connecting it to an esp32 analogue input and graphing the solar radiation using Profilab. Very interesting how the solar intensity varies with changing weather conditions. Anyhow, taking up your valuable time by making you read a long text. Thanks for the video, it's approved. Kind regards, Duncan
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome! We also had snow this weekend in higher altitudes and it became quite cold where I am. The idea of my light sensor is exactly to see the correlations between the different components of sunlight throughout the year and find out, which one is best to steer my awning, for example.
@Palominostudio
@Palominostudio 3 роки тому
@@AndreasSpiess Yes, you need statistical data to build your control algorithm model on. Going to be interesting.
@SmithyScotland
@SmithyScotland 3 роки тому
I've been testing tasmota with a wemos d1 mini and wemos tft screen. Truly amazing what you can do with it. Shame the low power iot cricket by thingsonedge is closed source. Wonder if it will ever run tasmota
@AndreasSpiess
@AndreasSpiess 3 роки тому
They probably plan to make money...
@stoffl1y
@stoffl1y 3 роки тому
Good video, I use Tasmota with iobroker over MQTT this work pretty well. In Tasmota firmware i use normal sleep - for deep sleep i need to google more, to find the best practice. FOR power a normal 10 watt solar panel and a small akkupack.
@AndreasSpiess
@AndreasSpiess 3 роки тому
For most Tasmota applications, deep-sleep probably is not needed.
@TedMarkson
@TedMarkson 2 роки тому
Programming via USB is enabled on HASS/ESPHome addon when a supported device is detected, ie serial port. The device will show an item in that drop down that always says `OTA Over the air`. To see this plug a device into the hardware that runs HASS and check the drop down list.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you. I think it was because I ran it inside Docker.
@phinok.m.628
@phinok.m.628 2 роки тому
That's a very good summary. I also like your comparison between efficiency and flexibility, I think many people don't really realize this. For me personally, when I can, I like to use ready-made software like tasmota. But many times such software or even some libraries don't offer exactly the functionality that I want. So I end up having to write my own program. I have even written some assembly programs. But very rarely, since apart from memory and speed efficiency, assembly doesn't have many advantages compared to C. You can do almost anything you can do with assembly also with C. But assembly takes so much longer to write that for complex projects it's really not worth the time. At least not for me.
@AndreasSpiess
@AndreasSpiess 2 роки тому
When I was young we only had assembly language and we were happy when the higher languages were developed. I never looked back ;-)
@phinok.m.628
@phinok.m.628 2 роки тому
@@AndreasSpiess Yeah, I can understand that. I mean, I think assembly is actually kinda cool. Usually there aren't that many of instructions, so it's fairly easy to learn. And I like that assembly translates direction into machine code, without the need of any compiler. But on the other hand, having to learn different instruction sets for different processors is rather annoying. So yeah, in general I definitely prefer C/C++. Or even python, but not really on microcontrollers, since they usually have fairly limited resources and I consider python is just too high level to really be efficient (in my opinion). Anyway, I'm also certainly glad we have more sophisticated languages than assembly (or just writing pure machine code, as the used to do before assembly).
@AndreasSpiess
@AndreasSpiess 2 роки тому
It is not about the instruction set. Here you are right. It is about the complexity because you have no variables, only memory locations. And with the 8-bit CPUs we only had numbers up to 256. Above that you had to do all the calculations by yourself. Maybe you look at how a simple division has to be programmed in assembler ;-) And the readability of this "spaghetti code" was also horrible. Anyway, sometimes it has to be used up to today if you have special needs where you can not use a higher language.
@phinok.m.628
@phinok.m.628 2 роки тому
@@AndreasSpiess Yes I know... And if you have numbers higher than 255 you need to use two registers, which is kinda also a mess. But I guess it's still better than working with a 4 bit processors. Conditional code is also kinda annoying, cause there is no if or else, so you basically have to figure out how to get it working, by skipping instructions or jumping to a different address based on some condition. But I mean, that's the normal trade off, the way it works is simple, but it's complicated to work with. But you know, there are things about assembler I like. For example that you know exactly how much time each instruction takes to process (or can take to process). C/C++ is clearly superior when it comes to programming. But since you basically give some of the programming work to the computer (compiling the code) you lose the insight into exactly what the processor is doing at any given time. Obviously I'm not saying Assembler is better. It is quite elegant in certain ways. But assembler quickly gets to the point where the processor speed is not the bottleneck, but instead the speed of the human programmer. And at that point of course it makes sense to sacrifice some efficiency for quicker and easier programming.
@stefanroder8561
@stefanroder8561 2 роки тому
Hallo Andreas, Regarding USB upload of ESPHOME images: I used the ESPHOME adapter in Homeassisant on a Raspberry PI 3. I connected an ESP32 DEV board via the USB port and the USB port was visible in the drop down. Maybe a new feature? But the download and manual upload is not necessary anymore. Thanky you for all your swissmade videos.
@AndreasSpiess
@AndreasSpiess 2 роки тому
Thank you for your information. I use docker containers which complicates things a little.
@stefanroder8561
@stefanroder8561 2 роки тому
@@AndreasSpiess Hi Andreas, just a little. If I remember correct, the image from home-assistant I use, uses docker for the plugins as well. And it is no big deal to map the USB port to a docker container. After watching severals of your great videos, my next project is, to setup a raspi with IOTSTACK. This concept is logical the next step. I used FHEM in the past, added MQTT after a while, tried iobroker but homeassistant seems for my case the best one. I will try the USB port from inside the docker, once I find the time to start. I will let you know how to use the USB port from docker inside.... Best regards, the German guy currently in Austria....Stefan
@Phettsack
@Phettsack 3 роки тому
I only use tasmota and few self made projects, thanks to your platformio-video!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Good choice!
@fuzzie4755
@fuzzie4755 3 роки тому
Hi Andreas, the TASMOTA deepsleep is optimized for minimum uptime and/or long deepsleep. You have to change the teleperiod to 10 seconds to get the immediate execution of your sensors. In this case, the complete uptime of an ESP8266 is less than 14 seconds as long as the sensors do not need to much time for the LUX calculation. This also works on the ESP32. Regarding your problem to keep the device awake after restart: There are two options. Option one is defining a deepsleep SWITCH. If this is "ON" the device stay awake even if deepsleep defined. The other option is to push "deepsleep 0" as a retain MQTT message. After start, the device will read the message and disable deepsleep. Let me know if you miss more functionality. I have many devices with deepsleep and battery only powered running. works like a charm. The NTP function is to calibrate the deepsleep. As you might have seen a 3600 second deepsleep has a quite big shift. With the function, you can assure that your devices e.g. wake up properly exact at the beginning of the hour. Also very convenient, because predictable if the device runs for months.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Good to know that run-time is optimized. I did not find information on it (did not search for hours). I will try it once (maybe if I get all three sensors in the standard ?) Concerning the MQTT message: I mentioned this possibility very briefly towards the end of the video. The one with the button is ok, but, if I sit across the device, I also can press reset and upload. At least in my case, it worked. Good idea to calibrate the timing with NTP. Maybe not needed for all purposes. And I am glad I read "ESP32". Another commenter mentioned that this CPU will not be strategically supported by the team. And good to know that you are an expert. Last time a guy called "efelle" on discord helped me with rules for my brother's special wishes...
@fuzzie4755
@fuzzie4755 3 роки тому
@@AndreasSpiess Regarding the ESP32: TASMOTA was invented for the ESP8266 with all of its limitations. Many drivers and enhancements are already enabled for ESP32 and work well. You cannot commit anymore a change that crashes on ESP32 and everybody adds some nice compiler options to have TASMOTA on ESP32. There is still a lot of work because sometimes the differences are tiny but important. For example, the sleepmode on ESP32 is much more flexible. Currently, the implementation supports the current mode at ESP32 but did not make use of all the nice wakeup-functions the ESP32 offers. Already the ESP32 bin file uses everything that is available. No more selection of functions based on memory.
@GiuseppeVattiata
@GiuseppeVattiata Рік тому
complimenti per il video, volevo chiedere se con Tasmota è possibile realizzare un progetto dove si usa il bluetooth del'esp32 per attivare relè? grazie
@AndreasSpiess
@AndreasSpiess Рік тому
AFAIK Tasmota uses WiFi. At least I do not know that they use BLE.
@wombat9999
@wombat9999 Рік тому
Hi. Just curious if anything has changed since you originally published this video…? Thanks. :-)
@AndreasSpiess
@AndreasSpiess Рік тому
I am sure a lot changed since then on both sides. But I have no overview.
@wombat9999
@wombat9999 Рік тому
@@AndreasSpiess - Got it. Thanks.
How does NB-IOT and CAT-M1 / LTE-M compare to LoRaWAN (Tutorial)?
21:58
Andreas Spiess
Переглядів 29 тис.
Beginner's Guide to ESPHome ESP8266, ESP32, Beken Devices and more
33:46
Братик купил бегемота #shorts #iribaby
00:42
IRIBABY
Переглядів 3,3 млн
Radar Sensors from $3 to over $100: Which one is Best?
14:31
Andreas Spiess
Переглядів 138 тис.
Rutgers University Confirmed: Meshtastic and LoRa are dangerous
13:27
Andreas Spiess
Переглядів 647 тис.
Use the very attractive new ATTINY chips for your projects
14:34
Andreas Spiess
Переглядів 174 тис.
442 9 Hurdles of Home Assistant I Had to Overcome
16:39
Andreas Spiess
Переглядів 87 тис.
Upgrade your Raspberry Pi to a Homelab (instead of a Raspberry Pi 5)
16:54
Andreas Spiess
Переглядів 234 тис.
DIY ESP32 AC Power Meter (with Home Assistant/Automation Integration)
10:58
USB-C Tutorial for Everybody (Connector, Cable, PD, Data Transfer, Devices)
26:08
461 The Tools and Organizers I Use (with some tricks)
15:32
Andreas Spiess
Переглядів 81 тис.
Возможно ли удалить интернет? 🌐
0:35
ЗАРАЗ
Переглядів 1,7 млн
Apple Vision Pro
0:42
Янчик
Переглядів 11 млн
НЕ ВЫБРАСЫВАЙ СТАРЫЙ РОУТЕР D-LINK! #shorts
0:59
Как мы используем клавиатуру
0:16
AlexLON
Переглядів 138 тис.