17 Commits

Author SHA1 Message Date
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
880b6e1418 repurpose "name" property, add displayName* props instead 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
7273e35adf fix prints 2019-04-02 01:02:45 +02:00
Simon Stürz
308aef672b fix print method 2019-04-02 01:02:45 +02:00
Simon Stürz
b9053a31ae update plugin compiler 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
d77e122aca fixed documentation
finalized translation mechanism
2019-04-02 01:01:31 +02:00
Simon Stürz
978a203ec1 add translation strings for plugininfo 2019-04-02 01:01:21 +02:00
Simon Stürz
a5fbc70fc2 fix all params in all plugins 2019-04-02 01:01:19 +02:00
Simon Stürz
6060a260b3 create automatically translation folder 2019-04-02 01:01:05 +02:00
Simon Stürz
503939b559 update plugininfo compiler 2019-04-02 01:00:52 +02:00
Simon Stürz
48535e5c56 add build dependecy for translation tools
add translation path for packages
2019-04-02 01:00:52 +02:00
Simon Stürz
1e4e2ac09c add translations mechanism for plugins 2019-04-02 01:00:52 +02:00
Simon Stürz
a4d6f58f3c add test structure 2019-04-01 20:48:17 +02:00
Simon Stürz
02a6e2cb96 update plugins and add state desciptor validation 2019-04-01 20:48:17 +02:00
Simon Stürz
c9e0394de7 fixed libguh-dev header files
improved generateplugininfo
renamed it
2019-04-01 20:48:17 +02:00