set state of roomvalve when pins get initialized