Skip to content

Commit

Permalink
fix(hass): 2gig thermostat valueIds (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
chilicheech authored Dec 1, 2020
1 parent 3794e34 commit e1a4642
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions hass/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ const THERMOSTAT_2GIG = {
type: 'climate',
object_id: 'thermostat',
values: [
'49-0-Air temperature',
'64-0-mode',
'66-0-state',
'67-0-setpoint-1',
'67-0-setpoint-2',
'68-0-mode'
'49-1-Air temperature',
'64-1-mode',
'66-1-state',
'67-1-setpoint-1',
'67-1-setpoint-2',
'68-1-mode'
],
mode_map: {
off: 0,
Expand All @@ -44,22 +44,22 @@ const THERMOSTAT_2GIG = {
on: 1
},
setpoint_topic: {
Heat: '67-0-setpoint-1',
Cool: '67-0-setpoint-2'
Heat: '67-1-setpoint-1',
Cool: '67-1-setpoint-2'
},
default_setpoint: '67-0-setpoint-1',
default_setpoint: '67-1-setpoint-1',
discovery_payload: {
min_temp: 50,
max_temp: 85,
modes: ['off', 'heat', 'cool'],
fan_modes: ['auto', 'on'],
action_topic: '66-0-state',
action_topic: '66-1-state',
action_template: '{{ value_json.value | lower }}',
current_temperature_topic: '49-0-Air temperature',
current_temperature_topic: '49-1-Air temperature',
current_temperature_template: '{{ value_json.value }}',
fan_mode_state_topic: '68-0-mode',
fan_mode_state_topic: '68-1-mode',
fan_mode_command_topic: true,
mode_state_topic: '64-0-mode',
mode_state_topic: '64-1-mode',
mode_command_topic: true,
temperature_state_template: '{{ value_json.value }}',
temperature_command_topic: true
Expand Down

0 comments on commit e1a4642

Please sign in to comment.