itchannel / fordpass-ha

Fordpass integration for Home Assistant
278 stars 43 forks source link

Issue with the attributes in the windowposition #405

Open max-github-mjhodgson-com opened 8 months ago

max-github-mjhodgson-com commented 8 months ago

I am seeing some non-window data in the attributes for windowposition:

DRIVER: 
updateTime: '2023-10-23T06:59:19Z'
oemCorrelationId: '74972'
value:
  doubleRange:
    lowerBound: 0
    upperBound: 0
vehicleWindow: UNSPECIFIED_FRONT
vehicleOccupantRole: DRIVER
vehicleSide: DRIVER

icon: mdi:car-door
friendly_name: FocusST Window Status
gniknalu commented 8 months ago

Looks like window data to me. lowerBound/upperBound I think are for determining how far the window is open. The rest should be obvious (except for the "UNSPECIFIED_FRONT").

itchannel commented 8 months ago

That data is pulled straight from the "windowPosition" dictionary, no data is modified. So "oemCorrelationId" is obviously what they use to match the window to car maybe.

mojomojoman commented 8 months ago

@max-github-mjhodgson-com windowStatus for me used to report each individual window states with open / partial-open / closed. Ford recently overhauled their API completely to a new site and shutoff the old one. While they added a lot of cool new data, they also screwed up a few things. This being one of them. Since this is all the data being supplied via the API there's really nothing to be done for now on the window status reporting. I would imagine they will fix it at some point as we know for certain the car is capable of reporting that data.

SquidBytes commented 1 month ago

349