Change entity ID constants from strings to arrays
home_automation/Home-Assistant-Configs#237
This commit is contained in:
@ -22,8 +22,8 @@ node.log("Emma Bedroom Climate: Constants Set")
|
|||||||
|
|
||||||
// Define reusable constants
|
// Define reusable constants
|
||||||
|
|
||||||
const emmaBedroomAircon = "climate.emma_bedroom_aircon"
|
const emmaBedroomAircon = ["climate.emma_bedroom_aircon"]
|
||||||
const emmaBedroomWhiteNoise = "input_boolean.white_noise_emma_bedroom"
|
const emmaBedroomWhiteNoise = ["input_boolean.white_noise_emma_bedroom"]
|
||||||
const validSchedModesAC = ['AC', 'Fan']
|
const validSchedModesAC = ['AC', 'Fan']
|
||||||
|
|
||||||
// Helper function to convert a string to title case
|
// Helper function to convert a string to title case
|
||||||
|
@ -27,8 +27,8 @@ node.log("Master Bedroom Climate: Constants Set")
|
|||||||
|
|
||||||
// Define some entity IDs
|
// Define some entity IDs
|
||||||
|
|
||||||
const masterBedroomAircon = "climate.master_bedroom_aircon"
|
const masterBedroomAircon = ["climate.master_bedroom_aircon"]
|
||||||
const masterBedroomFan = "fan.master_bedroom_fan"
|
const masterBedroomFan = ["fan.master_bedroom_fan"]
|
||||||
const peopleIDs = ["input_boolean.tony_awake", "input_boolean.tina_awake"]
|
const peopleIDs = ["input_boolean.tony_awake", "input_boolean.tina_awake"]
|
||||||
|
|
||||||
// Helper function to convert a string to title case
|
// Helper function to convert a string to title case
|
||||||
|
Reference in New Issue
Block a user