Commit Graph

22 Commits

Author SHA1 Message Date
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
50ee8a7c6d Critical potential memory violation fixed. Ventilation set termopreset and overheat control fixed 2018-04-03 01:57:07 +03:00
66d6445967 Massive kernel logic refaktoring & critical memory issues fixes. HomeRemote compatibility, Modbus command retrying, MQTT Status async/submission optimization 2018-04-01 22:13:13 +03:00
a936240d14 Persistent logic improvement, CMD_ON refinig, Vacom Air channel may open airGate if active 2018-04-01 04:27:30 +03:00
livello
a10c948f5a mass refactoring
sd_card_code not affects ram and firmware if not enabled
2018-03-30 02:30:10 +03:00
ec840f784a Retained MQTT topics logic developed, unused sources (SD & extra 1-wire) moved to spare folders to save static RAM 2018-03-27 04:14:34 +03:00
livello
bbf944c482 root
applyConfig
And *Pool* to *Poll* of course
2018-03-22 22:31:35 +03:00
livello
4d7f6ca875 refactoring. help cmd improved. Removed newline from freeMem periodical print. 2018-03-22 20:42:21 +03:00
45cbd8b4a0 Small fix 2018-03-08 22:53:28 +03:00
livello
8fb8e9def2 pubsubclient 2018-03-07 18:27:45 +03:00
c4527b9090 Moving sketch and source files to lighthub folder according with comment @perl1234 2018-01-16 03:03:26 +03:00