ESP32 Tasmota CAM / PIR / GPIO 13

751 views
Skip to first unread message

ohaldi

unread,
Jun 8, 2021, 7:23:50 AM6/8/21
to TasmotaUsers
Hello
I could install tasmota32-webcam with success.
I also added a PIR sensor on GPIO 13
In Template Parameter in set GIPO 13 to SWITCH an the value to 1
Unfortunately in the console window nothing happens.
What else do I have to adjust?
PIR SENSOR : AM312 Sensor DC 2.7 to 12V
Connection : - to GND, VCC to 5V, VOUT to GPIO13
Many thanks in advance  for your help
Otto

Philip Knowles

unread,
Jun 8, 2021, 7:34:03 AM6/8/21
to ohaldi, TasmotaUsers

Switches don’t appear in the UI only Relays. If you want it to appear in the UI you will need to attach Relay1 to a spare GPIO. If you want to send the state of the switch to MQTT look at the Buttons and Switches page.

 

Regards

 

Phil K

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/478f8e62-6fbc-4a22-acb0-564a57cc9b0en%40googlegroups.com.

 

ohaldi

unread,
Jun 8, 2021, 11:34:40 AM6/8/21
to TasmotaUsers
Hi Phil,
Thanks for your quick answer.
Should not the Tasmota console show all events?
My idea is to send this PIR event to the domoticz application.
Small question : where is thi Bottons and Switches page?

Philip Knowles

unread,
Jun 8, 2021, 1:17:37 PM6/8/21
to ohaldi, TasmotaUsers

No the Console and UI only show relay operations and MQTT messages

Buttons and Switches - Tasmota

 

The rules section of the above page shows how to send an MQTT message without using a ‘dummy’ relay. However, the dummy relay has advantages because you can see the state of the input at a glance and it automatically sends the MQTT messages without using rules.

ohaldi

unread,
Jun 8, 2021, 5:39:28 PM6/8/21
to TasmotaUsers
Thanks for your link. Every thing work well
Reply all
Reply to author
Forward
0 new messages