wimleers / homebridge-sma-home-manager

SMA Home Manager & Inverter plug-in for Homebridge
GNU General Public License v2.0
10 stars 2 forks source link

Energy signal toggle: how to use Siri Shortcuts? #11

Closed Scream4Life closed 1 year ago

Scream4Life commented 1 year ago

Why can e.g. EVE read the energy signal toggles like Off Grid, No Sun or the surplus signals whereas the shortcuts app doesn't? Non of the devices in the new energy room can't be seen in the shortcuts app. These are not defined as an outlet-type or something else readable, right?

I've bypassed this with dummy switches that are toggles after e.g. EVE can see the toggle of an energy signal. The dummy switches can be seen in the shortcuts app like an outlet. But this bypass is redundant because reading the devices in shortcuts would be much more efficient.

wimleers commented 1 year ago

Any application that supports custom HomeKit characteristics (https://developer.apple.com/documentation/homekit/hmcharacteristic) and services (https://developer.apple.com/documentation/homekit/hmservice) supports all functionality of this plugin. Apple's own Home app does not support this: it is a UI designed for limited/simple use cases. For any even slightly non-trivial automation, you will want to use Eve, Home+ or Controller.

It looks like shortcuts and Siri are only able to use the official characteristics β€” others seem to have concluded the same:

I've just confirmed that indeed the Shortcuts app in iOS 16.3 does not support accessories that only have custom services. I do see accessories (e.g. https://github.com/ebaauw/homebridge-p1) that are entirely custom but expose some official/standard services. But for those, the problem is that a dozen characteristics are all labeled "Custom" β€” good luck finding the right one in the dropdown πŸ˜…

Conclusion: it's not possible to do this in iOS 16. Maybe it will be in iOS 17. This is an absolutely ridiculous limitation of Apple's, which they could trivially fix. There's nothing I can do, sadly 😞 I will document this in the README though πŸ‘

Scream4Life commented 1 year ago

Ok, thank you. Letβ€˜s hope they will find out about the limitation of their home- and shortcut app at some day πŸ˜ƒ