Commit Graph

37 Commits

Author SHA1 Message Date
Bastian Urschel 672ea3d7e9 Fixes the funcionality of command "Sensor20" which was missing after merge #6673.
With command "Sensor20" you can now set the starting offset at runtime. The polling interval still depends on the tele_period.
2019-10-18 10:32:48 +02:00
Bastian Urschel 1f268bbf39 Changed the type for getting sensor values to polling. Before we used the "working period" method (the sensor starts/stops periodically on it's own and reports the data if Tasmota asks for values). Because of that I've detected a drift after some time which means that you don't get current values if "tele_period" is reached. Another point was that the "working period" method only allows a frequency above 1 minute. The new code starts the sensor directly (with commands sleep and work) if we reached a time we set in define "STARTING_OFFSET". 5 seconds before tele_period, we are doing 4 measurements, calculate the average and current values are present if tele_period is reached. The new method allows us also to get a polling frequency below 1 minute (usable for early fire detection). For precise measurements values of STARTING_OFFSET above 30 seconds are recommended. If using STARTING_OFFSET of 30 seconds and tele_period of 30 seconds the sensor now runs permanent.
Fixed also wrong values at defines NOVA_SDS_SLEEP and NOVA_SDS_WORK.
2019-10-17 13:10:43 +02:00
Stephan Hadinger 8661a2ead6 Change ToHex to ToHex_P PROGMEM compatible 2019-08-13 19:53:12 +02:00
Theo Arends 5f236561b1 Change ToHex default inbetween to no character
Change ToHex default inbetween to no character
2019-08-10 17:34:59 +02:00
Theo Arends 1b69502d9b Code optimization - Change for(uint8_t in for (uint32_t
Code optimization - Change for(uint8_t in for (uint32_t
2019-06-30 16:44:36 +02:00
Theo Arends 30adce5648 Revert "Code optimization - Change for(uint8_t in for (uint32_t"
This reverts commit 5e1eac3f74.
2019-06-30 15:56:55 +02:00
Theo Arends 5e1eac3f74 Code optimization - Change for(uint8_t in for (uint32_t
Code optimization - Change for(uint8_t in for (uint32_t
2019-06-30 15:47:32 +02:00
Theo Arends e8e5d1c03c 6.5.0.3 Add command Sensor20
6.5.0.3 20190328
 * Add command Sensor20 1..255 to change Nova Fitness SDS01 working period in minutes (#5452)
2019-03-28 12:06:48 +01:00
Theo Arends e1c92b701b Change NULL to nullptr
Change NULL to nullptr
2019-03-26 18:26:50 +01:00
Theo Arends dcc69bdff0 Shrink code/flash space pt.2/2
Shrink code/flash space pt.2/2
2019-03-23 17:57:31 +01:00
Theo Arends b7f89c0a8c 6.5.0.1 Change GUI data collection
6.5.0.1 20190319
 * Change Web GUI sensor data collection
2019-03-19 17:31:43 +01:00
Theo Arends 06a9fbd792 Changed logging message handling
Changed logging message handling
2019-03-08 15:15:42 +01:00
Theo Arends 304ac6fe44 6.4.1.12 code changes (byte/boolean)
6.4.1.12 20190128
 * Change code use of boolean to bool and byte to uint8_t
 * Change code uint8_t flags to bool flags
2019-01-28 14:08:33 +01:00
Theo Arends e7e378f463 Add (S)SerialSend features
* Fix mDNS addService (#4938, #4951)
 * Add (S)SerialSend3 escape sequence \x to allow hexadecimal byte value (#3560, #4947)
 * Add SerialBridge command SSerialSend5 <hexdata>
2019-01-17 17:48:34 +01:00
Theo Arends 447ec6256e 6.4.1.4 Update Copyright (C) 2019
6.4.1.4 20190101
 * Update Copyright (C) 2019
2019-01-01 13:55:01 +01:00
Theo Arends c1102a4863 6.4.0.2 Fix possible dtostrf bos
6.4.0.2 20181221
 * Fix possible dtostrf buffer overflows by increasing buffers
2018-12-21 16:17:06 +01:00
Norbert Richter 88528d8ef3 Fix NovaSDS sensor rare checksum failure
- NodeSDS send/rec rewritten (common func)
2018-11-19 12:56:54 +01:00
Norbert Richter e07cd3e48b Fix NovaSDS sensor Checksum failure 2018-11-17 12:47:44 +01:00
andrethomas 4a7e7b0dbb Change C functions with () to (void) 2018-11-14 15:32:09 +02:00
Theo Arends a01f9bdda1 Add re-probe to NovaSDS sensor
Add re-probe to NovaSDS sensor (#4335)
2018-11-13 15:15:11 +01:00
Theo Arends 15148f290d 6.3.0.4 Add SetSensorXX
6.3.0.4 20181106
 * Add command SetSensorXX 0/1 to disable/re-enable compiled xsns_XX_sensor.ino driver
2018-11-06 17:33:51 +01:00
Nico b9d1bb965c correct error 2018-09-10 14:06:31 +02:00
Nico 047932a191 cosmetics 2018-09-10 12:25:57 +02:00
Nico dc3d699fd1 cosmetics 2018-09-10 12:23:51 +02:00
Nico 804e74d0de cosmetics 2018-09-10 12:22:00 +02:00
Nico ef6d5bb340 cosmetics 2018-09-10 12:11:28 +02:00
Nico cc23deac00 use SDS0X1 working period command 2018-09-10 11:37:16 +02:00
Johann Weging ff13223807 SDS0X1 minor code cleanup 2018-05-27 14:34:47 +02:00
Johann Weging 87e3dcddb9 SDS0X1 take one stable reading every 3 minutes 2018-05-27 14:29:53 +02:00
Johann Weging 4a588581d1 Allow NovaSdsReadData to read without publishing data 2018-05-27 14:28:31 +02:00
Johann Weging 7cefc9b76e SDS0X1 add start and stop functions to idle the sensor 2018-05-27 14:24:53 +02:00
Johann Weging c41a092c7d SDS0X1 RX TX pin handling in NovaSdsInit 2018-05-27 14:23:25 +02:00
Theo Arends c51bcd77d1 Add Hardware Serial Fallback to TasmotaSerial
5.13.1a
* Update TasmotaSerial to 2.0.0 allowing Hardware Serial Fallback when
correct connection are configured
2018-05-10 17:21:26 +02:00
Theo Arends ee7227254f Minor changes to prep for rules
Change German day display to two character (#2403)
2018-04-11 10:11:20 +02:00
Theo Arends 058e911c94 v5.12.0e - Add Domoticz dust sensors
5.12.0e
 * Add Domoticz dust (custom) sensors to PMS5003 and NovaFitness
SDS drivers as PM1, PM2.5 and PM10
2018-03-12 14:56:48 +01:00
Theo Arends 76a74cc427 v5.12.0d - Add Mqtt discovery suffix and precision
5.12.0d
* Add always suffix with device number in Mqtt discovery topic (#1962)

* Add single decimal precision to Nova Fitness SDS0x1 sensor values
(#2093)
2018-03-08 17:53:02 +01:00
Theo Arends a16e2316b3 v5.12.0d - Add support for Nova Fitness SDS011
5.12.0d
 * Add support for Nova Fitness SDS011 and possibly SDS021
particle concentration sensor (#2070)
2018-03-03 15:28:30 +01:00