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
0ae6e3b48e
Influxdb: fix sensor send frequency, use async client, send data in batches ( #2061 )
* broker: drop REAL_TIME flag, use separate Broker entities
* influxdb: use async client, send data in batches
5 years ago
Maxim Prokhorov
9f4329dc1a
relay: replace eeprom 8bit with 32bit bitmask stored in settings
- mask is defined as (relay# status << number)
- transparently handle base-2 and base-10 numbers
- if the relay mode requires us to save the mask, it will be saved as base-2
5 years ago
Max Prokhorov
9a5698b342
Add TUYA_SUPPORT ( #1997 )
- add experimental `relayDummy` to configure dummy relays at runtime
- add tuya-generic-dimmer #1729
- cleanup broker interface to allow Tuya module to properly receive events, modify broker methods to allow different function signatures
- add basic tests for Tuya frame and data protocol
5 years ago
Max Prokhorov
849f8cf920
Rules RPN ( #1984 )
* RPN rules (WIP)
* RPN rules web interface, MQTT inputs
* Stickyness, rpn.ops,...
* Perform light updates only when value changes
* Improve wsSend performance
* Revert PR test
* Check TERMINAL_SUPPORT for _rpnInitCommands and remove unused variable
* Fix merge
* formatting
* disable by default (?)
* changelog
* comment
* remove debug function wrappers in favour of var activation
* fixup! comment
5 years ago