Replies: 8 comments 17 replies
-
This is exactly what I need right now. +1 :) |
Beta Was this translation helpful? Give feedback.
-
I didn't write this part of the code and haven't looked at it yet but if I act on the text
I suppose it doesn't matter if the switch is turned on or off. In either case I would expect to see a MQTT message. What needs to be inverted here? |
Beta Was this translation helpful? Give feedback.
-
Implemented in latest dev release |
Beta Was this translation helpful? Give feedback.
-
I have 12.2.0.6(sensors) running on ESP8285N08 and see no functional difference between switchmode 15 and 16. In both cases GPIO at GND level will send "OFF". Here only switch 1 is closed and thus GPIO is at GND potential: |
Beta Was this translation helpful? Give feedback.
-
I upgraded to 12.3.0 and switchmode 16 doesn't work as inverted :-( it does the same as switchmode 15. I did a restart just to be sure, but same result. I did the upgrade and tested it with 2 devices. |
Beta Was this translation helpful? Give feedback.
-
I tried 12.3.1 and still the same problem: switchmode 15 and 16 do work the same way, switchmode 16 is not inverted. |
Beta Was this translation helpful? Give feedback.
-
Just updated device to 12.3.1, still find no difference between SwitchMode 15 and 16. It does not invert the status. Does anyone know if there is progress on this issue? TIA |
Beta Was this translation helpful? Give feedback.
-
Switchmode 16. I did close the pin to GND (pin was in pull-up): rsl message is wrong (should be ON since inverted), teleperiod is ok. I didn't open the pin-gnd while typing teleperiod. 16:18:05.010 RSL: SENSOR = {"Time":"2022-12-30T16:18:05","Switch1":"OFF"} |
Beta Was this translation helpful? Give feedback.
-
Several
SwitchModes
have their dual for inverted state. E.g.:Except
SwitchMode 15
:Proposal:
Rationale:
Attempted workaround:
I tried to solve my problem reversing the default
StateText
values withBut this opened a can of worms -- the return values for
SetOptionXXX
commands are also affected and broke my management scripts.Beta Was this translation helpful? Give feedback.
All reactions