Skip to content

Commit

Permalink
fix(mqtt-discovery): modify thermostat_2gig to use endpoint 0 (#3579)
Browse files Browse the repository at this point in the history
  • Loading branch information
apella12 authored Feb 5, 2024
1 parent 9ba5886 commit 4ba9ead
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions api/hass/devices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ const THERMOSTAT_2GIG: HassDevice = {
type: 'climate',
object_id: 'thermostat',
values: [
'49-1-Air temperature',
'64-1-mode',
'66-1-state',
'67-1-setpoint-1',
'67-1-setpoint-2',
'68-1-mode',
'49-0-Air temperature',
'64-0-mode',
'66-0-state',
'67-0-setpoint-1',
'67-0-setpoint-2',
'68-0-mode',
],
action_map: {
0: 'idle',
Expand All @@ -73,21 +73,21 @@ const THERMOSTAT_2GIG: HassDevice = {
on: 1,
},
setpoint_topic: {
1: '67-1-setpoint-1',
2: '67-1-setpoint-2',
1: '67-0-setpoint-1',
2: '67-0-setpoint-2',
},
default_setpoint: '67-1-setpoint-1',
default_setpoint: '67-0-setpoint-1',
discovery_payload: {
min_temp: 50,
max_temp: 85,
modes: ['off', 'heat', 'cool'],
fan_modes: ['auto', 'on'],
action_topic: '66-1-state',
current_temperature_topic: '49-1-Air temperature',
action_topic: '66-0-state',
current_temperature_topic: '49-0-Air temperature',
current_temperature_template: '{{ value_json.value }}',
fan_mode_state_topic: '68-1-mode',
fan_mode_state_topic: '68-0-mode',
fan_mode_command_topic: true,
mode_state_topic: '64-1-mode',
mode_state_topic: '64-0-mode',
mode_command_topic: true,
temperature_state_template: '{{ value_json.value }}',
temperature_command_topic: true,
Expand Down

0 comments on commit 4ba9ead

Please sign in to comment.