Always use bathroom single nightlight instead of full nightlight
This commit is contained in:
@ -17,15 +17,7 @@ if (payload === 'on') {
|
|||||||
if (motion === 'on') {
|
if (motion === 'on') {
|
||||||
scene = 'Adaptive'
|
scene = 'Adaptive'
|
||||||
} else {
|
} else {
|
||||||
if (kallenOvernight === 'off') {
|
|
||||||
if (nightMode === 'on') {
|
|
||||||
scene = 'Single Nightlight'
|
scene = 'Single Nightlight'
|
||||||
} else {
|
|
||||||
scene = 'Nightlight'
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
scene = 'Adaptive'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,15 +5,13 @@ const kallenOvernight = states['input_boolean.kallen_overnight'].state
|
|||||||
const nightMode = states['input_boolean.night_mode'].state
|
const nightMode = states['input_boolean.night_mode'].state
|
||||||
const masterBedroomSleep = states['input_boolean.master_bedroom_sleeping'].state
|
const masterBedroomSleep = states['input_boolean.master_bedroom_sleeping'].state
|
||||||
|
|
||||||
let scene = {}
|
let scene = 'Single Nightlight'
|
||||||
let late = {}
|
let late = {}
|
||||||
|
|
||||||
if (nightMode === 'on' || (earlyNightMode === 'on' && masterBedroomSleep === 'on')) {
|
if (nightMode === 'on' || (earlyNightMode === 'on' && masterBedroomSleep === 'on')) {
|
||||||
late = true
|
late = true
|
||||||
scene = 'Single Nightlight'
|
|
||||||
} else {
|
} else {
|
||||||
late = false
|
late = false
|
||||||
scene = 'Nightlight'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (showerMode === 'off') {
|
if (showerMode === 'off') {
|
||||||
|
Reference in New Issue
Block a user