Hi guys,
i just had a quick question,
i just started working on a new plugin to get XBMC/Kodi integrated in Pimatic.
i think this would be awesome if it works (my complete media (audio and video) in my livingroom is controlled by XBMC)
i found a nice API that i can use for this. but i was wondering what the best approach would be.
-
use button sensors for the events (play, pause, stop ect.)
But this means it will get a shitload of devices. But the user can choose which ones they want and which they don’t need. -
create a new device type.
Which will contain all the events ect.
and can be more easily extend to also send stuff to XBMC/Kodi. (like turning on internet radio as soon as you get home)
But i have a general idea on how to add a new device, but i have no idea how i can make them trigger events ect.
is really this enough:
http://www.pimatic.org/docs/pimatic/lib/devices/#contactsensor
and then the Button part? only an emit?
Can someone point me in the right direction here?