@ -12,8 +12,7 @@ let setFan = 'turn_off'
|
||||
|
||||
let sendFan = {
|
||||
"payload": {
|
||||
"domain": "fan",
|
||||
"service": setFan,
|
||||
"action": "fan." + setFan,
|
||||
"target": {
|
||||
"entity_id": ["fan.master_bedroom_fan"]
|
||||
},
|
||||
@ -23,8 +22,7 @@ let sendFan = {
|
||||
|
||||
let sendHvac = {
|
||||
"payload": {
|
||||
"domain": "climate",
|
||||
"service": "set_hvac_mode",
|
||||
"action": "climate.set_hvac_mode",
|
||||
"target": {
|
||||
"entity_id": ["climate.master_bedroom_aircon"]
|
||||
},
|
||||
@ -36,8 +34,7 @@ let sendHvac = {
|
||||
|
||||
let sendTemp = {
|
||||
"payload": {
|
||||
"domain": "climate",
|
||||
"service": "set_temperature",
|
||||
"action": "climate.set_temperature",
|
||||
"target": {
|
||||
"entity_id": ["climate.master_bedroom_aircon"]
|
||||
},
|
||||
@ -49,8 +46,7 @@ let sendTemp = {
|
||||
|
||||
let sendEco = {
|
||||
"payload": {
|
||||
"domain": "climate",
|
||||
"service": "set_preset_mode",
|
||||
"action": "climate.set_preset_mode",
|
||||
"target": {
|
||||
"entity_id": ["climate.master_bedroom_aircon"]
|
||||
},
|
||||
@ -62,8 +58,7 @@ let sendEco = {
|
||||
|
||||
let sendAcFan = {
|
||||
"payload": {
|
||||
"domain": "climate",
|
||||
"service": "set_fan_mode",
|
||||
"action": "climate.set_fan_mode",
|
||||
"target": {
|
||||
"entity_id": ["climate.master_bedroom_aircon"]
|
||||
},
|
||||
|
Reference in New Issue
Block a user