2981 Commits

Author SHA1 Message Date
Michael Zanetti
bbc585e92e Fix filters genering wrong data types
When enabling a jitter filter on integer states (e.g. a signal
strength that repeatedly jumps up and down by 1), old code
may cause integer state to be populated with floating point values
as the filtering happens after the intial validation for the new
value being valid.
2022-05-13 11:25:48 +02:00
jenkins
45081ad64e Jenkins release build 1.1.0 2022-05-03 23:27:19 +02:00
jenkins
569e9fa57d Merge PR #520: Fixes in permit joining timer handling 2022-05-03 23:27:18 +02:00
jenkins
4d16bba8ed Merge PR #519: Increase timeout for tests 2022-05-03 23:27:17 +02:00
jenkins
8a3f85ca25 Merge PR #518: Fix webserver tests 2022-05-03 23:27:15 +02:00
jenkins
c71d66ccdb Merge PR #516: Add rpath to nymead binary 2022-05-03 23:27:14 +02:00
jenkins
dbcbbfcf97 Merge PR #515: Allow modbus RTU plugins to request a connection reset 2022-05-03 23:27:13 +02:00
jenkins
2b32bca5cf Merge PR #513: Add a timeout to ModbusRtuReplies 2022-05-03 23:27:10 +02:00
jenkins
eec7566d50 Merge PR #512: Remove smartmeterconsumer from evcharger 2022-05-03 23:27:09 +02:00
jenkins
06ed86bcdd Merge PR #511: Network device monitor 2022-05-03 23:27:07 +02:00
jenkins
44e2e36e16 Merge PR #509: Store the serveruuid as string 2022-05-03 23:27:06 +02:00
jenkins
7bc4d2ec2a Merge PR #508: Add support for listing and removing entries to PyPluginStorage 2022-05-03 23:27:04 +02:00
jenkins
1a06fabda2 Merge PR #507: Add support for datetime objects to pluginStorage in python plugins 2022-05-03 23:27:03 +02:00
Simon Stürz
17fc204122 Fix discovery behaviour if the resouce is not available 2022-05-03 14:30:01 +02:00
Simon Stürz
1d04da6205 Make sure the ping timer exists to prevent crash if not available 2022-04-26 16:45:07 +02:00
Simon Stürz
f3760ff84a Fix networkdevicemonitor virtual destructor 2022-04-26 11:17:12 +02:00
Simon Stürz
66d62b87de Update debug categories and use qInfo, fix vietual destructor for the monitor 2022-04-25 17:07:48 +02:00
Simon Stürz
76b7bc1267 Fix ping crash if the host address is not valid 2022-04-25 15:27:35 +02:00
Simon Stürz
61bbd3cbdf Unfriend the discovery class from the monitor 2022-04-25 08:17:37 +02:00
Simon Stürz
e4ff2d9422 Update mac address test naming 2022-04-25 08:06:17 +02:00
Michael Zanetti
af3c928092 Fixes in permit joining timer handling
Emit ZigbeeNetworkChanged when it actually changes in the stack,
not directly after we request the stack to change something as
it may fail, or the effective parameters may be not what we think.
2022-04-23 23:34:39 +02:00
Michael Zanetti
0ca6286c5f Increase timeout for tests 2022-04-23 22:25:25 +02:00
Michael Zanetti
192bdac209 Fix webserver tests
canonicalFilePath() behavior seems to have changed at some point
and not existing files outside the public dir will return a 404
rather than a 403. Ideally the logic would be fixed to first
check for the file being outside the public directory, directly
returning a 403, then checking if the file exists, return a 404
if not, and lastly check for permissions on the file and return
a 403 again of denied. However, that would result in a bigger
change.

Also, the tests were failing all along if syslog exists but is
not readable (code is ok, just bad test) but none of our
autotesters seemed to have such a setup till now.
2022-04-23 00:23:21 +02:00
Michael Zanetti
9c5a6fadb6 Add rpath to nymead binary
This allows to run it from the build directory without having to
specify LD_LIBRARY_PATH.

This is particularly useul when working with parts that require
special capabilities such as the NetworkDiscovery, given that
setcap on a binary disables LD_LIBRARY_LATH loading for security
reasons.

Building the dpkg package, the rpath will not be added.
2022-04-13 13:24:46 +02:00
Simon Stürz
c59185672f Add mac address class and unit tests
Finish updated network discovery
Improve ARP and monitor handling
Introduce network device info cache housekeeping
2022-04-13 11:08:29 +02:00
Simon Stürz
14ea1bef4a Restructure network discovery and add discovery 2022-04-13 11:08:00 +02:00
Michael Zanetti
54c7cdcabf fix pull request template 2022-04-13 00:52:21 +02:00
Michael Zanetti
b2cc7ac769 Add a timeout to ModbusRtuReply
QModbusReply seems to never finish in some rare cases:
For instance if a request is sent and before the reply arrives, the
modbus adapter is unplugged. This change should keep upper logic
working which relies on requests finishing eventually.

Also fixes the issue that we emit finished() multiple times if
QModbusClient retries multiple times and emits error() for each
attempt. We're only interested in a single result anyways.
2022-04-08 14:33:07 +02:00
Michael Zanetti
93f733311f Fix modbus RTU warning prints 2022-04-08 13:56:46 +02:00
Michael Zanetti
9b7e5e469d Allow modbus RTU plugins to request a connection reset 2022-04-06 23:28:54 +02:00
Michael Zanetti
ffd0c7d690 Remove smartmeterconsumer from evcharger 2022-04-04 15:45:42 +02:00
Jenkins nymea
bb03d17c79 Jenkins release build 1.0.0 2022-03-27 19:49:49 +02:00
Jenkins nymea
95c8ad5e3f Merge PR #506: DebugInterface: Fix process finished crash if the http reply timed out in the mean time 2022-03-27 19:49:45 +02:00
Jenkins nymea
8b87cf674f Merge PR #505: Fix crash for long taking mac address lookup 2022-03-27 19:49:44 +02:00
Jenkins nymea
1a57a6a5d9 Merge PR #504: Update mac address database and switch source information provider 2022-03-27 19:49:43 +02:00
Jenkins nymea
8fce019ee6 Merge PR #503: Update copyright to 2022 2022-03-27 19:49:41 +02:00
Jenkins nymea
10083c361b Merge PR #502: Remove apt.conf.d/99nymea also without purge option 2022-03-27 19:49:40 +02:00
Jenkins nymea
f0fb4a7960 Merge PR #501: Increase timeout for auto tests 2022-03-27 19:49:39 +02:00
Jenkins nymea
3c8dd98400 Merge PR #500: Add debug prints to rule engine 2022-03-27 19:49:37 +02:00
Jenkins nymea
8153e551c1 Merge PR #499: Fix for ThingState which reports minValue instead of maxValue 2022-03-27 19:49:36 +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
Jenkins nymea
013c94a907 Merge PR #495: Fix cleaning up things when a setup fails in python plugins 2022-03-27 19:49:31 +02:00
Jenkins nymea
443dbfb42b Merge PR #494: Split thing cache into individual files 2022-03-27 19:49:30 +02:00
Jenkins nymea
86c6026690 Merge PR #493: Fix some interface definitions (minimum/maximum vs min/max) 2022-03-27 19:49:28 +02:00
Jenkins nymea
5273d87c83 Merge PR #492: Add support for TI z-Stack based Zigbee adapters 2022-03-27 19:49:27 +02:00
Jenkins nymea
4cd37c4788 Merge PR #490: Fix encoding of ZigbeeHandler (Windows CRLF -> Unix LF) 2022-03-27 19:49:26 +02:00
Jenkins nymea
223c0c130b Merge PR #489: Make SSL certificate loading and generating more robust 2022-03-27 19:49:25 +02:00
Jenkins nymea
de82c4aa8e Merge PR #487: Fix a crash when removing a currently connected transport 2022-03-27 19:49:23 +02:00
Jenkins nymea
37738bb022 Merge PR #455: Add tunnel proxy server for new remote connection mechanism 2022-03-27 19:49:22 +02:00