Skip to content

Instantly share code, notes, and snippets.

@bkrn
Last active September 24, 2022 17:00
Show Gist options
  • Save bkrn/e787932996ffe0a856dcd8226e38f321 to your computer and use it in GitHub Desktop.
Save bkrn/e787932996ffe0a856dcd8226e38f321 to your computer and use it in GitHub Desktop.
Light rules for eiger
{
"groups": [
{
"name": "Guest Room",
"devices": [
"Guest Room Light 1",
"Guest Room Light 2"
]
},
{
"name": "Garage",
"devices": [
"Garage Light 1",
"Garage Light 2",
"Garage Light 3",
"Garage Light 4"
]
},
{
"name": "Living Room",
"devices": [
"Living Room Can 1",
"Living Room Can 2",
"Living Room Can 3",
"Living Room Can 4",
"Living Room Can 5",
"Living Room Can 6"
]
},
{
"name": "Kitchen",
"devices": [
"Breakfast Nook",
"Kitchen South Switch",
"Kitchen South Can",
"Kitchen West Can"
]
},
{
"name": "Kitchen South Switch",
"devices": [
"Counter Light",
"Kitchen Sink"
]
},
{
"name": "Dining Room",
"devices": [
"Dining Room Switch",
"Dining Room Can",
"Dining Room Light"
]
},
{
"name": "Breakfast Nook",
"devices": [
"Kitchen North Switch"
]
},
{
"name": "Downstairs",
"devices": [
"Living Room",
"Kitchen",
"Dining Room"
]
},
{
"name": "Cactus",
"devices": [
"Cactus Light",
"Cactus Outlet"
]
}
],
"rules": [
{
"name": "Master Bath Temp",
"action": 70.0,
"unit": "RH%",
"comparator": ">",
"commands": [
{"device": "Master Bath Fan", "command": "on"}
]
},
{
"name": "Movie Mode",
"action": "on",
"commands": [
{"device": "Living Room", "command": "level", "arg": 5},
{"device": "Living Room", "command": "on"},
{"device": "Kitchen", "command": "off"},
{"device": "Dining Room", "command": "off"},
{"device": "Cactus", "command": "off"},
{"device": "TV LED", "command": "on"},
{"device": "TV LED", "command": "color", "arg": {"hue": 89, "saturation": 2, "level": 30}}
]
},
{
"name": "Movie Mode",
"action": "off",
"commands": [
{"device": "Living Room", "command": "level", "arg": 100},
{"device": "Living Room", "command": "on"},
{"device": "TV LED", "command": "off"}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment