Commit Graph
100 Commits
Author SHA1 Message Date
andry 9b1c2e5889 ccs811 & hdc1080 integration done
mqtt publish to abstrchin added
http connection error threating for ESPx, DUE, STM fixed
ESP8266 pin conflict between sensor WAK and DMX OUT fixed
DHT begin added
2019-03-30 20:20:32 +03:00
andry b30b9346fb Input modularity deployed (see lighthub/modules)
CCS811 & HDC1080 almost developed as Input module
Inputs core refactored
2019-03-25 02:04:48 +03:00
andry db29ee566c ESP8266 fix (autoretrieve conf if 404)
flash (aJson update required)
2019-03-24 03:01:18 +03:00
andry 8b56ea4378 MAC address setup refactored (for ESPx and DUE - embedded addresses by default) 2019-03-24 01:46:10 +03:00
andry 8b9584f975 STM32 fix&slim, Wifi manager ESP32, compiled binaries updated for all platforms 2019-03-23 22:26:58 +03:00
andry 6fa661690b Some cleanup, halfway of EEPROM config saving for ESP8266 (required updated aJson lib) 2019-03-23 19:11:09 +03:00
andry 2947a1e53c Environment nrf52840_dk [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-03-23 15:58:52 +03:00
andry 696254a932 ESP8266 tested, fixed & working (mqtt submit_status caused hungs in ESP if no MQTT connection) 2019-03-22 03:48:15 +03:00
andry 581c172e8e few ESP improvements 2019-03-22 02:26:06 +03:00
andry ad4d9df00a ESP8266 build fix 2019-03-22 01:15:23 +03:00
andry 2f66491153 Changed again/ Now is nice! 2019-03-13 01:51:37 +03:00
andry 04caf6ffdf RGB - to RGBW conversion algorithm changed 2019-03-13 00:43:33 +03:00
andry 6a6fbf469b INIT_VOLUME increased to 50% 2019-03-10 01:29:50 +03:00
andry d084849fd6 For water heaters (termostate negative pin#) if some comes wrong (or no connection with termometers output is LOW - valve OPEN)
// OFF - also VALVE is OPEN (no teat control)
2019-03-10 01:10:01 +03:00
andry 02fd5078c9 negative pin init hung fixed, homie nodes list submittind removed (unstable if long list) 2019-03-10 00:42:43 +03:00
andry cbe5980766 fix 2019-03-09 23:49:10 +03:00
andry 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
andry 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
andry 515728207f fixed longint conversion Mega 2019-03-07 19:16:03 +03:00
andry eb43bc5d18 uptime to 32 bits, build# to homie 2019-03-06 15:51:44 +03:00
andry 517b760e49 due compilation fix 2019-03-04 16:07:45 +03:00
andry ac71e4436b fix 2019-03-04 16:02:17 +03:00
andry bdac63fa8a homie topic strucrure correction 2019-03-04 15:47:12 +03:00
andry ed0330307e Merge branch 'develop' of https://github.com/anklimov/lighthub into develop 2019-03-04 04:50:39 +03:00
andry 141bb9c657 MQTT topics config & CallBack refactoring 2019-03-04 04:49:35 +03:00
andry 8d779c4581 Update README.md 2019-03-04 01:21:51 +03:00
andry 8cc63445be Update README.md 2019-03-04 01:19:21 +03:00
andry 83e61b042e Update README.md 2019-03-04 01:17:15 +03:00
andry d1def67417 Update README.md 2019-03-04 01:14:34 +03:00
andry ba535a6e12 Update README.md 2019-03-04 01:01:46 +03:00
andry 98db109235 Update README.md 2019-03-04 00:34:42 +03:00
andry 23e493097e fix Mega compilation 2019-03-03 16:16:35 +03:00
andry c74575e0e9 Improve multiplatform building stuff 2019-03-03 15:42:54 +03:00
andry 3e3b5f9f5f fix 2019-02-14 18:18:49 +03:00
andry 5b5e5e9010 Progmem issues fixed (Mega) 2019-02-14 17:34:31 +03:00
andry 415fce33c8 hungs if no items configured - fixed 2019-02-10 00:18:48 +03:00
andry 772f3ab28c artnet hung fixed 2019-02-09 23:58:30 +03:00
andry e7f376196c Improved logic to threat unknown 1-wire device (some PnP)
artnet disabled by default for due since some execution blocking in
artnet->read()
2019-02-09 22:38:47 +03:00
andry ecb11ce3a5 DeviceID based default MAC for DUE, fix for artnet hungs w/o LAN fixed 2019-02-09 12:51:34 +03:00
andry 064ef6f007 MQTT subscribe fix, AnalogIn fix, first attempt to compile for NRF5 2019-02-04 01:38:46 +03:00
andry 8d87f09e29 Beginning to add homie convention compatibility https://homieiot.github.io/specification/ 2019-01-04 04:10:10 +03:00
andry 4508600cde Improved analog input logic. Mapping config param added 2018-11-25 17:33:42 +03:00
andry 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
andry 8fccde7686 Thermostat group setpoint setup fixed, and setting temperature will not turn off heater now 2018-11-23 17:10:34 +03:00
andry 5bdbaf3513 Update README.md 2018-11-14 00:33:32 +03:00
andry 1c3a4421f3 Unique MPU id for due 2018-11-12 02:21:38 +03:00
andry 2509075803 Merge pull request #35 from livello/IS-ENC
1wire domoticz support, dht22, contact,uptime refactoring
2018-11-10 01:48:18 +03:00
andry 3e3d8e6d84 Merge pull request #33 from livello/IS-ENC
lib_ignore, build_flags, DHT, counter, domoticz, WITH_PRINTEX_LIB, arduino_arch,
2018-10-18 23:05:57 +03:00
andry 02af69ba83 Move some strings to flash 2018-10-18 21:12:26 +03:00
andry 222b92d536 [env:megaatmega2560] - correct Ethernet lib for wiz5100 2018-10-18 21:05:00 +03:00
andry ad555164f6 Merge pull request #32 from MykhailoKh/develop-add-modbus-register-type-parameter
Add modbus register type parameter
2018-10-18 20:45:45 +03:00
andry d89dfd2364 Prevent restoring temporary turned on channels (by XON) 2018-10-14 11:15:54 +03:00
andry dd44e46f77 Temperature topicname fixed 2018-10-14 10:43:48 +03:00
andry 687ef7cd99 DS18B20 TEMPERATURE_PRECISION increased to 12 bits and temp converted to float 2018-10-14 03:20:50 +03:00
andry 3038e41788 Fix after merging PR.(DUE and Mega) 2018-10-13 23:03:59 +03:00
andry 87e7bcbd6a Merge pull request #30 from livello/IS-ENC
device_name, PrintEx lib, refactoring
2018-10-13 21:18:26 +03:00
andry 9275467052 core Tested/Bugfixed. XON/XOFF, save/restore states 2018-09-29 12:33:48 +03:00
andry 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
andry 770c6e3c25 Merge pull request #29 from MykhailoKh/develop-add-support-for-button-as-input
Add button support as input  (every push changing state)
2018-09-28 01:03:03 +03:00
andry ae2187de84 Update build_flags_template.sh
Default mac changed
2018-09-25 23:23:16 +03:00
andry c9bed1ea8f Merge pull request #28 from MykhailoKh/develop-add-w5500-spi-cs-pin-configuration
Add configuration for CS pin for Ethernet W5500
2018-09-25 23:16:42 +03:00
andry 4875136ebc syslog hung fixed 2018-09-10 02:20:07 +03:00
andry b33c621926 Critical fix: DUE with WIZ5500 working again now: EthernetX lib mess fixed, IP stack startup code fixed 2018-09-10 01:40:35 +03:00
andry b2238e5f6f MAC 2018-09-10 00:40:33 +03:00
andry c89bed6920 def MAC changed 2018-09-09 23:29:36 +03:00
andry 39eed2f05f Added DUE lib 2018-09-09 23:20:49 +03:00
andry 3031a25095 Merge pull request #26 from livello/IS-ENC
Counters input support, up to 6 encoders on mega and due. Syslog, ESP32
2018-09-09 22:52:03 +03:00
andry 34c618db72 polling of contacts fixed 2018-06-30 13:46:22 +03:00
andry fa864bd9f7 Merge pull request #25 from livello/IS-DHT
(2)DHT22 Input support, thermo, esp refactoring, lan_status enum, wifi_manager, printing ip config, save current ip config
2018-06-30 01:07:49 +03:00
andry 74689fcd8b Merge branch 'develop' into IS-DHT 2018-06-30 01:07:15 +03:00
andry f219951630 Fixed issue "Strange behavior on restart if lan is not initialized #22" 2018-06-24 22:08:08 +03:00
andry 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
andry 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
andry b8861d895a platformio.ini 2018-05-19 15:20:30 +03:00
andry 2b56dcd8dd Merge pull request #19 from livello/patch
clear EEPROM, laninit delay, clean platformio.ini
2018-05-19 15:09:30 +03:00
andry d1cab710ea Update README.md 2018-05-19 14:50:19 +03:00
andry bfee598017 Default DMX_OUT pin for MEGA+5500 is USART1_TX now 2018-05-12 22:37:08 +03:00
andry 1b8ed97fc0 Fix for Controllino 2018-05-09 21:03:47 +03:00
andry 1f0a193e96 Fix 2018-05-07 23:06:53 +03:00
andry 2a7024b697 Update README.md 2018-05-07 23:03:25 +03:00
andry 206e781822 Update README.md 2018-05-07 21:32:17 +03:00
andry f74ef4051c Update README.md 2018-05-07 21:11:33 +03:00
andry 26612d8a97 Controllino support added 2018-05-07 21:07:22 +03:00
andry 0c3b4e6034 Merging changes 2018-05-06 18:40:53 +03:00
andry 7c68fd1491 Merge branch 'master' of https://github.com/anklimov/lighthub 2018-05-06 18:35:45 +03:00
andry 7cce5eeda3 Move modbus params to options.h 2018-05-06 18:33:00 +03:00
andry b17d7cfa5a Fixes 2018-05-06 17:57:28 +03:00
andry 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
andry 7db3033de3 static ip CLI command/EEPROM saving; reconnection logic refined; new ETHERNET2 lib required 2018-04-30 13:26:03 +03:00
andry dc0d2c523b Merge branch 'master' of https://github.com/anklimov/lighthub 2018-04-17 23:55:53 +03:00
andry f353b6963c DUE 5500 binary update 2018-04-17 23:55:25 +03:00
andry 060e6694e8 Update README.md 2018-04-17 23:41:42 +03:00
andry 3a66d916dd DUE DMX-IN fix 2018-04-17 23:24:29 +03:00
andry 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
andry 8d8e357504 Arduino DUE 1-wire fix 2018-04-16 15:22:09 +03:00
andry bc1eb86a34 Critical: discrete outputs initialization after reboot added 2018-04-15 21:03:35 +03:00
andry bbbf0e056c Merge branch 'master' of https://github.com/anklimov/lighthub 2018-04-14 15:41:48 +03:00
andry 81ea6e31a7 Schematic diagramm for hardware added 2018-04-14 15:40:54 +03:00
andry e5cb8dba34 Update README.md 2018-04-07 00:43:14 +03:00
andry 316aafb59f Update README.md 2018-04-07 00:08:57 +03:00