MQTT Room away_timeout not working

I almost got my beacons working correctly with room-assistant and HA. The only thing is that the away_timeout key doesn’t appear to do anything. After the beacon has been broadcasted (when the button is pressed on the beacon) the beacon entity state changes correctly in HA, but it goes back to the “away” state after an irregular amount of time. Sometimes it goes back immediately, other times it goes back after 30 seconds, etc. I want it to go back after 1 second has passed, but setting away_timeout: 1 does no good.

I looked at the code for the mqtt_room.py and it looks like the state should change back to ‘away’ in the entity update() method after self.hass.async_add_job(self.async_update_ha_state()) is called, but HA seems to run this whenever it feels like. I’ve never worked with the API before, so is anyone here familiar with the MQTT room component to explain why this is happening?

1 Like

I’m having a similar issue and ran into your post. Did you ever get this resolved?