531 Commits

Author SHA1 Message Date
Simon Stürz
36778e8eda Add test trigger for auto device reconfiguration 2019-04-10 13:12:25 +02:00
Simon Stürz
beb00aa0f1 Implement autodevice reconfigure in mock plugin and prepare tests 2019-04-10 13:12:25 +02:00
Michael Zanetti
50aa691087 Add test, fix some issues with loading internal and built-in plugin translations 2019-04-08 16:49:31 +02:00
Jenkins
06d5f42f5e Automatic translations update by Jenkins 2019-04-08 13:55:15 +02:00
Michael Zanetti
5badc066fb Add a deviceId to DeviceDescriptors to allow reconfiguring them 2019-04-08 13:55:15 +02:00
Michael Zanetti
153774ae24 Mock Plugin: Extend inputTypes mock device with states for all types 2019-04-08 13:55:15 +02:00
Michael Zanetti
81e4db3a90 Handle binding loops in rules properly 2019-04-08 13:55:15 +02:00
Jenkins
f4d0744f6c Automatic translations update by Jenkins 2019-04-08 13:55:15 +02:00
Michael Zanetti
635a4e3ef2 fix mock device and introduce tests logging category 2019-04-08 13:55:15 +02:00
Michael Zanetti
15938cafb3 Fix an issue where Rules might not be initialized properly at startup 2019-04-08 13:55:15 +02:00
Jenkins
b9dda16af9 Automatic translations update by Jenkins 2019-04-08 13:55:15 +02:00
Jenkins
847b17e804 Automatic translations update by Jenkins 2019-04-08 13:55:15 +02:00
Michael Zanetti
293a3c7833 add a system interface 2019-04-08 13:55:15 +02:00
Jenkins
47b1bdd919 Automatic translations update by Jenkins 2019-04-08 13:55:15 +02:00
Michael Zanetti
156ff84888 some more improvements, while at it 2019-04-08 13:55:15 +02:00
Michael Zanetti
62976cd860 more precise param namings and translation context strings 2019-04-08 13:55:15 +02:00
Jenkins
b0fa34f7d6 Automatic translations update by Jenkins 2019-04-08 13:55:15 +02:00
Jenkins
624bbd45e3 Automatic translations update by Jenkins 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
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
Jenkins
ba69ab6a29 Automatic translations update by Jenkins 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
Jenkins
b31027f793 Automatic translations update by Jenkins 2019-04-08 13:55:15 +02:00
Jenkins
72dcc5cc98 Automatic translations update by Jenkins 2019-04-08 13:55:15 +02:00
Simon Stürz
ac95880175 Update mock parent/child actions 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
Jenkins
bb5826de87 Automatic translations update by Jenkins 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
Jenkins
d00e1fbac3 Automatic translations update by Jenkins 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
028abeafa2 generate a basic translation file if it's not here yet 2019-04-08 13:55:15 +02:00
Jenkins
1125d50e4a Automatic translations update by Jenkins 2019-04-08 13:55:15 +02:00
Michael Zanetti
4156e0abaa guru.guh.DevicePlugin -> io.nymea.DevicePlugin 2019-04-08 13:55:15 +02:00
Michael Zanetti
79cc563eb0 docs guh -> nymea 2019-04-08 13:55:15 +02:00
Michael Zanetti
5826532fc9 rename plugin output 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
34e387fa2b guh-generateplugininfo -> nymea-generateplugininfo 2019-04-08 13:55:15 +02:00
Michael Zanetti
39fc071ed6 defines GUH_* -> NYMEA_* 2019-04-08 13:55:15 +02:00
Michael Zanetti
eb316a7a0c libguh -> libnymea 2019-04-08 13:55:15 +02:00
Jenkins
b3a368874d Automatic translations update by Jenkins 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
Jenkins
57d4466f9a Automatic translations update by Jenkins 2019-04-08 13:55:15 +02:00
Michael Zanetti
562e7aa89d update how id names are generated
include the deviceClass/plugin name in all defines to avoid collisions
between deviceClasses within the same file. So far this hasn't
really been an issue because using idName we could set random ids.

Now interfaces dictate the names, so having multiple deviceClasses
in one file and both implementing the same interface would clash.

This also should improve readability in the plugins code as we won't
have ids like: "bridgeConnected" and "connected" available which
easily causes the developer to accidentally use "connected" where
instead "bridgeConnected" should be used (I actually found some
bugs like this while updating plugins for this). The new style
would force those states to be named like e.g. "bridgeConnected"
and "lightConnected" which are not as easy to mix up.
2019-04-08 13:55:15 +02:00
Michael Zanetti
62dac29d99 make testDevices work again 2019-04-08 13:55:15 +02:00
Michael Zanetti
30a2139369 update mock plugin 2019-04-08 13:55:15 +02:00
Michael Zanetti
880b6e1418 repurpose "name" property, add displayName* props instead 2019-04-08 13:55:15 +02:00
Jenkins
4caeb15207 Automatic translations update by Jenkins 2019-04-08 13:55:15 +02:00
Michael Zanetti
1167001b0b don't autmatically run translations compiler
instead add a manual "translations" target
2019-04-08 13:55:15 +02:00
Simon Stürz
2207ac317a Update copyright headers 2019-04-08 13:55:15 +02:00