homebridge / homebridge.github.io

Homebridge Plugin Development Documentation Website.
https://developers.homebridge.io
9 stars 6 forks source link

Accessory type displayed in Homekit #31

Closed TeslaOwnerTips closed 2 years ago

TeslaOwnerTips commented 2 years ago

Current Situation

Thank you for all the work put in.

I have taken the http-webhooks plugin as a place to start learning. I think I understand the concept that there is a difference between a category and a service. I have not been able to figure out where the categories get used in the code Or how does HomeKit know what accessory type is being passed to it. Does it infer this based on the services used? I tried to create a battery sensor. In HomeKit is shows as unsupported. When I tap it the battery level shows correctly. So I guess abattery service can only be attached as a service of an accessory. Lets take let HMAccessoryCategoryTypeAirConditioner: String

How do I create an Air Conditioner accessory?

I looked at the Garage Door Opener.... I could not figure out where this code is HMAccessoryCategoryTypeGarageDoorOpener.

Could you please point me in a direction to learn more? Does homebridge only implement a subset of all possible accessories types that HomeKit works with? If yes where can I find this list?

Logs

Thank you for all the work put in.

I have taken the http-webhooks plugin as a place to start learning.
I think I understand the concept that there is a difference between a category and a service.
I have not been able to figure out where the categories get used in the code Or how does HomeKit know what accessory type is being passed to it. Does it infer this based on the services used?
I tried to create a battery sensor. In HomeKit is shows as unsupported. When I tap it the battery level shows correctly.
So I guess abattery service can only be attached as a service of an accessory.
Lets take 
[let HMAccessoryCategoryTypeAirConditioner: String](https://developer.apple.com/documentation/homekit/hmaccessorycategorytypeairconditioner)

How do I create an Air Conditioner accessory?

I looked at the Garage Door Opener.... I could not figure out  where this code is HMAccessoryCategoryTypeGarageDoorOpener.

Could you please point me in a direction to learn more?
Does homebridge only implement a subset of all possible accessories types that HomeKit works with? If yes where can I find this list?

Configuration

Thank you for all the work put in.

I have taken the http-webhooks plugin as a place to start learning.
I think I understand the concept that there is a difference between a category and a service.
I have not been able to figure out where the categories get used in the code Or how does HomeKit know what accessory type is being passed to it. Does it infer this based on the services used?
I tried to create a battery sensor. In HomeKit is shows as unsupported. When I tap it the battery level shows correctly.
So I guess abattery service can only be attached as a service of an accessory.
Lets take 
[let HMAccessoryCategoryTypeAirConditioner: String](https://developer.apple.com/documentation/homekit/hmaccessorycategorytypeairconditioner)

How do I create an Air Conditioner accessory?

I looked at the Garage Door Opener.... I could not figure out  where this code is HMAccessoryCategoryTypeGarageDoorOpener.

Could you please point me in a direction to learn more?
Does homebridge only implement a subset of all possible accessories types that HomeKit works with? If yes where can I find this list?

Environment

Thank you for all the work put in.

I have taken the http-webhooks plugin as a place to start learning. I think I understand the concept that there is a difference between a category and a service. I have not been able to figure out where the categories get used in the code Or how does HomeKit know what accessory type is being passed to it. Does it infer this based on the services used? I tried to create a battery sensor. In HomeKit is shows as unsupported. When I tap it the battery level shows correctly. So I guess abattery service can only be attached as a service of an accessory. Lets take let HMAccessoryCategoryTypeAirConditioner: String

How do I create an Air Conditioner accessory?

I looked at the Garage Door Opener.... I could not figure out where this code is HMAccessoryCategoryTypeGarageDoorOpener.

Could you please point me in a direction to learn more? Does homebridge only implement a subset of all possible accessories types that HomeKit works with? If yes where can I find this list?

Process Supervisor

hb-service

Additional Context

Thank you for all the work put in.

I have taken the http-webhooks plugin as a place to start learning. I think I understand the concept that there is a difference between a category and a service. I have not been able to figure out where the categories get used in the code Or how does HomeKit know what accessory type is being passed to it. Does it infer this based on the services used? I tried to create a battery sensor. In HomeKit is shows as unsupported. When I tap it the battery level shows correctly. So I guess abattery service can only be attached as a service of an accessory. Lets take let HMAccessoryCategoryTypeAirConditioner: String

How do I create an Air Conditioner accessory?

I looked at the Garage Door Opener.... I could not figure out where this code is HMAccessoryCategoryTypeGarageDoorOpener.

Could you please point me in a direction to learn more? Does homebridge only implement a subset of all possible accessories types that HomeKit works with? If yes where can I find this list?

NorthernMan54 commented 2 years ago

Am wondering if this might be a better discussion on the Homebridge discord server, and the plugin-development channel ?

Have you read the HomeKit Accessory Protocol Specification, and are you referencing the Homebridge API Documentation ( https://developers.homebridge.io/#/service/GarageDoorOpener ) ?

In the Homebridge documentation, all the service types are documented, and list the required and optional characteristics. While you can create non standard or custom devices and mix/match different characteristics and services typically the Home app can not handle these and will list it as unsupported as you found.