forked from StartAutomating/LightScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHueScratch.ps1
24 lines (17 loc) · 1.74 KB
/
HueScratch.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Get-HueBridge |
Send-HueBridge -Command ' '
# Slow blink
Get-HueBridge |
Send-HueBridge -Command lights/4/state -Data (New-Object PSObject -Property @{alert='lselect'}) -Method put
# Stop blink
Get-HueBridge |
Send-HueBridge -Command lights/4/state -Data (New-Object PSObject -Property @{alert='none'}) -Method put
$warmHue = 6291
$randomHue = Get-Random -Maximum 64kb
Get-HueBridge |
Send-HueBridge -Command lights/4/state -Data (New-Object PSObject -Property @{transitiontime='1';hue=$randomHue}) -Method put
$randomHue = Get-Random -Maximum 64kb
Get-HueBridge |
Send-HueBridge -Command lights/4/state -Data (New-Object PSObject -Property @{transitiontime=15000;hue=$randomHue}) -Method put
Get-HueBridge |
Send-HueBridge -Command lights/4/state -Data (New-Object PSObject -Property @{transitiontime=15000;hue=$warmHue}) -Method put