66 Commits

Author SHA1 Message Date
Simon Stürz
f9343534f4 Add new units and bump json api version 2019-04-08 13:55:15 +02:00
Simon Stürz
e82efc7021 Add basic structure of first plugin tutorial and continue with docs 2019-04-08 13:55:15 +02:00
Simon Stürz
dcd410457d Update core documentation and fix inline warnings 2019-04-08 13:55:15 +02:00
Simon Stürz
50bd22cedd Add plugin wizard tutorial and improve style sheet 2019-04-08 13:55:15 +02:00
Michael Zanetti
6cf060aa93 fix an issue where state values in rules could be casted wrong from string to double 2019-04-08 13:55:15 +02:00
Michael Zanetti
200666ee3e add interfaces useful for irrigation scenarios 2019-04-08 13:55:15 +02:00
Michael Zanetti
de3e0dedc7 allow multiple inheritance with interfaces 2019-04-08 13:55:15 +02:00
Simon Stürz
ff66e366b4 Add bluetooth server debug categories and improve bluetooth server behaviour 2019-04-08 13:55:15 +02:00
Michael Zanetti
9dcab1293c rework closable interfaces a bit
simpleclosable  (a: open, close)
|- awning (a: stop)
|  |- extendedawning (s: percentage, moving)
|- blind  (a: stop)
|  |- extendedblind (s: percentage, moving)
|- closable (s: state)
|  |- garagegate (a: stop, s: intermediateposition)
|- shutter (a: stop)
|- smartlock (a, unlatch s: state)

simpleclosable (a: open, close)
|- closable (a: stop)
|  |- awning
|  |- blind
|  |- shutter
|  |- garagegate (s: state, intermediatePosition)
|  |- extendedclosable (s: moving, s: percentage)
|     |- extendedawning
|     |- extendedblind
|     |- extendedshutter
|- smartlock (a: unlatch, s: state)
2019-04-08 13:55:15 +02:00
Michael Zanetti
a6f4ddf188 Implement a tagging system 2019-04-08 13:55:15 +02:00
Michael Zanetti
b7262b51e4 add docs 2019-04-08 13:55:15 +02:00
Michael Zanetti
abd2305bc0 add support for paramTypes by name 2019-04-08 13:55:15 +02:00
Michael Zanetti
e21c2f16a5 add support for interface based StateDescriptors 2019-04-08 13:55:15 +02:00
Simon Stürz
5f226df930 Fix translation update path for external plugins 2019-04-08 13:55:15 +02:00
Simon Stürz
087a89b64b Replace door with smartlock interface 2019-04-08 13:55:15 +02:00
Simon Stürz
b0125bb8c6 Fix json typos in interfaces 2019-04-08 13:55:15 +02:00
Simon Stürz
d641833eca Add smartlock interface and simplify simpleclosable interface 2019-04-08 13:55:15 +02:00
Michael Zanetti
9c49712a99 add pressuresensor interface 2019-04-08 13:55:15 +02:00
Michael Zanetti
f160a92f92 add shutter interfaces 2019-04-08 13:55:15 +02:00
Michael Zanetti
f710d7febb added shutter interface 2019-04-08 13:55:15 +02:00
Simon Stürz
1754b74138 Remove intermediate action from garagegate interface for a more generic appoach, 2019-04-08 13:55:15 +02:00
Michael Zanetti
8db7e050db Add support for configuring the used database backend 2019-04-08 13:55:15 +02:00
Michael Zanetti
3a862e2050 add a door interface 2019-04-08 13:55:15 +02:00
Simon Stürz
50b55d3727 Add linker and compiler configuration for extern plugins 2019-04-08 13:55:15 +02:00
Michael Zanetti
9992974049 update tests 2019-04-08 13:55:15 +02:00
Michael Zanetti
4e3b0ddb05 split battery level into 2 2019-04-08 13:55:15 +02:00
Michael Zanetti
5f4e524cca fix inputtrigger interface 2019-04-08 13:55:15 +02:00
Michael Zanetti
9e603cb536 cache dynamic turn credentials 2019-04-08 13:55:15 +02:00
Michael Zanetti
b502a399e5 improve plugin.pri
- combine generation of plugininfo.h and extern-plugininfo.h
- add removal of the generated files to make clean
2019-04-08 13:55:15 +02:00
Simon Stürz
b66a2a170c Change createMethods and setup method parsing toLower() 2019-04-08 13:55:15 +02:00
Simon Stürz
0d24b5ced9 Rename property methods in deviceplugin parsing mechanism 2019-04-08 13:55:15 +02:00
Simon Stürz
8a93fd8f68 Update properties methods and remove JSON information for mor generic definition formats 2019-04-08 13:55:15 +02:00
Simon Stürz
2459b2fbe1 Make json parsing more generic by using toUpper() 2019-04-08 13:55:15 +02:00
Simon Stürz
af24a07464 Add more comments and clean up code 2019-04-08 13:55:15 +02:00
Simon Stürz
2d349e28b1 Adjust mock plugins with new plugin info generation 2019-04-08 13:55:15 +02:00
Simon Stürz
023a223908 Improve plugin json parsing and fix generate-plugininfo script 2019-04-08 13:55:15 +02:00
Michael Zanetti
661a75a988 make use of parent mechanism in mock device 2019-04-08 13:55:15 +02:00
Michael Zanetti
12ff672216 only init devices after their parents have been set up 2019-04-08 13:55:15 +02:00
Michael Zanetti
b2a47036e4 QList<Device*> -> Devices 2019-04-08 13:55:15 +02:00
Michael Zanetti
2ab082bbc4 Add support for device parenting in discovery phase 2019-04-08 13:55:15 +02:00
Michael Zanetti
a2c53a762d add a plugin.pri file for use with external plugins 2019-04-08 13:55:15 +02:00
Michael Zanetti
99bec9583b don't create a dbus connection before the QCoreApplication 2019-04-08 13:55:15 +02:00
Michael Zanetti
123536f9f3 add intermediate states to garagegate interface 2019-04-08 13:55:15 +02:00
Michael Zanetti
b8c11cc850 improve debug output for the ruleengine 2019-04-08 13:55:15 +02:00
Michael Zanetti
ec667f15d9 specify the dbus interface to prevent it from changing with autogenerated stuff 2019-04-08 13:55:15 +02:00
Michael Zanetti
67a535619f fix typos as reported by Krazy2 2019-04-08 13:55:15 +02:00
Michael Zanetti
bec536af7d cleanup libnymea api to enforce less linking on plugins 2019-04-08 13:55:15 +02:00
Simon Stürz
cc6ab96b57 Finish api documentation 2019-04-08 13:55:15 +02:00
Simon Stürz
1f58300352 Add API documentation 2019-04-08 13:55:15 +02:00
Michael Zanetti
3719d315b5 don't use all scriptable contents as it will use regular signals too
this looks like a bug in Qt to me tbh. To get around it, restrict things more
2019-04-08 13:55:15 +02:00