Skip to content

Commit

Permalink
Just more logging move from Info to Debug and also location of log msg
Browse files Browse the repository at this point in the history
Basic moves from INFO to DEBUG to prevent cluttering INFO with logs. Also fixed a logging issue that showed the state of a object before it was set.
  • Loading branch information
alpauna committed Nov 1, 2024
1 parent 549b069 commit ac4ee98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/ESPHome/Furnace Contoller/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ select:
- lambda:
id(heating_level).publish_state(x);
- logger.log:
level: INFO
level: DEBUG
format: "Heat level changed to: %s"
args: ["x.c_str()"]

Expand Down Expand Up @@ -483,8 +483,8 @@ script:
}
if(id(user_forced_no_hp).state) // user forced no hp so just ignore HP heating by forcing furnace only mode.
{
ESP_LOGI("heat_action_script", "Setting force mode based on user force no HP. State of heating level: %d or %s force furnace mode %s", id(heating_level).active_index().value(), id(heating_level).state.c_str(), id(force_furnace_mode).state ? "True" : "False");
id(force_furnace_mode).turn_on();
ESP_LOGD("heat_action_script", "Setting force mode based on user force no HP. State of heating level: %d or %s force furnace mode %s", id(heating_level).active_index().value(), id(heating_level).state.c_str(), id(force_furnace_mode).state ? "True" : "False");
}
// in heat call always turn off rev valve if on.
if(id(rev).state){ id(rev).turn_off();}
Expand Down

0 comments on commit ac4ee98

Please # to comment.