Max Prokhorov
298ce8cac2
Refactor get/set/del/hasSetting ( #2048 )
* experimental: refactor get/set/del/hasSetting
* sensors
* lights
* cleaup
* r
* tuya
* fixup! sensors
* fixup! tuya
* header defaults types
* fix lights
* setup already checks for max
* helper for flashstring
* fix overload
* oops
* refactor includes
* warnings
* test with migrate
* add ids in a separate file
* cleanup
rev: crash
rev: domoticz
rev: encoder
rev: loopdelay
rev: hass
rev: i2c
rev2: hass
rev: mqtt
rev: rfm69
rev: relay
rev: rpn
rev: settings setup
rev: hb settings
rev: telnet preprocessor fix
rev: settings wrap
rev: tspk bool style
rev: wifi types
rev: util hb
rev: settings
fixup! rev: settings
* rev: cleanup wifi injections based on new getters
* hasSetting now can return true for empty key
* show hardcoded network in web
* oops
* fix ws referencing wrong index
* ensure empty strings are written
* c/p
* use experimental schema style for payload, mark network as not deletable
* allow to customize converter
* shorter syntax, try using with wifi
* use proper #if syntax to handle definitions that are missing
* fixup ota sc checks getter, cast schEnabled to bool
* add utils header to sensors
4 years ago
Max Prokhorov
383d5a8a5d
DHTSensor: fix Si7021 compatibility ( #2000 )
* sensor: add DHT_CHIP_SI7021 references
* sensor: update DHT_TYPE definitions, use enum
* changelog
5 years ago
Maxim Prokhorov
08cfcbd2c1
sensor/dht: wait DHT_MIN_INTERVAL after initialization
5 years ago
Maxim Prokhorov
e1ed62af37
sensor/dht: set pin mode before digitalWrite
5 years ago
Maxim Prokhorov
5ae0eb88ac
sensor/dht: increase the delay per DHT22 datasheet
Operating specifications / Communication and signal
"Data-bus's free status is high voltage level. When communication
between MCU and DHT22 begin, program of MCU will transform data-bus's
voltage level from high to low level and this process must beyond at least
**1ms** to ensure DHT22 could detect MCU's signal, then MCU will wait 20-40us for
DHT22's response."
5 years ago
Xose Pérez
546c8f09b2
Update Copyright notice
5 years ago
Xose Pérez
d2a4330511
Added support for DHT12 sensor (thanks to Altan Altay)
6 years ago
Maxim Prokhorov
8a0b3bca42
Fix compiler warnings
Add button definitions to the travis02 and travis03
IR_BUTTON should be uint32_t to properly work with new macro
eepromRotate return value is not used
6 years ago
Xose Pérez
8a999bb15a
Replacing delay with nice_delay
6 years ago
Xose Pérez
26a087dd7c
Check init status of sensors and re-init if they fail on boot ( #353 )
6 years ago
Xose Pérez
feffc290cc
Sensor type, value and slot methods should not set error values
6 years ago
Xose Pérez
c0215f0a16
Error reset on _pre for different sensors
6 years ago
Xose Pérez
2dc2b7d176
Checking code with cppcheck
6 years ago
Xose Pérez
170f0d543c
Option to publish address via MQTT for any sensor
6 years ago
Xose Pérez
c38911beae
Fix reference to sensor slot method
6 years ago
Xose Pérez
af805ab045
Update copyright notices
6 years ago
Xose Pérez
b9e158efe4
Using delay instead of delayMicroseconds on DHT warmup delay
6 years ago
Xose Pérez
6575f92df9
Fix timing for DHT11 sensor
6 years ago
Xose Pérez
e1baf48b9b
Option to disable completely new sensors module
6 years ago
Xose Pérez
3036676958
Check used GPIOs via locks
6 years ago
Xose Pérez
f3c494d5da
Support for ECH1560 energy monitor in new sensors, untested
6 years ago
Xose Pérez
956215eac5
Default slot method in BaseSensor class
6 years ago
Xose Pérez
6e839e3d72
Added sensor IDs
6 years ago
Xose Pérez
c975b11226
Tentative to sensor manifest
6 years ago
Xose Pérez
de4780efbc
Added getters for sensors
6 years ago
Xose Pérez
8728d55b7b
Change sensor API, force parameter-less constructors
6 years ago
Xose Pérez
ef04f72228
Headers for Sensor and Filter classes
6 years ago
Xose Pérez
7cc06d9892
Homogeneize sensor error codes
6 years ago
Xose Pérez
ebe0d5e410
Fixed DallasSensor
6 years ago
Xose Pérez
b2dd7e5b56
Migrate DS18B20 and counter to new sensor module
6 years ago
Xose Pérez
f6378d52e4
Some name refactoring
6 years ago
Xose Pérez
2299ce9bfd
Basic sensor scafolding, DHT 90% migrated
6 years ago