Fix hallway lighting weirdness
This commit is contained in:
@ -7,9 +7,9 @@ const masterBedroomSleep = states['input_boolean.master_bedroom_sleeping'].state
|
||||
let hallwayScene = {}
|
||||
let hallwayAction = {}
|
||||
|
||||
if (goodnight === 'on') {
|
||||
if (goodnight === 'on' || masterBedroomSleep === 'on') {
|
||||
hallwayAction = 'off'
|
||||
} else if (masterBedroomSleep === 'off' && (earlyNightMode === 'on' || nightMode === 'on')) {
|
||||
} else if (earlyNightMode === 'on' || nightMode === 'on') {
|
||||
hallwayAction = 'on'
|
||||
hallwayScene = 'Nightlight'
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user