Hi for some reason when I follow the instructions on my wall switch, a short press would just send a hold command in the console. Your comment fixed the issue the 0.2s was over-riding the default on command. Thanks a lot.
I've been trying to get this work for hours messing with yaml files and literally no forum mentioned mqtt being in automations! Thanks man this was driving me nuts!
Hello Dave, super Video!! For me as an home automation beginner its easy to follow. I´m using the openhab server. Do you know how to integrate the commands there? Thanks a lot and Im looking forward to more nice videos Cheers Peter
Hey Peter, I've never used OpenHab but if it similar to Home Assistant I'm sure you can connect an MQTT server to OpenHab. I don't know about creating automations though.
Hi Dave, nice video. I just have a couple of days looking at Tasmota. I have a D1 mini with a relay shield and Im trying to figure out how to program it to trigger with your button.
@@DaveOTech hi Dave, I probably didn't write the question correctly. I just wanted to set a D1 MINI with a relay shield (ON or OFF ) using your button or by using any other MQTT Client. I already figured out. I had to add at the end of the topic the "cmnd/POWER" string to make it look like : house/light/cmnd/POWER using payload "ON" or "OFF".
please advice that having you used a now old tasmota firmware (you used a 7.2.x, while now we're at 8.2.0.x...) some things changed... example, that topic is now different, as setoption19 is not swapping its parts anymore... AND, you should check for STAT mqtt messages, NOT the CMND you're using for triggers... cmnd are used to do automations, not to get states...
Hey. Good point. Set the topic to whatever is listed there, under MQTT FULL TOPIC/POWER. I didn't really talk about setoption19 in the video, I just had it in my notes. Would it matter if I used the STAT instead of CMND? (I really don't know, that's why I'm asking.)
Ahh okay I understand. I thought I was simply listening to the POWER state. Either way, you could use stat payload and in theory it should do the same thing.
Can de Wemos D1 listen to MQTT messages? I would like to have an LED illuminated button, but the light would be coming from a state trigger in Home Assistant. I can do the Home Assistant bit but I wonder if the Wemos can receive the status and trigger the light in the button? Thanks!
how can I use pushbutton as manual to switch relay on, without using any editor also, How can I control it through web interface both push-button and toogle switch of web should work to control relay
Si, si puedes instalar TASMOTA en el ESP01 entonces puedes usar este método. Pero yo no se como instalar TASMOTA en un ESP01, pero puedes encontrar una guía en línea.
Technically yes, however it would still require an MQTT broker running on a raspberry pi. It would also require custom code to get it to work. I recommend getting home assistant on a raspberry pi just to have it.
Yes you could, look up "Wemos to Wemos Communication" on UA-cam. However I highly recommended giving Home Assistant a try. It can be run on something as small as a raspberry pi. With home assistant, you can set up an MQTT server. You could also set up a MQTT server standalone on a Raspberry Pi. Having an MQTT server on your network will allow essentially an unlimited amount of devices to be able to communicate between one another.
i do similar thing but not with mqtt i send a websend command to the device i want to switch on / off heres an example rule2 on POWER3#State=1 do websend [192.168.1.52] power1 on ENDON ON POWER3#State=0 do websend [192.168.1.52] /power1 off
advantage is it doesnt need a mqtt server and is instantaneous... works great you can even send commands to other devices, so for instance i can send a scheme change to a ws2812b leds i have attached to a wemos d1 mini works great using this rule rule2 on POWER3#State=1 do websend [192.168.1.52] scheme+ ENDON ON POWER3#State=0 do websend [192.168.1.52] scheme- ENDON
@@aaaafaaaaf Take a look at this: ua-cam.com/video/LdHbvn3srJk/v-deo.html You need the ESPEasy file: github.com/letscontrolit/ESPEasy/releases And the latest TASMOTA release: github.com/arendst/Tasmota/releases
If you have dimmable lights that can be controlled by Home Assistant, then absolutely! You would just trigger whatever causes the light to dim rather than toggle the 2nd switch.
Please note that SetOption32 2 will set the timer to 0.2 s. SetOption32 20 will set it to 2 s.
Hmm, I didn't realize that, thanks.
Hi for some reason when I follow the instructions on my wall switch, a short press would just send a hold command in the console. Your comment fixed the issue the 0.2s was over-riding the default on command. Thanks a lot.
I've been trying to get this work for hours messing with yaml files and literally no forum mentioned mqtt being in automations! Thanks man this was driving me nuts!
Finally have a use for my d1mini
Hello Dave,
super Video!! For me as an home automation beginner its easy to follow.
I´m using the openhab server. Do you know how to integrate the commands there?
Thanks a lot and Im looking forward to more nice videos
Cheers
Peter
Hey Peter, I've never used OpenHab but if it similar to Home Assistant I'm sure you can connect an MQTT server to OpenHab. I don't know about creating automations though.
Hi Dave, nice video. I just have a couple of days looking at Tasmota. I have a D1 mini with a relay shield and Im trying to figure out how to program it to trigger with your button.
Hey, please take a look at the description of the video. The first link is a link on how to flash tasmota.
@@DaveOTech hi Dave, I probably didn't write the question correctly. I just wanted to set a D1 MINI with a relay shield (ON or OFF ) using your button or by using any other MQTT Client. I already figured out. I had to add at the end of the topic the "cmnd/POWER" string to make it look like : house/light/cmnd/POWER using payload "ON" or "OFF".
🤝
please advice that having you used a now old tasmota firmware (you used a 7.2.x, while now we're at 8.2.0.x...) some things changed... example, that topic is now different, as setoption19 is not swapping its parts anymore... AND, you should check for STAT mqtt messages, NOT the CMND you're using for triggers... cmnd are used to do automations, not to get states...
Hey. Good point. Set the topic to whatever is listed there, under MQTT FULL TOPIC/POWER.
I didn't really talk about setoption19 in the video, I just had it in my notes.
Would it matter if I used the STAT instead of CMND? (I really don't know, that's why I'm asking.)
@@DaveOTech honestly don't know, but usually cmnd are sent TO the device, while you want to listen to something sent FROM the device
Ahh okay I understand. I thought I was simply listening to the POWER state. Either way, you could use stat payload and in theory it should do the same thing.
Can de Wemos D1 listen to MQTT messages? I would like to have an LED illuminated button, but the light would be coming from a state trigger in Home Assistant. I can do the Home Assistant bit but I wonder if the Wemos can receive the status and trigger the light in the button? Thanks!
Yes, you would just assign one of the pins to an LED.
Hi! I'd like to see how it would work with deeSleep.
how can I use pushbutton as manual to switch relay on, without using any editor
also, How can I control it through web interface
both push-button and toogle switch of web should work to control relay
se puede usar el esp01s en vez del wemos d1 mini (esp8266)?
Si, si puedes instalar TASMOTA en el ESP01 entonces puedes usar este método. Pero yo no se como instalar TASMOTA en un ESP01, pero puedes encontrar una guía en línea.
Now please make one using ESPHOME as its much more simple to setup and to manage
It is possible do this whitout home assistent? Only using Alexa? I don’t have home assistent in my smart home
Technically yes, however it would still require an MQTT broker running on a raspberry pi. It would also require custom code to get it to work.
I recommend getting home assistant on a raspberry pi just to have it.
it is possible do this without home assistant, only with two wemos or esp01, one switch and another with the button ??
Yes you could, look up "Wemos to Wemos Communication" on UA-cam. However I highly recommended giving Home Assistant a try. It can be run on something as small as a raspberry pi.
With home assistant, you can set up an MQTT server. You could also set up a MQTT server standalone on a Raspberry Pi. Having an MQTT server on your network will allow essentially an unlimited amount of devices to be able to communicate between one another.
i do similar thing but not with mqtt i send a websend command to the device i want to switch on / off heres an example rule2 on POWER3#State=1 do websend [192.168.1.52] power1 on ENDON ON POWER3#State=0 do websend [192.168.1.52] /power1 off
advantage is it doesnt need a mqtt server and is instantaneous... works great you can even send commands to other devices, so for instance i can send a scheme change to a ws2812b leds i have attached to a wemos d1 mini works great using this rule rule2 on POWER3#State=1 do websend [192.168.1.52] scheme+ ENDON ON POWER3#State=0 do websend [192.168.1.52] scheme- ENDON
Dave, where can we find the code?
Hey, are you asking about the old code or Tasmota?
@@DaveOTech Thank you for answering me. If you have the new code that would be great .. thank you.
@@aaaafaaaaf Take a look at this: ua-cam.com/video/LdHbvn3srJk/v-deo.html
You need the ESPEasy file: github.com/letscontrolit/ESPEasy/releases
And the latest TASMOTA release: github.com/arendst/Tasmota/releases
@@DaveOTech thank you...
@@DaveOTech The links are for the Tasmota, Im looking for the code of the $6 mqtt button.... I think its was Arduino code.
can you make this a dimmer switch if keeped pressed?
If you have dimmable lights that can be controlled by Home Assistant, then absolutely! You would just trigger whatever causes the light to dim rather than toggle the 2nd switch.