196 Commits

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
6ab4d49ee1 Add multi user support 2022-02-08 10:36:14 +01:00
Michael Zanetti
717b4f33cc Remove deprecated Devices, Action, Events, States namespaces from JSONRPC 2022-02-08 00:29:07 +01:00
Jenkins nymea
77218553ae Merge PR #481: Add flag handling methods for the JSON RPC handler. 2021-12-11 00:31:09 +01:00
Jenkins nymea
a741b13994 Merge PR #472: Add api to set the zigbee channel during network setup 2021-12-11 00:31:01 +01:00
Michael Zanetti
eee810aa4d Add api to set the zigbee channel during network setup 2021-12-09 18:17:32 +01:00
Michael Zanetti
df5d3550ba Add support for dynamic min/max state values 2021-12-09 17:59:52 +01:00
Simon Stürz
1fc896def2 Add flag handling methods for the JSON RPC handler. 2021-11-05 18:49:20 +01:00
Jenkins nymea
76c035d71f Merge PR #431: Add missing changed notification for appdata 2021-07-06 17:18:24 +02:00
Jenkins nymea
8ff3d8766c Merge PR #390: Modbus RTU hardware resource 2021-07-06 17:18:15 +02:00
Simon Stürz
81f9889178 Implement node changed notifications for zigbee JSONRPC API 2021-06-08 13:11:14 +02:00
Simon Stürz
eef44c78c6 Continue node api development 2021-06-08 13:11:14 +02:00
Simon Stürz
a0169b179d Add basic structure for zigbee nodes on jsonrpc api 2021-06-08 13:11:14 +02:00
Simon Stürz
675782997c Move modbus RTU classes into hardware source code section 2021-06-06 00:43:37 +02:00
Simon Stürz
11f62d0555 Add timeout and number of retries to the modbus RTU master and propagate the settings to the API 2021-06-06 00:43:37 +02:00
Simon Stürz
abcfd32feb Add support and fix modbus rtu storage cleanup 2021-06-06 00:43:37 +02:00
Simon Stürz
1f247b30be Fix building and JSON RPC for modbus management 2021-06-06 00:43:37 +02:00
Simon Stürz
72a0db6d0d Implement ModbusRtu JSONRPC API 2021-06-06 00:43:37 +02:00
Simon Stürz
b4d97080bd Add basic modbus rtu hardware resource structure 2021-06-06 00:43:37 +02:00
Michael Zanetti
53b61dad5b Add missing changed notification for appdata 2021-06-03 23:07:25 +02:00
Jenkins nymea
c9af1280aa Merge PR #410: Add support for storing application data on the core 2021-04-19 11:38:30 +02:00
Jenkins nymea
10ae50cf53 Merge PR #408: Add device serial number to system api 2021-04-19 11:38:29 +02:00
Michael Zanetti
60de0a3eed Add support for storing application data on the core 2021-04-07 00:23:19 +02:00
Michael Zanetti
fb90efb1de Add device serial number to system api 2021-03-19 20:11:52 +01:00
Michael Zanetti
394e3cc615 Rename forgotten deviceParams in ThingDescriptor 2021-03-17 23:26:23 +01:00
Michael Zanetti
3fb74cc9e4 Add API to configure logging/filtering by the client 2021-01-04 16:43:28 +01:00
Michael Zanetti
ae38e185b6 more work... not really working yet 2021-01-02 14:33:15 +01:00
Jenkins nymea
fab755f9af Merge PR #364: Allow filtering GetThingClasses for thingClassIds 2020-12-21 18:00:56 +01:00
Jenkins nymea
8a2d9c7e95 Merge PR #358: Increase the maximum allowed message size in JSONRPC 2020-12-21 18:00:52 +01:00
Simon Stürz
d51327b97a Update JSON RPC descriptions and rename Zigbee to ZigBee 2020-12-16 12:59:00 +01:00
Michael Zanetti
4a41df3cf6 Allow filtering GetThingClasses for thingClassIds 2020-12-03 12:00:47 +01:00
Michael Zanetti
504b88eddd Increase the maximum allowed message size in JSONRPC
Turns out 10KB can be exceeded with scripting
2020-11-25 14:08:24 +01:00
Simon Stürz
e2cbffeebd Make backend type dynamic and introduce GetAvailableBackends 2020-11-18 12:23:02 +01:00
Simon Stürz
b6a6371021 Add enabled property for network as dummy for future implementation 2020-11-06 18:36:22 +01:00
Simon Stürz
203badf0c7 Improve zigbee api and add serial number 2020-11-06 18:36:22 +01:00
Simon Stürz
5ed9769427 Fix network added/removed notification parameter name 2020-11-06 18:36:22 +01:00
Simon Stürz
cdf8b171f9 Finish zigbee network joining as first version 2020-11-06 18:36:22 +01:00
Simon Stürz
6edf6977a4 Add factory reset network and start implementing permit join mechanism 2020-11-06 18:36:21 +01:00
Simon Stürz
7585f30639 Basic network adding and removing working 2020-11-06 18:36:21 +01:00
Simon Stürz
a7cb0e4e26 Add network settings loading and saving 2020-11-06 18:36:21 +01:00
Simon Stürz
19216b5f04 Add Zigbee settings and prepare network creation and loading 2020-11-06 18:36:21 +01:00
Simon Stürz
61d0b96b42 Add GetAvailableAdapters to zigbee handler 2020-11-06 18:36:21 +01:00
Simon Stürz
4a520d8ba1 Rename Backend type and define ZigbeeNetworkState within the manager 2020-11-06 18:36:21 +01:00
Simon Stürz
0f0b903af8 Clean up source and dependencies and make build against libnymea-zigbee 2020-11-06 18:35:50 +01:00
Michael Zanetti
228a4f9f9c fixx da build 2020-11-06 18:35:50 +01:00
Simon Stürz
7cb995767c Add zigbee serial port for api 2020-11-06 18:34:54 +01:00
Simon Stürz
fb74df8f81 Start integrating zigbee into nymea 2020-11-06 18:34:54 +01:00
Jenkins nymea
82c347c3a3 Merge PR #336: Add caching information to client API 2020-10-28 19:07:35 +01:00
Michael Zanetti
8fee1bb2e5 Fix duplicate connections on case of retrying 2020-10-15 22:33:36 +02:00
Michael Zanetti
f9cd2a99df Add caching information to client API
This allows JsonHandlers to set a hash for certain API calls.
Clients can use this information to load data for such a call
from a cache instead of calling the method over the network
just to get the same result as last time.
2020-09-15 13:53:19 +02:00