Fix hallway lighting weirdness

This commit is contained in:
2024-02-01 18:21:11 -05:00
parent 0e520df7a7
commit e58ee15b31
2 changed files with 5 additions and 3 deletions

View File

@ -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 {