openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.9k stars 3.59k forks source link

[HomeKit] Garage Door Opener CurrentDoorState transition states wrong value #16163

Closed Moxified closed 10 months ago

Moxified commented 10 months ago

Expected Behavior

CurrentDoorState should handle OPENING, CLOSING, STOPPED states but only recognizes OPEN and CLOSED.

Current Behavior

2023-12-30 09:55:20.746 [WARN ] [ssories.HomekitCharacteristicFactory] - Wrong value CLOSING for GarageDoorOpener characteristic of the item Garage_Door_Door_Text. Expected one of following [OPEN, CLOSED]. Returning CLOSED.
2023-12-30 09:55:18.659 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'Garage_Door_Door_Text' received command CLOSED
2023-12-30 09:55:18.660 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Garage_Door_Door_Text' predicted to become CLOSED
2023-12-30 09:55:18.663 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Garage_Door_Door_Text' changed from OPEN to CLOSED
2023-12-30 09:55:20.747 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Garage_Door_Door_Text' changed from CLOSED to CLOSING
2023-12-30 09:55:33.748 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Garage_Door_Door_Text' changed from CLOSING to CLOSED
home/garage/garagedoor/command/door close
home/garage/garagedoor/status/door closing
home/garage/garagedoor/status/door closed

Possible Solution

Steps to Reproduce (for Bugs)

Configure item with HomeKit metadata CurrentDoorState per documentation with device that sends OPEN, CLOSED, CLOSING, OPENING.

Context

ratgdo status uses open, opening, stopped, closing, closed for status. Hooking it up to Homekit yields warnings in logs.

Your Environment

Moxified commented 10 months ago

I had my metadata backwards. This is my mistake and working as expected. My apologies.