Standardize some entity constants naming
This commit is contained in:
@ -4,8 +4,8 @@ const ac = global.get('masterBedroom.aircon.installed', "diskCon")
|
||||
const lastMode = flow.get("masterBedroom.lastMode", "diskCon")
|
||||
const bedTemp = states['input_number.master_bedroom_bedtime_temp'].state
|
||||
|
||||
const masterBedroomAircon = ["climate.master_bedroom_aircon"]
|
||||
const masterBedroomFan = ["fan.master_bedroom_fan"]
|
||||
const airconEntity = ["climate.master_bedroom_aircon"]
|
||||
const fanEntity = ["fan.master_bedroom_fan"]
|
||||
|
||||
let setTemp = bedTemp
|
||||
let setEco = 'turn_off'
|
||||
@ -17,7 +17,7 @@ let sendFan = {
|
||||
"payload": {
|
||||
"action": `fan.${setFan}`,
|
||||
"target": {
|
||||
"entity_id": masterBedroomFan
|
||||
"entity_id": fanEntity
|
||||
},
|
||||
"data": {}
|
||||
}
|
||||
@ -27,7 +27,7 @@ let sendHvac = {
|
||||
"payload": {
|
||||
"action": "climate.set_hvac_mode",
|
||||
"target": {
|
||||
"entity_id": masterBedroomAircon
|
||||
"entity_id": airconEntity
|
||||
},
|
||||
"data": {
|
||||
"hvac_mode": setHvac
|
||||
@ -39,7 +39,7 @@ let sendTemp = {
|
||||
"payload": {
|
||||
"action": "climate.set_temperature",
|
||||
"target": {
|
||||
"entity_id": masterBedroomAircon
|
||||
"entity_id": airconEntity
|
||||
},
|
||||
"data": {
|
||||
"temperature": setTemp
|
||||
@ -61,7 +61,7 @@ let sendAcFan = {
|
||||
"payload": {
|
||||
"action": "climate.set_fan_mode",
|
||||
"target": {
|
||||
"entity_id": masterBedroomAircon
|
||||
"entity_id": airconEntity
|
||||
},
|
||||
"data": {
|
||||
"fan_mode": setAcFan
|
||||
|
Reference in New Issue
Block a user