Thanks in advance for any suggestions you may offer. I am able to reference a wav file with hs.speak but then I'll have to create 21 different wav files. Also, is it possible to reference a variable with hs.speak i.e., hs.speak (variable) instead of hs.speak "This is the actual text". In this way I would have 21 event triggers and a single hs.speak script.Ĭreating and passing the variable is confounding me. I was hoping that in each of my trigger events I could load the text to be spoken into a variable, pass that variable to a single hs.speak script that would extract the variable and speak the text. I have created 21 events that trigger another event that plays an hs.speak function script but I am trying to avoid writing 21 different events and scripts for the individual spoken messages. With that said I am having difficulty figuring something out.Įvery Sunday between 3AM and 9:30AM I need to have my HSTouch devices (Android) speak reminders at 21 distinct times with 21 different messages. Under Settings, Accessories it shows the accessories, with the services in the details under Siri Names.I am a modest VB programmer and have been able to write some scripts that run successfully. When you detail a service, it shows all services for the associated accessory. Note that Home doesn't know custom services, but also Speaker, even though this is defined by Apple.Įve shows services in the Rooms view.
Stateless switches show one tile for the accessory, and a button per StatelessProgrammableSwitch service under the details.When the accessory contains only unknown services, it's shown as a Not Supported tile.No tiles for AccessoryInformation and Battery Services - these are shown under the details of each other service of the accessory.The exceptions to "tile per service" are: Note that Siri also deals with services, not with accessories. It shows a tile per service, not per accessory, even though it labels the tiles accessories! That's why the number of Accessories for homebridge is smaller than the number of tiles shown when you press the number. With the old, static, model, when you registerPlatform('homebridge-yourplugin', 'YourName', YourPlatform), you need to return a list of services from () for each YourAccessory object that you return from ().Īpple's Home app handles multiple services per accessory just fine, as long as it knows the service. Note that that is for the (once) new dynamic platform accessories model, when you registerPlatform('homebridge-yourplugin', 'YourName', YourPlatform, true). For anyone interested, this modification can be found on my repository at It should be possible to add a battery reference and battery threshold to the lock configuration line such that a battery service is created and added to the lock accessory if battery reference variables exist in the Lock defining line of the config.json file.Īs a further note, I have been experimenting with the Lock_Accessory.js accessory from HAP-NodeJS and was able to add a battery service to this template. Locks added using that plugin currently lack a Battery service (in fact, I think all the accessories added by that plugin have only a single service).
My more specific goal is to figure out how to add a lock with a battery service using the homebridge-homeseer plugin. Anybody have any they can suggest? Anybody know if adding multi-service accessories is even possible using homebridge? I've been looking for an example homebridge plugin that similarly creates accessories with two Services but can't find one.
Specifically, I'd like to create a homebridge accessory with a LockMechanism service as the primary and a Battery service as the secondary. I am trying to understand how to create a homebridge accessory that has two services (i.e., a primary and secondary).