Skip to content

Commit

Permalink
minor: Improve MQTT warning message (closes #2629)
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Sep 20, 2023
1 parent 36f6418 commit be332c6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf/HeatmiserPRT-W.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# The thermostats all transmit on or around 869.01Mhz

# I run the conf file from the command line with:
#rtl_433 -Y classic -R 0 -c /home/russ/.config/rtl_433/HeatmiserPRT-W.conf -f 869.01Mhz -M newmodel
#rtl_433 -Y classic -R 0 -c /home/russ/.config/rtl_433/HeatmiserPRT-W.conf -f 869.01M

# You will need to change the prettified channel codes to match your thermostat's output.

Expand Down
2 changes: 1 addition & 1 deletion conf/SalusRT300RF.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# listen on 868.286Mhz
# rtl_433 -Y classic -R 0 -X "name=SalusRT300RF, m=FSK_PCM, s=833, l=833, r=16000, preamble={24}0xaaaaaa,get=@0:{16}:Thermostat ID, get=@28:{4}:heat:[1:ON 2:OFF]" -f 868.286Mhz -F "mqtt://192.168.1.150,retain=1,devices=sensors/rtl_433/P[protocol]/C[channel]"
# Run with:
#rtl_433 -Y classic -R 0 -c /home/russ/.config/rtl_433/SalusRT300RF.conf -f 868.286Mhz -M newmodel
#rtl_433 -Y classic -R 0 -c /home/russ/.config/rtl_433/SalusRT300RF.conf -f 868.286M

# Report iso time:
report_meta time:iso
Expand Down
1 change: 1 addition & 0 deletions src/devices/lacrosse_tx141x.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ also TFA 30.3222.02 (a LaCrosse-TX141W).
also TFA 30.3251.10 (a LaCrosse-TX141W).
also some rebrand (ORIA WA50B) with a slightly longer timing, s.a. #2088
also TFA 30.3243.02 (a LaCrosse-TX141Bv3)
also LaCrosse TX141-Bv4 (seems identical to LaCrosse-TX141Bv3)
LaCrosse Color Forecast Station (model C85845), or other LaCrosse product
utilizing the remote temperature/humidity sensor TX141TH-Bv2 transmitting
Expand Down
4 changes: 2 additions & 2 deletions src/output_mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ static void mqtt_client_event(struct mg_connection *nc, int ev, void *ev_data)
}
case MG_EV_CLOSE:
if (!ctx)
break; // shuttig down
break; // shutting down
if (ctx->prev_status == 0)
print_log(LOG_WARNING, "MQTT", "MQTT Connection failed...");
print_log(LOG_WARNING, "MQTT", "MQTT Connection lost, reconnecting...");
// reconnect
char const *error_string = NULL;
ctx->connect_opts.error_string = &error_string;
Expand Down

0 comments on commit be332c6

Please sign in to comment.