Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Template for KC868-A4 Tasmota
#8
for example, i use digital input-1 with a PIR sensor. you can connect with your float sensor.
   

define GPIO36 as Switch1

A configured PIR will not appear in the web UI in any form. To make it report like a sensor we need a rule that will send movement triggers to an MQTT topic.

SwitchMode1 1
SwitchTopic 0
Rule1 on Switch1#state=1 do publish stat/%topic%/PIR1 ON endon on Switch1#state=0 do Publish stat/%topic%/PIR1 OFF endon
Rule1 1

   

now when you short digital input-1 to GND or not short it. 
   
you will have feedback message, in your Node-Red, you can received MQTT feedback message for INPUT state:
   
Reply


Messages In This Thread
Template for KC868-A4 Tasmota - by VascoTeixeira - 05-16-2023, 06:41 PM
RE: Template for KC868-A4 Tasmota - by admin - 05-17-2023, 12:40 AM
RE: Template for KC868-A4 Tasmota - by admin - 05-17-2023, 02:09 AM
RE: Template for KC868-A4 Tasmota - by admin - 05-23-2023, 10:40 PM
RE: Template for KC868-A4 Tasmota - by admin - 05-24-2023, 01:52 AM
RE: Template for KC868-A4 Tasmota - by admin - 05-24-2023, 01:09 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)