Commit Graph

635 Commits (03a44665d48bc29d961fb06dcf8d20472a196ebe)

Author SHA1 Message Date
Michael Zanetti f398cd3379 Remove displayNameEvent property from stateTypes 2022-08-07 12:53:38 +02:00
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 df5d3550ba Add support for dynamic min/max state values 2021-12-09 17:59:52 +01:00
Jenkins nymea e0fc43b308 Merge PR #451: Add PluginTimer API to python plugins 2021-09-06 09:05:02 +02:00
Michael Zanetti 59011c0387 Add PluginTimer API to python plugins 2021-08-26 14:15:43 +02:00
Michael Zanetti 886f5c49f6 Add O2, PH, ORP, CO and flammable gas sensor interfaces 2021-08-20 23:57:22 +02:00
Michael Zanetti 449a092bd9 Fix action finishing in input types mock 2021-05-29 00:25:30 +02:00
Jenkins nymea 07327b8bb4 Merge PR #406: Add browsing support to python plugin API 2021-04-19 11:38:27 +02:00
Jenkins nymea 8f9376eda1 Merge PR #402: Rework battery interface 2021-04-19 11:38:22 +02:00
Jenkins nymea a81b484635 Merge PR #396: Don't call thingRemoved() when a thing didn't complete the setup 2021-04-19 11:38:17 +02:00
Michael Zanetti d46ef1c5fa Rework battery interface 2021-04-12 00:58:43 +02:00
Michael Zanetti e6780d947d Add support for browsing in the python plugin api 2021-04-06 23:56:31 +02:00
Jenkins nymea 1016dd61a7 Merge PR #348: Add unit to batterylevel interface 2021-02-25 11:26:57 +01:00
Michael Zanetti dab8764584 Refresh setup status before proceeding 2021-02-24 17:42:16 +01:00
Michael Zanetti 29f88d744d Fix suggestLogging property for plugin devs 2021-02-24 13:41:41 +01:00
Michael Zanetti eeb1feade0 Add a jitter filtering mechanism 2021-01-02 14:33:15 +01:00
Michael Zanetti 30a0469212 Update tests 2021-01-02 14:33:15 +01:00
Michael Zanetti bb86f12ab8 Fix mock thing 2020-12-30 16:07:49 +01:00
Michael Zanetti b9be92df2e Add state based value comparison in rules 2020-12-04 16:16:55 +01:00
Jenkins nymea 907bd3b646 Merge PR #332: Add update interface 2020-10-28 19:07:30 +01:00
Jenkins nymea 6bd094fd72 Merge PR #330: Make the signalStrength state in wirelessconnectable interface optional 2020-10-28 19:07:29 +01:00
Jenkins nymea 694b070f05 Merge PR #310: Add support for Python plugins 2020-10-28 19:07:25 +01:00
Michael Zanetti 15eead0976 Properly catch stdout and stderr and redirect it to qmessagelogger 2020-10-15 22:34:06 +02:00
Michael Zanetti 85f742a38d Add ThingActionInfo.paramValue() method 2020-10-15 22:34:06 +02:00
Michael Zanetti bc04e455ac don't fail build on in-source builds 2020-10-15 22:34:06 +02:00
Michael Zanetti 75f4877f82 add settingChangedHandler, fix some issues, cleanup some warnings 2020-10-15 22:34:06 +02:00
Michael Zanetti 3436e9b998 drop usage of asyncio and run everything regularly threaded 2020-10-15 22:34:06 +02:00
Michael Zanetti 64e7d2784c checkpoint asyncio 2020-10-15 22:34:06 +02:00
Michael Zanetti 1018083052 add 2 missing data type conversions 2020-10-15 22:34:06 +02:00
Michael Zanetti b870140608 Add tests, fix shutdown 2020-10-15 22:34:06 +02:00
Michael Zanetti 746f3e4121 fix actions cleanup 2020-10-15 22:34:06 +02:00
Michael Zanetti dadffcb784 some fixes 2020-10-15 22:34:06 +02:00
Michael Zanetti 3296d4b417 more work 2020-10-15 22:34:06 +02:00
Michael Zanetti f132c6b006 some more work 2020-10-15 22:34:06 +02:00
Michael Zanetti 0cbd1ff5ec Clenaup and polish types. 2020-10-15 22:34:06 +02:00
Michael Zanetti a90841401c more work 2020-10-15 22:34:06 +02:00
Michael Zanetti 43ed283340 intermediate commit 2020-10-15 22:34:06 +02:00
Michael Zanetti 1ce5d5980d some fixes 2020-10-15 22:34:06 +02:00
Michael Zanetti 8aa91292fe more work 2020-10-15 22:34:06 +02:00
Michael Zanetti 85c9d93ccd Somoe type fixes 2020-10-15 22:34:06 +02:00
Michael Zanetti c7f957f201 some more python plugin work 2020-10-15 22:34:06 +02:00
Michael Zanetti e96d5f0d44 Add update interface 2020-09-06 03:11:27 +02:00
Michael Zanetti 60c55f0d85 Make signalStrength state in wirelessconnectable optional 2020-09-06 02:53:57 +02:00
Michael Zanetti d529a27df1 fix mocks to properly deal with the new way of reconfiguring 2020-09-01 13:45:14 +02:00
Jenkins nymea 768b6a877e Merge PR #314: Fix conversion of values 2020-08-14 13:09:34 +02:00
Michael Zanetti 399f406d10 fixes 2020-07-27 19:38:21 +02:00
Michael Zanetti f029184651 Allow emitting events from things directly 2020-06-16 16:16:23 +02:00
Jenkins nymea 7337105073 Merge PR #291: Fix thing class translations 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 322bcf56a6 Add support for inverting the connections 2020-05-09 19:14:02 +02:00