90 Commits

Author SHA1 Message Date
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
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
f75c7abde4 bump api version 2019-04-01 20:48:17 +02:00
Michael Zanetti
c57773883d return correct enum name
Fixes #68
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
477a95477b add operator to stateevaluator in json api
Fixes #57
2019-04-01 20:48:17 +02:00
Michael Zanetti
de6b60734e Decouple the json timeout from the actual error code.
Fixes #50
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
ba8e3d7ec9 fix some plugin's json 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
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
f32abc8a2e add support for allowedValues 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
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
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
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
874f4b54d1 add Actions.GetActionType(actionTypeId) to JSONRPC
Fixes #10
2014-05-05 20:21:27 +02:00
Michael Zanetti
0110e3a8eb test the handshake message 2014-05-05 00:35:06 +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
edb6c956e6 drop some debug prints 2014-05-04 04:53: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
7c4354a6e1 add api to do async action executions 2014-05-03 19:59:24 +02:00
Michael Zanetti
c54e289403 added a mechanism to bump the version
added a test that checks for JSONRPC api changes and enforces a version bump
2014-05-03 17:22:44 +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
Michael Zanetti
7c3ffbd5d6 make executeAction more verbose 2014-04-28 23:52:05 +02:00
Michael Zanetti
e4c007070f add vendorId to DeviceClass in JSONRPC
Fixes #6
2014-04-28 21:09:04 +02:00
Michael Zanetti
c1ed5054c8 bring back the welcome message
Fixes #4
2014-04-28 20:44:49 +02:00
Michael Zanetti
df001695a1 convert ActionType to use ParamType instead of variants,
extend tests
2014-04-28 20:22:17 +02:00
Michael Zanetti
d4053297c8 add eventdescriptor and paramdescriptor classes to be used with Rules 2014-04-25 00:46:10 +02:00
Michael Zanetti
2e8f031d74 Fixes #3 2014-04-24 21:47:45 +02:00