Always use bathroom single nightlight instead of full nightlight

This commit is contained in:
2024-11-30 19:26:58 -05:00
parent 844680454d
commit fd175c7362
2 changed files with 2 additions and 12 deletions

View File

@ -17,15 +17,7 @@ if (payload === 'on') {
if (motion === 'on') {
scene = 'Adaptive'
} else {
if (kallenOvernight === 'off') {
if (nightMode === 'on') {
scene = 'Single Nightlight'
} else {
scene = 'Nightlight'
}
} else {
scene = 'Adaptive'
}
scene = 'Single Nightlight'
}
}

View File

@ -5,15 +5,13 @@ const kallenOvernight = states['input_boolean.kallen_overnight'].state
const nightMode = states['input_boolean.night_mode'].state
const masterBedroomSleep = states['input_boolean.master_bedroom_sleeping'].state
let scene = {}
let scene = 'Single Nightlight'
let late = {}
if (nightMode === 'on' || (earlyNightMode === 'on' && masterBedroomSleep === 'on')) {
late = true
scene = 'Single Nightlight'
} else {
late = false
scene = 'Nightlight'
}
if (showerMode === 'off') {