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

history_stats does not warn you if entity_id does not exist #121044

Open
rahatarmanahmed opened this issue Jul 3, 2024 · 1 comment
Open

history_stats does not warn you if entity_id does not exist #121044

rahatarmanahmed opened this issue Jul 3, 2024 · 1 comment

Comments

@rahatarmanahmed
Copy link

The problem

I accidentally misspelled the entity_id in my history_stats configuration.

sensor:
  - platform: history_stats
    name: HVAC Heating Last 24 Hrs
    entity_id: sensor.any_thermostat_is_heating
    state: "on"
    type: time
    end: "{{ now() }}"
    duration:
      hours: 24

Turns out I meant to use entity_id: binary_sensor.any_thermostat_is_heating. Unfortunately nothing in the logs helped me realize my mistake, I just had to notice it on my own. Ideally something would validate the entity_id listened to.

What version of Home Assistant Core has the issue?

2024.4.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

history_stats

Link to integration documentation on our website

https://www.home-assistant.io/integrations/history_stats/

Diagnostics information

No response

Example YAML snippet

sensor:
  - platform: history_stats
    name: HVAC Heating Last 24 Hrs
    entity_id: sensor.any_thermostat_is_heating
    state: "on"
    type: time
    end: "{{ now() }}"
    duration:
      hours: 24

Anything in the logs that might be useful for us?

Nothing, that's the problem :(

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Jul 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant