Change entity ID constants from strings to arrays

home_automation/Home-Assistant-Configs#237
This commit is contained in:
2025-04-18 18:20:10 -04:00
parent f15aec8e2d
commit 7a957572c8
2 changed files with 4 additions and 4 deletions

View File

@ -22,8 +22,8 @@ node.log("Emma Bedroom Climate: Constants Set")
// Define reusable constants
const emmaBedroomAircon = "climate.emma_bedroom_aircon"
const emmaBedroomWhiteNoise = "input_boolean.white_noise_emma_bedroom"
const emmaBedroomAircon = ["climate.emma_bedroom_aircon"]
const emmaBedroomWhiteNoise = ["input_boolean.white_noise_emma_bedroom"]
const validSchedModesAC = ['AC', 'Fan']
// Helper function to convert a string to title case

View File

@ -27,8 +27,8 @@ node.log("Master Bedroom Climate: Constants Set")
// Define some entity IDs
const masterBedroomAircon = "climate.master_bedroom_aircon"
const masterBedroomFan = "fan.master_bedroom_fan"
const masterBedroomAircon = ["climate.master_bedroom_aircon"]
const masterBedroomFan = ["fan.master_bedroom_fan"]
const peopleIDs = ["input_boolean.tony_awake", "input_boolean.tina_awake"]
// Helper function to convert a string to title case