Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active State sensor don't show status -most of the time is Inactive state #62

Open
rysiulg opened this issue Nov 6, 2024 · 0 comments

Comments

@rysiulg
Copy link
Contributor

rysiulg commented Nov 6, 2024

This is compared only by stete load_output_run which theoretically should be ok, but in my case YORK this bit don't change most of the time. So this is better to add checking also by PUMP_I and fan speed > 0 -pump_i is internal which works mostly when heat pump works. Pump_o status very often is set to on even heatpump don't heat/cool so isn't good choice:
Original part of code

  # Active State
  - platform: template
    name: "Active State"
    id: "${devicename}_active_state"
    icon: mdi:power
    entity_category: "diagnostic"
    lambda: |-
      if (id(${devicename}_load_output_run).state) {

Modified code:

  # Active State
  - platform: template
    name: "Active State"
    id: "${devicename}_active_state"
    icon: mdi:power
    entity_category: "diagnostic"
    lambda: |-
      int fan_speed = id(${devicename}_fan_speed).state;
      if (id(${devicename}_load_output_run).state or id(${devicename}_load_output_water_pump_pump_i).state or fan_speed > 0) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant