Commit Graph

22 Commits (ea2c87f3a561a71bf8de8cd316105aa18321f0a8)

Author SHA1 Message Date
Michael Zanetti 2a91dad1f0 Don't generate events for state changes any more
Up until now, nymea would generate EventTypes for every StateType
as well as emit an Event (along with a StateChanged notification) for
every change. This results in a lot of duplicated network traffic
which is of not much use. The StateChanged notification contains
all the information in the Event too and nymea:app actually never
really used Events for state changes.

This commit removes the events from the ThingClass, making it a lot
smaller and stops emitting Events for state changes.

As this is breaking the behavior, the JSONRPC API major version
is bumped.
2022-02-08 10:38:41 +01:00
Michael Zanetti 717b4f33cc Remove deprecated Devices, Action, Events, States namespaces from JSONRPC 2022-02-08 00:29:07 +01:00
Michael Zanetti f42aef106e Cleanup scripts on shutdown 2020-12-16 01:27:13 +01:00
Jenkins nymea e6b8d31d8d Merge PR #339: Add support for interface based script events and actions 2020-10-28 19:07:37 +01:00
Michael Zanetti 79dd00cb57 Add support for interface based script events and actions 2020-10-02 13:18:27 +02:00
Michael Zanetti 4d480f7c3b Fix a potential crash in logging handlers 2020-09-09 19:19:42 +02:00
Michael Zanetti a894d27a18 Update script api 2020-03-05 19:50:15 +01:00
Michael Zanetti 3e425fc55b Rename devices to integrations/things 2020-03-02 13:40:26 +01:00
Michael Zanetti 8f5536ba1a Update copyright 2020-01-23 20:07:26 +01:00
Michael Zanetti 744f25312b Cleanup as code review suggests 2020-01-15 12:32:32 +01:00
Michael Zanetti 24cecf9d47 Add tests for the scriptengine 2019-12-10 18:49:28 +01:00
Michael Zanetti dd70129a4d Add ScriptAlarm 2019-12-10 00:22:49 +01:00
Michael Zanetti 5ae3af6cbf Only install our filter once 2019-12-02 00:02:14 +01:00
Michael Zanetti 22bacf09e1 fix build 2019-12-01 01:14:26 +01:00
Michael Zanetti 5a36c2347f fix logging system to cope with the qml output redirection 2019-12-01 00:08:57 +01:00
Michael Zanetti bffdf9cb88 add copyright headers 2019-12-01 00:08:57 +01:00
Michael Zanetti 53a79c52d6 fixes 2019-12-01 00:08:57 +01:00
Michael Zanetti 3c274b04ab More work on scripting 2019-12-01 00:08:57 +01:00
Michael Zanetti 3a9a0a0abc Add scripts api namespace 2019-12-01 00:08:57 +01:00
Michael Zanetti 6ab6f8a80b tune script types a bit 2019-12-01 00:08:57 +01:00
Michael Zanetti d4081195d4 Some more work on the script engine 2019-12-01 00:07:35 +01:00
Michael Zanetti 4c0c95b1a8 Add a ScriptEngine 2019-12-01 00:07:35 +01:00