dgarozzo wrote:webdeck wrote:dgarozzo wrote:Webdeck/Mike,
I'm stuck trying to add actions. I checked my code in here:
https://github.com/dgarozzo/homebridge/. Can you have a look? Maybe you can tell what I've done wrong. When I go to connect from my iPhone to Homebridge, it tells me that my "device" doesn't conform to Homekit. Right now, I have the lines commented out that are responsible for adding the action, so you won't see the problem until you uncomment those lines.
The plan was to make actions the same as switches that you can "turn on (or off)" to execute the action.
I don't know for sure, but if I had to guess, HomeKit doesn't like the concept of a "write-only" switch. Try giving it read permission and always returning 0 as the value.
-Mike
I think you hit the nail on the head. Thanks!
Your thoughts on pushing this version to "prod"?
Nick Farina, the owner of the Homebridge project, has announced a major change. He's proposing to split off all of the platforms out of his project, to be picked up by other maintainers. Folks would need to install Homebridge first, then install any platforms they want to use from separate repositories.
I'll need to revamp the Indigo.js platform module to work in this new system, and then I'll wind up hosting it in my own repository. I don't know the timeline for that change, but it sounds soon. Details are here:
https://github.com/nfarina/homebridge/pull/293. So I would say hold off until that's happened, and then I'll be able to make changes directly without having to wait for pull requests to be approved.
-Mike