Standardize some entity constants naming
This commit is contained in:
@ -4,7 +4,7 @@ const ac = global.get('emmaBedroom.aircon.installed', "diskCon")
|
||||
const lastMode = flow.get("emmaBedroom.lastMode", "diskCon")
|
||||
const bedTemp = states['input_number.emma_bedroom_bedtime_temp'].state
|
||||
|
||||
const emmaBedroomAircon = ["climate.emma_bedroom_aircon"]
|
||||
const airconEntity = ["climate.emma_bedroom_aircon"]
|
||||
|
||||
let setTemp = bedTemp
|
||||
let setEco = 'turn_off'
|
||||
@ -15,7 +15,7 @@ let sendHvac = {
|
||||
"payload": {
|
||||
"action": "climate.set_hvac_mode",
|
||||
"target": {
|
||||
"entity_id": emmaBedroomAircon
|
||||
"entity_id": airconEntity
|
||||
},
|
||||
"data": {
|
||||
"hvac_mode": setHvac
|
||||
@ -27,7 +27,7 @@ let sendTemp = {
|
||||
"payload": {
|
||||
"action": "climate.set_temperature",
|
||||
"target": {
|
||||
"entity_id": emmaBedroomAircon
|
||||
"entity_id": airconEntity
|
||||
},
|
||||
"data": {
|
||||
"temperature": setTemp
|
||||
@ -49,7 +49,7 @@ let sendAcFan = {
|
||||
"payload": {
|
||||
"action": "climate.set_fan_mode",
|
||||
"target": {
|
||||
"entity_id": emmaBedroomAircon
|
||||
"entity_id": airconEntity
|
||||
},
|
||||
"data": {
|
||||
"fan_mode": setAcFan
|
||||
|
Reference in New Issue
Block a user