Follow a committed entity change
On this page
0.86.4.0 / ACTIONS AND PROPERTIES
RUNTIME WALKTHROUGH
Sometimes the switch fires twice and the light moves only once. Check what was requested, what committed, and what actually changed. Those are three different observations.
func turn_up_lamp(): var reply = await ActionResult("ChangeObjectProperty", { "entityId": "desk_lamp", "property": "light.intensity", "value": 2.5, "persistence": "room" }) if reply.ok: print(reply.result.status) else: print(reply.error, " ", reply.message)1
Trigger the switch twice#
Start the lamp below 2.5. Substitute its real entity ID in the function above. Run it twice in the same room. The first successful change should print applied, the second unchanged. A failure should send you to the error branch.
2
Read the entity counters#
In a native GDScript with Runtime available, inspect Runtime.property_write_counts. It groups successful entity writes by status, including unchanged. Compare before and after your two calls. A rejected write adds no successful count.
3
Watch the event when it matters#
The Runner emits property_committed(room_id, entity_id, path, outcome). The last argument is the outcome itself, so read outcome.status in the listener. An ordinary repeat is quiet. A first equal-value pin can emit once because its save lifetime changed. Restore suppresses the ordinary notification.
If an older request finishes late
Visibility or enabled changes issued during physics can wait a frame. A newer write or a replaced target can make the earlier call fail with stale_target. Inspect the newest intent before trying again. GUI, camera, room and layer results should be checked at their own call sites.
PCA 3D / Actions and properties
