Use peopleIDs constant in Emma's climate processing function

This commit is contained in:
2025-04-24 00:11:48 -04:00
parent fefc52bd01
commit bc1ed66b56

View File

@ -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": {}
}