I guess it’s not allowed to actually set the value of a beacon, you’d want to get the value.
But why, als long if it’s state is not undetected, it’s state is detected? Thats how most things work with Homey.
But maybe I get you wrong.
You can consider to send a local webhook from the rpi to Homey;
and update the yes/no field of an advanced virtual device with that