46 Commits

Author SHA1 Message Date
Simon Stürz
5af2067308 bump api versio
bump guh version
added tests for edit device
added tests for edit device (rediscovery)
added device params changed notification
2019-04-01 20:48:17 +02:00
Simon Stürz
b366d45229 first version of edit device 2019-04-01 20:48:17 +02:00
Simon Stürz
2aa55e469e added copyright 2019-04-01 20:48:17 +02:00
Simon Stürz
bb03280583 added device added/removed notification 2019-04-01 20:48:17 +02:00
Michael Zanetti
21f05315a6 fix typo 2019-04-01 20:48:17 +02:00
Michael Zanetti
213b28ea83 add Devices.GetStateValues
Fixes #65
2019-04-01 20:48:17 +02:00
Michael Zanetti
aad334c799 switch json api to better type system and enhance error reporting 2019-04-01 20:48:17 +02:00
Michael Zanetti
1aba1643f8 first attempt to clean up type system 2019-04-01 20:48:17 +02:00
Michael Zanetti
824464e09b fix some param handling issues 2019-04-01 20:48:17 +02:00
Michael Zanetti
53fe5557e0 fix issues in param handling in json api 2019-04-01 20:48:17 +02:00
Michael Zanetti
e4f3c9aba1 fix parsing of params 2019-04-01 20:48:17 +02:00
Michael Zanetti
be90f47f63 more work on rules
disallow removing a device if a rule still refers to it unless
parameters contain information on what to do with those rules.
2019-04-01 20:48:17 +02:00
Michael Zanetti
5f61ae03a7 make DeviceManager and RuleEngine in GuhCore private
This helps to have a cleaner separation between modules and have a
place to do inter-module checks before modifying data (e.g.
cascade deleting rules when a device is deleted etc)
2019-04-01 20:48:17 +02:00
Michael Zanetti
da9c937f94 update discoveryParams from QVariantMap to QList<Param> too 2019-04-01 20:48:17 +02:00
Michael Zanetti
fcdf3e1e0b more work on the Hue plugin 2019-04-01 20:48:17 +02:00
Michael Zanetti
a6725ec4e9 add initial support for pairing devices (Only CreateMethodDiscovery and SetupMethodPushButton so far)
implement an initial Philips Hue plugin to test it
add a python script to test stuff
2019-04-01 20:47:51 +02:00
Michael Zanetti
21738b3907 state changes emit events now 2014-06-08 20:52:30 +02:00
Michael Zanetti
d84319fdcc Finish off param handling. New param structures now used everywhere.
Plugin params reworked. Added Devices.GetPluginConfiguration.
Cover params stuff with tests.
2014-05-04 23:59:08 +02:00
Michael Zanetti
384690bb23 add a test for async device creation 2014-05-04 04:49:19 +02:00
Michael Zanetti
46e6642b90 added a test for device discovery 2014-05-04 03:45:50 +02:00
Michael Zanetti
f7559742a4 added support for async device creation. 2014-05-03 15:10:16 +02:00
Michael Zanetti
737f6f564e make AddConfiguredDevice and RemoveConfiguredDevice more verbose
Fixes #5
2014-04-29 00:08:14 +02:00
Simon Stürz
2a372dd240 added google mail notification plugin
changed licence formating
2014-04-20 18:49:39 +02:00
Michael Zanetti
e312e36ab9 introduce ParamType and Param, to get more type safety and better possibilities for comparison in rules 2014-04-18 04:45:58 +02:00
Michael Zanetti
6485ebbff5 make it a little more typesafe 2014-04-18 01:48:04 +02:00
Michael Zanetti
9ab9f2314f oops 2014-04-16 01:50:08 +02:00
Michael Zanetti
fe95326a10 fix some warnings 2014-04-16 01:13:16 +02:00
Michael Zanetti
1521b2f10b improve testscript 2014-04-14 00:37:40 +02:00
Michael Zanetti
33e64038fa fix discovery response in json 2014-04-14 00:16:08 +02:00
Michael Zanetti
9bfd634cd6 improve json api 2014-04-13 23:36:20 +02:00
Michael Zanetti
c56ebcb6a2 also implement async replies 2014-04-13 22:40:49 +02:00
Michael Zanetti
a5eb0ef759 some more checks 2014-04-13 17:58:33 +02:00
Michael Zanetti
8d1c7f9c03 add createmethod and setupmethod params
add support for createmethod "auto"
add functional boblight plugin
2014-04-13 10:27:08 +02:00
Michael Zanetti
34ab701f95 add much more test coverage 2014-04-06 03:33:51 +02:00
Michael Zanetti
c027bb1481 reenable strict argument checking, now that we can mark parameters as optional 2014-04-06 01:32:46 +02:00
Michael Zanetti
76bf703fc5 add getsupportedvendors 2014-04-06 00:01:43 +02:00
Michael Zanetti
415a48d659 make things more typesafe 2014-04-05 23:37:55 +02:00
Michael Zanetti
4f679b3bc3 restructure lib a bit. added initial code for the new rules stuff 2014-04-05 22:01:38 +02:00
Michael Zanetti
cf9d460bad implemented removeconfigureddevice 2014-04-05 01:55:56 +02:00
Michael Zanetti
044be78064 added methods to query states and properly test state changes on notifications 2014-04-04 22:50:59 +02:00
Michael Zanetti
5a6d7bf2ba states implemented 2014-04-04 01:34:13 +02:00
Simon Stürz
95f806ccaf added licence to source code 2014-03-31 21:55:33 +02:00
Simon Stürz
be4ee5c14d hive -> guh 2014-03-31 20:33:30 +02:00
Michael Zanetti
05537d7b6a Trigger -> Event 2014-01-26 18:39:09 +01:00
Michael Zanetti
4a4c3b9941 refactor json api declaration a bit 2014-01-25 04:39:22 +01:00
Michael Zanetti
02c8e6e4b4 reworked jsonrpc server.
added introspection
all calls and responses have now param validation
2014-01-20 01:13:43 +01:00