Post not yet marked as solved
If you build any HomeKit app against the iOS 16 / macOS Ventura SDK with Mac Catalyst (or run it with the Designed for iPhone / iPad destination on Apple Silicon) they are broken and the HMHomeManagerDelegate.homeManagerDidUpdateHomes() method is never called on the manager delegate.
This is an issue since macOS Ventura Beta 1 and keeps happening on Beta 3. Any idea how to solve this issue?
Post not yet marked as solved
I get the error:
"Provisioning profile "iOS Team Provisioning Profile: ***.***.homekitexporter" doesn't include the NSHomeKitUsageDescription entitlement."
I have HomeKit enabled in the .entitlements file and I added the NSHomeKitUsageDescription to that also. I looked at the profile under my development account and I can see the HomeKit entitlement but I see nowhere to add the usage description key and string other than in the .entitlements file.
I also tried adding the key and string to the Custom IOS Properties for my Target APP but that didn't work either.
What am I missing?
Post not yet marked as solved
Hi guys,I've been working on getting some accessories working nicely with the Home App. When dealing with Window Coverings I came across some observations that don't seem to make sense to me and I'd be very thankful if someone would either confirm those observations or tell me, where I am going wrong.Summary: The Home App does not seem to properly use/display the available characteristics for the "Window Covering" serviceThe accessory uses a "Window Covering" service with the default characteristics (Current Position, Target Position, Position State) as well as two optional ones (Target Horizontal Tilt Angle & Current Horizontal Tilt Angle) and has been setup in the HomeKit Accessory Simulator.After adding the accessory to the Home App on my iPad (iOS11.1.2) it properly shows up and I can interact with it while observing the changes in real time in the Simulator.Now for my observations:1. The Home App does NOT show the value of "Current Position" anywhere - the only thing that is displayed is "Target Position"2. The Home App does NOT show the value of "Position State" anywhere - it derives the current state from the delta of "Current Position" and "Target Position". If "Current Position" > "Target Position" it displays "Closing", if "Current Position" < "Opening" and if they are the same, it displays the current value as %.Is this how it is supposed to work? Am I missing something?I intend to connect a real accessory via Home Kit Protocol that can be controlled in two ways:a) by changing the moving direction (up, down, stop)b) setting a desired target positionWith the above observations this leads to the following questions:1. If I set a target position on the accessory, the accessory will a) broadcast the change to "Target Position" and b) broadcast a series of changes to "Current Position" until it has reached the desired target position. This is properly reflected in the Home App when viewing the control in its small form (Showing "Opening" or "Closed"). Is there any way to make this process visible in the Home App when the the control is opened in full screen as well? As far as I could see it will jump right to the "Target Position" in the slider and not show anything regarding the updates to "Current Position" - even when opening the "Details" dialog.2. If I change the accessory by using directional controls, the accessory will a) broadcast the change to "Position State" and b) broadcast a series of changes to "Current Position" until it is stopped again. It will NOT broadcast a change to "Target Position", since it is not known when just using directional interaction. This leads to a problem in the Home App. Since the App does NOT check the "Position State", but calculates the value by itself, it ends up with inverted directions when "Current Position" starts changing without changes to "Target Position".Example: Blind is fully closed ("Current Position" and "Target Position" both being 0). Now the accessory is changed by using directional controls to open. This leads i.e. to "Current Position" to change to 5. Now the Home App does it's math (now "Current Position" > "Target Position") and displays "Closing", which is wrong.Is there a way to get the Home App to properly display the direction by examining the "PositionState" characteristic?Please let me know, if you need any additional information - I'll be happy to provide it.Thanks in advance,Kind regards,Michael.
Post not yet marked as solved
In my app I'm writing the value of a characteristic (the value written is a string). When I write this characteristic with this code:
characteristic.writeValue(uuidString) { error in
}
The error message below is printed to the debug console. The value *is* written, it seems. If I follow up with the following readValue, the characteristic.value is correct.
characteristic.readValue { error in
print(characteristic.value)
}
I can't find a reference to what this error root cause is, or how to "specify the bundle id" for the referenced key value.
Does anyone know what this means--and is it something I need to address before shipping the app (and how to do that)?
2021-05-17 14:29:14.321834-0400 XXXXXX[3509:2934697] validateSessionInfo: bundleID is invalid. Please specify the bundleID for kRTCReportingSessionInfoClientBundleID
Post not yet marked as solved
Hi there,
the home app on my phone is unresponsive. I am unable to select add new device as it goes back to main window without opening new device window after selecting new device. I am unable to make any changes as they all revert back when I reopen the app and I m unable to remove home from the iPhone app.
home works on my iPad and I have even removed home using my iPad but on my iPhone it still shows the same home with devices stuck in updating. So the app is not updating via iCloud.
i have tried signing out of iCloud on my phone, restarting, switching off all devices and remove home from iPhone but selecting it doesn’t remove home. It still stays locked into the same home with devices that are still saying updating.
I am also unable to delete the app as I am unable to remove the home pod from the app itself. When I select remove accessory from within the app nothing happens and I have already removed the home pod mini using my iPad. So the app is frozen and due to this I am unable to delete the app itself as I get a message to first remove any home pod before deleting and no option to delete anyway.
has anyone else had this specific issue?
Post not yet marked as solved
Hi,
Was anybody able to connect Matter device with iOS 16 phone?
I've tried ESP32 board with m5stack. The ESP32 device was in commissioning mode, but Apple Home app was not recognising it (neither by QR code nor as nearby device).
Post not yet marked as solved
Hi,
The WWDC2021 Video Add support for Matter in your smart home app has a bunch of code examples referencing APIs that are no longer present or deprecated, e.g. this one. Unfortunately the documentation doesn't give any hint on the replacement APIs.
Most of them are to be found in HMMatter* objects.
But in the video at 14:27 an API for CHIPDeviceController is shown. Unfortunately that one cannot be found anymore. Does anybody know how to achieve the described task (managing state and control of a matter accessory)
Post not yet marked as solved
How does one acquire and install HomePod beta software for testing?
Post not yet marked as solved
I am Switch Manufacturer,
I have an iOS application, where all switches can operate, it is light or fan now.
I also have Alexa skill and Google Home Action where I operate devices through echo devices.
Now I need to develop and operate the device from Siri for that I need to sync devices from the Application to Apple Home.
Can you please guide how I can start? or which SDK I need to use for development?
Post not yet marked as solved
Our HomePod minis are stuck downloading 14.5 yet the software version number shows 14.5. Any suggestions how to stop the download / update
Post not yet marked as solved
Hi,
Please take a response to me about my ThreadNetwork Framework Entitlement Request.
I have requested 2 times but i didn't get any repsonses.
Please check my case and leave a response as soon as.
Thanks,
Post not yet marked as solved
I am trying to build windows cover sample from adk 6.1 and after adding to homekit I got the error that this device is not compatible with homekit. I have found one bug that primary service was false, but changing it to true doesn't works :/ does anyone has the same problem ?
Post not yet marked as solved
Hi, I'm looking at creating an app that monitors a specific HomeKit contact sensor and when it opens have it trigger different notification depending on how many times it's been opened within 24 hours.
I've read conflicting information if that is possible within HomeKit due to security. Is it possible to read a HomeKit accessory like that? If so do you have any suggestions on how to?
Thank you!
Post not yet marked as solved
Hi,
I recently purchased a HomePod mini. It worked perfectly, appeared in the Home app, configuring it worked well, and it also downloaded the latest update. I then powered it down and moved it to a different location in the same room (where the WiFi coverage is still excellent), but when it came back up it seemed as though it was "confused". It could no longer set timers or alarms, sometimes became confused with "Scenes" and can no longer recognise individuals, or be trained with their voices. It can still (usually) play music (but only mine as the prime account holder), set Lighting scenes, tell the time, date and weather etc, basic Siri stuff.
I have tried resetting it through the home app, however, the device does not show up in my favourites, nor anywhere else.
It is still connected, as I see it under "Home Hubs and Bridges"
I have tried resetting it by pressing and holding the touch surface both for a reset and a reset to factory settings, but nothing happens
I have tried to reset it by plugging it into my Mac, but received the error message "The HomePod software update server could not be contacted. An unknown error occurred (-39)"
I wish that there was a small reset button on the device that could be used for a hard-reset, is there perhaps one under the base?
I think it may be bricked - any ideas on how to fix it, or should I return it while I still can?
Thanks in advance,
John
Post not yet marked as solved
As of today my HomeKit companion app will not connect to MFi with the error "Unable to establish a direct connection to MFi. This is after I logged in with my developer credentials. This has worked previously.
I am using the latest 2.0.1 companion app
I have tried on 2 separate phones
I have tried on a WiFi network with Internet access, and also with WiFi disabled using cellular data.
Post not yet marked as solved
If I say "Hey Siri, turn down the temperature" Siri will switch the thermostat from Heat Only to Auto and try to cool the house to the new temperature. It's currently -17 outside so I don't want it to do this, just lower the thermostat setting, nothing else. There must be a way to prevent Homekit from arbitrarily changing the thermostat's mode, especially without confirming it somehow.
Post not yet marked as solved
Many customers of horizontal awnings complain that the logic is reversed. When the awning is extended it shows as closed and vice versa. When people talk or describe the state of the awning we say 'open' to extend and 'close' to retract. There are examples of people using it in scenes, or using Siri to ask to close all shutters and awnings, only to find the awnings fully extended the next morning after heavy rain. The overall status will also show the awnings 'Open' while they are not in use. This is all very annoying and confusing.
There doesn't seem to be a difference in language between English and French, Dutch, German, ... when describing the operation of an awning. One can quickly find videos and instructions on operating awnings when 'open' refers to extending the horizontal coverage and 'closing' refers to retracting the horizontal coverage.
Somfy (a manufacturer of motors for awnings and the Tahoma Switch = HomeKit Bridge) on their part claim that they cannot resolve this issue as they need to follow the HAP specification in order to pass HomeKit certification.
This characteristic describes the current position of accessories. This characteristic can be used with doors, windows, awnings or window coverings. For windows and doors, a value of 0 indicates that a window (or door) is fully closed while a value of 100 indicates a fully open position. For blinds/shades/awnings, a value of 0 indicates a position that permits the least light and a value of 100 indicates a position that allows most light.
-HAP specification 9.27 Current Position
This is where Somfy points to with the claim they are obliged to use value '100' when it's fully retracted (closed, reported as open in HomeKit) and '0' when it's fully extended (open, reported as closed in HomeKit).
Is this indeed a problem in the spec (i.e. should an awning's current position be determined like windows/doors?) or would Apple allow a manufacturer to interpret the spec according to what the user is expecting without loosing certification?
Post not yet marked as solved
Good day,I am just learnning Swift and from the beginning i want everything to work otherwise it's not going to work on biger projects.but I do understand what is going on I just can't get the X-Code to get unstuck from where it is.the outlet is not being reconized to make the conection to the code and I did my research and even put the code in-place ,before, making the conection yet, it did not work.it would be in the section on "Create Outlets for UI Elements", 'Outlets'Then on Step (#6) it shows to add a line of code below the class line ;// MARK: Propertiesthen you are to add the conection wiht a control+drag on the ViewController.swift. sheet .Also you can add a line of code under the //MARK Properities and it looks like this; @IBOutlet weak var nameTextField: UITextField! So as, you see I do understand what need to happen I just must be missing a step.Thank-you for any help,BrianI am using the Apple website for instructions so it has all the data layed out very good.https://developer.apple.com/library/ios/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Lesson3.html#//apple_ref/doc/uid/TP40015214-CH22-SW1Thankyou,Brian Helip
Post not yet marked as solved
I am trying to login to mfi.apple.com to check some information about Homekit compatible product development. When I log in after 2FA I get redirected to the page https://mfi.apple.com/account/new-enrollment and I stuck there until browser timeout. I have tried logging in with both Edge and Chrome and also different laptops using different developer account in our company and get the same result.
May I know is the MFI portal down now or it's just us?
I'm attempting to send an HTTP request when a motion sensor detects movement. I've setup the trigger in the Home app, and chose "Convert to Shortcut", now I'm trying to get the "Get contents of URL" shortcut action to work.
I'm running the target web server (a little Node.js app) on my local network.
I originally tried to use a simple http server, but was getting the error:
An SSL error has occurred and a secure connection to the server cannot be made. Assuming that HomeKit was converting my http URL to https automatically I moved my service to a domain where I have LetsEncrypt setup, added support for simple token based auth via headers, and tried again. This time I got the error:
A server with the specified hostname could not be found I triple checked my spelling, verified that the request worked from my Mac and iOS Safari, then concluded that the HomePod (my current home hub) doesn't do domain name resolution like I expect and I need to use an IP address instead.
Since I can't get a LetsEncrypt cert for a local IP address I generated a self-signed certificate with the instructions outlined here: https://stackoverflow.com/a/24749608 I additionally installed the root CA on all my HomePods and my phone using a "DER format crt" also described in that post. Now I'm getting another error:
The certificate for this server is invalid. You might be connecting to a server that is pretending to be "192.168.7.77" which could put your confidential information at risk. Installing root certs into my HomePods feels a little reckless, so I'm going to go reset them to factory settings and hope that someone here has some guidance as to what I need to do to make my service eligible for the "Get Contents of URL" shortcut.
Thank you!
A note for anyone trying to reproduce this: the errors I'm quoting are shown when you click the play button at the bottom of the shortcut editing/creation screen ("Home" app > "Automations" tab > "+" button > setup any trigger > "Convert To Shortcut" at the bottom of the action selector > "▶️" button). Clicking "Test automation" after creating the automation, or using the actual Shortcuts app will give misleading results.