Page 1 of 1

Wemos D1 mini Tasmota and Generic Module 18??

Posted: Friday 20 December 2019 1:28
by Olfer
Hi all,

I'm playing around with the D1 mini. Tried Reed Contacts and a PIR. Anything is working fine but I cannot get any update to Domoticz.

Im using the generic 18 module and set Pin D2 to Switch1. Configured MQTT and Domoticz like the other 4 Tasmota Devices that I have. Checked it the 5th time...

In Domoticz I have created a Dummy Switch

I see every change in the Tasmota Log, but not in the Domoticz Log. Also the Dummy Switch isn't changing.

If I change the Tasmota module to something different, e.
G. Blitzwolf Plug, then anything works like it should.

Changing back and it is not working anymore.

I wonder if someone I'd using this setup and can say that it at least should work. Personally I'm thinking, that this could be an issue in Tasmota.

What do you think?
:?:

Tasmota 6.7.1
Domoticz 4.11551 running on RPi

Re: Wemos D1 mini Tasmota and Generic Module 18??

Posted: Friday 20 December 2019 23:04
by Olfer
Found a solution!

#TIL about Rules in Tasmota. Very powerful and easy.

For my PIR I've added the following code via the console:

Code: Select all

SwitchMode1 1

SwitchTopic 0

Rule1 on switch1#state=1 do backlog publish domoticz/in {"command":"udevice","idx":241,"nvalue":4,"svalue":"Bewegung_erkannt"};RuleTimer1  endon on Rules#Timer=1 do publish domoticz/in 
{"command":"udevice","idx":241,"nvalue":1,"svalue":"keine_Bewegung"} endon

Rule1 1
You would have to alter the code to your needs.
Don't mess with spaces! ;)

For more follow the links:
https://github.com/arendst/Tasmota/wiki/Rules
https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s