home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.63k stars 30.78k forks source link

generic_hygrostat entity repeatedly showing status of "became unavailable" #123596

Open Drtrider opened 3 months ago

Drtrider commented 3 months ago

The problem

My generic_hygrostat repeatedly shows "became unavailable" in the logbook.

My current config;

# Kitchen dehumidifier control
generic_hygrostat:
  - name: Kitchen Dehumidifer
    humidifier: switch.utility
    target_sensor: sensor.kitchen_weather_humidity
    min_humidity: 40
    max_humidity: 70
    target_humidity: 60
    dry_tolerance: 3
    wet_tolerance: 3
    device_class: "dehumidifier"
    min_cycle_duration:
      seconds: 60
    initial_state: true
    sensor_stale_duration: 01:00:00

Looking at the logs, I noticed a few messages stating: Unable to update from sensor: could not convert string to float: 'Stalled'

Another issue thread mentioned a similar issue but the resolution seemed to be changing the sensor_stale_duration which I've attempted to do, with no improvement.

Here's an image of the history, you can see the "blips" so to speak where it's offline. image

What version of Home Assistant Core has the issue?

core-2024.7.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @shulyaka, mind taking a look at this issue as it has been labeled with an integration (generic_hygrostat) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `generic_hygrostat` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign generic_hygrostat` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


generic_hygrostat documentation generic_hygrostat source (message by IssueLinks)

AlexanderTurnowsky commented 3 weeks ago

I have still the same issue with this on 2 different generic_hygrostat's. Is there any progress on this. I'm now using 2024.10.2.

here is my code for it:

generic_hygrostat:
  - name: Feuchtraum
    humidifier: switch.entfeuchter_switch_0
    target_sensor: sensor.shellyhtg3_84fce6393360_humidity
    min_humidity: 50
    max_humidity: 60
    target_humidity: 55
    dry_tolerance: 2
    wet_tolerance: 2
    device_class: "dehumidifier"
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3
    initial_state: true
    away_humidity: 55
    away_fixed: True
    sensor_stale_duration: 00:31:00

  - name: Abstellraum
    humidifier: switch.shellyplusplugs_d48afc7ac378_switch_0
    target_sensor: sensor.shellyhtg3_84fce63a9650_humidity
    min_humidity: 50
    max_humidity: 60
    target_humidity: 55
    dry_tolerance: 2
    wet_tolerance: 2
    device_class: "dehumidifier"
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3
    initial_state: true
    away_humidity: 55
    away_fixed: True
    sensor_stale_duration: 00:31:00
maxshcherbina commented 3 days ago

In my opinion, its most likely your sensor.shellyhtg3_84fce6393360_humidity that stops responding/goes Unavailable, and the hygrostat cannot parse that state.

Might be worth looking at its state history as well as your hygrostat to see if they are unavailable at the same time.

If it is the connectivity of the shelly thats the issue, try setting the sensor_stale_duration to an hour or more, since i can see that the hygrostat is sometimes unresponsive for longer periods of time than 31 minutes.