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
5 years ago
Max Prokhorov
37763f1ad4
Test: check core feature build ( #2080 )
* Test: check core feature build
* order
* add missing
5 years ago
Max Prokhorov
43cf926468
ha: try to avoid conflict with useCSS ( #2075 )
5 years ago
Max Prokhorov
0f02256860
Small fixes ( #2071 )
* web: fix rfb node generator syntax, do not send as basic settings
* ha: allocate discovery object later
5 years ago
Maxim Prokhorov
c414ba1251
ha: log autodiscovery -> discovery
5 years ago
Maxim Prokhorov
e8acf33a69
ha: more cancelation reasons
5 years ago
Maxim Prokhorov
9956cd835b
ha: send discovery on reconnect
5 years ago
Maxim Prokhorov
5bef606f2a
ha: delay discovery until next loop
- stack-like discovery struct to store pending mqtt topic and
message
- use separate json objects for sensor and switch data (different solution for the #1957 )
5 years ago
Max Prokhorov
ff5b0d5165
ha: add platform="mqtt" back to the yaml output ( #1949 )
5 years ago
Thomas
24788474ad
ha: add color_temp_state_topic ( #1891 )
5 years ago
Max Prokhorov
beff73ef8b
relay/mqtt: handle custom relay status payloads ( #1889 )
- customize relay TOGGLE payload
- match payload string when receiving mqtt status message
- reference enum values instead of raw integers, spell out intended status
- remove dead code
amend #1885 , capitalize `relayPayload...` suffix instead of using uppercase
add `relayPayloadToggle`
5 years ago
Max Prokhorov
13c1a19328
Home Assistant updates ( #1885 )
- remove "platform" key, see #1440 . this implicitly sets schema to "basic". pending some other clean-up regarding json and mqtt queueing, other schema can be added down the line
- updated ws module queue elem to capture callbacks list, allows to pass more than one callback (for example, when they are generated on the fly as lambdas, see ha wsPost usage)
- modified method to send ha config to use global ws queue, fix #1762 problem with empty topics and ensure json allocation is consistent.
- use existing defines to set mqtt payload options. amend #1085 , #1188 , #1883 to use the set payload value. drop HOMEASSISTANT_PAYLOAD... defines.
- update MQTT_STATUS_ONLINE/OFFLINE and RELAY_MQTT_ON/OFF with runtime configuration
- filter payload strings so that the resulting yaml value is not interpreted as bool (python True, False)
- helper method for settings to streamline string values manipulation
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
copyrights
9ceca44770
Two channel CCT ( #1732 )
* add CCT support for 2 channel boards
* update webinterface description
* add 2 channel CCT to homeassistant and domoticz
* remove domoticz two channel cct support.
5 years ago
copyrights
d9b9e1449d
MQTT and HA brightness ( #1730 )
* MQTT and HA brightness shall only be depended on LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
* remove unnecessary changes
5 years ago
Xose Pérez
546c8f09b2
Update Copyright notice
5 years ago
abmantis
490fb21636
use type instead of "switch"
5 years ago
abmantis
a832eab84e
remove uneeded checks; use better type for uniq id
5 years ago
abmantis
b412f7fd36
improve name
5 years ago
abmantis
0424610b87
don't add discovery info on generated yaml
5 years ago
abmantis
2b50e0dac9
fix warning; add more info
5 years ago
abmantis
7fa99f8078
add unique id and device support for better HA UI integration
5 years ago
Max Prokhorov
e1ddcc533c
do html escaping on the client
5 years ago
Max Prokhorov
cd1bfa6b34
check if ws client exists, check WEB_SUPPORT
5 years ago
Max Prokhorov
31a0772e37
Print each HA config entry separately
5 years ago
Xose Pérez
d47ae2e4a4
Helper terminal methods terminalOK and terminalError
6 years ago
Xose Pérez
b9e13446fc
Revert "Wrap embeddis commands and move feedback to caller"
This reverts commit 7ad0e3a02b
.
6 years ago
Xose Pérez
7ad0e3a02b
Wrap embeddis commands and move feedback to caller
6 years ago
Xose Pérez
27e7b9ae89
Move terminal methods to own module
6 years ago
Xose Pérez
acf68ac5c8
Single quote % units only in ha.config ( #1227 )
6 years ago
Xose Pérez
9bcf5217bd
Revert "Quote unit_of_measurement is homeassistant module as it might have invalid chars ( #1227 )"
This reverts commit f01f2454cc
.
6 years ago
Xose Pérez
f01f2454cc
Quote unit_of_measurement is homeassistant module as it might have invalid chars ( #1227 )
6 years ago
Yonsm
3e1031ab7c
define HOMEASSISTANT_PAYLOAD_AVAILABLE and HOMEASSISTANT_PAYLOAD_NOT_AVAILABLE
6 years ago
Xose Pérez
10ec1b2039
Fix HA names ( #1183 )
6 years ago
Xose Pérez
7d09f59952
Handle configure callbacks outside the ws module
6 years ago
Xose Pérez
13b0279ecc
Option to change default payload for HA ( #1085 )
6 years ago
Maxim Prokhorov
3ca1692827
Free jsonBuffer after printing
6 years ago
Xose Pérez
b4a05f9269
Fix build when WEB_SUPPORT==0 ( #923 )
6 years ago
Maxim Prokhorov
4735174480
"sensor" is not supported device_class
6 years ago
Philip Rosenberg-Watt
dfa7327491
Remove quotes from HomeAssistant units
Closes #849
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
1f880e0cde
Codacy changes
6 years ago
Ryan Jarvis
e4e19426ed
Fix some typos in the Hass info
6 years ago
Xose Pérez
ed0232f9bc
Fixed HA configuration dump when not enabled, added hint to web UI
6 years ago
Xose Pérez
6ffdeb5020
Moved HA settings to its own tab in web UI
6 years ago
Xose Pérez
207f58f0e9
Show home assistant configuration in web UI
6 years ago
Xose Pérez
5115204b53
Publish slampher as light to Home Assistant ( #494 )
6 years ago
Maxim Prokhorov
8d87bb8db9
homeassistant: missing setting in WS callback
6 years ago
Maxim Prokhorov
97e99fe159
homeassistant: fix typo in module filename
6 years ago