Standardize some entity constants naming

This commit is contained in:
2025-04-23 22:55:31 -04:00
parent b626b5b5e8
commit fefc52bd01
6 changed files with 29 additions and 29 deletions

View File

@ -6,7 +6,7 @@ const nightTemp = states['input_number.master_bedroom_night_temp'].state
const bedTemp = states['input_number.master_bedroom_bedtime_temp'].state
const sleeping = states['input_boolean.master_bedroom_sleeping'].state
const masterBedroomAircon = ["climate.master_bedroom_aircon"]
const airconEntity = ["climate.master_bedroom_aircon"]
let setTemp = []
let setHvac = "dry"
@ -22,7 +22,7 @@ let sendHvac = {
"payload": {
"action": "climate.set_hvac_mode",
"target": {
"entity_id": masterBedroomAircon
"entity_id": airconEntity
},
"data": {
"hvac_mode": setHvac
@ -34,7 +34,7 @@ let sendTemp = {
"payload": {
"action": "climate.set_temperature",
"target": {
"entity_id": masterBedroomAircon
"entity_id": airconEntity
},
"data": {
"temperature": setTemp