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
72.02k stars 30.17k forks source link

Services: cannot use "input_datetime.set_datetime" to set a 0 value #120774

Open ildar170975 opened 3 months ago

ildar170975 commented 3 months ago

The problem

This code seems to be considered as wrong:

service: input_datetime.set_datetime
target:
  entity_id: input_datetime.test_datetime
data:
  timestamp: 0

344243116-ac9799f3-959c-4bf7-a103-25a5f7fd3108

This code is accepted:

service: input_datetime.set_datetime
target:
  entity_id: input_datetime.test_datetime
data:
  timestamp: 0.001

344243760-8a63b1c1-c18c-464f-a00c-1f63ce2233a5

What version of Home Assistant Core has the issue?

2024.6.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

input_datetime

Link to integration documentation on our website

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

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 @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (input_datetime) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `input_datetime` 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 input_datetime` 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)


input_datetime documentation input_datetime source (message by IssueLinks)

issue-triage-workflows[bot] commented 1 week ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

ildar170975 commented 2 days ago

up