I have connected a two channel relay with my RPi ver 2 in isolated mode using CD4050BE as level shifter. Relay works fine but the state in easyiot server is opposite. When relay status in EasyIOT server is off, relay is on (As relay has LEDS which turns on when relay is on) and vice versa. How to correct the status?
I have connected a two channel relay with my RPi ver 2 in isolated mode using CD4050BE as level shifter. Relay works fine but the state in easyiot server is opposite. When relay status in EasyIOT server is off, relay is on (As relay has LEDS which turns on when relay is on) and vice versa. How to correct the status?
Solution is not out of the box, but it can be done with HW or SW.
If you want HW solution then add inventor between GPIO output and CD4050BE.
If you want SW solution add virtual switch and then in automation write script to control GPIO port with this virtual switch. In program also change output state 0->1 and 1->0.