Hi all,
I have a sonoff 4ch with Tasmota firmware that read open/close status of some valves with a contact in valves itself.
When the valve is close, contact is open and my Tasmota read ON, when valve is open the contact is close, putting GPIO to the GND, my Tasmota read OFF.
I need to invert this behaviour in my Openhab logic beacuse when MQTT status is OFF the valve is actually OPEN so i need it as ON.
I tried with this config in my thing file:
Type switch : EV_cameretta_status "Elettrovalvola cameretta Stato " [stateTopic="tele/collettore_b/SENSOR", transformationPattern="JSONPATH:$.Switch4", off="ON", on="OFF"]
Openhab still reading off with MQTT message OFF and on with message ON.
Any suggestion?
Many thanks in advance