Skip to content

Commit

Permalink
Fix #37 incorrect temperature argument
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkrupa committed Apr 29, 2019
1 parent fe31cf8 commit 9612833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ const publishIfChanged = function (stateProp, newValue, mqttTopic) {
const deviceOptions = {
host: argv['hvac-host'],
onStatus: (deviceModel) => {
publishIfChanged('temperature', getKeyByValue(deviceModel.props[commands.temperature.code]).toString(), '/temperature/get')
publishIfChanged('temperature', deviceModel.props[commands.temperature.code].toString(), '/temperature/get')
publishIfChanged('fanSpeed', getKeyByValue(commands.fanSpeed.value, deviceModel.props[commands.fanSpeed.code]).toString(), '/fanspeed/get')
publishIfChanged('swingHor', getKeyByValue(commands.swingHor.value, deviceModel.props[commands.swingHor.code]).toString(), '/swinghor/get')
publishIfChanged('swingVert', getKeyByValue(commands.swingHor.value, deviceModel.props[commands.swingVert.code]).toString(), '/swingvert/get')
publishIfChanged('swingVert', getKeyByValue(commands.swingVert.value, deviceModel.props[commands.swingVert.code]).toString(), '/swingvert/get')
publishIfChanged('swingVert', getKeyByValue(commands.power.value, deviceModel.props[commands.power.code]).toString(), '/power/get')
publishIfChanged('health', getKeyByValue(commands.health.value, deviceModel.props[commands.health.code]).toString(), '/health/get')
publishIfChanged('powerSave', getKeyByValue(commands.powerSave.value, deviceModel.props[commands.powerSave.code]).toString(), '/powersave/get')
Expand Down

0 comments on commit 9612833

Please sign in to comment.