Commit Graph

110 Commits

Author SHA1 Message Date
a001bd9e35 HomeKit (HomeBridge) compatible thermostat now.
Small bugfixes & cleanup
2019-08-13 23:26:17 +03:00
209cba2352 getFlag/setFlag/clearFlag added (cmd ext refactoring) 2019-08-13 12:30:58 +03:00
1e06556fe5 pre-sendStatus routine refactoring commit 2019-08-13 03:37:02 +03:00
94810689c2 Split connand and value topics. 1st attempt 2019-08-10 23:20:23 +03:00
fa1127190c just working adddress led 2019-08-01 20:03:37 +03:00
fb64394571 driver status, setup, stop 2019-07-19 13:52:52 +03:00
a24e56e941 generic output channel and first example on SPI LED 2019-07-19 01:11:48 +03:00
c78891a423 modbus pooling/tomeout fix 2019-07-14 01:44:06 +03:00
9d59d6cf60 Lighthub hardware v2.1 added as platformio environment 2019-04-21 11:54:04 +03:00
03ea4dddd1 NodeRed Dashbord color picker compatible parser now
(tolerant to MQTT payload arrays like here):
[myhome/in/kuh/set] hsv(65, 100%, 86%)
Item=kuh Sub=1 Cmd=0 Par= <65> <100> <86>
2019-04-09 00:48:20 +03:00
2c2657799d Environment nrf52840 [SUCCESS]
Environment esp32               [SUCCESS]
Environment due                 [SUCCESS]
Environment megaatmega2560      [SUCCESS]
Environment esp8266             [SUCCESS]
Environment megaatmega2560-net  [SUCCESS]
Environment due-5500            [SUCCESS]
Environment controllino         [SUCCESS]
Environment stm32               [SUCCESS]
2019-04-07 00:43:48 +03:00
5d46dd5807 few cleanup 2019-04-07 00:12:13 +03:00
3d598a1217 More stability: MQTT Publish suppressed if input Loop invoked from ethernet Idle (reentrance issue? low-memory for stack?)
Side effects - some MQTT publishings may lost
Watchdog enabled when MQTT connection pending
2019-04-06 23:53:59 +03:00
ebc908a3a1 Post-merge fix: no local item control without emit tag, i2c scan fixed and removed
significant stability improvements: config re-load cleanup, MQTT submit
only if connected (ESPx very sensetive on it)
new: negative relay pin# - output invertion
2019-04-06 22:53:36 +03:00
8b9584f975 STM32 fix&slim, Wifi manager ESP32, compiled binaries updated for all platforms 2019-03-23 22:26:58 +03:00
2f66491153 Changed again/ Now is nice! 2019-03-13 01:51:37 +03:00
04caf6ffdf RGB - to RGBW conversion algorithm changed 2019-03-13 00:43:33 +03:00
cbe5980766 fix 2019-03-09 23:49:10 +03:00
7595a99474 -default topics prefix used if no "/" in "emit" parameters of output
-Thermostat should be working with DHT22
-Negative PIN# in thermostat item - reverse logic: HIGH level of output
should stop heating
2019-03-09 23:38:57 +03:00
cd32554175 MQTT topics refactoring (sub-properties, set) to better compatibility, modify default topic prefix from /myhome to myhome 2019-03-08 03:55:59 +03:00
bdac63fa8a homie topic strucrure correction 2019-03-04 15:47:12 +03:00
141bb9c657 MQTT topics config & CallBack refactoring 2019-03-04 04:49:35 +03:00
415fce33c8 hungs if no items configured - fixed 2019-02-10 00:18:48 +03:00
064ef6f007 MQTT subscribe fix, AnalogIn fix, first attempt to compile for NRF5 2019-02-04 01:38:46 +03:00
8d87f09e29 Beginning to add homie convention compatibility https://homieiot.github.io/specification/ 2019-01-04 04:10:10 +03:00
37a6c677ce AnalogInput developed, some other fixes: eol-to-endl debugSerial; volume RGB channels changing by single argument passing (GoodleHome/analogue input control) fixed 2018-11-25 04:46:35 +03:00
8fccde7686 Thermostat group setpoint setup fixed, and setting temperature will not turn off heater now 2018-11-23 17:10:34 +03:00
livello
979349a38e freeRam stub removed. debugSerial + small refactoring and code format 2018-11-09 02:12:53 +03:00
livello
23f2e60079 fix flash_64kb error. debugSerial in Item.cpp 2018-11-07 13:49:30 +03:00
livello
9ea9ad8698 refactoring. stm32 minimal support 2018-11-07 01:25:28 +03:00
livello
e75813e721 modbus merge 2018-10-18 22:25:33 +03:00
livello
52b94055f7 merge upstream/develop 2018-10-18 22:15:52 +03:00
livello
cd03599b83 merge upstream/develop 2018-10-18 22:10:18 +03:00
Mykhailo Khulap
08f1aaf72d Keep debug out as it was before 2018-10-18 07:24:33 +03:00
Mykhailo Khulap
9d6ffe7f7d Add modbus register type parameter 2018-10-17 21:06:52 +03:00
d89dfd2364 Prevent restoring temporary turned on channels (by XON) 2018-10-14 11:15:54 +03:00
9275467052 core Tested/Bugfixed. XON/XOFF, save/restore states 2018-09-29 12:33:48 +03:00
df95bec241 Google Home Volume voicecommand compatible, XON-XOFF command added, Mega compilation issue fixed (Brige.cpp - updated Modbus lib required) 2018-09-28 03:49:27 +03:00
livello
40479ba2c8 stm32f1 suppport. changes 2018-07-19 05:44:27 +03:00
livello
09726be883 esp32 support, build_flags_{ENVNAME}.sh now can be used and edited in IDE! 2018-07-04 01:22:00 +03:00
livello
7d09bc6ad0 DHT22 Input support, thermo and esp refactoring 2018-06-09 17:06:58 +03:00
livello
025ae66990 Merge branch 'master' of github.com:anklimov/lighthub into patch 2018-05-28 13:43:10 +03:00
8e38095177 scmd,rcmd in inputs may contain not only cmd but values, minimal dimmers volume treshhold for ON command, remote command execute on MQTT command (new Cmd.h required), bat-files to flash DUE and start CLI added 2018-05-25 09:29:47 +03:00
livello
2ce453db82 esp8266
esp8266 worked

esp8266 basic support, DMX now can be disabled
2018-05-22 22:10:06 +03:00
livello
71908ab2eb Removed envs can be used with setting up build flags. 2018-05-12 22:19:15 +03:00
0c3b4e6034 Merging changes 2018-05-06 18:40:53 +03:00
b7331beab4 Modbus dimmer channel generalization
Example:
  "items": { "modbusdev":[4,[96,0,0,255]] }

Note: this config example available at URL http://lazyhome.ru/de-ad-be-ef-fe-07.config.json - so just set mac address of device by command “mac de:ad:be:ef:fe:07” for test.

Item notation: 
4 - Modbus dimmer item type

Param1: = 96 - Decimal address of modbus device
Param2: = 0 - Modbus register to write (and read while polling)
Param3: = 0 - mask (optional. Default value “-1”  - see below for explanations)
Param4:= 255 - Maximum Value for scaling MQTT input value to register value  (Optional. Default MaxValue 0x3f. It is equivalent of “100" on input.  If value == 0 - no scaling)

Mask:
if mask == 1 - Value comes to most significant byte of 16 bit register word, another byte = 0xff
if mask == 0 - Value comes to least significant byte of 16 bit register word, another byte = 0xff
any other mask - put Value as 16 bit word without any modification
if mask == -1 (or parameter omitted) - no register polling
2018-05-06 17:45:29 +03:00
7db3033de3 static ip CLI command/EEPROM saving; reconnection logic refined; new ETHERNET2 lib required 2018-04-30 13:26:03 +03:00
8d8e357504 Arduino DUE 1-wire fix 2018-04-16 15:22:09 +03:00
81ea6e31a7 Schematic diagramm for hardware added 2018-04-14 15:40:54 +03:00