Referenz
Jede Aktion, aus der govee-CLI, aus Rust, Python, Node.js oder von einem DMX-Pult.
Geräte finden
scan
Nach Geräten suchen und melden, was antwortet.
let devices = govee.scan(None).await?;
let lan_only = govee.scan(Some(&[Mode::Lan])).await?;Parameter
Govee::scan
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
modes | Option<&[Mode]> | optional | — |
Govee::transport_problems
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
modes | Option<&[Mode]> | optional | — |
govee scan
govee scan --mode lanParameter
govee scan
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
--timeout-ms | MS | optional | 3000 |
devices = await govee.scan()
lan_only = await govee.scan(["lan"])Parameter
Govee.scan
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
modes | Sequence[str] | None | optional | None |
Govee.transport_problems
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
modes | Sequence[str] | None | optional | None |
const devices = await govee.scan()
const lanOnly = await govee.scan(['lan'])Parameter
Govee.scan
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
modes | Array<string> | optional | — |
Govee.transportProblems
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
modes | Array<string> | optional | — |
devices
Mehrere Geräte auf einmal benennen, dann auflisten oder ihnen einen Befehl senden.
for device in govee.devices(Filter::all(), None).await?.list() {
println!("{}", device.id);
}
let ambient = govee.devices(Filter::targets(["ambient"]), None).await?;
for outcome in ambient.brightness(40).await {
if let Err(error) = outcome.result {
eprintln!("{}: {error}", outcome.id);
}
}Parameter
Govee::devices
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
filter | Filter | Pflicht | — |
mode | Option<Mode> | optional | — |
govee devices
govee devices H6159 kitchen
govee on ambient
govee brightness group:ambient 40Parameter
govee devices
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
TARGET | TARGET… | optional | — |
for device in (await govee.devices()).list():
print(device.id)
ambient = await govee.devices(["ambient"])
await ambient.brightness(40)Parameter
Govee.devices
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
targets | Sequence[str] | None | optional | None |
enables | str | None | optional | None |
mode | str | None | optional | None |
for (const device of (await govee.devices()).list()) {
console.log(device.id)
}
const ambient = await govee.devices(['ambient'])
await ambient.brightness(40)Parameter
Govee.devices
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
targets | Array<string> | optional | — |
options.enables | string | optional | — |
options.mode | string | optional | — |
device
Ein Handle für ein Gerät holen, per Identität oder per Name.
let kitchen = govee.device("kitchen", None)?;
let over_lan = govee.device("kitchen", Some(Mode::Lan))?;Parameter
Govee::device
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
target | impl Into<Target<'t>> | Pflicht | — |
mode | Option<Mode> | optional | — |
govee on kitchen
govee status 1C:8B:C4:A2:C0:46:64:6Ekitchen = govee.device("kitchen")
over_lan = govee.device("kitchen", mode="lan")Parameter
Govee.device
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
target | str | Pflicht | — |
mode | str | None | optional | None |
const kitchen = govee.device('kitchen')
const overLan = govee.device('kitchen', { mode: 'lan' })Parameter
Govee.device
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
target | string | Pflicht | — |
options.mode | string | optional | — |
identify
Jedes Gerät nacheinander leuchten lassen, damit eine Person eine Identität einer Leuchte im Raum zuordnet.
govee.identify(Some(&["kitchen"][..]), &Walk::default(), &()).await?;Parameter
Govee::identify
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
targets | Option<&[T]> | optional | — |
walk | &Walk | Pflicht | — |
observer | &(dyn WalkObserver + Sync) | Pflicht | — |
DeviceHandle::identify
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
options | &Identify | Pflicht | — |
govee identify
govee identify H6159
govee identify 1C:8B:C4:A2:C0:46:64:6E kitchenParameter
govee identify
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
TARGET | TARGET… | optional | — |
--color | COLOR | optional | #00FF00 |
--wait-ms | MS | optional | 1000 |
--hold-ms | MS | optional | 5000 |
--keep | flag | optional | — |
await govee.identify("kitchen", hold=10)Parameter
Govee.identify
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
targets | str | Sequence[str] | None | optional | None |
color | Color | optional | (0, 255, 0) |
wait | float | optional | 1.0 |
hold | float | optional | 5.0 |
keep | bool | optional | False |
mode | str | optional | "lan" |
DeviceHandle.identify
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
color | Color | optional | (0, 255, 0) |
full_brightness | bool | optional | True |
await govee.identify('kitchen', { hold: 10 })Parameter
Govee.identify
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
targets | string | Array<string> | optional | — |
options.color | [number, number, number] | Uint8Array | optional | [0, 255, 0] |
options.wait | number | optional | 1 |
options.hold | number | optional | 5 |
options.keep | boolean | optional | false |
options.mode | string | optional | 'lan' |
DeviceHandle.identify
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
color | [number, number, number] | Uint8Array | optional | [0, 255, 0] |
fullBrightness | boolean | optional | true |
describe
Melden, was die Gerätedatei für ein Modell deklariert.
let spec = govee.device(&id, None)?.spec()?;govee describe DEVICEParameter
govee describe
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
TARGET | TARGET | Pflicht | — |
spec = govee.device(id).spec()const spec = govee.device(id).spec()status
Das Gerät nach seinem aktuellen Zustand fragen.
let state = device.status().await?;
let cached = device.last_status();govee status DEVICEParameter
govee status
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
state = await device.status()
cached = device.last_status()const state = await device.status()
const cached = device.lastStatus()watch
Ereignissen folgen: Ein Gerät erscheint, ein Modus ändert seinen Zustand.
let mut events = govee.events();
while let Ok(event) = events.recv().await {
println!("{event:?}");
}govee watch
govee watch --jsonParameter
govee watch
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
--rescan-ms | MS | optional | 0 |
async for event in govee.events():
print(event)for await (const event of govee.events()) {
console.log(event)
}doctor
Alles melden, was an der Konfiguration falsch ist.
for problem in govee.problems() {
eprintln!("{problem}");
}govee doctorfor problem in govee.problems():
print(problem)for (const problem of govee.problems()) {
console.error(problem)
}Eine Leuchte steuern
power
Das Gerät ein- oder ausschalten.
device.power(true).await?;Parameter
DeviceHandle::power
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
on | bool | Pflicht | — |
govee on DEVICE
govee off DEVICEParameter
govee on
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
govee off
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
await device.power(True)Parameter
DeviceHandle.power
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
on | bool | Pflicht | — |
await device.power(true)Parameter
DeviceHandle.power
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
on | boolean | Pflicht | — |
brightness
Die Helligkeit des ganzen Geräts einstellen.
device.brightness(40).await?;Parameter
DeviceHandle::brightness
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
level | i64 | Pflicht | — |
govee brightness DEVICE 40Parameter
govee brightness
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
VALUE | VALUE | Pflicht | — |
await device.brightness(40)Parameter
DeviceHandle.brightness
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
level | int | Pflicht | — |
await device.brightness(40)Parameter
DeviceHandle.brightness
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
level | number | Pflicht | — |
color
Eine Farbe für das ganze Gerät einstellen.
device.color([255, 61, 0]).await?;Parameter
DeviceHandle::color
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
rgb | [u8; 3] | Pflicht | — |
govee color DEVICE "#ff3d00"Parameter
govee color
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
COLOR | COLOR | Pflicht | — |
await device.color((255, 61, 0))Parameter
DeviceHandle.color
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
rgb | Color | Pflicht | — |
await device.color([255, 61, 0])Parameter
DeviceHandle.color
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
rgb | [number, number, number] | Uint8Array | Pflicht | — |
color_temp
Die Farbtemperatur in Kelvin einstellen.
device.color_temp(4000).await?;Parameter
DeviceHandle::color_temp
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
kelvin | i64 | Pflicht | — |
govee colortemp DEVICE 4000Parameter
govee colortemp
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
KELVIN | KELVIN | Pflicht | — |
await device.color_temp(4000)Parameter
DeviceHandle.color_temp
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
kelvin | int | Pflicht | — |
await device.colorTemp(4000)Parameter
DeviceHandle.colorTemp
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
kelvin | number | Pflicht | — |
segment
Die Zonen färben.
device.segment(&Paint {
zones: None,
colors: &frame,
resolution: Resolution::default(),
gradient: false,
}).await?;Parameter
DeviceHandle::segment
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
paint | &Paint<'_> | Pflicht | — |
govee segment DEVICE "#ff3d00"
govee segment DEVICE --zones 0,1,2 "#ff3d00"Parameter
govee segment
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
--zones | LIST | optional | — |
--resolution | RESOLUTION | optional | app |
COLORS | COLORS | Pflicht | — |
--gradient | flag | optional | — |
await device.segment(colors=frame)Parameter
DeviceHandle.segment
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
colors | Color | Sequence[Color] | bytes | Pflicht | — |
zones | Sequence[int] | None | optional | None |
resolution | Resolution | optional | "app" |
gradient | bool | optional | False |
await device.segment(frame)Parameter
DeviceHandle.segment
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
colors | [number, number, number] | Array<[number, number, number]> | Uint8Array | Pflicht | — |
zones | Array<number> | optional | — |
resolution | number | 'app' | 'native' | 'groups' | optional | 'app' |
gradient | boolean | optional | false |
gradient
Festlegen, ob die Firmware zwischen den Zonen interpoliert, ohne zu färben.
device.gradient(true).await?;Parameter
DeviceHandle::gradient
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
on | bool | Pflicht | — |
govee gradient DEVICE onParameter
govee gradient
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
STATE | on | off | Pflicht | — |
await device.gradient(True)Parameter
DeviceHandle.gradient
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
on | bool | Pflicht | — |
await device.gradient(true)Parameter
DeviceHandle.gradient
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
on | boolean | Pflicht | — |
music
Einen Effekt abspielen, den das Gerät aus seinem eigenen Mikrofon erzeugt.
device.music(&Music {
effect: 3,
sensitivity: 60,
soft: false,
color: None,
}).await?;Parameter
DeviceHandle::music
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
music | &Music | Pflicht | — |
govee music DEVICE 3 --sensitivity 60Parameter
govee music
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
EFFECT | EFFECT | Pflicht | — |
--sensitivity | LEVEL | optional | 50 |
--soft | flag | optional | — |
--color | COLOR | optional | — |
await device.music(effect=3, sensitivity=60)Parameter
DeviceHandle.music
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
effect | int | Pflicht | — |
sensitivity | int | optional | 50 |
soft | bool | optional | False |
color | Color | None | optional | None |
await device.music(3, 60)Parameter
DeviceHandle.music
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
effect | number | Pflicht | — |
sensitivity | number | optional | 50 |
soft | boolean | optional | false |
color | [number, number, number] | Uint8Array | optional | — |
scene
Eine Szene aus der Szenenbibliothek des Modells abspielen, über ihren Namen oder ihren Code.
LANBLEgovee_toolkit::scenes::fetch("SKU").await?;
device.scene_named("Aurora").await?;Parameter
DeviceHandle::scene
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
scene | &Scene | Pflicht | — |
DeviceHandle::scene_named
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
query | &str | Pflicht | — |
govee scenes fetch SKU
govee scenes list SKU
govee scene DEVICE "Aurora"Parameter
govee scene
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
SCENE | SCENE | Pflicht | — |
await fetch_scenes("SKU")
await device.scene("Aurora")Parameter
DeviceHandle.scene
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
scene | str | int | Scene | Pflicht | — |
await fetchScenes('SKU')
await device.scene('Aurora')Parameter
DeviceHandle.scene
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
scene | string | number | Scene | Pflicht | — |
device.draw(&Drawing {
cells: Some(&[0, 1, 2]),
colors: &[[255, 61, 0]],
resolution: Resolution::default(),
args: &Args::new(),
}).await?;Parameter
DeviceHandle::draw
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
drawing | &Drawing<'_> | Pflicht | — |
govee send DEVICE draw_cells --arg cells=0,1,2 --arg colors=ff3d00Parameter
govee send
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
COMMAND | COMMAND | Pflicht | — |
--arg | NAME=VALUE… | optional | — |
await device.draw((255, 61, 0), cells=[0, 1, 2])Parameter
DeviceHandle.draw
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
colors | Color | Sequence[Color] | bytes | Pflicht | — |
cells | Sequence[int] | None | optional | None |
resolution | Resolution | optional | "app" |
args | dict[str, Arg] | None | optional | None |
await device.draw({ cells: [0, 1, 2], colors: [255, 61, 0] })Parameter
DeviceHandle.draw
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
drawing.cells | Array<number> | optional | — |
drawing.colors | [number, number, number] | Array<[number, number, number]> | Uint8Array | Pflicht | — |
drawing.resolution | number | 'app' | 'native' | 'groups' | optional | — |
drawing.args | Record<string, boolean | number | string | Uint8Array | Array<number> | Array<[number, number, number]>> | optional | — |
Die Segmente animierenLAN
open_stream
Den Segmentkanal öffnen und scharf halten.
let stream = device.open_stream(StreamOptions::default()).await?;
println!("{} zones at {} Hz", stream.zones(), stream.rate_hz());
stream.set_zone(0, [255, 61, 0])?;
stream.close().await?;Parameter
DeviceHandle::open_stream
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
options | StreamOptions | Pflicht | — |
# frames.txt: one frame per line, one color per zone.
govee stream DEVICE --resolution native < frames.txtParameter
govee stream
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
--resolution | RESOLUTION | optional | app |
--rate | HZ | optional | — |
--gradient | flag | optional | — |
stream = await device.open_stream()
print(stream.zones, stream.rate_hz)
stream.set_zone(0, (255, 61, 0))
await stream.close()Parameter
DeviceHandle.open_stream
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
resolution | Resolution | optional | "app" |
rate | Rate | optional | "measured" |
gradient | bool | optional | False |
const stream = await device.openStream()
console.log(stream.zones, stream.rateHz)
stream.setZone(0, [255, 61, 0])
await stream.close()Parameter
DeviceHandle.openStream
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
resolution | number | 'app' | 'native' | 'groups' | optional | 'app' |
rate | number | 'measured' | optional | 'measured' |
gradient | boolean | optional | false |
set_zone
Eine Zone des Streams setzen.
stream.set_zone(7, [255, 61, 0])?;Parameter
SegmentStream::set_zone
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
index | usize | Pflicht | — |
color | [u8; 3] | Pflicht | — |
# One frame per line, one color per zone.
echo "000000,ff3d00,000000" | govee stream DEVICE --resolution 3stream.set_zone(7, (255, 61, 0))Parameter
SegmentStream.set_zone
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
index | int | Pflicht | — |
color | Color | Pflicht | — |
stream.setZone(7, [255, 61, 0])Parameter
SegmentStream.setZone
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
index | number | Pflicht | — |
color | [number, number, number] | Uint8Array | Pflicht | — |
set_all, fill and clear
Jede Zone auf einmal setzen.
stream.set_all(&frame)?;
stream.fill([255, 61, 0])?;
stream.clear()?;Parameter
SegmentStream::set_all
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
colors | &[[u8; 3]] | Pflicht | — |
SegmentStream::fill
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
color | [u8; 3] | Pflicht | — |
govee segment DEVICE "#000000"stream.set_all(frame)
stream.fill((255, 61, 0))
stream.clear()Parameter
SegmentStream.set_all
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
colors | Sequence[Color] | bytes | Pflicht | — |
SegmentStream.fill
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
color | Color | Pflicht | — |
stream.setAll(frame)
stream.fill([255, 61, 0])
stream.clear()Parameter
SegmentStream.setAll
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
colors | Array<[number, number, number]> | Uint8Array | Pflicht | — |
SegmentStream.fill
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
color | [number, number, number] | Uint8Array | Pflicht | — |
close
Den Kanal schließen.
println!("{} frames", stream.frames_sent());
stream.close().await?;# The stream ends when standard input ends.print(stream.frames_sent)
await stream.close()console.log(stream.framesSent)
await stream.close()Ein Rig per DMX steuernLAN
govee-dmx profile
Die Kanaltabelle eines Modells ausgeben, um ein Pult damit zu patchen.
govee-dmx profile H6159
govee-dmx profile H6159 --personality segmentParameter
govee-dmx profile
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
SKU | SKU | Pflicht | — |
--personality | PERSONALITY | optional | — |
--json | flag | optional | — |
govee-dmx patch
Das LAN scannen und den Patch schreiben, mit dem der Node läuft.
govee-dmx patch
govee-dmx patch --personality segment --universe 1
govee-dmx patch --dry-runParameter
govee-dmx patch
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
--patch | FILE | optional | — |
--personality | PERSONALITY | optional | full |
--universe | UNIVERSE | optional | 0 |
--reset | flag | optional | — |
--dry-run | flag | optional | — |
--config | CONFIG | optional | — |
--json | flag | optional | — |
govee-dmx identify
Jedes gepatchte Fixture nacheinander leuchten lassen, damit eine Person das Rig liest.
govee-dmx identify
govee-dmx identify --address 33
govee-dmx identify --universe 1
govee-dmx identify H6159 kitchenParameter
govee-dmx identify
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
TARGET | TARGET… | optional | — |
--universe | UNIVERSE | optional | — |
--address | CHANNEL | optional | — |
--patch | FILE | optional | — |
--color | COLOR | optional | #00FF00 |
--wait-ms | MS | optional | 1000 |
--hold-ms | MS | optional | 5000 |
--keep | flag | optional | — |
--config | CONFIG | optional | — |
--json | flag | optional | — |
govee-dmx run
Art-Net auf Port 6454 empfangen und die gepatchten Geräte steuern.
govee-dmx run
govee-dmx run --scan
govee-dmx run --dry-run --debugParameter
govee-dmx run
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
--patch | FILE | optional | — |
--scan | flag | optional | — |
--personality | PERSONALITY | optional | full |
--universe | UNIVERSE | optional | 0 |
--dry-run | flag | optional | — |
--no-reset | flag | optional | — |
--debug | flag | optional | — |
--config | CONFIG | optional | — |
--json | flag | optional | — |
Rohbefehle und Einrichtung
send
Einen Eintrag der Gerätedatei senden, per Name.
device.send("brightness", &args).await?;
let reply = device.read("status", &args).await?;Parameter
DeviceHandle::send
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
command | &str | Pflicht | — |
args | &Args | Pflicht | — |
DeviceHandle::read
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
command | &str | Pflicht | — |
args | &Args | Pflicht | — |
govee send DEVICE brightness --arg level=40Parameter
govee send
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
COMMAND | COMMAND | Pflicht | — |
--arg | NAME=VALUE… | optional | — |
await device.send("brightness", level=40)
reply = await device.read("status")Parameter
DeviceHandle.send
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
command | str | Pflicht | — |
**args | Arg | optional | — |
DeviceHandle.read
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
command | str | Pflicht | — |
**args | Arg | optional | — |
await device.send('brightness', { level: 40 })
const reply = await device.read('status')Parameter
DeviceHandle.send
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
command | string | Pflicht | — |
args | Record<string, boolean | number | string | Uint8Array | Array<number> | Array<[number, number, number]>> | optional | — |
DeviceHandle.read
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
command | string | Pflicht | — |
args | Record<string, boolean | number | string | Uint8Array | Array<number> | Array<[number, number, number]>> | optional | — |
device.provision_wifi(&credentials).await?;Parameter
DeviceHandle::provision_wifi
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
credentials | &WifiCredentials | Pflicht | — |
govee provision DEVICE --ssid my-networkParameter
govee provision
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
DEVICE | DEVICE | Pflicht | — |
--ssid | SSID | optional | — |
--password | PASSWORD | optional | — |
--open | flag | optional | — |
--utc-offset-hours | HOURS | optional | 0 |
--utc-offset-minutes | MINUTES | optional | 0 |
await device.provision_wifi("network name", "password")Parameter
DeviceHandle.provision_wifi
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
network | str | Pflicht | — |
password | str | Pflicht | — |
utc_offset_hours | int | optional | 0 |
utc_offset_minutes | int | optional | 0 |
await device.provisionWifi("network name", "password")Parameter
DeviceHandle.provisionWifi
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
network | string | Pflicht | — |
password | string | Pflicht | — |
utcOffsetHours | number | optional | 0 |
utcOffsetMinutes | number | optional | 0 |
Choose a mode
Einen Befehl auf einen Modus beschränken.
let mode = device.serving_mode()?;
let health = device.health(Mode::Lan);Parameter
DeviceHandle::health
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
mode | Mode | Pflicht | — |
govee on DEVICE --mode lanParameter
govee
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
--json | flag | optional | — |
--mode | lan | ble | cloud | optional | — |
--config | PATH | optional | — |
--env-file | PATH | optional | — |
--no-env | flag | optional | — |
mode = device.serving_mode()
health = device.health("lan")Parameter
DeviceHandle.health
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
mode | str | Pflicht | — |
const mode = device.servingMode()
const health = device.health('lan')Parameter
DeviceHandle.health
| Name | Typ | Pflicht | Standard |
|---|---|---|---|
mode | string | Pflicht | — |