222 Commits

Author SHA1 Message Date
Michael Zanetti
7c7955b66b Rework air quliaty interfaces
Removes the indoorairquality and airquality interfaces as the
plugin isn't the right place for these sort of voncersion.
Instead, this PR specifies the individual compounds that
for the base for air quality measurements and ties them down
to export raw data.

It's the client apps responsibility to translate those values
into Air Quality Index scales based on the location of user. I.e.
while Europe would use the CAQI (Common Air Quality Index), the
US would use the EPA AQI etc.
2022-10-17 23:00:39 +02:00
jenkins
f3b9441861 Merge PR #549: Add support for Z-Wave 2022-08-26 12:57:56 +02:00
Michael Zanetti
a8b02a4869 Add support for Z-Wave 2022-08-26 00:28:56 +02:00
Michael Zanetti
c004c0d81d Make thingclassId optional in AddThing() when there's already a ThingDescriptor 2022-07-28 19:55:32 +02:00
Jenkins nymea
20956525b3 Merge PR #498: Add discoveryType thing class property 2022-03-27 19:49:35 +02:00
Jenkins nymea
d83fed97d8 Merge PR #496: Don't generate events for state changes any more 2022-03-27 19:49:32 +02:00
Michael Zanetti
5323ab2631 Add discoveryType thing class property
Some plugins may support network discovery, but may not be able to clearly
identify a device and return a list of discovery results that may
be the device, but also may not. As this breaks some app flows they
will be marked as "weak" discovery and can be excluded from said setup
wizards.

NOTE: This commit does not bump the API version even though it should
to avoid merge conflicts with other branches that do bump the version.
2022-02-10 17:38:01 +01:00
Michael Zanetti
47add31e63 Add configuration for the tunnel proxy server 2022-02-08 11:00:09 +01: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
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
3d5c9b477b Merge PR #483: Add a providedInterfaces property to thingClass 2021-12-11 00:31:11 +01:00
Jenkins nymea
4b2676b5c0 Merge PR #477: Add unit ohm 2021-12-11 00:31:06 +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
Jenkins nymea
16fb05d18d Merge PR #469: Add water level sensor interface 2021-12-11 00:30:59 +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
Michael Zanetti
f2898b9fc8 Add a providedInterfaces property to thingClass 2021-11-10 12:57:28 +01:00
Michael Zanetti
7bd7e41ff2 Add unit Ohm 2021-11-02 12:22:09 +01:00
Michael Zanetti
ac0ade64c5 Add water level sensor interface 2021-10-12 23:06:44 +02:00
Michael Zanetti
886f5c49f6 Add O2, PH, ORP, CO and flammable gas sensor interfaces 2021-08-20 23:57:22 +02:00
Jenkins nymea
ae92eb562b Merge PR #437: Add thingClassId to thingDescriptors json 2021-07-06 17:18:31 +02:00
Jenkins nymea
8ff3d8766c Merge PR #390: Modbus RTU hardware resource 2021-07-06 17:18:15 +02:00
Michael Zanetti
7f2261d769 Add thingClassId to thingDescriptors json 2021-06-27 00:40:33 +02:00
Simon Stürz
856c352a43 Bump JSON API version and update api.json 2021-06-08 15:52:44 +02:00
Michael Zanetti
2731adc5c5 Bump jsonrpc api version 2021-06-07 22:16:38 +02:00
Simon Stürz
0cff50dc2c Update api.json to newest modbus changes 2021-06-06 00:43:37 +02:00
Simon Stürz
d3f446e7f9 Update json rpc introspect 2021-06-06 00:43:37 +02:00
Simon Stürz
8d944fe007 Bump JSONRPC version 2021-06-06 00:43:37 +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
b64ac431bf Update json api 2021-04-07 12:27:51 +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
386fa12a89 Bump api version 2021-01-04 17:20:07 +01:00
Jenkins nymea
a418c9b1de Merge PR #367: Add a UnitMilliSeconds 2020-12-21 18:00:58 +01:00
Jenkins nymea
fab755f9af Merge PR #364: Allow filtering GetThingClasses for thingClassIds 2020-12-21 18:00:56 +01:00
Jenkins nymea
ee911e2824 Merge PR #349: Add state based value comparison in rules 2020-12-21 18:00:43 +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
30f69e619b Add a UnitMilliSeconds 2020-12-11 17:30:58 +01:00
Michael Zanetti
b9be92df2e Add state based value comparison in rules 2020-12-04 16:16:55 +01:00
Michael Zanetti
4a41df3cf6 Allow filtering GetThingClasses for thingClassIds 2020-12-03 12:00:47 +01:00
Simon Stürz
929ef2fb5d Update API json 2020-11-18 12:23:02 +01:00
Simon Stürz
0c4a23a487 Bump JSON ROC API version 2020-11-16 16:29:45 +01:00
Simon Stürz
ab9a497df8 Bump api version containing new Zigbee namespace 2020-11-16 10:20:58 +01: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
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
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
Michael Zanetti
82703de061 Fixes after testing/review 2020-06-07 19:15:39 +02:00