106 Commits

Author SHA1 Message Date
Michael Zanetti
5cbe613a3e improve test, fix bug in stateEvaluator 2019-04-01 20:48:17 +02:00
Simon Stürz
d396cd16d2 added test 2019-04-01 20:48:17 +02:00
Michael Zanetti
c55c92774b improve tests a little 2019-04-01 20:48:17 +02:00
Michael Zanetti
b0202e928a some minor fixes 2019-04-01 20:48:17 +02:00
Michael Zanetti
240c5e36d6 implement a logging framework 2019-04-01 20:48:17 +02:00
Michael Zanetti
56ca42e1ca finish off the stateevaluator handling 2019-04-01 20:48:17 +02:00
Michael Zanetti
5cd3154b64 add possibility to disable/enable rules
Fixes #58
2019-04-01 20:48:17 +02:00
Michael Zanetti
66f4a361a1 add Events.GetEventType
Fixes #59
2019-04-01 20:48:17 +02:00
Michael Zanetti
63fb728269 bump version 2019-04-01 20:48:17 +02:00
Michael Zanetti
c0abc394f8 bump api 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
f75c7abde4 bump api version 2019-04-01 20:48:17 +02:00
Michael Zanetti
352a2dcca1 don't pack invalid/empty stateevaluator contents
Fixes #56
2019-04-01 20:48:17 +02:00
Michael Zanetti
1cc0c4dd15 get rid of warnings
this eliminates all warnings and turns on -Werror
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
c9e6b7ed81 load plugins dynamically 2019-04-01 20:48:17 +02:00
Michael Zanetti
b252ff9706 port new plugins to json system 2019-04-01 20:48:17 +02:00
Michael Zanetti
dcd2fdc049 initial work on moving plugin description to json 2019-04-01 20:48:17 +02:00
Michael Zanetti
737fe7e00d randomize other test ports too 2019-04-01 20:48:17 +02:00
Michael Zanetti
853a46d788 randomize Mock Auto device port to avoid collisions when multiple guh's are running 2019-04-01 20:48:17 +02:00
Michael Zanetti
0614e79193 convert the remaining param lists 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
16f15a347b add test targets to install 2019-04-01 20:48:17 +02:00
Michael Zanetti
d8f6f92b30 set install path for tests 2019-04-01 20:48:17 +02:00
Michael Zanetti
84ef4819d3 don't use rpath for the test binaries so we don't need to strip it
this breaks the make check targets without manually exporting
LD_LIBRARY_PATH, but the make test target still works.
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
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
eed190b845 don't use .qmake.conf as it seems to break in some circumstances 2019-04-01 20:48:17 +02:00
Michael Zanetti
1c8e7d07cc add debug prints for qmake 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
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
3bb19915bf more tests for Event 2019-04-01 20:47:51 +02:00
Michael Zanetti
a5b0ceeee4 more tests for events 2019-04-01 20:47:51 +02:00
Michael Zanetti
55b6962ebc more tests for stateevaluator, fix found issues 2019-04-01 20:47:51 +02:00
Michael Zanetti
16645498db write more tests for the rules engine.
decouple jsonrpc versioning from application versioning
2019-04-01 20:47:51 +02:00
Michael Zanetti
d2f02d650b fix eventdescriptor's paramdescriptors handling 2019-04-01 20:47:51 +02:00
Michael Zanetti
ddebe2d0b4 add params to proper event 2019-04-01 20:47:51 +02:00
Michael Zanetti
011a0afa48 added a test for triggering a rule 2019-04-01 20:47:51 +02:00
Michael Zanetti
576e67f9f3 also add event params to rule load/store test 2019-04-01 20:47:51 +02:00
Michael Zanetti
346ee6df35 add event params to rules test 2019-04-01 20:47:51 +02:00
Michael Zanetti
9d21f32366 allow calling AddRule with a single eventDescriptor but also with a list 2019-04-01 20:47:51 +02:00
Michael Zanetti
373af5bde5 add tests for loading/storing rules to disk 2019-04-01 20:47:51 +02:00
Michael Zanetti
eec2461622 fix version check to allow automatic package version bumping 2019-04-01 20:47:51 +02:00
Michael Zanetti
08223606ee introduce StateDescriptor and StateEvaluator for use with Rules 2014-06-09 04:34:37 +02:00
Michael Zanetti
21738b3907 state changes emit events now 2014-06-08 20:52:30 +02:00
Michael Zanetti
bbd05ca7fd align jsonrpc param descriptions with the rest of the type system 2014-06-08 17:08:51 +02:00
Michael Zanetti
b07433a8b5 Add discoveryParams to DeviceClass
Fixes #12
2014-05-05 20:40:02 +02:00
Michael Zanetti
1ffe5ee721 bump version 2014-05-05 20:30:21 +02:00
Michael Zanetti
874f4b54d1 add Actions.GetActionType(actionTypeId) to JSONRPC
Fixes #10
2014-05-05 20:21:27 +02:00