Skip to content

Commit f1aa244

Browse files
committed
Change title to eventtitle in thermostat panel log
1 parent a26ad1d commit f1aa244

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

glowdash/thermostat.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func (p PanelThermostat) DoAction(actionName string, parameters map[string]strin
285285
actstr = "off"
286286
}
287287

288-
GlowdashConsole.Write(fmt.Sprintf("Set thermostat \"%s\" to <%s>", p.title, actstr))
288+
GlowdashConsole.Write(fmt.Sprintf("Set thermostat \"%s\" to <%s>", p.eventtitle, actstr))
289289
execTcpQuery(p.hwDeviceIp, p.hwDevicePort, fmt.Sprintf("cmd:stw;work:%s;", actstr))
290290
stateChanged = true
291291
time.Sleep(time.Millisecond * 500)
@@ -295,7 +295,7 @@ func (p PanelThermostat) DoAction(actionName string, parameters map[string]strin
295295
if strings.HasPrefix(actionName, "tts/") {
296296
fv, err := strconv.ParseFloat(actionName[4:], 32)
297297
if err == nil {
298-
GlowdashConsole.Write(fmt.Sprintf("Set thermostat \"%s\" target temperature to <%.1f>", p.title, fv))
298+
GlowdashConsole.Write(fmt.Sprintf("Set thermostat \"%s\" target temperature to <%.1f>", p.eventtitle, fv))
299299
execTcpQuery(p.hwDeviceIp, p.hwDevicePort, fmt.Sprintf("cmd:stt;ttemp:%.1f;", fv))
300300
stateChanged = true
301301
time.Sleep(time.Millisecond * 500)
@@ -310,7 +310,7 @@ func (p PanelThermostat) DoActionFromScheduler(actionName string) []string {
310310
if p.deviceType == "smtherm" && p.hwDeviceIp != "" {
311311
f, converr := strconv.ParseFloat(actionName, 8)
312312
if converr == nil {
313-
GlowdashConsole.Write(fmt.Sprintf("Scheduled set thermostat \"%s\" target temperature to <%.1f>", p.title, f))
313+
GlowdashConsole.Write(fmt.Sprintf("Scheduled set thermostat \"%s\" target temperature to <%.1f>", p.eventtitle, f))
314314
execTcpQuery(p.hwDeviceIp, p.hwDevicePort, fmt.Sprintf("cmd:stt;ttemp:%.1f;", f))
315315
time.Sleep(time.Millisecond * 500)
316316
return p.QueryDevice()

0 commit comments

Comments
 (0)