57 Commits

Author SHA1 Message Date
Michael Zanetti
67a535619f fix typos as reported by Krazy2 2019-04-08 13:55:15 +02:00
Michael Zanetti
b8a86b095d copyright headers guh -> nymea 2019-04-08 13:55:15 +02:00
Michael Zanetti
36d4f89b24 namespace guhserver -> namespace nymeaserver 2019-04-08 13:55:15 +02:00
Michael Zanetti
34d68ab38a guhtestbase -> nymeatestbase 2019-04-08 13:55:15 +02:00
Michael Zanetti
559a8be1f6 guhcore -> nymeacore 2019-04-08 13:55:15 +02:00
Michael Zanetti
dca764fafd guhsettings -> nymeasettings 2019-04-08 13:55:15 +02:00
Michael Zanetti
213db704a4 add a power interface and use that for lights 2019-04-08 13:55:15 +02:00
Michael Zanetti
58c83e9072 add support for interface based rules 2019-04-08 13:55:15 +02:00
Michael Zanetti
8c0ae4eff6 remove protection for auto device removal for now...
... as we need more fine grained control over this.
2019-04-02 01:02:45 +02:00
Michael Zanetti
ec5bedf774 add a test for deviceDisappeared 2019-04-02 01:02:45 +02:00
Michael Zanetti
3b42d16777 prevent auto devices from being manually removed, allow plugins to remove them again 2019-04-02 01:02:45 +02:00
Michael Zanetti
4fc0ef01fa add a test 2019-04-02 01:02:45 +02:00
Simon Stürz
9c8097919d update license header 2019-04-02 01:02:06 +02:00
Simon Stürz
859c5b0df8 add paramTypesId and close #302 2019-04-02 01:01:21 +02:00
Simon Stürz
5904477af9 fix tests 2019-04-01 20:48:17 +02:00
Simon Stürz
f5ee163c48 update copy right line 2019-04-01 20:48:17 +02:00
Simon Stürz
f41d143d12 add stateType tests 2019-04-01 20:48:17 +02:00
Simon Stürz
6a60dbe2af fix device count in test 2019-04-01 20:48:17 +02:00
Simon Stürz
c95e6ebeb0 fix mock port 2019-04-01 20:48:17 +02:00
Simon Stürz
36533b61aa add REST api and tests 2019-04-01 20:48:17 +02:00
Simon Stürz
7b3348168b fix test 2019-04-01 20:48:17 +02:00
Simon Stürz
4d5429cb2b add test for edit device name 2019-04-01 20:48:17 +02:00
Simon Stürz
449c224da0 fix tests and remove mockdevices name param 2019-04-01 20:48:17 +02:00
Simon Stürz
aa5cba8189 add rest methods for testing
update rest tests with new methods
2019-04-01 20:48:17 +02:00
Simon Stürz
10497313ea add display pin mock device 2019-04-01 20:48:17 +02:00
Simon Stürz
e070138e4b add tests for push button mock device 2019-04-01 20:48:17 +02:00
Simon Stürz
38afa00b30 added GuhSettings 2019-04-01 20:48:17 +02:00
Simon Stürz
91afe4f29e add guhserver namespace to server 2019-04-01 20:48:17 +02:00
Simon Stürz
23f3a35a83 fix tests 2019-04-01 20:48:17 +02:00
Simon Stürz
745107c469 changed editable property to readOnly
added guhcore documentation
bump JSONRPC api version
2019-04-01 20:48:17 +02:00
Simon Stürz
b6e253e5c2 update man page
fix mock device
add some more tests
2019-04-01 20:48:17 +02:00
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
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
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
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
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
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
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
22bc250391 add discoverdevices tests with invalid parameters 2014-05-04 15:10:54 +02:00
Michael Zanetti
8334ec89ff test GetPlugins and removeDevice with an invalid param 2014-05-04 14:50:44 +02:00
Michael Zanetti
ca91386b7d added a test for a failing async device setup 2014-05-04 13:11:21 +02:00
Michael Zanetti
de62432913 fix tests 2014-05-04 05:14:07 +02:00