node-red-contrib-smartnora
Version:
Google Smart Home integration via Smart Nora https://smart-nora.eu/
43 lines (42 loc) • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FAN_STATE_MAPPING = exports.TEMPERATURE_SETTING_STATE_MAPPING = void 0;
exports.TEMPERATURE_SETTING_STATE_MAPPING = [
{
from: 'mode',
to: 'thermostatMode',
},
{
from: 'activeMode',
to: 'activeThermostatMode',
},
{
from: 'setpoint',
to: 'thermostatTemperatureSetpoint',
},
{
from: 'setpointHigh',
to: 'thermostatTemperatureSetpointHigh',
},
{
from: 'setpointLow',
to: 'thermostatTemperatureSetpointLow',
},
{
from: 'temperature',
to: 'thermostatTemperatureAmbient',
},
{
from: 'humidity',
to: 'thermostatHumidityAmbient',
},
];
const FAN_STATE_MAPPING = (percentageControl) => [
{
from: 'speed',
to: percentageControl
? 'currentFanSpeedPercent'
: 'currentFanSpeedSetting',
}
];
exports.FAN_STATE_MAPPING = FAN_STATE_MAPPING;