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

HomeKit entity state desyncs after unsuccessful action #134073

Open
without-yy opened this issue Dec 27, 2024 · 1 comment
Open

HomeKit entity state desyncs after unsuccessful action #134073

without-yy opened this issue Dec 27, 2024 · 1 comment
Assignees

Comments

@without-yy
Copy link

The problem

I created a button in Home Assistant using command_line that never turns on, and bridged it to HomeKit.
When I click 'On' in HomeKit, the state does not update and remains in the 'On' state.
Based on a previous issue here, it's mentioned that HomeKit assumes success and does not refresh the state.

When testing with Homebridge, using Characteristic.updateValue updates the state, and the change is reflected immediately on the phone — Homebridge API.

command_line: 
  - switch:
      name: Test
      command_on: "echo ''"
      command_off: "echo ''"
      command_state: "echo ''"
      value_template: "{{ value != '' }}"
      scan_interval: 5
      unique_id: "test"

What version of Home Assistant Core has the issue?

Core 2024.12.5

What was the last working version of Home Assistant Core?

Core 2024.12.5

What type of installation are you running?

Home Assistant Container

Integration causing the issue

homekit bridge

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
Copy link

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

Code owner commands

Code owners of homekit 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 homekit 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)


homekit documentation
homekit source
(message by IssueLinks)

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

3 participants