Commit Graph

149 Commits

Author SHA1 Message Date
livello
589c510b32 hard and soft reset, dht22 support, reset on lan init error, reset on many mqtt errors 2018-06-20 22:55:23 +03:00
livello
7d09bc6ad0 DHT22 Input support, thermo and esp refactoring 2018-06-09 17:06:58 +03:00
7b69482180 Merge pull request #20 from livello/patch
Esp8266 basic support, dmx now can be disabled, experiments with build scripts
2018-06-01 02:02:10 +03:00
livello
4c6acda58a return targets back (controllino, *-5500) 2018-05-31 23:57:34 +03:00
livello
025ae66990 Merge branch 'master' of github.com:anklimov/lighthub into patch 2018-05-28 13:43:10 +03:00
livello
d17ba12a31 Merge branch 'master' of github.com:anklimov/lighthub into patch
# Conflicts:
#	platformio.ini
2018-05-28 13:42:45 +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
119c1082c2 dht support in progress 2018-05-22 23:52:00 +03:00
livello
2ce453db82 esp8266
esp8266 worked

esp8266 basic support, DMX now can be disabled
2018-05-22 22:10:06 +03:00
livello
bc44c146b9 esp8266 2018-05-22 18:16:50 +03:00
b8861d895a platformio.ini 2018-05-19 15:20:30 +03:00
2b56dcd8dd Merge pull request #19 from livello/patch
clear EEPROM, laninit delay, clean platformio.ini
2018-05-19 15:09:30 +03:00
Климов Андрей Николаевич
44da59a216 platformio.ini 2018-05-19 15:09:01 +03:00
d1cab710ea Update README.md 2018-05-19 14:50:19 +03:00
livello
dc110e0b79 clear EEPROM cmd function 2018-05-17 18:29:04 +03:00
livello
9032802d2a lan init delay 2018-05-15 16:36:44 +03:00
livello
cfa2b83513 lan init delay 2018-05-15 15:54:30 +03:00
livello
f17d857808 revert 2018-05-15 12:46:25 +03:00
livello
a2fe9fd231 Merge branch 'my_master' into patch
# Conflicts:
#	README.md
#	build_flags_template.sh
#	compiled/Mega2560/Wiz5100/firmware.hex
#	compiled/Mega2560/Wiz5500/firmware.hex
#	lighthub/main.cpp
#	lighthub/main.h
#	lighthub/options.h
#	platformio.ini
2018-05-15 01:35:03 +03:00
livello
0a3d044cab moved setting build flags to python script. No need CLI anymore. Removed duplicated envs. They can be used by setting appropriate build flags: Wiz5500, Controllino, etc. 2018-05-15 01:34:16 +03:00
bfee598017 Default DMX_OUT pin for MEGA+5500 is USART1_TX now 2018-05-12 22:37:08 +03:00
livello
71908ab2eb Removed envs can be used with setting up build flags. 2018-05-12 22:19:15 +03:00
1b8ed97fc0 Fix for Controllino 2018-05-09 21:03:47 +03:00
1f0a193e96 Fix 2018-05-07 23:06:53 +03:00
2a7024b697 Update README.md 2018-05-07 23:03:25 +03:00
206e781822 Update README.md 2018-05-07 21:32:17 +03:00
f74ef4051c Update README.md 2018-05-07 21:11:33 +03:00
26612d8a97 Controllino support added 2018-05-07 21:07:22 +03:00
0c3b4e6034 Merging changes 2018-05-06 18:40:53 +03:00
7c68fd1491 Merge branch 'master' of https://github.com/anklimov/lighthub 2018-05-06 18:35:45 +03:00
7cce5eeda3 Move modbus params to options.h 2018-05-06 18:33:00 +03:00
b17d7cfa5a Fixes 2018-05-06 17:57:28 +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
dc0d2c523b Merge branch 'master' of https://github.com/anklimov/lighthub 2018-04-17 23:55:53 +03:00
f353b6963c DUE 5500 binary update 2018-04-17 23:55:25 +03:00
060e6694e8 Update README.md 2018-04-17 23:41:42 +03:00
3a66d916dd DUE DMX-IN fix 2018-04-17 23:24:29 +03:00
4f340d780f Pre-release. Tested&working on Mega and Due with Wiz5100 and Wiz5500. Need to update dependances. 2018-04-17 19:00:09 +03:00
8d8e357504 Arduino DUE 1-wire fix 2018-04-16 15:22:09 +03:00
bc1eb86a34 Critical: discrete outputs initialization after reboot added 2018-04-15 21:03:35 +03:00
bbbf0e056c Merge branch 'master' of https://github.com/anklimov/lighthub 2018-04-14 15:41:48 +03:00
81ea6e31a7 Schematic diagramm for hardware added 2018-04-14 15:40:54 +03:00
e5cb8dba34 Update README.md 2018-04-07 00:43:14 +03:00
316aafb59f Update README.md 2018-04-07 00:08:57 +03:00
7ea21d9ccc Update README.md 2018-04-06 21:25:23 +03:00
906f106a64 Delete platformio.txt 2018-04-06 20:58:34 +03:00
215eccf830 Update de-ad-be-ef-fe-ed.config.json 2018-04-06 20:57:14 +03:00
43a9764b92 Update de-ad-be-ef-fe-ef.config.json 2018-04-06 20:56:30 +03:00
78faf53d2c Update README.md 2018-04-06 20:37:54 +03:00