@gromar wrote:
Hello all,
I’ve got a RF433Mhz device - EV1527 which is a relay that turns on/off lamps in my house (it’s showed in HA as light.rfcustom_524643_0 in my case).
I also have a PZEM004 electricity monitor between the relay and lamp sockets. If I start switching on and off EV1527 the status of the switched lamp may be wrong (the status in HA will be showed wrong - physical light will be ON and the status in HA will be OFF).
How can I set the right status of the relay depending of value from PZEM004 electricity monitor (sensor.pobor_pradu_swiatlo_korytarz_energy_current) - for example if I switch on light the electricity monitor will show that current is 0.2 A [higher than 0], in that case change status of light switch to ON and if current is 0 A then change status to off).Thank you in advance for any tip!
Posts: 3
Participants: 2