2375 Commits

Author SHA1 Message Date
Michael Zanetti
85146abca5 Fix type conversions of values
This fixes 5 issues in regard to types of values:

1) Default values for params in the metadata were not converted properly,
most visibly on integer values being loaded as double values.

2) Param values coming in from jsonrpc were not converted properly.

3) The plugin might set state values with invalid types or being out of range.

4) If, for some reason (e.g. earlier versions of nymea, or a plugin setting
its own params in code with a wrong type), there was a param value with a
wrong type in the system, we stored that wrong type and restored it on loading
of plugin params while instead it really should be converted to the specified
type in the ParamType.

5) If a plugin is not loaded for a configured thing, the old code would
not initialize the states properly but upon shutdown save those invalid
values to the cache.
2020-07-15 00:22:43 +02:00
Michael Zanetti
c33f644ab8
Update README.md
Fixes #227
2020-06-16 18:11:26 +02:00
Bernhard Trinnes
978cfebe0d
Update README.md
Updated README image url
2020-06-12 13:47:53 +02:00
Jenkins nymea
1fd9ac3af7 Jenkins release build 0.21.0 2020-06-07 19:16:28 +02:00
Jenkins nymea
247146ceda Merge PR #298: Add ventilation interface 2020-06-07 19:16:24 +02:00
Jenkins nymea
a01d5ea5b9 Merge PR #297: Fix UPnP discovery if wifi comes up late 2020-06-07 19:16:24 +02:00
Jenkins nymea
76335484ba Merge PR #296: Don't directly link to libssl, we're using the Qt wrappers 2020-06-07 19:16:23 +02:00
Jenkins nymea
1854604e32 Merge PR #295: Cleanup license headers/files 2020-06-07 19:16:23 +02:00
Jenkins nymea
f820b7dd00 Merge PR #294: Add a helper function to more easily access ZeroConf txt records 2020-06-07 19:16:23 +02:00
Jenkins nymea
48fb5f7edb Merge PR #292: Check for cloud certificate file before trying to connect 2020-06-07 19:16:23 +02:00
Jenkins nymea
7337105073 Merge PR #291: Fix thing class translations 2020-06-07 19:16:23 +02:00
Jenkins nymea
bf3a29b868 Merge PR #290: Add support for restarting nymea in the system api 2020-06-07 19:16:23 +02:00
Jenkins nymea
917c58d145 Merge PR #289: Add an I2C hardware resource 2020-06-07 19:16:23 +02:00
Jenkins nymea
fecce90ba3 Merge PR #288: Improve networking API 2020-06-07 19:16:23 +02:00
Jenkins nymea
94152ebe78 Merge PR #287: Drop internal networkmanager and use libnymea-networkmanager instead 2020-06-07 19:16:23 +02:00
Jenkins nymea
b1521c8207 Merge PR #286: Log DB schema 4 2020-06-07 19:16:23 +02:00
Jenkins nymea
5ab6bd56b7 Merge PR #285: Add an irrigation interface 2020-06-07 19:16:23 +02:00
Jenkins nymea
3156264787 Merge PR #283: Reject duplicate ids in plugin json 2020-06-07 19:16:23 +02:00
Jenkins nymea
60eebfc289 Merge PR #282: Add support for generic IO connections 2020-06-07 19:16:23 +02:00
Jenkins nymea
c816025c12 Merge PR #280: Improve error messages when a plugin fails to load 2020-06-07 19:16:23 +02:00
Michael Zanetti
82703de061 Fixes after testing/review 2020-06-07 19:15:39 +02:00
Michael Zanetti
dbea7acbb2 Add an I2C hardware resource 2020-05-27 22:44:36 +02:00
Michael Zanetti
b5ba11d039 Add ventilation interface 2020-05-27 10:58:22 +02:00
Michael Zanetti
7eee989e12 Fix UPnP discovery if wifi comes up late 2020-05-27 00:08:08 +02:00
Michael Zanetti
b16ed05257 Don't directly link to libssl, we're using the Qt wrappers 2020-05-20 20:52:05 +02:00
Michael Zanetti
311646efc7 Drop old GPL2 license file from libnymea 2020-05-20 11:32:58 +02:00
Michael Zanetti
b8d504196e Fix license header in version.h.in 2020-05-20 11:31:34 +02:00
Michael Zanetti
17eb0fc697 Add a helper function to more easily access ZeroConf txt records 2020-05-18 11:37:20 +02:00
Michael Zanetti
2fa0730c90 Check for cloud certificate file before trying to connect 2020-05-13 19:07:22 +02:00
Michael Zanetti
322bcf56a6 Add support for inverting the connections 2020-05-09 19:14:02 +02:00
Michael Zanetti
6d295d74b1 Add irrigation interface 2020-05-05 23:25:48 +02:00
Michael Zanetti
4e509d75f8 Add tests, some fixes/improvements 2020-05-05 21:04:07 +02:00
Michael Zanetti
3fc4825c67 Improve networking api
Add support starting an AP and provide ip address info
2020-05-04 16:03:48 +02:00
Michael Zanetti
318a71725f Fix plugins translations 2020-05-04 13:39:20 +02:00
Michael Zanetti
688cde9c9c Fix translating thing classes 2020-05-04 12:45:45 +02:00
Michael Zanetti
bb30a451b3 New DB schema version
* Store plaintext values in log db again
* Use msecs precision instead of secs
* rename column deviceId to thingId
2020-05-04 11:32:42 +02:00
Michael Zanetti
28624e264d Add support for restarting nymea in system api 2020-05-01 21:19:22 +02:00
Michael Zanetti
bee3904508 Bump lib version as we're breaking the ABI! 2020-05-01 14:43:28 +02:00
Michael Zanetti
9f856f3ce9 Add support for generic IO connections 2020-05-01 14:43:23 +02:00
Michael Zanetti
a859be9371 Fix introspect according to how the api behaved already 2020-04-23 15:39:15 +02:00
Michael Zanetti
58c4dcb6c9 Drop internal networkmanager and use libnymea-networkmanager instead 2020-04-23 15:08:02 +02:00
Michael Zanetti
1531a38297 Make the duplicate UUID check more strict 2020-04-08 13:57:31 +02:00
Michael Zanetti
46245a2a6b Add better messages when failing to load a plugin 2020-04-07 19:46:16 +02:00
Jenkins nymea
9af820b696 Jenkins release build 0.20.0 2020-04-05 14:43:25 +02:00
Jenkins nymea
deba851a08 Merge PR #281: Fix remving of things without plugin 2020-04-05 14:43:24 +02:00
Jenkins nymea
777dba7439 Merge PR #278: Fix initialization of ScriptState values on startup 2020-04-05 14:43:24 +02:00
Jenkins nymea
59bfd9ba83 Merge PR #275: Add a displayMessage for errors to browsing operations 2020-04-05 14:43:23 +02:00
Jenkins nymea
e64d293d2b Merge PR #274: Allow removal of discovered child things 2020-04-05 14:43:23 +02:00
Jenkins nymea
7c3143a9ea Merge PR #273: Add better error reporting when a client fails to establish the encryption channel 2020-04-05 14:43:23 +02:00
Jenkins nymea
a062ab44cf Merge PR #272: Fix param values getting lost in ScriptEvents 2020-04-05 14:43:23 +02:00