mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Update support_command.ino
This commit is contained in:
parent
91d2324cfb
commit
9a3fe2d0bb
@ -573,7 +573,24 @@ void CmndStatus(void)
|
|||||||
MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "12"));
|
MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "12"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_SHUTTER
|
||||||
|
if ((0 == payload) || (13 == payload)) {
|
||||||
|
Response_P(PSTR("{\"" D_CMND_STATUS D_STATUS13_SHUTTER "\":"));
|
||||||
|
for (uint8_t i=0; i < MAX_SHUTTERS; i++)
|
||||||
|
{
|
||||||
|
if (Settings.shutter_startrelay[i]==0) break;
|
||||||
|
if (i>0) ResponseAppend_P(PSTR(","));
|
||||||
|
ResponseAppend_P(PSTR("{\"" D_STATUS13_SHUTTER "%d\":{\"Relay1\":%d,\"Relay2\":%d,\"Open\":%d,\"Close\":%d,\"50perc\":%d,\"delay\":%d,\"opt\":"BYTE_TO_BINARY_PATTERN",\"calib\":\"%d:%d:%d:%d:%d\"}"), i,
|
||||||
|
Settings.shutter_startrelay[i],Settings.shutter_startrelay[i]+1,Settings.shutter_opentime[i], Settings.shutter_closetime[i],
|
||||||
|
Settings.shutter_set50percent[i],Settings.shutter_motordelay[i],BYTE_TO_BINARY(Settings.shutter_options[i]),
|
||||||
|
Settings.shuttercoeff[0][i], Settings.shuttercoeff[1][i], Settings.shuttercoeff[2][i], Settings.shuttercoeff[3][i], Settings.shuttercoeff[4][i]);
|
||||||
|
}
|
||||||
|
ResponseJsonEnd();
|
||||||
|
MqttPublishPrefixTopic_P(option, PSTR(D_CMND_STATUS "12"));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_SCRIPT_STATUS
|
#ifdef USE_SCRIPT_STATUS
|
||||||
if (bitRead(Settings.rule_enabled, 0)) Run_Scripter(">U",2,mqtt_data);
|
if (bitRead(Settings.rule_enabled, 0)) Run_Scripter(">U",2,mqtt_data);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user