Wemos D1 mini Tasmota and Generic Module 18??

Everything about esp8266 and more.

Moderator: leecollings

Post Reply
Olfer
Posts: 21
Joined: Thursday 17 November 2016 10:28
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Germany
Contact:

Wemos D1 mini Tasmota and Generic Module 18??

Post 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
Domoticz on RPi3 with Aeontec Z-Stick gen5. Beta.
Z-Wave, Zigbee, WiFi and MQTT (mainly Tasmota), Neo Cool Cam, Devolo, Fibaro, Shelly, Hue, Osram, Blitzwolf, TP-Link, Alexa. Latest: Somfy IO integration
Olfer
Posts: 21
Joined: Thursday 17 November 2016 10:28
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Germany
Contact:

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

Post 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
Domoticz on RPi3 with Aeontec Z-Stick gen5. Beta.
Z-Wave, Zigbee, WiFi and MQTT (mainly Tasmota), Neo Cool Cam, Devolo, Fibaro, Shelly, Hue, Osram, Blitzwolf, TP-Link, Alexa. Latest: Somfy IO integration
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests