Always use bathroom single nightlight instead of full nightlight
This commit is contained in:
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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') {
|
||||
|
Reference in New Issue
Block a user