Use peopleIDs constant in Emma's climate processing function
This commit is contained in:
@ -25,6 +25,7 @@ node.log("Emma Bedroom Climate: Constants Set")
|
||||
const airconEntity = ["climate.emma_bedroom_aircon"]
|
||||
const whiteNoiseEntity = ["input_boolean.white_noise_emma_bedroom"]
|
||||
const validSchedModesAC = ['AC', 'Fan']
|
||||
const peopleIDs = ["input_boolean.emma_awake"]
|
||||
|
||||
// Helper function to convert a string to title case
|
||||
|
||||
@ -189,7 +190,7 @@ let sendPeople = {
|
||||
"payload": {
|
||||
"action": `input_boolean.${setPeople}`,
|
||||
"target": {
|
||||
"entity_id": ["input_boolean.emma_awake"]
|
||||
"entity_id": peopleIDs
|
||||
},
|
||||
"data": {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user