0004 — device lifecycle emits DeviceCreated/DeviceRemoved events

Context

Reactive QAs (RefreshStateSubscriber, fibaro.EventMgr, sourceTrigger) need to learn when devices appear and disappear, exactly like on the HC3 — where uploading a QA or creating a child emits DeviceCreatedEvent and removal emits DeviceRemovedEvent.

Decision

The sim emits both events in the real HC3's shapes (samples in docs/specs/refreshEvents.json):

Both carry the standard device-event envelope, land in the refreshStates feed, and are handed to the pump for subscriber delivery. Proxy devices are excluded (0003 — the HC3's own event arrives via the poll). Seed loading and persisted-child restore emit nothing (boot state, like an HC3 reboot).

Consequences