Skip to content

Commit be4b34a

Browse files
authored
Merge pull request #3031 from jgaalen/development
Changed AnnaTherm states from Text Sensor to Switch
2 parents e9cbe50 + 0594e26 commit be4b34a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hardware/AnnaThermostat.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,11 @@ void CAnnaThermostat::GetMeterDetails()
420420
{
421421
if(strcmp(tmpstr.c_str(), "on") == 0)
422422
{
423-
SendTextSensor(8, 1, 255, "On",sname);
423+
SendSwitch(8, 1, 255, true, 0, sname);
424424
}
425425
else
426426
{
427-
SendTextSensor(8, 1, 255, "Off",sname);
427+
SendSwitch(8, 1, 255, false, 0, sname);
428428
}
429429

430430
}
@@ -436,11 +436,11 @@ void CAnnaThermostat::GetMeterDetails()
436436
{
437437
if(strcmp(tmpstr.c_str(), "on") == 0)
438438
{
439-
SendTextSensor(9, 1, 255, "On",sname);;
439+
SendSwitch(9, 1, 255, true, 0, sname);
440440
}
441441
else
442442
{
443-
SendTextSensor(9, 1, 255, "Off",sname);;
443+
SendSwitch(9, 1, 255, false, 0, sname);
444444
}
445445

446446
}

0 commit comments

Comments
 (0)