Maxim Prokhorov
ee7356b91a
relay: clean-up for ota .bin
4 years ago
Max Prokhorov
f7f41980b6
Headers cleanup ( #2134 )
* Config: remove prototypes.h
* fixup order
* word
* add missing
* fix warning while still using .ino
* bad at c/p;
4 years ago
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
b059ce9445
domoticz: proper datastructure for mask ( #2049 )
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
ec25976717
domoticz: handle cmode=2
resolve #1763
5 years ago
Max Prokhorov
b3600bdc14
Format fixes in light module ( #1874 )
* Light: proper printf format for HSV, use lround
* core: warn about map() and 2.3.0, type-strict constrain()
* use generic format
* value already has brightness
5 years ago
Max Prokhorov
21423431ce
Fixed size json payload & other WS bugfixes ( #1843 )
- update every dynamicjsonbuffer with fixed size constructor argument
- change to ws callback registration to use a class builder (just cosmetic)
- test multiple ws data callbacks for each module
- remove some of the static strings in favour of ws data callback
- improve sensor ws callback data size, remove duplicated strings
- use static buffer in wsDebugSend
- postpone wsSend until loop, implement wsPost to allow other modules to queue message callbacks. remove Ticker based ws callbacks for data
- update WebUI files
5 years ago
Max Prokhorov
07ba3ff2d5
domoticz: fix basic switch nvalue
fixes #1606
When ON domoticz sends:
value >= 1 for lights
value == 1 for basic switches
5 years ago
Max Prokhorov
3018b9ffe7
domoticz: fix always true relay match condition
5 years ago
Max Prokhorov
886af1ad07
domoticz: less debugging for lights code
5 years ago
Malachi Soord
c8231860ac
[copyright-update] Update for 2019
5 years ago
Max Prokhorov
e4e147a569
Only check domoticz state in broker callback ( #1562 )
5 years ago
Max Prokhorov
41f6e0724e
domoticz: track last relay state
5 years ago
Max Prokhorov
868d153fa4
Compact WS data
* send all ws config at once on start
* reduce ws json overhead by creating message buffer manually
* use k:[values] instead of k1:value1, k2:value2 etc. for lists
5 years ago
moi
a7c60f36e0
use spaces instead of tabs
5 years ago
moi
f0b5614a4a
ONLY processes Domoticz RGB MQTT Messages for the current idx
5 years ago
Xose Pérez
356be730e2
Added message type to broker
5 years ago
Xose Pérez
cb8d9c344d
Manage relay changes in third party modules via broker
5 years ago
sq5gvm
17d38bd36f
added missing #if's for devices that aren't light controllers
6 years ago
sq5gvm
24d15aa31a
added missing comment
6 years ago
sq5gvm
b3b7c21cb7
Domoticz over MQTT to Espurna RGB/RGBW/RGBWW
6 years ago
Xose Pérez
7d09f59952
Handle configure callbacks outside the ws module
6 years ago
Xose Pérez
76c0ecac05
Send relay status to domoticz on MQTT connection ( #872 )
6 years ago
Xose Pérez
fa20c47f29
Check which keys should be saved and which ones shouldn't ( #730 )
6 years ago
Xose Pérez
4a9a65baa5
Clean domoticz data types
6 years ago
Xose Pérez
c734158d1c
Check current domoticz status to avoid (un)subscribe with every update from the webUI
6 years ago
Xose Pérez
2dc2b7d176
Checking code with cppcheck
6 years ago
Xose Pérez
34c72859ef
Small changes
6 years ago
Xose Pérez
9062c70e63
Removed anti-recursion check in Domoticz module
6 years ago
Xose Pérez
af805ab045
Update copyright notices
6 years ago
Xose Pérez
ad05448603
Preliminary support for Thingspeak REST API over SSL
6 years ago
Xose Pérez
c0d63ff41c
Subscribe to MQTT domoticz out topic only if domoticz is enabled ( #344 )
7 years ago
Xose Pérez
e1baf48b9b
Option to disable completely new sensors module
7 years ago
Xose Pérez
38b2747218
Sensor indexes in web UI
7 years ago
Xose Pérez
de4780efbc
Added getters for sensors
7 years ago
Xose Pérez
d426969fb2
Added domoticz support to new sensor module
7 years ago
Xose Pérez
3518a7bc5e
Websocket callbacks (part 2)
7 years ago
Xose Pérez
2068dc41b9
Avoid recursion in domoticz messages
7 years ago
Xose Pérez
95459567d9
Small changes, caching some values
7 years ago
Xose Pérez
68c90c1cc0
Fix bug using snprintf
7 years ago
Xose Pérez
f7cf9a691f
Replaced sprintf with safer snprintf
7 years ago
Xose Pérez
1c5ebd3e08
Refactoring build flag names
7 years ago
Xose Pérez
4ccdeb3526
Using strlen with snprintf statements
7 years ago
Xose Pérez
9750bf26bb
Moved strings to PROGMEM, 160 bytes saved in memory
7 years ago
Xose Pérez
36af250e10
Option to globally disable domoticz from web interface
7 years ago
Xose Pérez
a780f5812f
Moved MQTT callback in Domoticz module
7 years ago
Xose Pérez
c6b26efbb7
Merge
7 years ago
Xose Pérez
7f41967e7a
Moved domoticz code from relay.ino to domoticz.ino
7 years ago