Read value on ON and OFF command