Change MQTT reporting of instantaneous shutter position from tele to stat

This commit is contained in:
to-scho 2020-01-14 13:32:51 +01:00
parent 0db458c774
commit 64d3d0c075
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ void ShutterReportPosition(bool always)
}
ResponseJsonEnd();
if (always || (1 == shutter_moving)) {
MqttPublishPrefixTopic_P(RESULT_OR_TELE, PSTR(D_PRFX_SHUTTER));
MqttPublishPrefixTopic_P(RESULT_OR_STAT, PSTR(D_PRFX_SHUTTER));
}
if (rules_flag.shutter_moving > shutter_moving) {
rules_flag.shutter_moved = 1;