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:
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: