Dominevo
ReferenceDevice capabilities

pump-cycle

The on/off duty cycle of a pet fountain's pump.

The on/off duty cycle of a pet fountain's pump. Some models run the pump continuously and have nothing to configure; others can alternate a run time and a rest time. That is model-specific, so it is its own optional cap on the fountain device: a fountain without cycle entities simply never composes it (planning#366), and the pet-fountain cap stays the model-independent core.

Like pet-fountain it has no native vendor provider: an operator BUILDS the cycle from loose entities (a cycle switch and two number boxes) and every method is a forward to one source entity. Durations are stored in SECONDS; a number box that cannot be read back leaves them null — unknown, never zero.

At a glance

Capabilitypump-cycle
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typespet-fountain
Sourcepackages/types/src/capabilities/pump-cycle.cap.ts

Methods

Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.

MethodKindRequired of a providerAccess
setEnabledmutationyesprotected
setOnMinutesmutationyesprotected
setOffMinutesmutationyesprotected

setEnabled

mutation

Switch the on/off duty cycle on or off (off = the pump runs continuously).

Input

FieldTypeRequiredDescription
onbooleanyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
pumpCycle.onPump cycle onenabled = true
pumpCycle.offPump cycle offenabled = false

setOnMinutes

mutation

Set how many minutes the pump runs per cycle.

Input

FieldTypeRequiredDescription
minutesnumberyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
pumpCycle.onMinutesSet pump run timeonTime = undefined

setOffMinutes

mutation

Set how many minutes the pump rests per cycle.

Input

FieldTypeRequiredDescription
minutesnumberyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
pumpCycle.offMinutesSet pump rest timeoffTime = undefined

Runtime state

The state Dominevo keeps for each device with this capability, readable without calling the provider.

Runtime-state slice — mirrored by the kernel; the hero card reads it whole.

FieldTypeRequiredDescription
enabledboolean | nullyesTrue when the pump works on the on/off cycle, false when it runs continuously. Null while unknown.
onTimenumber | nullyesHow long the pump runs per cycle, in seconds. Null while unknown.
offTimenumber | nullyesHow long the pump rests per cycle, in seconds. Null while unknown.
lastFetchedAtnumberyesMs epoch when the slice was last refreshed.