Crazy thing happened today. A couple hours after this video posted I was happily replying to every comment, like I always do, when for some crazy reason TH-cam stopped accepting my comments. I looked in the creator forums and best I can determine I exceeded some max for commenting in a period of time! What kinda craziness is that! I wouldn’t have guess there’d be a limit to how much I can comment on my own videos! Anyway, sorry I didn’t reply to everyone who commented as quickly as I usually do. I’ll go back and catch up on the comments I missed during my TH-cam time-out. Thanks for your support!
Love how you edit your videos down so they are really tight but still have all the information you need. I can't stand the TH-camrs who ramble on for ages and all you want is one piece of information buried in the waffle somewhere!
Thank you!!! That's exactly why I do it this way. I figure you want to get through it fast and decide if the stuff you need is there. If it is, you can rewind, pause, rewatch and get what you came for. Thanks for that feed back! I'll keep doing it!
I have realized from watching your videos if you are going to build an item for a single sensor its cheaper to use a sonoff with a cheap extension cord from the dollar store. Definately going to use a sonoff to turn on my power supply for my led lights and then control them from the sonoff. Great videos. thanks for you help.
Great video, thanks. Regarding the PIR switch, there is just one thing you forgot to mention, which could have saved me some time debugging: you need to do "SwitchMode2 1" in Tasmota console. Otherwise automation won't work since it sends "TOGGLE" signal by default, instead of "ON/OFF".
At this point I've Tasmotized several other ESP-based devices, including ESP8266E/F from Electrodragon, a NodeMCU and several othe Node clones. While I'm perfectly capable of simply producing custom code, Tasmota is the easy button for many project. As always, thanks for the excellent content.
Thanks! I've got your 3-way switch method wired up in my maker faire Wall of Sonoffness. I should finally get around to giving it the Zzs treatment soon! You've had 5000 views on that video! Awesome. Have you found any of those other esp boards to be especially useful or unique in any good ways?
I was searching for an easy solution to connect sensors to Home Assistant. Aaaaand here it is! Thank you so much for this entertaining tutorial. Like always!
Thanks! Been trying to get PIR sensors hardwired to my Pi's GPIO pins going. When I setup the automation in HA, it would turn the lights on when motion detected but then also turn them back off when motion was detected again no matter what I did. Your example is perfect, the "turn the lights off after X" should be another automation that is triggered by the first automation, not one automation with a delay built in like I was doing it. Excellent as always, will be trying this when I get home today... Thanks!
Just got it setup...works perfect. Using these pre-made PIR sensors sired direct to GPIO www.ebay.com/itm/2x-Wired-PIR-Motion-Detector-Infrared-Intrusion-Alarm-Sensor-for-Security-System/332326172160?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649
Love your videos. Wnan I first stumbled upon your channel, I have thought... who is this spooky talking head, but soon realised that you are pretty charismatic character, and your channel is very helpfull. Thank you.
Great Video DrZzs. I have learnt a great deal from your Videos and forums. I have just setup my first D1 Mini with DHT11 as the Temp and Humidity Sensor. I have it connected to MQTT and the Console is Reading the Temp and Humidity no problem The problem is getting HA to read the Results of Temp and Humidity. They both show up in States as "unknown" sensor.humidity unknown unit_of_measurement: % friendly_name: Humidity sensor.temperature unknown unit_of_measurement: °C friendly_name: Temperature The Console shows it is reading fine 09:00:34 MQT: tele/sonoff/SENSOR = {"Time":"2019-05-17T09:00:34","DHT11":{"Temperature":13.0,"Humidity":50.0},"TempUnit":"C"} 09:02:00 MQT: tele/sonoff/UPTIME = {"Time":"2019-05-17T09:02:00","Uptime":"0T00:26:40"} What is the Project Name? as per your video, as I think this could be the problem Any idea to help me link to HA? Thanks in Advance :)
Hi DrZzs. I have resolved this issue. I had a naming convention that worked however I changed naming (MQTT Topic) for all devices and now they are all working just fine, including the D1 Mini with Temp and Humidity. Thanks for your reply, I appreciate it greatly. Hope to watch one of your Streams soon :)
Awesome video ! Didnt know that you can control those sensors out of the box with Tasmota! Will try this ! Keep up the good work ! Greetings from Uruguay!
Just what I was thinking; I've loaded Tasmota on a fair few Sonoffs, but never looked any further than turning a light on and off. The flexibility of Tasmota with a NodeMCU and little to no coding is stunning. Thanks for the information Dr Zzs!
I close on a new house in early April. I already have a few sonoff basics controlling lights, and a low voltage sonoff controlling my garage door in the house we are leaving. Once we get into the new house, my home automation will be kicked into overdrive! I don't know if anyone has requested yet, but can you do a video using sonoff/Tasmota as an infrared remote control for Tv/surround sound? I look forward to your videos on Mondays. Keep up the good work!
Thanks! Actually that sensor kit does have an IR transmitter and receiver! I peeked briefly at the tasmota settings to make it work. I'll put it on the list and get to it eventually. In the mean time, if you want to try it before I get to it, here's the Tasmota Console commands: github.com/arendst/Sonoff-Tasmota/wiki/Commands#irremote I don't know much (yet) about exactly how to setup IR, but I'm sure those commands are the key.
Nice Job, thanks. The reason you need to install the driver is because the various ESP8266 modules have different USB to TTL chips onboard. Common ones are 230X. FTDI, and CH340 each of which requires a driver. Once you install them all, it will largely be transparent from that point forward. Likely though, you will see a different comm port for each. Also, the PIR IS actually a motion sensor. If it were not, any infrared source would trigger the output. The PIR relies on a differential measurement between two sensors and that funky segmented lens to break up the light pattern. When an infrared source is stationary, it remains constant between the two differential receivers, when something is moving, the difference is what triggers the output. i probably did not explain that well, but there are a number of videos out there that do a good job including Bigclive who devoted a video to using PIRs.
Awesome! Thanks! I'll take that NodeMCU question off the things I don't know list now! And thanks for the knowledge on the PIR. I was thinking of it kinda like a line-break sensor, and that's not really what it is at all. I'll have to check out Bigclive's video.
My "Things I don't know list" has turned into something akin to an encyclopedia... Still smaller than my wife's "Things for anthony to do" list... though so that's good...
Thanks so much!! I've been trying to get the temp to show up in HA for weeks now... you pointed out the syntax with DHT11 pointed me in the right place added my SI7021 sensor and bam! it worked... Awesome Videos!
Excellent! Things have gotten better with Tasmota too. I'd suggest just grabbing the sonoff-sensor.bin file and flashing that with the ESPeasy flasher. github.com/arendst/Sonoff-Tasmota/releases github.com/letscontrolit/ESPEasy/releases
DrZzs - It would be really cool to see a D1 Mini replace a old security system. Basically how to confiure the D1 to be the 8 zones a old panel would have. Most houses built in the last 20 years have contact sensors on the doors and windows. One D1 could interface them all to smarthings... for about $5.. really cool
Brilliant Vid. Very informative. Relative noob to home automation and after a frustrating and abortive attempt at OpenHab moved to HA, watched your videos to get set up and all is working fine. Testing a NodeMcu with temp/Hum and a rcwl-0516 sensor using your setup above with Tasmota. Keep up the great work -- Thanks
I am using a D1 mini to monitor temp, hum, bar and dew point. It operates from a battery and I need to monitor the analog pin to check the battery charge point. I use Tasmota to set up the chip and see where the analog pin is and have it assigned. My question is how do I get MQTT to see that analog pin and read it? I also need to add the deep sleep mode, on a 1-minute cycle? Thank you in advance.
Brilliant, thank you! That’s saved me so much time. And fantastic delivery... all the facts in an instant.... with a touch of good humour. Off to click a few of your links
Great video. However note that the D1 mini is not "always in programming mode" like you suggested. The USB serial converter has circuitry in it that will reset the chip and pull GPIO0 down just before the program is sent, placing it in programming mode for you.
This is amazing! I have a nodemcu and a LED strip here, but I did not know how to connect them together. Now I know (and I know much more) Great! (And I will leave a message for Theo and buy more parts through your links ofcourse :-))))
Nice and informative video. Question - i connected wemos with relay and AC power accessories. i'm able to control but because of no power-backup or whatever reason if there's couple power fluctuations, it wipes out the config from the esp8266. Any ideas, how to avoid it ?
Awesome video! I have 2 temperature sensors connected to nodemcu running Tasmota. I get the following MQTT output from it : 03:59:42 MQT: tele/TempBasement1/SENSOR = {"Time":"2018-10-31T03:59:42","AM2301-14":{"Temperature":62.4,"Humidity":72.7},"AM2301-15":{"Temperature":65.5,"Humidity":56.1},"TempUnit":"F"} but when I create a sensor in HA to read in value_template: “{{ value.json.AM2301-14.Temperature }}” it doesn’t show up. When I only have 1 sensor connected and MQTT output is {"Time":"2018-10-31T03:59:42","AM2301":{"Temperature":62.4,"Humidity":72.7},"TempUnit":"F"} and I use “{{ value.json.AM2301.Temperature }}” then it does work just as in your tutorial. Any idea what I am doing wrong?
There's something with tasmota that limits how many sensors of certain types can be connected at the same time. I don't remember the details now but, the details are here: github.com/arendst/Sonoff-Tasmota/wiki/Expanding-Sonoffs and here: github.com/arendst/Sonoff-Tasmota/wiki/Sensor-Configuration
Thanks for the links! I didn’t know it was limited. What’s kinda funny is that Tasmota does output two sensor values on the sensor topic. One is called AM..-12 and the other AM..-14 (seems like the -## is based on the GPIO pin#) but when I use these parameters in HA they don’t get read by HA and my sensors just show blank dash on the dashboard. I figured if I just used the AM..## that the MQTT payload has it would be fine. But when I have one sensor and there is no “-12” or “-14” then it works just like in your tutorial where I just use json.AM2301.Temp... I must be doing something wrong and not reading the MQTT payload correctly or it’s limited to just one sensor output per MQTT message. Thanks again for replying - love your tutorials!
For anyone else who comes here and struggles because this info is out of date, I have the following advice. 1) Use Tasmotizer to send the latest tasmota-sensor.bin file 2) use Tasmotizer "Send Config" button to send WiFi info. You can then connect and setup the module-info or use the same Send Config button to setup MQQT etc.
Hello and thanks so much for this...spend a late evening trying to firgure all of the errors out that I was getting, finally realizing that the instructions were out of date...learned a bunch that way, but still frustrating in the end...until I found your comment here! Thanks so much!!
Hi at first sorry about my English. :) I am little bit confused because, when i go back to your video $5 Sonoff + $2 parts = Best Smart Switch EVER! in this project you were using resistor and 33nf tantalum capacitor to proper function of touch button. It this current video you mention and show sonoff basic with humidity sensor (DHT11) and touch button is connect to bat without capacitor an resistor. My question is, this another way ho to connect touch button to sonoff without resistor a capacitor ? Thanks for all what you do. Have a nice day Mirek.
Yo Doc. I know this is old, but did you hook up the HC-SR501 directly to the Sonoff? I see in your video of the Sonoff hookup and the 5v but isn't that 3.3v? In another video, one person went through all kinds of steps to get the 5v. Is it really possible to drive it off the Sonoff? If you set the jumper to no repeat and timer to ~5 minutes, this would make a great walkway lighting combination. Please let me know. - Thanks
I have connected PIR sensor directly to a sonoff and it works great. I used this PIR though (not the 501) - drzzs.com/BruhPIR Can't honestly remember if I connected it to 5v or 3v. I think it was the 3v pin from the flashing pins that I used. Hope that helps. Definitely you should use that PIR from the link instead of the Big'ol 501. I had a lot of trouble with the 501 triggering randomly when it's too close to the ESP8266 chip. Good luck!
I cannot find 2 infos - how to set the LED number (e.g. how many is connected) and how to tell tasmota that I have RGBW leds, not only RGB... Even Tasmota wiki seems to skip anything on addressable leds topic.
Thanks! If you're planning to do this check out the sonoff-sensors.bin version of tasmota. It's all ready to use a bunch of different sensors. github.com/arendst/Sonoff-Tasmota/releases
This is fantastic doctor! I got sensors out the wazoo. There is a wifi repeater project on github that is pretty dope too. Do you know whether it is possible to track people based on the wifi/bluetooth beacons emitted by their phones? I would like to be notified of my neighbor's comings and goings. Not for any nefarious reasons. Sometimes they don't answer their door when I knock. This way I can announce, "I know you're home, I want to finish our discussion about home automation!" If you could point me in the right direction, that would be great. Thanks for vids
Thanks, that was some good info. I just went to copy everything over to the Arduino IDE and am having some issues. The files for tasmota changed (name wise), running into a wall at the moment.
Hi, Perhaps you may be interested in this configuration. When the motion sensor is activated, a rule delays its deactivation during the set time (in my case, 30 seconds) to see it active in HA. The second rule invalidates the publication that turns off the connected led strip. SwitchMode 0 SwitchMode2 1 SwitchTopic2 PIR SwitchTopic 0 Rule1 on switch2#state=1 do backlog publish cmnd/PIR/POWER2 ON; RuleTimer1 30 endon on Rules#Timer=1 do publish cmnd/PIR/POWER2 OFF endon Rule2 on switch2#state=0 do publish stat/proyecto1/POWER "" endon Rule1 1 Rule2 1 ;-) Thanks for your work.
... Any chance you can do a clip showing how to add a DHT22 and say a BME280 to a Sonoff Basic. (I'm planning one DHT22 on one Basic at one location and another BME280 on a 2nd Basic at the 2nd location, only reason for the BME22 is the pressure sensor, would have been nice if there was a Temp/Hum/Pressuree sensor in the packaging of a DHT22
Thanks again for another educational video, I have succesfully tasmotized my D1 mini but cannot get water sensor to be recognised, have tried numerous module configurations to no avail, any ideas? .
Thank you for this great tutorial. I want to automate a phyiscal button press with an CD4066 IC - how can I send HIGH/LOW to GPIO 4 for example? Do I even need a IC for this?
Hello DrZZs, all your video are awesome and I learn a lot with them. I use this video to create some temperature and humidity sensor over the house with some wemo d1 mini with tasmota and some DHT11, they all work nicely and home assistant integration too. The issue I have is, after sometime my wemo stop read the both value and the only way to make it read again is to remove the power and plug it back. After that it work for a while until I have to do it again. A soft restart do not work. Can you help? Thank you again for your good work
bummer. I don't know what to do about that. I guess I'd try to automate a hard reset perhaps by using a wifi smart plug for the power supply going to the D1mini. I've done that with my PiZero Cameras that need a hard restart every so often. Not a very elegant solution, but it works.
Great video but I think the git has changed for the version of the sonoff-tasmota.ino. I can't find that file anywhere with the config settings on it...is there an updated way to do this? thanks
thanks I don't know about that specific app, but for Home Assistant the sensor entry looks something like this: Sensor: - platform: mqtt state_topic: 'tele/masterBR/SENSOR' name: 'Master Bedroom Temp' #AM2301 unit_of_measurement: '°F' value_template: '{{ value_json.AM2301.Temperature -2 }}' Hope that helps.
I cannot wrap my head around these state topics, command topics!! MQTT in general is kicking my butt. Where does this information come from? Thanks for any and all information
It does take some getting used to. I was quite confused about it for a long time. Here's my best shot at a quick explanation: MQTT is like devices texting each other. The "topics" are like the device phone numbers. the "payload" is the actual message. The "Broker" is kinda like an old time phone operator passing the messages along. For example, a smart light can have a topic for the "state" that could be "stat/sonoff/power" and the payload could be On or Off. That light communicates with the Broker and says, this is my state topic "stat/sonoff/power" so if anyone ask for me tell them I'm on or off based on the last message I sent you. When the state of the switch changes from on to off it "Publishes" a new message using that topic "stat/sonoff/power" with payload Off. Now if Home Assistant wants to know the state of that light it can "Subscribe" by telling the Broker; if anyone publishes a message to the topic "stat/sonoff/power" please let me know the payload so I can show Mando the right color Icon in his UI. For Command topics the switch tells the broker, if anyone wants me to change my state I'll be listening at this topic: cmnd/sonoff/power. And when you press the button in Home Assistant it sends a message to the broker using the topic cmnd/sonoff/power, with the payload On or Off. The broker passes that message on to the light and the light goes from Off to On. The exact "topic" can be almost anything as long as the devices that want to communicate with each other subscribe and publish to the exact same topic. For other sensors the payloads can be things other than on/off. They can be number values like temperature or % humidity, or they can just be strings of text like a sentence or a couple words that you want to display on a screen. Hope that helps. :)
Hallo boss! How can avoid a relay turn off/on after every restart? I have 2 relays set in interlock , but every time the wemos tasmota restarts they will go on together for few than a second.... can you help me?
Hi, Thank you very much for all the videos. I am learning a lot with them. In the 02:50 minute you say that nodemcu can work with 12v. This is correct? I am using 12v LED strips ( WS2811 ) but I need to lower the voltage to 5v to power the nodemcu controller.
@@DrZzs My NodeMCU boards are clones. I think if I turn it on with 12v they will burn jejeje I don't see references to 12v in the specifications. Thank you very much.
thanks for the great tutorials... was wondering if you could help. Trying to get a PIR working. but it doesn't seem to update mqtt with the ON/OFF messages when there is movement. Power > 5v GND > GND OUT > D1 on d1 mini (GPIO 5) set to switch2 followed the tutorial but PIR seems to report ON every 5 min and not when there is movement (where am I going wrong) 17:02:08 MQT: tele/sonoff/INFO3 = {"RestartReason":"Software/System restart"} 17:02:08 MQT: stat/sonoff/RESULT = {"Command":"Unknown"} 17:02:16 MQT: tele/sonoff/STATE = {"Time":"2019-04-11T17:02:16","Uptime":"0T00:00:17","Vcc":3.037,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"Wifi":{"AP":1,"SSId":"WiFi","BSSId":"CC:2D:21:0B:BF:C9","Channel":6,"RSSI":72}} 17:02:16 MQT: tele/sonoff/SENSOR = {"Time":"2019-04-11T17:02:16","Switch2":"ON"} 17:02:30 CMD: switchtopic2 pir11 17:02:30 MQT: stat/sonoff/RESULT = {"SwitchTopic":"pir11"} 17:03:33 CMD: SwitchMode2 1 17:03:33 MQT: stat/sonoff/RESULT = {"SwitchMode2":1} 17:07:16 MQT: tele/sonoff/STATE = {"Time":"2019-04-11T17:07:16","Uptime":"0T00:05:17","Vcc":3.016,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"ssid":{"AP":1,"SSId":"ssid","BSSId":"CC:2D:21:0B:BF:C9","Channel":6,"RSSI":100}} 17:07:16 MQT: tele/sonoff/SENSOR = {"Time":"2019-04-11T17:07:16","Switch2":"ON"}
Hey Dr Zzzzz, great video - I'd love you to add another video to your suite.... hassio on main system, and a second raspi with the usb stick. Have the second raspberry not have hassio on it, but raspbian (or other unix), and just the usb stick for something like zigbee and/or z-wave (or both). Then connect it to the main hassio system through mqtt. That is what I want to do, as I have a network connected from my office to main house (separate buildings, same lan) with devices in both. Thoughts? Could you do this?
Hey Justin, Love this stuff. Great videos, the right mix of humour and getting it done. Get excited by your PIR project, got it all set-up but struggling to get the D1 to talk to HA. Console is showing the activity but as cmnd/d1miniPIR/power = TOGGLE but subscribing to this in HA is not triggering at all. You also use /POWER2 in the settings, which I don't fully understand as it's showing only power in console on D1 mini. If I set the HA details back to standard MQTT topic of the D1 mini, I can get it turn on the light but it never turns the PIR trigger off. Not sure how I've got this wrong.
Thanks! I'm having a lot of fun making these too! Just wish I had more time to make them faster.... I think I'm following your problem, but maybe not totally. Anyway, the reason mine says "power2" is because I set the PIR as "switch2" You should probably change yours also. In the dropdown menu on the Configure Module page for the GPIO pin, select "10 Switch2" instead of "09 Switch1". I think you might need to change your switchmode too, so instead of "toggle" you get "on" "off". In the Console type "switchmode2 1" enter. See what those changes do for you.
DrZzs alright, so good news, I got it working. Weird news, did all you advised and still wouldn't trigger HA. So set back to Switch 1 and topic to POWER, switchmode1 1 and it works! Just don't understand why switch 2 with topic of POWER2 won't work. So given I'm using a D1 mini and not Sonoff, I assume this is ok to keep as there is no relay on the D1 mini or is there? I've got a spare Sonoff so am going to try and see if I can can get the switch 2 option to work on that just for fun.
Weird, but we'll take it! There is no relay on the D1mini. You can add one if you want to though. But as you have it you can use the PIR for automations in HA just fine. When you use switch2 you also need to set the "switchtopic2 customtopic", in the tasmota console. When you do that the mqtt topic for activating that switch becomes: "cmnd/customtopic/power2" and the topic for the state would be "stat/customtopic/POWER2". Maybe changing the switchtopic is the part you were missing before.
DrZzs YOU STAR! switchmode2 1 fixed it for me! I have been trying to get this to work all day, just kept replaying your video to see where I had gone wrong, I never twigged on that I was sending a toggle rather than off & on! Cheers
Thank you for the tutorial. I'm having some issues by trying to connect a PIR and a DHT11 to a Tasmotized sonnof basic. When I connect the sensors individually they work fine but if I connect both only the DHT works. I'm running the last updated version of home assistant (0.115.4), the PIR is connected to GPIO3 and the DHT to GPIO1. I only added these lines to the binary_sensor.yaml: - platform: mqtt state_topic: cmnd/NewPir01/POWER2 name: R3 PIR device_class: motion Any lead? I out of options. Thank you in advance H.
@@DrZzs Actually I erased everything and only applied these two rules: rule 1 on switch2#state do publish Prueba/PIR/state %value% endon and rule 2 on switch2#state=1 do backlog power1 on; ruletimer1 30 endon on rules#timer=1 do power1 off endon also I've generated a binary sensor like this: - platform: mqtt name: "PIR Motion" state_topic: "Prueba/PIR/state" qos: 1 payload_on: "1" payload_off: "0" payload_available: "Online" payload_not_available: "Offline" device_class: motion That lets me show the PIR into HA, and it works very well... but as soon as I connect the DHT11 the PIR system stopped working. By the way, I didn't introduce a single line of code for the DHT11, it worked automatically. I've tried to change the SerialLog from 2 to 0 but I've got any change
@@DrZzs I made a cross-check of console log by restarting the unit with and without the DHT11, and I found these three lines are executed at the very beggining of the boot ONLY when DHT11 is NOT connect: 00:00:02 RUL: SWITCH2#STATE performs "publish Prueba/PIR/state 0" 00:00:02 RSL: Prueba/PIR/state = 0 00:00:02 RSL: stat/Prueba/PIR/SWITCH2 = {"STATE":"OFF"} Any clue how make them run also with the DHT11 connected?
Hi there your videos have got me hooked to Tasmota and Sonoff! Can I use the D1 mini and Tasmota to switch on and off 2 contacts ? Say I would want to use it to send a momentary on off pulse to an appliance switch ?
you sure can. I'm working on a project using a D1 with relays. One issue I've found so far is that the voltage output on the D1 GPIO pins is only 3.3v. That might not be enough to trigger the relay. I've got mine traveling some distance between the D1 and the relay, so the voltage drops even more. I bought a logic level shifter to boost the voltage of the signal to 5v, which should be enough. They just arrived so I haven't tried it yet. I'd say try it without the level shifter and hopefully it'll work if you aren't losing voltage over distance like I am. If you find the relay isn't triggering with the 3.3v try one of these: amzn.to/2r8gvxw Hope that helps!
thank you, friendly tip about text for in video links, they appear where the youtube gui overlays, so when people pause they can not be read, please paste higher up if possible, or not....thanks again.
After 2 days of errors for undefined resource WPS errors I finally found out you have to run an older board package version. esp8266 version 2.3.0 works but the newest ones caused me about 20 hours of headaches a sore butt and wasted weekend. Also if you want a DHT22 to work for some reason I could only get it working on pin D5 using AM2301 as the sensor type. Even though the sensor is technically a AM2302 it works. I'm a total newbie to all this so maybe that's why it took me so long but I hope this helps the next person. I was using a NodeMCU's if that makes any difference.
I've started only using the sonoff.bin pre-compiled binary file to avoid all the library/board manager issues. I haven't tried putting Tasmota on a D1 mini in a while so I don't know if there are issues with newer .bin versions. I'll be using a couple for the maker faire so I'll try it out and see very soon. Sorry it was such a pain for you.
While frustrating it feels good when you finally figure something out and make it work. The only issue I have now is it's only outputting in Celsius. I even changed the 0 to a 1 in the user_config.h to change to Fahrenheit. I just convert it in HA by adding * 1.8 + 32 like this: value_template: '{{ value_json.AM2301.Temperature * 1.8 + 32 }} Anyway I've enjoyed your videos a lot and you are very helpful. I feel like a celebrity just answered my question. lol, keep up the great work.
Ha! celebrity? I'm going to tell my wife she has to start treating me like a Star! In the web UI for Tasmota, open the Console, what does it say when you type "setoption8"? if it is 0 or off, then turn it on with "setoption8 1" If that doesn't work let me know and we'll try something else. (I don't really have anything else to try, but I like to offer anyway :)
I'm trying to flash TASMOTA onto a D1 Mini Lite version, and I keep getting the error: "WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool" I checked in the user_config.h file, and tried every possible option that DIDN'T involve use of WPS in the WIFI_CONFIG_TOOL section, but that's apparently not the issue. Any ideas? I'm about ready to give up on this thing. :/
ya, there were some troubles with different board managers and such so I've stopped compiling it myself. I just use "sonoff.bin" from the Tasmota github and avoid all those problems. Glad you got it working!
I wanted to be able to flash all of my configuration settings (Wifi SSID/Password, MQTT server address and creds, etc). I've never flashed a BIN file to these boards before, and I'm on a Mac, so I wasn't sure where to start with software with that. I could PROBABLY do it from the terminal, but I'd also have to go dig out a UART module out of the empire of dirt, and only God knows where any of those are at the moment. So I opted to rip out some more of my quickly vanishing hair, and just mess with it until I finally got it working. :D Jumped the gun on asking on the youtube comments. ;)
This video real came in a good time. I just have a di 1 mini and i m playing with it. Just have to put a VM and install home assistant Tu test those trips. Thanks you.
I don't understand that "value_json". May be that's the reason, my sensor is working, showing in tasmota page, added to HA with MQTT, but readings not showing in HA. Need help.
Thank you @DrZzs for another wonderful tutorial. On my D1 mini, however, I have two problems. Can you please help me with these? (1) When the motion has ceased, the switch doesn't revert to OFF sometimes. It stays stuck on ON until the motion is triggered again, when it toggles. (2) When restarted, the switch begins with OFF. However, when it first senses motion, it still fires OFF and a few seconds later fires ON.
Late to the party! Love this video. Did you power the entire neopixel project from that 5V supply? Just wondering about shared ground for microcontroller and LEDs
I'd recommend not using the Arduino IDE anymore. I'd go with the pre-compiled binary of tasmota instead. th-cam.com/video/KMiP9Ku71To/w-d-xo.html Much easier and much less likely to have errors in the process. Good luck
Hey DrZzs, huge compliment on this and your other videos. I enjoy them very much and learnt a lot from them already. But now, I am afraid, I am stuck trying to use my WS2812 with Tasmota on a Wemos d1 mini. After I flashed the d1 mini, I set the module to Generic and set the corresponding pin to “07 WS2812”. After a reboot I got the on off button and the slider but unfortunately I am not able to control the LEDs. As soon as the d1 mini powers up all LEDs turn on on full bright white and I am not able to change it. I checked the connections, replaced wires, used another d1 mini, used a different LED strip with only 2 LEDs, powered the LEDs with an external power supply (connecting grounds), re-flashed it… no success. I am running out of ideas, any help would be appreciated. Thank you
Thanks! man, that sounds like you tried everything so far. What other info can you give me? Maybe some images of your connections and screenshots from tasmota. For easier chatting head to discord. We have a channel for LEDs too. There may be others there that can help. discord.gg/8gvF67h I'm sure we can get it working.
Thanks for the quick reply. Much appreciated. Was hoping you came across this very problem before. I am heading out of town for a couple of days now but as soon as I am back I am going to start from scratch. Hope you or the guys at discord can point me in the right direction. Cheers
@@tb8756 Did you ever get this sorted out? I am running into the same exact thing. I also tried using the same version of Tasmota as in the video and still have all white LEDs.
@@tb8756 I finally got it working!!! I had to uncomment the line that says "#define USE_WS2812_DMA" in the my_user_config.h file and then hookup my data line to the pin labeled RX on the d1 mini (GPIO3). Good luck.
Hey thanks for doing these videos, you do an awesome job! Do you know of any examples of, if the temperature from a sensor (DHT11) attached to the Sonoff goes below say 40 degrees to turn on a plug/switch in Home Assistant and then off at 60 degrees. Also is there any tricks to change the temp reading from Celsius to Fahrenheit on the Sonoff and Home Assistant?
Thanks! you can set up an automation to trigger a switch based on a temperature. I just did this quick to show you how: www.dropbox.com/s/6mdetnn2a0evrqk/tempfanauto.mov?dl=0 Trigger is "numeric state", you can do either "above" or "below", I set a condition that I have to be home for it to work (conditions are optional, not necessary at all), then the Action is to turn on the fan in my office. :) In Tasmota, at the "Console" you can set the temp units: SetOption8Show current Temperature as either Celsius or FahrenheitSetOption80 / celsiusSet Temperature to CelsiusSetOption81 / fahrenheitSet Temperature to Fahrenheit You probably have to have the units matching in HA and Tasmota. To set the units in Home Assistant: sensor: - platform: mqtt state_topic: 'office/sensor1' name: 'Temperature' unit_of_measurement: '°C'
I have followed your steps but for some reason when I opened my arduino soft ware it does not have the multiple tabs like yours does. I have tried to find where I went wrong but I cannot seems to get to the right location. It seems that when I open the Arduino software it is just that, mean it does not say sonoff like yours does at the top. I feel like I need to open a file to work in but I cannot find sonoff.ino??
I'd recommend not using Arduino IDE anymore. There's an easier way to put Tasmota on any device. Use FlashEZ and Sonoff.bin: th-cam.com/video/KMiP9Ku71To/w-d-xo.html
I just built this. Great project. I want to know, if you have a video, or can point me to one based on the following scenario. I want a motion sensor in the small area where my toilet is. (it is a closet , so to speak in my bathroom) I want the sensor to control the light but lets say from 8 pm to 5 am the light will come on at a 20% or so level, the rest of the time at 100%. Just enough to make objects out.
Cool! that's totally possible! The best way would probably be to use NodeRed, because it's better at complex automations. I'm not a NodeRed pro (yet), but I think I can tell you how to do it with Home Assistant. I haven't tested this, and you'd have to use your own entity ID's or MQTT topics, but it would look something like this: automation old: - alias: 'Bathroom Motion dim' trigger: - platform: state entity_id: binary_sensor.d1_pir from: 'off' to: 'on' condition: time after: '22:00:00' before: '06:00:00' action: - service: light.turn_on data: entity_id: light.bathroom brightness_pct: 30 Good luck!
Not that I can think of right now. I know you can get analog input on the Ao pin, but what exactly the gas meter is outputting and how the D1mini/Tasmota would interpret that I can't really say.
Do you know if it's possible to use both a reed switch(magnetic door switch) and a PIR sensor on a D1 mini at the same time? What commands would I use?
first of all great video!!! How would i connect a vibration sensor module(sw-420 nc type) to the d1mini? want to be able to put this on washer to let me know when its done,lol.
thanks! You're not the only one. I would guess it would work similar to the motion sensor, when there's vibration it is "on" when it stops to goes "off". So you would set it up in Tasmota like a switch. I'll have to check my kit and see if it has one of those.
I am not sure how to get files from Tosmota website. There is not download button under the lib folder on github.com/arendst/Sonoff-Tasmota/tree/development/lib. I am using windows 10 OS.
Another question re: home assistant. Been using a PI3 since the day it came out, it seems to be bogging down in my new house. What is your opinion on using a dedicated pc instead of the pi?
I've only every used HA on a pi3. I haven't had any problems, but I don't think I'm asking it to work very hard. I know a lot of people use different hardware. Some real high-end users use a NUC. amzn.to/2DQx6uh That seems a little extreme to me, but they swear it's the best. I guess if money wasn't a factor I'd do something like that too. If you do change hardware you'll have to use some other installation besides hassio. home-assistant.io/docs/installation/ That introduces a lot more potential issues and things you'll have to figure out how to get working. Hassio's add-on system makes things so easy. If you're a "computer guy" then using a different install method might not be an issue. They just came out with a new pi3b+. Should be a little more powerful. Don't know if the current hassio image is 100% compatible with it yet. That's my opinion for what it's worth :) Let me know what you decide to do and how it turns out!
Saludos from Puerto Rico Thanks for your videos ! I have an idea but don’t know who to start . I will like to monitor Varios battery 12vdc (12 of them ) from my solar system with Home Assistant . What you Think?
I have followed a guide and setup a Arduino voltmeter in the past (very simple and only needs 2 resistors per battery) maybe you could do something with a NodeMCU?
TheDazman Yes I’m looking for something like that But view with tasmota / homeassistant Thanks like always. Waiting for your holyday led especial !!!!!!
Hi, thank's for your video. I have a question: when I sept in tasmota: Generic module to create node mcu with 4 relays they work according to each other. When I turn on one of them, the other goes off. For example: if I turn on the relay 1 while the number 3 is on, the latter goes out as soon as the relay 1 goes ON. Is there any command to give in the console? Thank you
Hey Dr. Zzs, In some of your vids I see on your HA screen that you have cameras feeding in to your system. I too use Hassio, Sonoff, & Home Assistant. Will you please tell me which is the best camera system I should install for the money. It's the one thing I haven't set up yet. Thanks man!!
Sure! The images you see are blink cameras. I have a Foscam and an Arlo also but those I haven’t set up fully. I think the foscam should be really good. I can’t get live video with the blinks. Just pictures. I need to find the “best” camera solution and make a video, don’t you think!?!
I own 2 RP3s. One running Retro Pi with Kodi, and the other running Hassio. I did consider building a surveillance camera, since i do have a RP cam. But i really want several, so that idea seems excessive. The one my Home assistant system needs.... well, i need. Lol, is a cam that integrates with system and live feeds into it. I own several cams, but cant seem to find a working model. I added a PS2 webcam, using the motion add on. That worked for 2 weeks till the latest update. It wont work anymore and Im not sure how to get it back up. I also have a YI 720P cam, I did the firmware mod in the Docs of HA. That did open up more options, I can now SSH in to it, and I can log into FTP server, but I think the hack has old code and it wont show me the correct image folders. By the way, this little cam is really awesome. It has motion tracking. It tracks my topless wife around. Lol. The app works great. I wish I could make that work, but Im not that great at Linux, which it is running. I don't need a battery powered one. I plan to mount it as a surveillance cam. I don't mind buying another camera if it works with this system. Today, i'm working on the D1Mini and my 37 sensor assortment. You are 100% right! Tasmota is the perfect firmware for the system we own.
Crazy thing happened today. A couple hours after this video posted I was happily replying to every comment, like I always do, when for some crazy reason TH-cam stopped accepting my comments. I looked in the creator forums and best I can determine I exceeded some max for commenting in a period of time!
What kinda craziness is that! I wouldn’t have guess there’d be a limit to how much I can comment on my own videos!
Anyway, sorry I didn’t reply to everyone who commented as quickly as I usually do. I’ll go back and catch up on the comments I missed during my TH-cam time-out.
Thanks for your support!
Probably some sort of misguided spam filter as you surmised.
Just glad it's finally fixed.
I wasn't getting notice of new comments during that time either. I was really in TH-cam jail for a day.
it's a little odd too, because I think I've made more comments today than I did before my "time-out" yesterday. oh well.
Is that because you are some sort of robot? dun dun dun truth comes out!!
they're finally on to me! I'll have to change my profile pic:
www.dropbox.com/s/9u7i6frgu909zay/picardborg.jpg?dl=0
Love how you edit your videos down so they are really tight but still have all the information you need. I can't stand the TH-camrs who ramble on for ages and all you want is one piece of information buried in the waffle somewhere!
Thank you!!!
That's exactly why I do it this way. I figure you want to get through it fast and decide if the stuff you need is there. If it is, you can rewind, pause, rewatch and get what you came for.
Thanks for that feed back! I'll keep doing it!
Good point, I agree. I also like how all the needed links are labeled and posted in the video description.
I did not found nowhere else how to pull temp and humidity separately with this json. 1 day searching. You helped Enormously.
Awesome! Glad to help!
In 10 minutes you presented 10 times more information than most 20 minute videos manage to do. Thanks!
haha!
Good! That's the hope.
I've slowed it down a little lately. I had some feedback that I was going too fast.
Glad to help!
I’m not complaining - you can always pause, google, review.
OMG soooooo entertaining. No "blah-blah" no wasted time, no "droning" Thank you so much.
3 years later,
You are still the Best one for Tasmota 👍👍
I have realized from watching your videos if you are going to build an item for a single sensor its cheaper to use a sonoff with a cheap extension cord from the dollar store.
Definately going to use a sonoff to turn on my power supply for my led lights and then control them from the sonoff.
Great videos. thanks for you help.
Awesome! That would be a good use for it. I've been using Tasmota to control RGB LEDs for my Maker Faire display. Works great.
Great video, thanks. Regarding the PIR switch, there is just one thing you forgot to mention, which could have saved me some time debugging: you need to do "SwitchMode2 1" in Tasmota console. Otherwise automation won't work since it sends "TOGGLE" signal by default, instead of "ON/OFF".
Oops. Don't know how I missed that. Thanks for bringing it up so others don't get hung up by it.
I lost so much time looking for the answer, thank you!!!
i just tried this and it still toggles the relay hmmmm
thank you, it helped
thank you for your info!
This is by far the best home automation youtube channel I have come across. You've helped my home become a lot smarter. Keep up the great work!
Wow!
Thanks!
the affiliate links are cool and all but you need a patreon. You are worth it.
Bill Mears Thanks man. I’ll get working on that. I appreciate the feedback. Makes me feel good.
At this point I've Tasmotized several other ESP-based devices, including ESP8266E/F from Electrodragon, a NodeMCU and several othe Node clones. While I'm perfectly capable of simply producing custom code, Tasmota is the easy button for many project. As always, thanks for the excellent content.
Thanks!
I've got your 3-way switch method wired up in my maker faire Wall of Sonoffness. I should finally get around to giving it the Zzs treatment soon! You've had 5000 views on that video! Awesome.
Have you found any of those other esp boards to be especially useful or unique in any good ways?
I was searching for an easy solution to connect sensors to Home Assistant. Aaaaand here it is! Thank you so much for this entertaining tutorial. Like always!
same here, i had been wondering if i could connect a sht21 to a nodemcu and now it looks like i can
It’s funny but I miss such tutorial videos.. Live streams are great but this also had its own charm.
Thanks! Been trying to get PIR sensors hardwired to my Pi's GPIO pins going. When I setup the automation in HA, it would turn the lights on when motion detected but then also turn them back off when motion was detected again no matter what I did. Your example is perfect, the "turn the lights off after X" should be another automation that is triggered by the first automation, not one automation with a delay built in like I was doing it. Excellent as always, will be trying this when I get home today... Thanks!
Sweet!
Mine's working like a charm. I'm going to have to add PIR's to some of my Zzonoffs now too!
Just got it setup...works perfect. Using these pre-made PIR sensors sired direct to GPIO www.ebay.com/itm/2x-Wired-PIR-Motion-Detector-Infrared-Intrusion-Alarm-Sensor-for-Security-System/332326172160?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649
@Joe Blow That's what I had to do too. Just crazy to me, but it works!
Very cool that you mentioned Theo Arends. I fully agree that he has done an amazing job.
And ty for yet another great video!
(Liked & subscribed)
Thanks!
I hope to meet that guy someday.
Love your videos. Wnan I first stumbled upon your channel, I have thought... who is this spooky talking head, but soon realised that you are pretty charismatic character, and your channel is very helpfull. Thank you.
Great Video DrZzs. I have learnt a great deal from your Videos and forums. I have just setup my first D1 Mini with DHT11 as the Temp and Humidity Sensor. I have it connected to MQTT and the Console is Reading the Temp and Humidity no problem
The problem is getting HA to read the Results of Temp and Humidity. They both show up in States as "unknown"
sensor.humidity unknown unit_of_measurement: %
friendly_name: Humidity
sensor.temperature unknown unit_of_measurement: °C
friendly_name: Temperature
The Console shows it is reading fine
09:00:34 MQT: tele/sonoff/SENSOR = {"Time":"2019-05-17T09:00:34","DHT11":{"Temperature":13.0,"Humidity":50.0},"TempUnit":"C"}
09:02:00 MQT: tele/sonoff/UPTIME = {"Time":"2019-05-17T09:02:00","Uptime":"0T00:26:40"}
What is the Project Name? as per your video, as I think this could be the problem
Any idea to help me link to HA?
Thanks in Advance :)
what do you have in your configuration.yaml? My guess is the topic for yours is different from my example.
Hi DrZzs. I have resolved this issue. I had a naming convention that worked however I changed naming (MQTT Topic) for all devices and now they are all working just fine, including the D1 Mini with Temp and Humidity. Thanks for your reply, I appreciate it greatly. Hope to watch one of your Streams soon :)
Awesome video ! Didnt know that you can control those sensors out of the box with Tasmota! Will try this ! Keep up the good work ! Greetings from Uruguay!
Uruguay Cool!
Another pin in my map!
Just what I was thinking; I've loaded Tasmota on a fair few Sonoffs, but never looked any further than turning a light on and off. The flexibility of Tasmota with a NodeMCU and little to no coding is stunning. Thanks for the information Dr Zzs!
you're welcome!
So true! Tasmota is amazingly capable. I'm still finding new things it can do. Theo is a First Class Genius!
I close on a new house in early April. I already have a few sonoff basics controlling lights, and a low voltage sonoff controlling my garage door in the house we are leaving. Once we get into the new house, my home automation will be kicked into overdrive! I don't know if anyone has requested yet, but can you do a video using sonoff/Tasmota as an infrared remote control for Tv/surround sound? I look forward to your videos on Mondays. Keep up the good work!
Thanks!
Actually that sensor kit does have an IR transmitter and receiver!
I peeked briefly at the tasmota settings to make it work. I'll put it on the list and get to it eventually. In the mean time, if you want to try it before I get to it, here's the Tasmota Console commands:
github.com/arendst/Sonoff-Tasmota/wiki/Commands#irremote
I don't know much (yet) about exactly how to setup IR, but I'm sure those commands are the key.
Awesome as usual. Can't wait to try it out as soon as I get off the beach here in Florida for spring break.
Oh man. Totally jealous. At least we're having a nice early spring here in UT.
Let me know how it goes!
Nice Job, thanks. The reason you need to install the driver is because the various ESP8266 modules have different USB to TTL chips onboard. Common ones are 230X. FTDI, and CH340 each of which requires a driver. Once you install them all, it will largely be transparent from that point forward. Likely though, you will see a different comm port for each. Also, the PIR IS actually a motion sensor. If it were not, any infrared source would trigger the output. The PIR relies on a differential measurement between two sensors and that funky segmented lens to break up the light pattern. When an infrared source is stationary, it remains constant between the two differential receivers, when something is moving, the difference is what triggers the output. i probably did not explain that well, but there are a number of videos out there that do a good job including Bigclive who devoted a video to using PIRs.
Awesome! Thanks!
I'll take that NodeMCU question off the things I don't know list now!
And thanks for the knowledge on the PIR. I was thinking of it kinda like a line-break sensor, and that's not really what it is at all. I'll have to check out Bigclive's video.
My "Things I don't know list" has turned into something akin to an encyclopedia... Still smaller than my wife's "Things for anthony to do" list... though so that's good...
hahaha!
Thanks so much!! I've been trying to get the temp to show up in HA for weeks now... you pointed out the syntax with DHT11 pointed me in the right place added my SI7021 sensor and bam! it worked... Awesome Videos!
sweet!!
Thanks a lot for this Video. Watched it a few times now, rewinded, watched the steps i needed again. Go on like this! That's cool!
Excellent!
Things have gotten better with Tasmota too. I'd suggest just grabbing the sonoff-sensor.bin file and flashing that with the ESPeasy flasher.
github.com/arendst/Sonoff-Tasmota/releases
github.com/letscontrolit/ESPEasy/releases
Another good video Justin! Now lets put all of this together and make a sensor node on the cheap.
Thanks Andy!
I want to fill all 11 of those D1 GPIO pins. Make a real Frankensensor!
thanks - had to adjust json in my case to am2302 which it now works like a charm!
DrZzs - It would be really cool to see a D1 Mini replace a old security system. Basically how to confiure the D1 to be the 8 zones a old panel would have. Most houses built in the last 20 years have contact sensors on the doors and windows. One D1 could interface them all to smarthings... for about $5.. really cool
Great video! Just been doing this myself and you have just resolved/answered questions I had. Thanks from me in the UK
Awesome!
Someday I'll visit the Mother Land!
Where you live looks like the place I would want to live. We call mountains what you call a bump in the road.
ha!
it's a beautiful place for sure. I live in Utah. South of Salt Lake City. The town we're in used to be called Mountainville.
You're awesome!
Thanks for all the time and effort you've put into making this video.
Brilliant Vid. Very informative. Relative noob to home automation and after a frustrating and abortive attempt at OpenHab moved to HA, watched your videos to get set up and all is working fine. Testing a NodeMcu with temp/Hum and a rcwl-0516 sensor using your setup above with Tasmota.
Keep up the great work -- Thanks
sweet!
welcome to Home Assistant!
Hi. Great video. I was wondering if I could use a MMwave sensor indstead of the Pir?
Waw, really good video and well documented. Congratulations !
Thanks!
I am using a D1 mini to monitor temp, hum, bar and dew point. It operates from a battery and I need to monitor the analog pin to check the battery charge point. I use Tasmota to set up the chip and see where the analog pin is and have it assigned. My question is how do I get MQTT to see that analog pin and read it?
I also need to add the deep sleep mode, on a 1-minute cycle? Thank you in advance.
Brilliant, thank you! That’s saved me so much time. And fantastic delivery... all the facts in an instant.... with a touch of good humour. Off to click a few of your links
Thanks! I try to be accurate and concise. More to come!
Great video. However note that the D1 mini is not "always in programming mode" like you suggested. The USB serial converter has circuitry in it that will reset the chip and pull GPIO0 down just before the program is sent, placing it in programming mode for you.
excellent! Thanks for clarifying.
I learned something new too!
This is amazing! I have a nodemcu and a LED strip here, but I did not know how to connect them together. Now I know (and I know much more) Great! (And I will leave a message for Theo and buy more parts through your links ofcourse :-))))
Awesome!
Thanks!
Theo's going to get bombarded with Thank You notes today! Love it!
Funny, Theo appears to live about 15km from here :-) And thank you for all the good things you share with us!
Martijn _ Awesome! Go say hi for me!
Thank you for another deluxe class!!! Keep doing videos like this...
Thanks!
With great feedback like this, I sure will keep doing them!
Nice and informative video.
Question - i connected wemos with relay and AC power accessories. i'm able to control but because of no power-backup or whatever reason if there's couple power fluctuations, it wipes out the config from the esp8266.
Any ideas, how to avoid it ?
Awesome video!
I have 2 temperature sensors connected to nodemcu running Tasmota. I get the following MQTT output from it :
03:59:42 MQT: tele/TempBasement1/SENSOR = {"Time":"2018-10-31T03:59:42","AM2301-14":{"Temperature":62.4,"Humidity":72.7},"AM2301-15":{"Temperature":65.5,"Humidity":56.1},"TempUnit":"F"}
but when I create a sensor in HA to read in value_template:
“{{ value.json.AM2301-14.Temperature }}”
it doesn’t show up. When I only have 1 sensor connected and MQTT output is
{"Time":"2018-10-31T03:59:42","AM2301":{"Temperature":62.4,"Humidity":72.7},"TempUnit":"F"}
and I use
“{{ value.json.AM2301.Temperature }}”
then it does work just as in your tutorial. Any idea what I am doing wrong?
There's something with tasmota that limits how many sensors of certain types can be connected at the same time. I don't remember the details now but, the details are here:
github.com/arendst/Sonoff-Tasmota/wiki/Expanding-Sonoffs
and here:
github.com/arendst/Sonoff-Tasmota/wiki/Sensor-Configuration
Thanks for the links! I didn’t know it was limited. What’s kinda funny is that Tasmota does output two sensor values on the sensor topic. One is called AM..-12 and the other AM..-14 (seems like the -## is based on the GPIO pin#) but when I use these parameters in HA they don’t get read by HA and my sensors just show blank dash on the dashboard. I figured if I just used the AM..## that the MQTT payload has it would be fine. But when I have one sensor and there is no “-12” or “-14” then it works just like in your tutorial where I just use json.AM2301.Temp... I must be doing something wrong and not reading the MQTT payload correctly or it’s limited to just one sensor output per MQTT message. Thanks again for replying - love your tutorials!
Thank you very much! You help me to solve the problem with constantly on/off/on/off/on/off ))) You are the best!
For anyone else who comes here and struggles because this info is out of date, I have the following advice. 1) Use Tasmotizer to send the latest tasmota-sensor.bin file 2) use Tasmotizer "Send Config" button to send WiFi info. You can then connect and setup the module-info or use the same Send Config button to setup MQQT etc.
Hello and thanks so much for this...spend a late evening trying to firgure all of the errors out that I was getting, finally realizing that the instructions were out of date...learned a bunch that way, but still frustrating in the end...until I found your comment here! Thanks so much!!
Hi at first sorry about my English. :) I am little bit confused because, when i go back to your video $5 Sonoff + $2 parts = Best Smart Switch EVER! in this project you were using resistor and 33nf tantalum capacitor to proper function of touch button. It this current video you mention and show sonoff basic with humidity sensor (DHT11) and touch button is connect to bat without capacitor an resistor. My question is, this another way ho to connect touch button to sonoff without resistor a capacitor ? Thanks for all what you do. Have a nice day Mirek.
Another great video Justin! keep up the great work buddy
Thanks!
will do!
Awesome video and thanks for sharing, greetings from Hel, Poland :)
Thanks!
Cool!
I need a map to mark all the places people watch from. That'd be cool.
Yo Doc. I know this is old, but did you hook up the HC-SR501 directly to the Sonoff? I see in your video of the Sonoff hookup and the 5v but isn't that 3.3v? In another video, one person went through all kinds of steps to get the 5v. Is it really possible to drive it off the Sonoff? If you set the jumper to no repeat and timer to ~5 minutes, this would make a great walkway lighting combination. Please let me know. - Thanks
I have connected PIR sensor directly to a sonoff and it works great. I used this PIR though (not the 501) - drzzs.com/BruhPIR
Can't honestly remember if I connected it to 5v or 3v. I think it was the 3v pin from the flashing pins that I used.
Hope that helps. Definitely you should use that PIR from the link instead of the Big'ol 501. I had a lot of trouble with the 501 triggering randomly when it's too close to the ESP8266 chip.
Good luck!
I cannot find 2 infos - how to set the LED number (e.g. how many is connected) and how to tell tasmota that I have RGBW leds, not only RGB... Even Tasmota wiki seems to skip anything on addressable leds topic.
Awesome work! Thank you DrZzs
Thanks!
If you're planning to do this check out the sonoff-sensors.bin version of tasmota. It's all ready to use a bunch of different sensors.
github.com/arendst/Sonoff-Tasmota/releases
Does tasmota support external RTC on esp8266? I would like to build a tasmota rtc relay timer that i can use offline at my woods cabin oft 12V
This is fantastic doctor! I got sensors out the wazoo. There is a wifi repeater project on github that is pretty dope too. Do you know whether it is possible to track people based on the wifi/bluetooth beacons emitted by their phones? I would like to be notified of my neighbor's comings and goings. Not for any nefarious reasons. Sometimes they don't answer their door when I knock. This way I can announce, "I know you're home, I want to finish our discussion about home automation!" If you could point me in the right direction, that would be great. Thanks for vids
Thanks, that was some good info. I just went to copy everything over to the Arduino IDE and am having some issues. The files for tasmota changed (name wise), running into a wall at the moment.
NM....used NodeMCU PyFlasher...so easy
Hi,
Perhaps you may be interested in this configuration.
When the motion sensor is activated, a rule delays its deactivation during the set time (in my case, 30 seconds) to see it active in HA.
The second rule invalidates the publication that turns off the connected led strip.
SwitchMode 0
SwitchMode2 1
SwitchTopic2 PIR
SwitchTopic 0
Rule1 on switch2#state=1 do backlog publish cmnd/PIR/POWER2 ON; RuleTimer1 30 endon on Rules#Timer=1 do publish cmnd/PIR/POWER2 OFF endon
Rule2 on switch2#state=0 do publish stat/proyecto1/POWER "" endon
Rule1 1
Rule2 1
;-) Thanks for your work.
In light entry you have: "cmnd/D1mini01/power2" . I deletet "2" to get work.
I love your videos. Greetings from Denmark
Thanks!
Glad you got it working!
Awesome Denmark!
Thnx! that fixed it for me
... Any chance you can do a clip showing how to add a DHT22 and say a BME280 to a Sonoff Basic. (I'm planning one DHT22 on one Basic at one location and another BME280 on a 2nd Basic at the 2nd location, only reason for the BME22 is the pressure sensor, would have been nice if there was a Temp/Hum/Pressuree sensor in the packaging of a DHT22
I can put it on the list. Not sure when I can get to it.
2:56. You can also power the D1 by the 3.3v Directly.
Thanks again for another educational video, I have succesfully tasmotized my D1 mini but cannot get water sensor to be recognised, have tried numerous module configurations to no avail, any ideas? .
Thank you for this great tutorial. I want to automate a phyiscal button press with an CD4066 IC - how can I send HIGH/LOW to GPIO 4 for example? Do I even need a IC for this?
Hello DrZZs, all your video are awesome and I learn a lot with them. I use this video to create some temperature and humidity sensor over the house with some wemo d1 mini with tasmota and some DHT11, they all work nicely and home assistant integration too. The issue I have is, after sometime my wemo stop read the both value and the only way to make it read again is to remove the power and plug it back. After that it work for a while until I have to do it again. A soft restart do not work.
Can you help?
Thank you again for your good work
bummer. I don't know what to do about that. I guess I'd try to automate a hard reset perhaps by using a wifi smart plug for the power supply going to the D1mini.
I've done that with my PiZero Cameras that need a hard restart every so often. Not a very elegant solution, but it works.
Great video but I think the git has changed for the version of the sonoff-tasmota.ino. I can't find that file anywhere with the config settings on it...is there an updated way to do this? thanks
Inspirational video. How do I read the sensor values in an iOS MQTT app like IoT OnOff? What kind of topic do I need to subscribe to?
thanks
I don't know about that specific app, but for Home Assistant the sensor entry looks something like this:
Sensor:
- platform: mqtt
state_topic: 'tele/masterBR/SENSOR'
name: 'Master Bedroom Temp' #AM2301
unit_of_measurement: '°F'
value_template: '{{ value_json.AM2301.Temperature -2 }}'
Hope that helps.
@@DrZzs Great stuff. Managed to figure it out and your tip about inserting the sensor model into the JSON parser made it all work :) Thanks!
I cannot wrap my head around these state topics, command topics!! MQTT in general is kicking my butt. Where does this information come from? Thanks for any and all information
It does take some getting used to. I was quite confused about it for a long time. Here's my best shot at a quick explanation:
MQTT is like devices texting each other. The "topics" are like the device phone numbers. the "payload" is the actual message. The "Broker" is kinda like an old time phone operator passing the messages along.
For example, a smart light can have a topic for the "state" that could be "stat/sonoff/power" and the payload could be On or Off. That light communicates with the Broker and says, this is my state topic "stat/sonoff/power" so if anyone ask for me tell them I'm on or off based on the last message I sent you. When the state of the switch changes from on to off it "Publishes" a new message using that topic "stat/sonoff/power" with payload Off. Now if Home Assistant wants to know the state of that light it can "Subscribe" by telling the Broker; if anyone publishes a message to the topic "stat/sonoff/power" please let me know the payload so I can show Mando the right color Icon in his UI.
For Command topics the switch tells the broker, if anyone wants me to change my state I'll be listening at this topic: cmnd/sonoff/power. And when you press the button in Home Assistant it sends a message to the broker using the topic cmnd/sonoff/power, with the payload On or Off. The broker passes that message on to the light and the light goes from Off to On.
The exact "topic" can be almost anything as long as the devices that want to communicate with each other subscribe and publish to the exact same topic.
For other sensors the payloads can be things other than on/off. They can be number values like temperature or % humidity, or they can just be strings of text like a sentence or a couple words that you want to display on a screen.
Hope that helps. :)
Hallo boss!
How can avoid a relay turn off/on after every restart?
I have 2 relays set in interlock , but every time the wemos tasmota restarts they will go on together for few than a second.... can you help me?
Hello, thanks fot the tutorial, Could you help me with one doubt?: It`s possible to conect PIR sensor directly i the sonoff? Thanks in advance.
Hi,
Thank you very much for all the videos. I am learning a lot with them.
In the 02:50 minute you say that nodemcu can work with 12v.
This is correct?
I am using 12v LED strips ( WS2811 ) but I need to lower the voltage to 5v to power the nodemcu controller.
Check your specific NodeMCU board. Some say they accept 12vdc, others say the max is 9v or even 5v.
@@DrZzs My NodeMCU boards are clones. I think if I turn it on with 12v they will burn jejeje
I don't see references to 12v in the specifications. Thank you very much.
thanks for the great tutorials... was wondering if you could help. Trying to get a PIR working. but it doesn't seem to update mqtt with the ON/OFF messages when there is movement.
Power > 5v
GND > GND
OUT > D1 on d1 mini (GPIO 5) set to switch2
followed the tutorial
but PIR seems to report ON every 5 min and not when there is movement (where am I going wrong)
17:02:08 MQT: tele/sonoff/INFO3 = {"RestartReason":"Software/System restart"}
17:02:08 MQT: stat/sonoff/RESULT = {"Command":"Unknown"}
17:02:16 MQT: tele/sonoff/STATE = {"Time":"2019-04-11T17:02:16","Uptime":"0T00:00:17","Vcc":3.037,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"Wifi":{"AP":1,"SSId":"WiFi","BSSId":"CC:2D:21:0B:BF:C9","Channel":6,"RSSI":72}}
17:02:16 MQT: tele/sonoff/SENSOR = {"Time":"2019-04-11T17:02:16","Switch2":"ON"}
17:02:30 CMD: switchtopic2 pir11
17:02:30 MQT: stat/sonoff/RESULT = {"SwitchTopic":"pir11"}
17:03:33 CMD: SwitchMode2 1
17:03:33 MQT: stat/sonoff/RESULT = {"SwitchMode2":1}
17:07:16 MQT: tele/sonoff/STATE = {"Time":"2019-04-11T17:07:16","Uptime":"0T00:05:17","Vcc":3.016,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"ssid":{"AP":1,"SSId":"ssid","BSSId":"CC:2D:21:0B:BF:C9","Channel":6,"RSSI":100}}
17:07:16 MQT: tele/sonoff/SENSOR = {"Time":"2019-04-11T17:07:16","Switch2":"ON"}
it seems you have your SwitchTopic set to pir11, but not SwitchTopic2. So maybe try adjusting that
@@jrigvd7291 cool, will try it... In the end i ended up going with ESPhome and had to buy new PIR, and it works...
Hey Dr Zzzzz, great video - I'd love you to add another video to your suite.... hassio on main system, and a second raspi with the usb stick. Have the second raspberry not have hassio on it, but raspbian (or other unix), and just the usb stick for something like zigbee and/or z-wave (or both). Then connect it to the main hassio system through mqtt. That is what I want to do, as I have a network connected from my office to main house (separate buildings, same lan) with devices in both. Thoughts? Could you do this?
man, that sounds complicated.
Not sure I can say how best to do that.
Hey Justin, Love this stuff. Great videos, the right mix of humour and getting it done. Get excited by your PIR project, got it all set-up but struggling to get the D1 to talk to HA. Console is showing the activity but as cmnd/d1miniPIR/power = TOGGLE but subscribing to this in HA is not triggering at all. You also use /POWER2 in the settings, which I don't fully understand as it's showing only power in console on D1 mini. If I set the HA details back to standard MQTT topic of the D1 mini, I can get it turn on the light but it never turns the PIR trigger off. Not sure how I've got this wrong.
Thanks! I'm having a lot of fun making these too! Just wish I had more time to make them faster....
I think I'm following your problem, but maybe not totally.
Anyway, the reason mine says "power2" is because I set the PIR as "switch2" You should probably change yours also. In the dropdown menu on the Configure Module page for the GPIO pin, select "10 Switch2" instead of "09 Switch1".
I think you might need to change your switchmode too, so instead of "toggle" you get "on" "off".
In the Console type "switchmode2 1" enter.
See what those changes do for you.
DrZzs alright, so good news, I got it working. Weird news, did all you advised and still wouldn't trigger HA. So set back to Switch 1 and topic to POWER, switchmode1 1 and it works! Just don't understand why switch 2 with topic of POWER2 won't work.
So given I'm using a D1 mini and not Sonoff, I assume this is ok to keep as there is no relay on the D1 mini or is there?
I've got a spare Sonoff so am going to try and see if I can can get the switch 2 option to work on that just for fun.
Weird, but we'll take it!
There is no relay on the D1mini. You can add one if you want to though. But as you have it you can use the PIR for automations in HA just fine.
When you use switch2 you also need to set the "switchtopic2 customtopic", in the tasmota console. When you do that the mqtt topic for activating that switch becomes: "cmnd/customtopic/power2" and the topic for the state would be "stat/customtopic/POWER2". Maybe changing the switchtopic is the part you were missing before.
DrZzs YOU STAR! switchmode2 1 fixed it for me! I have been trying to get this to work all day, just kept replaying your video to see where I had gone wrong, I never twigged on that I was sending a toggle rather than off & on! Cheers
is there any way of getting a custom firmware onto a Hisense AEH-W4E1 ac unit?
Thank you for the tutorial. I'm having some issues by trying to connect a PIR and a DHT11 to a Tasmotized sonnof basic. When I connect the sensors individually they work fine but if I connect both only the DHT works. I'm running the last updated version of home assistant (0.115.4), the PIR is connected to GPIO3 and the DHT to GPIO1. I only added these lines to the binary_sensor.yaml:
- platform: mqtt
state_topic: cmnd/NewPir01/POWER2
name: R3 PIR
device_class: motion
Any lead? I out of options. Thank you in advance
H.
Try typing "SerialLog 0" in the Tasmota terminal. That'll turn off Rx/Tx communication.
Hope that helps!
@@DrZzs Actually I erased everything and only applied these two rules:
rule 1 on switch2#state do publish Prueba/PIR/state %value% endon
and
rule 2 on switch2#state=1 do backlog power1 on; ruletimer1 30 endon on rules#timer=1 do power1 off endon
also I've generated a binary sensor like this:
- platform: mqtt
name: "PIR Motion"
state_topic: "Prueba/PIR/state"
qos: 1
payload_on: "1"
payload_off: "0"
payload_available: "Online"
payload_not_available: "Offline"
device_class: motion
That lets me show the PIR into HA, and it works very well... but as soon as I connect the DHT11 the PIR system stopped working.
By the way, I didn't introduce a single line of code for the DHT11, it worked automatically.
I've tried to change the SerialLog from 2 to 0 but I've got any change
@@DrZzs I made a cross-check of console log by restarting the unit with and without the DHT11, and I found these three lines are executed at the very beggining of the boot ONLY when DHT11 is NOT connect:
00:00:02 RUL: SWITCH2#STATE performs "publish Prueba/PIR/state 0"
00:00:02 RSL: Prueba/PIR/state = 0
00:00:02 RSL: stat/Prueba/PIR/SWITCH2 = {"STATE":"OFF"}
Any clue how make them run also with the DHT11 connected?
Is this still necessary for the Arduino part in 2022?
Hi there your videos have got me hooked to Tasmota and Sonoff!
Can I use the D1 mini and Tasmota to switch on and off 2 contacts ? Say I would want to use it to send a momentary on off pulse to an appliance switch ?
you sure can.
I'm working on a project using a D1 with relays. One issue I've found so far is that the voltage output on the D1 GPIO pins is only 3.3v. That might not be enough to trigger the relay. I've got mine traveling some distance between the D1 and the relay, so the voltage drops even more. I bought a logic level shifter to boost the voltage of the signal to 5v, which should be enough. They just arrived so I haven't tried it yet.
I'd say try it without the level shifter and hopefully it'll work if you aren't losing voltage over distance like I am. If you find the relay isn't triggering with the 3.3v try one of these:
amzn.to/2r8gvxw
Hope that helps!
thank you, friendly tip about text for in video links, they appear where the youtube gui overlays, so when people pause they can not be read, please paste higher up if possible, or not....thanks again.
Excellent... thanks. You put me hours ahead of trying to interpret the application from the WiKi. LZHenry
After 2 days of errors for undefined resource WPS errors I finally found out you have to run an older board package version. esp8266 version 2.3.0 works but the newest ones caused me about 20 hours of headaches a sore butt and wasted weekend. Also if you want a DHT22 to work for some reason I could only get it working on pin D5 using AM2301 as the sensor type. Even though the sensor is technically a AM2302 it works. I'm a total newbie to all this so maybe that's why it took me so long but I hope this helps the next person. I was using a NodeMCU's if that makes any difference.
I've started only using the sonoff.bin pre-compiled binary file to avoid all the library/board manager issues. I haven't tried putting Tasmota on a D1 mini in a while so I don't know if there are issues with newer .bin versions. I'll be using a couple for the maker faire so I'll try it out and see very soon. Sorry it was such a pain for you.
While frustrating it feels good when you finally figure something out and make it work. The only issue I have now is it's only outputting in Celsius. I even changed the 0 to a 1 in the user_config.h to change to Fahrenheit. I just convert it in HA by adding * 1.8 + 32 like this: value_template: '{{ value_json.AM2301.Temperature * 1.8 + 32 }} Anyway I've enjoyed your videos a lot and you are very helpful. I feel like a celebrity just answered my question. lol, keep up the great work.
Ha! celebrity? I'm going to tell my wife she has to start treating me like a Star!
In the web UI for Tasmota, open the Console, what does it say when you type "setoption8"? if it is 0 or off, then turn it on with "setoption8 1"
If that doesn't work let me know and we'll try something else. (I don't really have anything else to try, but I like to offer anyway :)
I found out that info last night after a lot of searching. You type: cmnd/your_sensor_name/SetOption8 1
@@DrZzs have you tried putting tasmota on any D1 Mini lately? I'm having a hard time finding the right driver that will work with arduino on a mac.
I'm trying to flash TASMOTA onto a D1 Mini Lite version, and I keep getting the error: "WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool"
I checked in the user_config.h file, and tried every possible option that DIDN'T involve use of WPS in the WIFI_CONFIG_TOOL section, but that's apparently not the issue.
Any ideas? I'm about ready to give up on this thing. :/
I FIGURED IT OUT!
The Boards Library version 2.4.2 has the issue. I switched it to 2.4.1 and it compiled no problem.
ya, there were some troubles with different board managers and such so I've stopped compiling it myself. I just use "sonoff.bin" from the Tasmota github and avoid all those problems.
Glad you got it working!
I wanted to be able to flash all of my configuration settings (Wifi SSID/Password, MQTT server address and creds, etc).
I've never flashed a BIN file to these boards before, and I'm on a Mac, so I wasn't sure where to start with software with that. I could PROBABLY do it from the terminal, but I'd also have to go dig out a UART module out of the empire of dirt, and only God knows where any of those are at the moment.
So I opted to rip out some more of my quickly vanishing hair, and just mess with it until I finally got it working. :D Jumped the gun on asking on the youtube comments. ;)
that's a good reason to compile your own then :)
Hi DrZzs! Great video! Any chance you could publish an idiot-proof video for dummies like me on just how to flash tasmota into a Tuya PIR sensor?
This video real came in a good time. I just have a di 1 mini and i m playing with it. Just have to put a VM and install home assistant Tu test those trips.
Thanks you.
Great!
Let me know how it goes!
I don't understand that "value_json". May be that's the reason, my sensor is working, showing in tasmota page, added to HA with MQTT, but readings not showing in HA. Need help.
Thank you @DrZzs for another wonderful tutorial. On my D1 mini, however, I have two problems. Can you please help me with these?
(1) When the motion has ceased, the switch doesn't revert to OFF sometimes. It stays stuck on ON until the motion is triggered again, when it toggles.
(2) When restarted, the switch begins with OFF. However, when it first senses motion, it still fires OFF and a few seconds later fires ON.
Did find a solution to this? I have the same issue
Late to the party! Love this video. Did you power the entire neopixel project from that 5V supply? Just wondering about shared ground for microcontroller and LEDs
When I open the Sonoff.ino file, Only one tab opens that is the sonoff.ino. not getting the other tabs ????
I'd recommend not using the Arduino IDE anymore. I'd go with the pre-compiled binary of tasmota instead. th-cam.com/video/KMiP9Ku71To/w-d-xo.html
Much easier and much less likely to have errors in the process.
Good luck
that´s a really good explained tutorial!
Thanks!
It's a bit dated now. Things have changed a lot and are actually easier and more capable now.
Hey DrZzs,
huge compliment on this and your other videos. I enjoy them very much and learnt a lot from them already.
But now, I am afraid, I am stuck trying to use my WS2812 with Tasmota on a Wemos d1 mini.
After I flashed the d1 mini, I set the module to Generic and set the corresponding pin to “07 WS2812”.
After a reboot I got the on off button and the slider but unfortunately I am not able to control the LEDs.
As soon as the d1 mini powers up all LEDs turn on on full bright white and I am not able to change it.
I checked the connections, replaced wires, used another d1 mini, used a different LED strip with only 2 LEDs, powered the LEDs with an external power supply (connecting grounds), re-flashed it… no success.
I am running out of ideas, any help would be appreciated.
Thank you
Thanks!
man, that sounds like you tried everything so far. What other info can you give me? Maybe some images of your connections and screenshots from tasmota.
For easier chatting head to discord. We have a channel for LEDs too. There may be others there that can help. discord.gg/8gvF67h
I'm sure we can get it working.
Thanks for the quick reply. Much appreciated.
Was hoping you came across this very problem before.
I am heading out of town for a couple of days now but as soon as I am back I am going to start from scratch.
Hope you or the guys at discord can point me in the right direction.
Cheers
@@tb8756 Did you ever get this sorted out? I am running into the same exact thing. I also tried using the same version of Tasmota as in the video and still have all white LEDs.
Unfortunately not.
I started again from scratch but without success.
Please let me know if you get it to work.
@@tb8756 I finally got it working!!! I had to uncomment the line that says "#define USE_WS2812_DMA" in the my_user_config.h file and then hookup my data line to the pin labeled RX on the d1 mini (GPIO3). Good luck.
Hey thanks for doing these videos, you do an awesome job! Do you know of any examples of, if the temperature from a sensor (DHT11) attached to the Sonoff goes below say 40 degrees to turn on a plug/switch in Home Assistant and then off at 60 degrees. Also is there any tricks to change the temp reading from Celsius to Fahrenheit on the Sonoff and Home Assistant?
Thanks!
you can set up an automation to trigger a switch based on a temperature.
I just did this quick to show you how:
www.dropbox.com/s/6mdetnn2a0evrqk/tempfanauto.mov?dl=0
Trigger is "numeric state", you can do either "above" or "below", I set a condition that I have to be home for it to work (conditions are optional, not necessary at all), then the Action is to turn on the fan in my office.
:)
In Tasmota, at the "Console" you can set the temp units:
SetOption8Show current Temperature as either Celsius or FahrenheitSetOption80 / celsiusSet Temperature to CelsiusSetOption81 / fahrenheitSet Temperature to Fahrenheit
You probably have to have the units matching in HA and Tasmota.
To set the units in Home Assistant:
sensor:
- platform: mqtt
state_topic: 'office/sensor1'
name: 'Temperature'
unit_of_measurement: '°C'
Thanks for your help! I plan on seeing you at the maker fair in a few weeks.
cool!
see you then!
I have followed your steps but for some reason when I opened my arduino soft ware it does not have the multiple tabs like yours does. I have tried to find where I went wrong but I cannot seems to get to the right location. It seems that when I open the Arduino software it is just that, mean it does not say sonoff like yours does at the top. I feel like I need to open a file to work in but I cannot find sonoff.ino??
I'd recommend not using Arduino IDE anymore. There's an easier way to put Tasmota on any device. Use FlashEZ and Sonoff.bin: th-cam.com/video/KMiP9Ku71To/w-d-xo.html
When I copy and paste the code for the d11 into my yawl file it gives an error for the code.
I just built this. Great project. I want to know, if you have a video, or can point me to one based on the following scenario. I want a motion sensor in the small area where my toilet is. (it is a closet , so to speak in my bathroom) I want the sensor to control the light but lets say from 8 pm to 5 am the light will come on at a 20% or so level, the rest of the time at 100%. Just enough to make objects out.
Cool!
that's totally possible!
The best way would probably be to use NodeRed, because it's better at complex automations. I'm not a NodeRed pro (yet), but I think I can tell you how to do it with Home Assistant.
I haven't tested this, and you'd have to use your own entity ID's or MQTT topics, but it would look something like this:
automation old: - alias: 'Bathroom Motion dim' trigger: - platform: state entity_id: binary_sensor.d1_pir from: 'off' to: 'on' condition: time after: '22:00:00'
before: '06:00:00' action: - service: light.turn_on data: entity_id: light.bathroom brightness_pct: 30
Good luck!
Thank you
Any idea how to read and log an analog ( for examle a gas ) meter data? Regards
Not that I can think of right now. I know you can get analog input on the Ao pin, but what exactly the gas meter is outputting and how the D1mini/Tasmota would interpret that I can't really say.
Do you know if it's possible to use both a reed switch(magnetic door switch) and a PIR sensor on a D1 mini at the same time? What commands would I use?
first of all great video!!!
How would i connect a vibration sensor module(sw-420 nc type) to the d1mini?
want to be able to put this on washer to let me know when its done,lol.
thanks!
You're not the only one. I would guess it would work similar to the motion sensor, when there's vibration it is "on" when it stops to goes "off". So you would set it up in Tasmota like a switch.
I'll have to check my kit and see if it has one of those.
Hello great video... can’t you just connect the pir sensor to the sonoff gpio?
yes you sure can. I just wanted to see what Tasmota looked like on a D1mini :)
Thanks DrZzz. I have a "C" wire in my thermostat. Can I still use this thermostat wiring? What do I do with the "C" wire?
The C is extra for electronic thermostats, if you don't use it then wrap it up
Hi didnt you have to change the signal V logic for the led strip as they run on 5V signal?
No. They seem to work fine. But yes, if you connect them and have issues then a logic shifter would do the trick.
I never knew you could do that!
Pretty cool right?!
I only had time to do those few sensors. I'll be adding that motion sensor to some of my Zzonoffs in the future for sure!
I am not sure how to get files from Tosmota website. There is not download button under the lib folder on github.com/arendst/Sonoff-Tasmota/tree/development/lib. I am using windows 10 OS.
github.com/arendst/Sonoff-Tasmota
upper right corner. Download the zip file from there. :)
Another question re: home assistant. Been using a PI3 since the day it came out, it seems to be bogging down in my new house. What is your opinion on using a dedicated pc instead of the pi?
I've only every used HA on a pi3. I haven't had any problems, but I don't think I'm asking it to work very hard.
I know a lot of people use different hardware. Some real high-end users use a NUC. amzn.to/2DQx6uh
That seems a little extreme to me, but they swear it's the best. I guess if money wasn't a factor I'd do something like that too.
If you do change hardware you'll have to use some other installation besides hassio.
home-assistant.io/docs/installation/
That introduces a lot more potential issues and things you'll have to figure out how to get working. Hassio's add-on system makes things so easy. If you're a "computer guy" then using a different install method might not be an issue.
They just came out with a new pi3b+. Should be a little more powerful. Don't know if the current hassio image is 100% compatible with it yet.
That's my opinion for what it's worth :)
Let me know what you decide to do and how it turns out!
Saludos from Puerto Rico
Thanks for your videos ! I have an idea but don’t know who to start . I will like to monitor
Varios battery 12vdc (12 of them ) from my solar system with Home Assistant . What you Think?
some inverters have API's that are accessible (so you can get data into HA). What brand inverter do you have?
I have followed a guide and setup a Arduino voltmeter in the past (very simple and only needs 2 resistors per battery) maybe you could do something with a NodeMCU?
TheDazman
Yes I’m looking for something like that
But view with tasmota / homeassistant
Thanks like always. Waiting for your holyday led especial !!!!!!
Does Esp-now with Tasmota?
Hi, thank's for your video. I have a question: when I sept in tasmota: Generic module to create node mcu with 4 relays they work according to each other. When I turn on one of them, the other goes off. For example: if I turn on the relay 1 while the number 3 is on, the latter goes out as soon as the relay 1 goes ON.
Is there any command to give in the console? Thank you
Thanks!
It sounds like they are in "interlock" mode. "SetOption14 0" in the console might fix it.
Let me know if that doesn't do it.
Lost you about 2:00 time, my sonoff.ino files look different. and I cannot follow you to the user.h as I am Win user... .any hint ? Thx
Use tazmotizer saves all the setup steps
Hey Dr. Zzs, In some of your vids I see on your HA screen that you have cameras feeding in to your system. I too use Hassio, Sonoff, & Home Assistant. Will you please tell me which is the best camera system I should install for the money. It's the one thing I haven't set up yet. Thanks man!!
Sure! The images you see are blink cameras. I have a Foscam and an Arlo also but those I haven’t set up fully. I think the foscam should be really good. I can’t get live video with the blinks. Just pictures.
I need to find the “best” camera solution and make a video, don’t you think!?!
Please do. Everyone that I know that uses this system is always looking for a cheap, easy and effective solution to the camera project.
I’m thinking the best overall solution might be a pi zero w/ pi camera.
Are you looking for a battery powered camera?
I own 2 RP3s. One running Retro Pi with Kodi, and the other running Hassio. I did consider building a surveillance camera, since i do have a RP cam. But i really want several, so that idea seems excessive. The one my Home assistant system needs.... well, i need. Lol, is a cam that integrates with system and live feeds into it. I own several cams, but cant seem to find a working model. I added a PS2 webcam, using the motion add on. That worked for 2 weeks till the latest update. It wont work anymore and Im not sure how to get it back up. I also have a YI 720P cam, I did the firmware mod in the Docs of HA. That did open up more options, I can now SSH in to it, and I can log into FTP server, but I think the hack has old code and it wont show me the correct image folders. By the way, this little cam is really awesome. It has motion tracking. It tracks my topless wife around. Lol. The app works great. I wish I could make that work, but Im not that great at Linux, which it is running. I don't need a battery powered one. I plan to mount it as a surveillance cam. I don't mind buying another camera if it works with this system. Today, i'm working on the D1Mini and my 37 sensor assortment. You are 100% right! Tasmota is the perfect firmware for the system we own.
man.. they need a "Like x 1000" button !!
thank you for sharing this video !!
flashing Tasmota tonight.
hahaha!
That's awesome!
Glad you liked it! Good Luck tonight!