mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
Compare commits
158 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 90298cd5a3 | |||
| 5719ba209a | |||
| 2e21362fd8 | |||
| fe054c3c4e | |||
| e3d84a1a02 | |||
| ca457a2a05 | |||
| 6d4f76c642 | |||
| 7251e229b6 | |||
|
|
e9355ef142 | ||
|
|
7836876fcd | ||
|
|
8e7bbee96a | ||
|
|
456f6b8ad4 | ||
| c4af5e92f9 | |||
|
|
896a22862f | ||
|
|
83e8639034 | ||
|
|
256ab175ce | ||
| 199a80cbb9 | |||
|
|
9204bd0898 | ||
|
|
df4bf02e8d | ||
|
|
45d925ba88 | ||
| 0a3bbcd7f9 | |||
|
|
1e58ad90eb | ||
| a0ad782257 | |||
| 65556ed39d | |||
| 7bf685a0d4 | |||
|
|
f6a57348eb | ||
|
|
e93e52702e | ||
|
|
6cd4f1d82a | ||
|
|
3907158437 | ||
|
|
eb68556012 | ||
|
|
30f7b36a9c | ||
|
|
927272824c | ||
|
|
bab472d2d1 | ||
|
|
ec306c4934 | ||
|
|
3e0566cf07 | ||
|
|
86d0d784a0 | ||
|
|
b06dad9395 | ||
| a974290389 | |||
| 2da04b45bf | |||
| 724eabc22f | |||
| c70a4eaac9 | |||
| a956b6f8e2 | |||
| 07688f53ae | |||
| 6d28cb9f34 | |||
| d7e93177d6 | |||
| c23543b213 | |||
| b94ab723ee | |||
| 39cfb42307 | |||
| 891701cee1 | |||
| a17ea0bad7 | |||
| 64eea07d78 | |||
| 12487b871e | |||
|
|
23cd2a2139 | ||
| 81edb7f86e | |||
|
|
4c80f435e5 | ||
| b3af9865c7 | |||
| 9bf3d561bd | |||
| 782d353478 | |||
| d207ef23d3 | |||
| 3b66ecb2cb | |||
| 20bdbac8c5 | |||
| b79d873629 | |||
| 32e7dbd730 | |||
| d30591d9f7 | |||
| fc8b04ac9b | |||
| d76867063e | |||
| c7d1bc65c0 | |||
| b7c6eaaff1 | |||
| 2b3c77bf03 | |||
| a7f5c67ab2 | |||
| 07046680e0 | |||
| 6fe28695f2 | |||
| 70ccf9f1c9 | |||
| fbdf400a2b | |||
| 5227182dd8 | |||
| 4a75a60dc4 | |||
| 4a5f219fec | |||
| 410c79a78e | |||
| d5aa9f5ac6 | |||
|
|
302a03e274 | ||
| 1ce769de92 | |||
| ac9ed03fe5 | |||
| f60b8188dc | |||
| 0c3108c620 | |||
| 1316835cad | |||
| bc867d0de0 | |||
| c03821e94a | |||
| c67bab2173 | |||
| 2779c9f7d5 | |||
| 12fe7ea71e | |||
| 184abef5a4 | |||
| 44d0568267 | |||
| 6cd4e5dbea | |||
| c185de3f26 | |||
| 2e5c7d8045 | |||
| 201f492e29 | |||
| 2ee8ad5ab6 | |||
| ce3571fc75 | |||
| 3b92723ee3 | |||
| 8dd0b57f72 | |||
| 99e9c1a27a | |||
| 4e22a8f22d | |||
| ff35636a18 | |||
|
|
a7dac3310f | ||
| bf76a5c23c | |||
| 9bfaca7898 | |||
| 1e682ea8f3 | |||
| 7e14e7143c | |||
| f96f125fe6 | |||
| 034319ed67 | |||
| 196e34266a | |||
| 0da8708327 | |||
| a28def023e | |||
| 43bddffcea | |||
| 80fe47bd33 | |||
| 35e51c6a94 | |||
| 88217b524c | |||
| 74cea9c6e3 | |||
| 2946409896 | |||
| 3df1eb1cc5 | |||
| a9bcba3d7c | |||
| f22e84a6db | |||
| 7fce2b34b2 | |||
| 6485833f7d | |||
| 56a8c5c80b | |||
| 09fa78b0c8 | |||
| bbf8f4d46e | |||
| 674a438bde | |||
| 8e96b4623f | |||
| 64a2bb7eea | |||
| c2815a2d00 | |||
| 8f88df5739 | |||
| 256ca471fc | |||
| a8b64e5f03 | |||
| 39d876be96 | |||
| aa827b8119 | |||
| 5888931870 | |||
| 7967897318 | |||
| 36a7242a60 | |||
| 32eacaeb07 | |||
| c2fead7ac5 | |||
| 3ac5480735 | |||
| 50cec6abf7 | |||
| 7862dfea81 | |||
| 2f398df8aa | |||
| 5eae1b1838 | |||
| 473256d591 | |||
| 48a5e8fd31 | |||
| bb65782ad0 | |||
| 264b61e7e6 | |||
| 9ae6d9991e | |||
| d219a594c5 | |||
| f241bc0c77 | |||
| a911f43f0c | |||
| 64d9d13137 | |||
| ecff141f6a | |||
| a0f99d96bc | |||
| 668464f229 |
7
.gitignore
vendored
7
.gitignore
vendored
@@ -19,3 +19,10 @@ custom-build-flags/build_flags_nrf52840
|
||||
.vscode/.browse.c_cpp.db
|
||||
.vscode/c_cpp_properties.json
|
||||
.vscode/launch.json
|
||||
lighthub/modules/out_elevator.cpp
|
||||
lighthub/modules/out_elevator.h
|
||||
lighthub/modules/out_humidifier.cpp
|
||||
lighthub/modules/out_humidifier.h
|
||||
spare_files/*
|
||||
spare_files/ArduinoOTA/*
|
||||
lib/*
|
||||
8
.idea/markdown-exported-files.xml
generated
8
.idea/markdown-exported-files.xml
generated
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="MarkdownExportedFiles">
|
||||
<htmlFiles />
|
||||
<imageFiles />
|
||||
<otherFiles />
|
||||
</component>
|
||||
</project>
|
||||
67
.travis.yml
67
.travis.yml
@@ -1,67 +0,0 @@
|
||||
# Continuous Integration (CI) is the practice, in software
|
||||
# engineering, of merging all developer working copies with a shared mainline
|
||||
# several times a day < http://docs.platformio.org/page/ci/index.html >
|
||||
#
|
||||
# Documentation:
|
||||
#
|
||||
# * Travis CI Embedded Builds with PlatformIO
|
||||
# < https://docs.travis-ci.com/user/integration/platformio/ >
|
||||
#
|
||||
# * PlatformIO integration with Travis CI
|
||||
# < http://docs.platformio.org/page/ci/travis.html >
|
||||
#
|
||||
# * User Guide for `platformio ci` command
|
||||
# < http://docs.platformio.org/page/userguide/cmd_ci.html >
|
||||
#
|
||||
#
|
||||
# Please choice one of the following templates (proposed below) and uncomment
|
||||
# it (remove "# " before each line) or use own configuration according to the
|
||||
# Travis CI documentation (see above).
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# Template #1: General project. Test it using existing `platformio.ini`.
|
||||
#
|
||||
|
||||
# language: python
|
||||
# python:
|
||||
# - "2.7"
|
||||
#
|
||||
# sudo: false
|
||||
# cache:
|
||||
# directories:
|
||||
# - "~/.platformio"
|
||||
#
|
||||
# install:
|
||||
# - pip install -U platformio
|
||||
# - platformio update
|
||||
#
|
||||
# script:
|
||||
# - platformio run
|
||||
|
||||
|
||||
#
|
||||
# Template #2: The project is intended to by used as a library with examples
|
||||
#
|
||||
|
||||
# language: python
|
||||
# python:
|
||||
# - "2.7"
|
||||
#
|
||||
# sudo: false
|
||||
# cache:
|
||||
# directories:
|
||||
# - "~/.platformio"
|
||||
#
|
||||
# env:
|
||||
# - PLATFORMIO_CI_SRC=path/to/test/file.c
|
||||
# - PLATFORMIO_CI_SRC=examples/file.ino
|
||||
# - PLATFORMIO_CI_SRC=path/to/test/directory
|
||||
#
|
||||
# install:
|
||||
# - pip install -U platformio
|
||||
# - platformio update
|
||||
#
|
||||
# script:
|
||||
# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N
|
||||
54
README.md
54
README.md
@@ -1,5 +1,15 @@
|
||||
# LightHub
|
||||
is Flexible, Arduino-Mega/Arduino DUE/ESP8266/ESP32 open-software and open-hardware SmartHome controller. [RU](https://geektimes.ru/post/295109/) [HOME-site RU](http://lazyhome.ru)
|
||||
is Flexible, Arduino-Mega/Arduino DUE/ESP8266/ESP32 open-software and open-hardware SmartHome controller.
|
||||
Useful links:
|
||||
|
||||
* [Article/RU](https://geektimes.ru/post/295109/)
|
||||
|
||||
* [HOME-site/RU](http://lazyhome.ru)
|
||||
|
||||
* [WIKI/RU](https://www.lazyhome.ru/dokuwiki/doku.php?id=start)
|
||||
|
||||
* [Doxigen autodocumentation for developers](https://anklimov.github.io/lighthub/docs/html/index.html) (litle bit outdated)
|
||||
|
||||
It may operate both:
|
||||
* On [especially designed hardware board](http://www.lazyhome.ru/index.php/featurerequest) with 16 optocoupled digital inputs, 16 ESD protected digital/analog Inputs/outputs, 8 open-collector outputs (up to 0.5A/50V), DMX IN/OUT, MODBUS RTU and hardware 1-wire support circuit.
|
||||
* On plain Arduino MEGA 2560, Arduino DUE, ESP8266, ESP32 and even on [Controllino](http://controllino.biz/)
|
||||
@@ -9,10 +19,10 @@ Lighthub allows connecting together:
|
||||
* Contact sensors (switches, buttons etc)
|
||||
* Analog sensors (Leak detectors, Knobs etc)
|
||||
* 1-Wire temperature sensors (up to 20 on single bus)
|
||||
* Temperature/Humidity/CO2 sensors: DHT22, CS811, HDC1080
|
||||
* Temperature/Humidity/CO2 sensors: DHT22, CS811, HDC1080 and any type of Modbus connected devices
|
||||
* Standard nonexpensive Relay board with TTL inputs, [like this](http://ali.pub/2zlosh) to control AC powered lamps, floor heaters, boilers etc
|
||||
* [Standard nonexpensive LED dimmers](http://ali.pub/2zlokp) and [AC DMX-512 dimmers](http://ali.pub/2zlont)
|
||||
* Modbus RTU devices (Currently, are deployed two types of Modbus devices: AC Dimmer and Ventilation set (Based on [Vacon 10 controller](http://files.danfoss.com/download/Drives/Vacon-10-Quick-Guide-DPD00714F1-UK.pdf))
|
||||
* Modbus RTU devices (Currently, possible to control any type of Modbus devices - e.c dimmers, sensors, wall climate panels, HVAC e.t.c
|
||||
* Simple DMX wall sensor panel [like this](http://ali.pub/2zlohe)
|
||||
|
||||
[List of non-expensive compatible components from AliExpress here](http://ppv.alipromo.com/custom/promo.php?hash=pjagwaovaero6vkeabjpkpvy4gznbgkc&landing_id=39661)
|
||||
@@ -22,7 +32,8 @@ Lighthub allows connecting together:
|
||||
|
||||

|
||||
|
||||
Where is possible both, to configure local control/mapping between inputs and outputs (light, floor heating thermostats) and remote control from MQTT enabled software. At the moment, LightHub tested and perfectly working with following set of complementary free software:
|
||||
Where is possible both, to configure local control/mapping between inputs and outputs (light, floor heating thermostats) and remote control from MQTT enabled software and between controllers. At the moment, LightHub tested and perfectly working with following set of complementary free software:
|
||||
* [HomeAssistant](https://www.home-assistant.io) - the best choice of HomeAutomation system
|
||||
* [Openhab or Openhab2 Smarthome software](http://www.openhab.org/)
|
||||
Openhab provides own native mobile app both, for IoS and Android, and even allow you to use Apple's HomeKit and Google Home to say "Siri, turn on light in bedroom" or "Hey Google, set bedroom light to Red" but requires some server to be installed in-premises (Raspberry PI with [Openhabian](https://docs.openhab.org/installation/openhabian) will good enough)
|
||||
* [HomeRemote mobile client](http://thehomeremote.com/)
|
||||
@@ -32,22 +43,26 @@ Home Remote mobile applicatios for IoS and Android requires just MQTT broker to
|
||||
Scalability of Lighthub is virtually unlimited: Setup so many controllers you needed in most convenient places of your house - MQTT broker will allow controllers communicate each other and with Openhab/NodeRed/HomeRemote and propagate commands across network.
|
||||
|
||||
# [Please refer to our Wiki for insructions.](https://github.com/anklimov/lighthub/wiki/Configuring)
|
||||
* [Russian-language Wiki](https://www.lazyhome.ru/dokuwiki/doku.php)
|
||||
* [Compiling and flashing](https://github.com/anklimov/lighthub/wiki/Compiling-and-flashing)
|
||||
* [Configuring](https://github.com/anklimov/lighthub/wiki/Configuring)
|
||||
* [Channel commands](https://github.com/anklimov/lighthub/wiki/Channel-commands)
|
||||
* [OpenHab integration](https://github.com/anklimov/lighthub/wiki/OpenHab--integration)
|
||||
|
||||
* [Doxygen developers documentation](https://anklimov.github.io/lighthub/docs/html/index.html)
|
||||
* [Latest Release notes](https://github.com/anklimov/lighthub/releases/tag/v3.0.0)
|
||||
|
||||
# Platforms specific details:
|
||||
|
||||
**AVR** version (Arduino Mega) is basic, long time in production and have all functions
|
||||
**AVR** version (Arduino Mega) is basic, long time in production and have most functions
|
||||
* DMX-out is software (DMXSimple) on pin3, can be re-defined to PIN 18 (USART1 TX)
|
||||
* DMX-in - hardware
|
||||
* WIZNET 5100 and 5500 Ethernets are supported
|
||||
* Modbus on USART2
|
||||
* Very limited in terms of RAM available
|
||||
* OptiBoot bootloader recommended
|
||||
|
||||
**SAM3X8E** (Arduino DUE): (Tested. In production. Recomended hardware at current moment)
|
||||
* default PWM out frequency
|
||||
* Reachest funcionality from all possible options
|
||||
* both, DMX-in and DMX-out are hardware USART based. Use USART1 (pins 18 and 19) for DMX-out and DMX-in
|
||||
* WIZNET 5100 and 5500 Ethernets are supported
|
||||
* Modbus on USART2
|
||||
@@ -55,7 +70,7 @@ Scalability of Lighthub is virtually unlimited: Setup so many controllers you ne
|
||||
**ESP8266, ESP32**: (Tested)
|
||||
* DMX-OUT on USART1 TX
|
||||
* DMX-IN - disabled - not possible to deploy in ESP8266
|
||||
* Modbus - disabled. Might be configured in future on USART0 instead CLI/DEBUG
|
||||
* Modbus - disabled on ESP8266, Might be configured on USART0 instead CLI/DEBUG, on ESP32 binded with UART2
|
||||
* Uses Wifi interface instead wired connection
|
||||
|
||||
**NRF52840** : Still early development stage
|
||||
@@ -67,11 +82,14 @@ Scalability of Lighthub is virtually unlimited: Setup so many controllers you ne
|
||||
* USE_1W_PIN=49 // use direct connection to 1W devices on 49 pin, no I2C bridge DS2482-100
|
||||
* SD_CARD_INSERTED // enable sd-card support and fix lan starting
|
||||
* SERIAL_BAUD=115200 // set baud rate for console on Serial0
|
||||
* Wiz5500 //Use Wiznet 5500 library instead Wiznet 5100
|
||||
* Wiz5500 //Use Wiznet 5500 library instead universal Wiznet
|
||||
* Wiz5100 //Use Wiznet 5500 library instead universal Wiznet
|
||||
* DISABLE_FREERAM_PRINT // disable printing free Ram in bytes
|
||||
* CUSTOM_FIRMWARE_MAC=de:ad:be:ef:fe:00 //set firmware macaddress
|
||||
* DMX_DISABLE //disable DMX support
|
||||
* MODBUS_DISABLE // disable Modbus support
|
||||
* MODBUS_DISABLE // disable old Modbus driver
|
||||
* MBUS_DISABLE // disable new Modbus driver
|
||||
* MODBUS_TX_PIN=13
|
||||
* OWIRE_DISABLE // disable OneWire support
|
||||
* ARTNET_ENABLE //Enable Artnet protocol support
|
||||
* AVR_DMXOUT_PIN=18 // Set Pin for DMXOUT on megaatmega2560
|
||||
@@ -82,11 +100,27 @@ Scalability of Lighthub is virtually unlimited: Setup so many controllers you ne
|
||||
* WIFI_MANAGER_DISABLE //Disable wifi manager for esp8266
|
||||
* COUNTER_DISABLE //disable Counter, Uptime input support (for RAM savings on mega2560)
|
||||
* DHT_DISABLE //disable DHT input support (for RAM savings on mega2560)
|
||||
* PID_DISABLE // Disable PID regulator
|
||||
* STATUSLED // Enable RGB status led on pins 50,51,52 (DUE only)
|
||||
* DMX_SMOOTH //Smooth transition on DMX channels (DUE only)
|
||||
* OTA // Enable Other The Air firmware upload
|
||||
* W5500_CS_PIN=53 //Defines CS pin for Ethernet adapter (10-th by default)
|
||||
* WIFI_ENABLE //Enable WiFi for ESP (Wiznet by default)
|
||||
* SPILED_DISABLE //Disable SPI LED library
|
||||
* AC_DISABLE //Disable UART Hayer Air condition driver
|
||||
* M5STACK //Logging to M5Stack OLED screen
|
||||
* NO_HOMIE //Disable HOMIE discovery topics
|
||||
* BRIGHT_STEP //Scale DMX bright - Table1
|
||||
* BRIGHT_LOG //Scale DMX bright - Table2
|
||||
* MCP23017 allow I2C input port extender on MCP23017 chip
|
||||
* RESTART_LAN_ON_MQTT_ERRORS //reinit LAN if many mqtt errors occured
|
||||
* DEVICE_NAME short handy device name which is used instead of mac for download config http://{MY_CONFIG_SERVER}/{DEVICE_NAME}_config.json
|
||||
* SYSLOG_ENABLE enable UDP SYSLOG support feature(under DEVELOPMENT) that must be configured through config file
|
||||
* WITH_PRINTEX_LIB use PrintEx library (develop experimental feature)
|
||||
* CSSHDC_DISABLE //Disable CS811 and HDC1080 sensors support
|
||||
* FASTLED - using FASTLED library instead default ADAFRUIT_LED
|
||||
* SCALE_VOLUME_100 using 0..100 scaling in /set topics instead 0.255 (default)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,3 +2,6 @@
|
||||
-DCUSTOM_FIRMWARE_MAC=de:ad:be:ef:fe:07
|
||||
-DWiz5100
|
||||
#-DPID_DISABLE
|
||||
-DRESTART_LAN_ON_MQTT_ERRORS
|
||||
-D CORS=\"*\"
|
||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
#-DW5500_CS_PIN=53
|
||||
-DDMX_SMOOTH
|
||||
-DSYSLOG_ENABLE
|
||||
-DMODBUS_DIMMER_PARAM=SERIAL_8E1
|
||||
#-DMODBUS_SERIAL_PARAM=SERIAL_8E1
|
||||
-DARTNET_ENABLE
|
||||
-DOTA
|
||||
-DSTATUSLED
|
||||
#-DPID_DISABLE
|
||||
#-DUARTBRIDGE_ENABLE
|
||||
-DARDUINO_OTA_MDNS_DISABLE
|
||||
-DMDNS_ENABLE
|
||||
-DMCP23017
|
||||
-D CORS=\"*\"
|
||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||
-DTIMER_INT
|
||||
|
||||
-DRESTART_LAN_ON_MQTT_ERRORS
|
||||
-DOTA_PORT=80
|
||||
-DMERCURY_ENABLE
|
||||
@@ -1,6 +0,0 @@
|
||||
-DARTNET_ENABLE
|
||||
-DDMX_SMOOTH
|
||||
-DSTATUSLED
|
||||
-DSYSLOG_ENABLE
|
||||
-DWiz5100
|
||||
#-DPID_DISABLE
|
||||
@@ -1,6 +0,0 @@
|
||||
-DWiz5500
|
||||
-DARTNET_ENABLE
|
||||
-DDMX_SMOOTH
|
||||
-DSTATUSLED
|
||||
-DSYSLOG_ENABLE
|
||||
#-DPID_DISABLE
|
||||
@@ -5,12 +5,56 @@
|
||||
#-DAC_DISABLE
|
||||
-DMODBUS_DISABLE
|
||||
#-DMBUS_DISABLE
|
||||
-DCOUNTER_DISABLE
|
||||
#-DSYSLOG_ENABLE - udp errors
|
||||
#-DCOUNTER_DISABLE
|
||||
-DSYSLOG_ENABLE
|
||||
# - udp errors
|
||||
-DOTA
|
||||
-DARDUINO_OTA_MDNS_DISABLE
|
||||
-DMDNS_ENABLE
|
||||
#- ArduinoMDNS didnt working
|
||||
|
||||
-DMCP23017
|
||||
-DMODBUS_TX_PIN=13
|
||||
#-DARTNET_ENABLE - udp rx errors ((
|
||||
#-DUSE_1W_PIN=16
|
||||
#-DW5500_CS_PIN=15
|
||||
#-DPID_DISABLE
|
||||
|
||||
#Define pins for modbus UART Serial1. Default - 9/10 is utilized by ESP flash
|
||||
#-DMODBUS_UART_RX_PIN=15
|
||||
#-DMODBUS_UART_TX_PIN=2
|
||||
#-DmodbusSerial=Serial1
|
||||
#-DMODBUS_DEBUG
|
||||
|
||||
#-DMODBUS_UART_RX_PIN=16
|
||||
#-DMODBUS_UART_TX_PIN=17
|
||||
#-DmodbusSerial=Serial2
|
||||
|
||||
# Use default pins for modbus UART
|
||||
#-DMODBUS_UART_RX_PIN=-1
|
||||
#-DMODBUS_UART_TX_PIN=-1
|
||||
|
||||
# Example of UARTBRIDGE configuration
|
||||
#-DUARTBRIDGE_ENABLE
|
||||
#-DMODULE_UATRBRIDGE_UARTA=Serial1
|
||||
#-DMODULE_UATRBRIDGE_UARTA_RX_PIN=15
|
||||
#-DMODULE_UATRBRIDGE_UARTA_TX_PIN=2
|
||||
|
||||
#-DMODULE_UATRBRIDGE_UARTB=Serial2
|
||||
#-DMODULE_UATRBRIDGE_UARTB_RX_PIN=-1
|
||||
#-DMODULE_UATRBRIDGE_UARTB_TX_PIN=-1
|
||||
|
||||
#-DAUTOCONNECT_RECONNECT_WAITTIME=60
|
||||
|
||||
-DFS_STORAGE
|
||||
-DFS_PREPARE
|
||||
|
||||
-DRESTART_LAN_ON_MQTT_ERRORS
|
||||
#-D CORS=\"http://lazyhome.ru\"
|
||||
-DOTA_PORT=80
|
||||
|
||||
-DMQTT_KEEPALIVE=10
|
||||
-DMQTT_SOCKET_TIMEOUT=20
|
||||
-D CORS=\"*\"
|
||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||
#-DMERCURY_ENABLE
|
||||
@@ -7,4 +7,40 @@
|
||||
-DARTNET_ENABLE
|
||||
-DUSE_1W_PIN=16
|
||||
-DW5500_CS_PIN=15
|
||||
#-DPID_DISABLE
|
||||
-DARDUINO_OTA_MDNS_DISABLE
|
||||
-DMDNS_ENABLE
|
||||
-DWM_MDNS
|
||||
-DMCP23017
|
||||
|
||||
-DFS_STORAGE
|
||||
-DFS_PREPARE
|
||||
|
||||
-DRESTART_LAN_ON_MQTT_ERRORS
|
||||
-D CORS=\"*\"
|
||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||
-DOTA_PORT=80
|
||||
|
||||
#oct22 - violation in Publish/OnMQTTConnect while publish homie info
|
||||
-DNO_HOMIE
|
||||
|
||||
#options to fit firmware to Sonoff-S26 (uncomment it)
|
||||
|
||||
##Disabling debug log and move I2C to 1-3 pins
|
||||
#-DnoSerial
|
||||
#-D TWI_SCL=1
|
||||
#-D TWI_SDA=3
|
||||
##Slimming firmware to fit 50% of 1m flash
|
||||
-DDMX_DISABLE
|
||||
-UDARTNET_ENABLE
|
||||
-DMODBUS_DISABLE
|
||||
-DMBUS_DISABLE
|
||||
-DOWIRE_DISABLE
|
||||
-DCOUNTER_DISABLE
|
||||
-DAC_DISABLE
|
||||
-DMOTOR_DISABLE
|
||||
-DMULTIVENT_DISABLE
|
||||
-DHSV_DISABLE
|
||||
-UMCP23017
|
||||
-D BEARSSL_SSL_BASIC
|
||||
-D SPILED_DISABLE
|
||||
-D PWM_DISABLE
|
||||
@@ -1,11 +1,42 @@
|
||||
-DW5500_CS_PIN=53
|
||||
-DARTNET_ENABLE
|
||||
-DDMX_SMOOTH
|
||||
-DMODBUS_DIMMER_PARAM=SERIAL_8E1
|
||||
-DMODBUS_SERIAL_BAUD=9600
|
||||
-DOTA
|
||||
-DSYSLOG_ENABLE
|
||||
#-DWiz5500
|
||||
-DSTATUSLED
|
||||
-DMCP23017
|
||||
#-DPID_DISABLE
|
||||
-DARDUINO_OTA_MDNS_DISABLE
|
||||
-DMDNS_ENABLE
|
||||
-DTIMER_INT
|
||||
#-DFLASH_OFFSET=-256
|
||||
|
||||
# default MODBUS Serial parameters for LEGACY Modbus and MODBUS over IP
|
||||
#-DMODBUS_SERIAL_PARAM=SERIAL_8E1
|
||||
|
||||
#Set Logariphmic law for DMX channels bright
|
||||
-DBRIGHT_LOG
|
||||
|
||||
#disable HOMIE topics publishing
|
||||
-DNO_HOMIE
|
||||
|
||||
#Put modbus exchange in debug hex dump
|
||||
#-DMODBUS_DEBUG
|
||||
|
||||
#Uncomment next 3 lines (or add it to custom build flags) to use Native USB port for debug/CLI instead Serial
|
||||
#-DdebugSerialPort=SerialUSB
|
||||
#-DSerialPortType=Serial_
|
||||
#-DSERIAL_BAUD=0
|
||||
|
||||
#Default SerialDebug settings
|
||||
#-DSERIAL_BAUD=115200
|
||||
#-DdebugSerialPort=Serial
|
||||
|
||||
-DRESTART_LAN_ON_MQTT_ERRORS
|
||||
#-D CORS=\"http://lazyhome.ru\"
|
||||
-DOTA_PORT=80
|
||||
-D CORS=\"*\"
|
||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||
-D MERCURY_ENABLE
|
||||
#-D IPMODBUS
|
||||
@@ -10,3 +10,15 @@
|
||||
#-DSYSLOG_ENABLE
|
||||
-DUSE_1W_PIN=16
|
||||
#-DPID_DISABLE
|
||||
-DARDUINO_OTA_MDNS_DISABLE
|
||||
-DMDNS_ENABLE
|
||||
-DMCP23017
|
||||
|
||||
-DFS_STORAGE
|
||||
-DFS_PREPARE
|
||||
|
||||
-DOTA
|
||||
-DRESTART_LAN_ON_MQTT_ERRORS
|
||||
-D CORS=\"*\"
|
||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||
-DOTA_PORT=80
|
||||
@@ -1,5 +1,12 @@
|
||||
-DMODBUS_DIMMER_PARAM=SERIAL_8E1
|
||||
#-DMODBUS_SERIAL_PARAM=SERIAL_8E1
|
||||
-DAVR_DMXOUT_PIN=18
|
||||
-DSYSLOG_ENABLE
|
||||
-DWiz5100
|
||||
#-DPID_DISABLE
|
||||
-DARDUINO_OTA_MDNS_DISABLE
|
||||
-DMDNS_ENABLE
|
||||
|
||||
-DRESTART_LAN_ON_MQTT_ERRORS
|
||||
-D CORS=\"*\"
|
||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||
-DOTA_PORT=80
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
-DWiz5500
|
||||
-DMODBUS_DIMMER_PARAM=SERIAL_8E1
|
||||
#-DMODBUS_SERIAL_PARAM=SERIAL_8E1
|
||||
-DAVR_DMXOUT_PIN=18
|
||||
-DSYSLOG_ENABLE
|
||||
#-DPID_DISABLE
|
||||
#-DPID_DISABLE
|
||||
-DARDUINO_OTA_MDNS_DISABLE
|
||||
-DMDNS_ENABLE
|
||||
|
||||
-DNO_HOMIE
|
||||
-DCSSHDC_DISABLE
|
||||
-DSPILED_DISABLE
|
||||
-DAC_DISABLE
|
||||
|
||||
|
||||
-DRESTART_LAN_ON_MQTT_ERRORS
|
||||
-D CORS=\"*\"
|
||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||
-DOTA_PORT=80
|
||||
|
||||
30
build-flags/build_flags_mega2560-optiboot
Normal file
30
build-flags/build_flags_mega2560-optiboot
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
#-DMODBUS_SERIAL_PARAM=SERIAL_8E1
|
||||
#-DAVR_DMXOUT_PIN=18
|
||||
-DDMX_DISABLE
|
||||
-DMODBUS_DISABLE
|
||||
-DMBUS_DISABLE
|
||||
-DOWIRE_DISABLE
|
||||
-DDHT_DISABLE
|
||||
-DCOUNTER_DISABLE
|
||||
-DNO_HOMIE
|
||||
-DCSSHDC_DISABLE
|
||||
-DSPILED_DISABLE
|
||||
#-DAC_DISABLE
|
||||
-DSYSLOG_ENABLE
|
||||
-DPID_DISABLE
|
||||
-DOTA
|
||||
-DMOTOR_DISABLE
|
||||
-DMULTIVENT_DISABLE
|
||||
#-DWiz5100
|
||||
-DARDUINO_OTA_MDNS_DISABLE
|
||||
-DMDNS_ENABLE
|
||||
|
||||
-DRESTART_LAN_ON_MQTT_ERRORS
|
||||
-D CORS=\"*\"
|
||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||
|
||||
# Example of UARTBRIDGE configuration
|
||||
#-DUARTBRIDGE_ENABLE
|
||||
-DOTA_PORT=80
|
||||
#-DMERCURY_ENABLE
|
||||
30
build-flags/build_flags_mega2560slim
Normal file
30
build-flags/build_flags_mega2560slim
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
#-DMODBUS_SERIAL_PARAM=SERIAL_8E1
|
||||
#-DAVR_DMXOUT_PIN=18
|
||||
-DDMX_DISABLE
|
||||
-DMODBUS_DISABLE
|
||||
-DMBUS_DISABLE
|
||||
#-DOWIRE_DISABLE
|
||||
-DDHT_DISABLE
|
||||
#-DCOUNTER_DISABLE
|
||||
-DNO_HOMIE
|
||||
-DCSSHDC_DISABLE
|
||||
-DSPILED_DISABLE
|
||||
-DAC_DISABLE
|
||||
-DSYSLOG_ENABLE
|
||||
-DPID_DISABLE
|
||||
#-DWiz5100
|
||||
-DMOTOR_DISABLE
|
||||
-DOTA
|
||||
-DARDUINO_OTA_MDNS_DISABLE
|
||||
#-DMDNS_ENABLE
|
||||
-DRESTART_LAN_ON_MQTT_ERRORS
|
||||
-D CORS=\"*\"
|
||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||
-DOTA_PORT=80
|
||||
-DHSV_DISABLE
|
||||
-DMULTIVENT_DISABLE
|
||||
-DPID_DISABLE
|
||||
-DPWM_DISABLE
|
||||
-DSPILED_DISABLE
|
||||
#-DOW_DEVICES_LIMIT=17
|
||||
@@ -1,15 +0,0 @@
|
||||
|
||||
#-DMODBUS_DIMMER_PARAM=SERIAL_8E1
|
||||
#-DAVR_DMXOUT_PIN=18
|
||||
-DDMX_DISABLE
|
||||
-DMODBUS_DISABLE
|
||||
#-DMBUS_DISABLE
|
||||
#-DOWIRE_DISABLE
|
||||
-DDHT_DISABLE
|
||||
-DCOUNTER_DISABLE
|
||||
-DNO_HOMIE
|
||||
-DCSSHDC_DISABLE
|
||||
-DSPILED_DISABLE
|
||||
-DAC_DISABLE
|
||||
-DSYSLOG_ENABLE
|
||||
-DPID_DISABLE
|
||||
@@ -1,4 +1,4 @@
|
||||
-DWiz5500
|
||||
#-DWiz5500
|
||||
#-DW5500_CS_PIN=10
|
||||
-DDMX_DISABLE
|
||||
-DMODBUS_DISABLE
|
||||
@@ -12,3 +12,8 @@
|
||||
-DSYSLOG_ENABLE
|
||||
-DMBUS_DISABLE
|
||||
-DPID_DISABLE
|
||||
#-DMCP23017
|
||||
|
||||
-D CORS=\"*\"
|
||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||
#-DMERCURY_ENABLE
|
||||
40
build-flags/build_flags_stm32
Normal file
40
build-flags/build_flags_stm32
Normal file
@@ -0,0 +1,40 @@
|
||||
-DDMX_DISABLE
|
||||
-DMODBUS_DISABLE
|
||||
-DMBUS_DISABLE
|
||||
-DOWIRE_DISABLE
|
||||
-DDHT_DISABLE
|
||||
-DCOUNTER_DISABLE
|
||||
-DNO_HOMIE
|
||||
-DCSSHDC_DISABLE
|
||||
-DSPILED_DISABLE
|
||||
-DAC_DISABLE
|
||||
-DPID_DISABLE
|
||||
|
||||
-DENABLE_HWSERIAL1
|
||||
-DdebugSerialPort=Serial1
|
||||
|
||||
#-DFLASH_BASE_ADDRESS
|
||||
#-DFLASH_DATA_SECTOR
|
||||
#-DFLASH_PAGE_NUMBER
|
||||
|
||||
-D PIO_FRAMEWORK_ARDUINO_ENABLE_MASS_STORAGE
|
||||
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC_AND_MSC
|
||||
|
||||
#-DdebugSerialPort=SerialUSB
|
||||
#-DSerialPortType=USBSerial
|
||||
#-DSERIAL_BAUD=0
|
||||
|
||||
#-DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC
|
||||
#-DUSBCON
|
||||
#-DUSBD_VID=0x0483
|
||||
#-DUSBD_PID=0x5740
|
||||
#-DUSB_MANUFACTURER="Unknown"
|
||||
#-DUSB_PRODUCT="\"BLUEPILL_F103C8\""
|
||||
#-DHAL_PCD_MODULE_ENABLED
|
||||
#-D USBD_USE_CDC
|
||||
|
||||
-D HAL_CAN_MODULE_ENABLED
|
||||
#HAL_ETH_MODULE_DISABLED
|
||||
#HAL_SD_MODULE_DISABLED
|
||||
#HAL_DAC_MODULE_DISABLED
|
||||
#-DMERCURY_ENABLE
|
||||
@@ -9,3 +9,4 @@
|
||||
-DSPILED_DISABLE
|
||||
-DAC_DISABLE
|
||||
-DPID_DISABLE
|
||||
-DUIPETHERNET
|
||||
|
||||
16
compiled/DUE_16u2_reflash/reflash16u2DUE.bat
Normal file
16
compiled/DUE_16u2_reflash/reflash16u2DUE.bat
Normal file
@@ -0,0 +1,16 @@
|
||||
REM fetch DeviceID of Arduino Port from WMI Service
|
||||
FOR /f "tokens=* skip=1" %%a IN ('wmic PATH Win32_SerialPort Where "Caption LIKE '%%Arduino Uno%%'" get DeviceID') DO (
|
||||
SET COMX=%%a
|
||||
GOTO exit1
|
||||
)
|
||||
|
||||
REM Arduino Due Programming Port not exist
|
||||
GOTO error_comport
|
||||
|
||||
:exit1
|
||||
|
||||
REM remove blank
|
||||
SET COMPORT=%COMX: =%
|
||||
|
||||
|
||||
..\tools\win\tool-avrdude\avrdude -C ..\tools\win\tool-avrdude\avrdude.conf -c arduino -P %COMPORT% -b 19200 -p m16u2 -vvv -U flash:w:16u2.hex:i
|
||||
BIN
compiled/Mega2560-optiboot/firmware.bin
Executable file
BIN
compiled/Mega2560-optiboot/firmware.bin
Executable file
Binary file not shown.
BIN
compiled/Mega2560-optiboot/firmware.elf
Normal file
BIN
compiled/Mega2560-optiboot/firmware.elf
Normal file
Binary file not shown.
7649
compiled/Mega2560-optiboot/firmware.hex
Normal file
7649
compiled/Mega2560-optiboot/firmware.hex
Normal file
File diff suppressed because it is too large
Load Diff
46
compiled/Mega2560-optiboot/mega2560-optiboot/config.json
Normal file
46
compiled/Mega2560-optiboot/mega2560-optiboot/config.json
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"syslog":["192.168.88.2"],
|
||||
"mqtt":["elev","192.168.88.22"],
|
||||
"dmx":[30],
|
||||
"items": {
|
||||
"relay1":[6,32],
|
||||
"relay2":[6,33],
|
||||
"relays":[7,["relay1","relay2"]],
|
||||
"sensair1":[44,[254,
|
||||
"sensair",
|
||||
{"co2":{"emit":"co2"}},
|
||||
{"mode":"auto"}
|
||||
]
|
||||
],
|
||||
"elevator":[15,{"baud":9600,"serial":"8N1"]
|
||||
},
|
||||
"modbus":
|
||||
{
|
||||
"sensair":{"baud":9600,
|
||||
"poll":{"irs":[[0,3],21,[25,30]],"regs":[0,1,31],"delay":1000},
|
||||
"par":{
|
||||
"co2":{"ir":3},
|
||||
"meterStat":{"ir":0},
|
||||
"alarmStat":{"ir":1},
|
||||
"outStat":{"ir":0},
|
||||
"pwm":{"ir":21},
|
||||
"typeid":{"ir":25,"type":"u32"},
|
||||
"mapver":{"ir":27},
|
||||
"fwver":{"ir":28},
|
||||
"sensorid":{"ir":29,"type":"u32"},
|
||||
"ack":{"reg":0},
|
||||
"command":{"reg":1},
|
||||
"abc":{"reg":31}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
"in":{ "23":{"item":"relays","emit":"in1"},
|
||||
"25":{"item":"relays","emit":"in2"},
|
||||
"27":{"item":"relays","emit":"in3"},
|
||||
"29":{"item":"relays","emit":"in4"}
|
||||
}
|
||||
}
|
||||
1
compiled/Mega2560-optiboot/mega2560-optiboot/getCNF.sh
Executable file
1
compiled/Mega2560-optiboot/mega2560-optiboot/getCNF.sh
Executable file
@@ -0,0 +1 @@
|
||||
../tools/mac/arduinoOTA -d -address 192.168.88.70 -port 65280 -username arduino -password password -b /config
|
||||
1
compiled/Mega2560-optiboot/mega2560-optiboot/uploadCNF.sh
Executable file
1
compiled/Mega2560-optiboot/mega2560-optiboot/uploadCNF.sh
Executable file
@@ -0,0 +1 @@
|
||||
../tools/mac/arduinoOTA -address elev.local -port 65280 -username arduino -password password -sketch config.json -b -upload /config.json
|
||||
@@ -1 +1 @@
|
||||
..\tools\win\arduinoOTA.exe -address 192.168.88.21 -port 65280 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
..\tools\win\arduinoOTA.exe -address 192.168.88.21 -port 65280 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
1
compiled/Mega2560-optiboot/mega2560-optiboot/uploadOTA.sh
Executable file
1
compiled/Mega2560-optiboot/mega2560-optiboot/uploadOTA.sh
Executable file
@@ -0,0 +1 @@
|
||||
../tools/mac/arduinoOTA -address 192.168.11.213 -port 65280 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
61
compiled/Mega2560-optiboot/optiboot.hex
Normal file
61
compiled/Mega2560-optiboot/optiboot.hex
Normal file
@@ -0,0 +1,61 @@
|
||||
:020000023000CC
|
||||
:10FC000002C0EFC037C1112484B7882369F0982F50
|
||||
:10FC10009A70923049F081FF02C097EF94BF282E6E
|
||||
:10FC200080E002D10C94000085E08093810082E0A6
|
||||
:10FC30008093C00088E18093C1008CE08093C40071
|
||||
:10FC400086E08093C2008EE0EFD0279A84E023EC18
|
||||
:10FC50003FEF91E0309385002093840096BBB09BEA
|
||||
:10FC6000FECF1F9AA8954091C00047FD02C0815069
|
||||
:10FC700089F7CED0813479F4CBD0C82FDBD0C2380D
|
||||
:10FC800011F480E004C088E0C13809F083E0B9D005
|
||||
:10FC900080E1B7D0EECF823419F484E1D3D0F8CF2D
|
||||
:10FCA000853411F485E0FACF853581F4B1D0E82EA2
|
||||
:10FCB000AFD0F82E87FF07C08BB781608BBFEE0CEB
|
||||
:10FCC000FF1CB8D0E5CF8BB78E7FF8CF863579F49F
|
||||
:10FCD0009FD08D3451F49CD0CBB79AD0C170880F8F
|
||||
:10FCE0008C2B8BBF81E0AED0CCCF83E0FCCF8436B1
|
||||
:10FCF00009F046C08DD0C82FD0E0DC2FCC2788D0AB
|
||||
:10FD0000C82B86D0D82E5E018EEFB81A00E012E024
|
||||
:10FD10004801EFEF8E1A9E0A7BD0F80180838401A0
|
||||
:10FD20008A149B04A9F786D0F5E410E000E0DF1602
|
||||
:10FD300009F150E040E063E0C70153D08701C12CD6
|
||||
:10FD400092E0D92EF601419151916F0161E0C80115
|
||||
:10FD500048D00E5F1F4F2297A9F750E040E065E0C2
|
||||
:10FD6000C7013FD095CF6081C8018E0D9F1D01D185
|
||||
:10FD70000F5F1F4FF801FE5FC017D107A1F788CFB3
|
||||
:10FD8000843701F545D0C82FD0E0DC2FCC2740D0F8
|
||||
:10FD9000C82B3ED0D82E4ED08701F5E4DF120BC021
|
||||
:10FDA000CE0DDF1DC801DDD02CD00F5F1F4FC01757
|
||||
:10FDB000D107C1F76DCFF80187918F0122D021972C
|
||||
:10FDC000D1F766CF853739F435D08EE11AD088E97E
|
||||
:10FDD00018D081E05CCF813509F073CF88E024D062
|
||||
:10FDE00070CFFC010A0167BFE895112407B600FC3B
|
||||
:10FDF000FDCF667029F0452B19F481E187BFE895A6
|
||||
:10FE000008959091C00095FFFCCF8093C60008959F
|
||||
:10FE10008091C00087FFFCCF8091C00084FD01C0AD
|
||||
:10FE2000A8958091C6000895E0E6F0E098E19083FF
|
||||
:10FE300080830895EDDF803219F088E0F5DFFFCF91
|
||||
:10FE400084E1DFCFCF93C82FE3DFC150E9F7CF9133
|
||||
:10FE5000F1CFCF92DF92EF92FF92DC01CB01642FC2
|
||||
:10FE60006D01EE24FF24CBBEA901FF90EF90DF903F
|
||||
:10FE7000CF90B7CF2F923F924F925F926F927F9227
|
||||
:10FE80008F929F92AF92BF92CF92DF92EF92FF92AA
|
||||
:10FE90000F931F93CF93DF9300D0CDB7DEB7180138
|
||||
:10FEA000E9826B017C0110E000E029013A014C1865
|
||||
:10FEB0005D086E087F0846015701840C951CA61C3E
|
||||
:10FEC000B71C0215130531F489818823A1F188E05C
|
||||
:10FED000ABDFFFCF30E020E043E0C701B601B9DF80
|
||||
:10FEE00080E890E09B838A83ABBEF4012791369132
|
||||
:10FEF000C501B401641975098609970941E0A9DFB4
|
||||
:10FF00008A819B8101979B838A8392E0890E911C51
|
||||
:10FF1000A11CB11C8A819B81892B31F730E020E044
|
||||
:10FF200045E0C701B60195DF9FEFD91AE90AF90A42
|
||||
:10FF30000F5F1F4FC0CF0F900F900F90DF91CF91A9
|
||||
:10FF40001F910F91FF90EF90DF90CF90BF90AF90F7
|
||||
:10FF50009F908F907F906F905F904F903F902F90E9
|
||||
:10FF60000895F999FECF92BD81BDF89A992780B581
|
||||
:10FF70000895262FF999FECF1FBA92BD81BD20BDED
|
||||
:0EFF80000FB6F894FA9AF99A0FBE01960895FA
|
||||
:02FFFE000008F9
|
||||
:040000033000FC00CD
|
||||
:00000001FF
|
||||
1
compiled/Mega2560-optiboot/upload.bat
Normal file
1
compiled/Mega2560-optiboot/upload.bat
Normal file
@@ -0,0 +1 @@
|
||||
..\tools\win\tool-avrdude\avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -v -V -P com8 -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i
|
||||
1
compiled/Mega2560-optiboot/uploadOTA.bat
Normal file
1
compiled/Mega2560-optiboot/uploadOTA.bat
Normal file
@@ -0,0 +1 @@
|
||||
..\tools\arduinoOTA.exe -address 192.168.11.213 -port 80 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
15
compiled/check_bin.sh
Executable file
15
compiled/check_bin.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
diff ../.pio/build/due/firmware.bin due
|
||||
diff ../.pio/build/controllino/firmware.hex controllino
|
||||
diff ../.pio/build/m5stack/firmware.bin m5stack
|
||||
diff ../.pio/build/mega2560slim-5100/firmware.hex mega2560slim-5100
|
||||
diff ../.pio/build/mega2560slim-5100/firmware.bin mega2560slim-5100
|
||||
diff ../.pio/build/mega2560-optiboot/firmware.hex mega2560-optiboot
|
||||
diff ../.pio/build/mega2560-optiboot/firmware.bin mega2560-optiboot
|
||||
diff ../.pio/build/mega2560-5100/firmware.hex mega2560-5100
|
||||
diff ../.pio/build/nrf52840/firmware.hex nrf52840-5500
|
||||
diff ../.pio/build/esp32-wifi/firmware.bin esp32-wifi
|
||||
diff ../.pio/build/stm32-enc2860/firmware.bin stm32-enc2860
|
||||
diff ../.pio/build/esp8266-wifi/firmware.bin esp8266-wifi
|
||||
diff ../.pio/build/lighthub21/firmware.bin lighthub21
|
||||
diff ../.pio/build/mega2560-5500/firmware.hex mega2560-5500
|
||||
diff ../.pio/build/stm32/firmware.* stm32
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -1,3 +0,0 @@
|
||||
export PORT=cu.usbmodem1451
|
||||
echo . | stty -f /dev/$PORT speed 1200
|
||||
../tools/mac/tool-bossac/bossac -U false -p $PORT -i -e -w -v -b firmware.bin -R
|
||||
Binary file not shown.
@@ -1,3 +0,0 @@
|
||||
mode com3:1200,n,8,1
|
||||
pause
|
||||
..\tools\win\tool-bossac\bossac.exe -i --port=com3 -U false -e -w -v -b firmware.bin -R
|
||||
@@ -1 +0,0 @@
|
||||
../tools/mac/arduinoOTA -address 192.168.88.21 -port 65280 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
Binary file not shown.
2
compiled/due/sendcommand.sh
Executable file
2
compiled/due/sendcommand.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#../tools/mac/arduinoOTA -address 192.168.88.21 -port 65280 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
curl --basic --user arduino:password --data-ascii "$2" --url http://192.168.88.21:65280/command/$1
|
||||
@@ -1,3 +1,90 @@
|
||||
mode com3:1200,n,8,1
|
||||
pause
|
||||
C:\Users\Akmal\.platformio\packages\tool-bossac\bossac.exe -i --port=com3 -U false -e -w -v -b C:\Users\Akmal\ownCloud\compiled\due\Wiz5500\firmware.bin -R
|
||||
@ECHO off
|
||||
|
||||
REM Wait X second for memory on Arduino Due is erased.
|
||||
SET WAIT_ERASED=4
|
||||
|
||||
ECHO ------ External tool BossacArduinoDue started ------
|
||||
|
||||
REM number of command line arguments ok?
|
||||
REM IF [%1]==[] GOTO error_args
|
||||
REM IF [%2]==[] GOTO error_args
|
||||
|
||||
REM set command line arguments
|
||||
SET BOSSACPATH=..\tools\win\tool-bossac\bossac.exe
|
||||
SET BINFILE=firmware.bin
|
||||
|
||||
REM parse command line arguments
|
||||
SET BOSSACPATH=%BOSSACPATH:"=%
|
||||
SET BINFILE=%BINFILE:"=%
|
||||
|
||||
REM workeround for bug in Atmel Studio 6.0.1996 Service Pack 2
|
||||
SET BINFILE=%BINFILE:\\=\%
|
||||
SET BINFILE=%BINFILE:.cproj=%
|
||||
|
||||
REM bossac path exist?
|
||||
IF NOT EXIST "%BOSSACPATH%" GOTO error_arg1
|
||||
|
||||
REM bin file exist?
|
||||
IF NOT EXIST "%BINFILE%" GOTO error_binfile
|
||||
|
||||
REM fetch DeviceID of Arduino Due Programming Port from WMI Service
|
||||
FOR /f "tokens=* skip=1" %%a IN ('wmic PATH Win32_SerialPort Where "Caption LIKE '%%USB%%'" get DeviceID') DO (
|
||||
SET COMX=%%a
|
||||
GOTO exit1
|
||||
)
|
||||
|
||||
REM Arduino Due Programming Port not exist
|
||||
GOTO error_comport
|
||||
|
||||
:exit1
|
||||
|
||||
REM remove blank
|
||||
SET COMPORT=%COMX: =%
|
||||
|
||||
REM report in Atmel Studio 6.0 IDE output window
|
||||
ECHO BossacPath=%BOSSACPATH%
|
||||
ECHO BinFile=%BINFILE%
|
||||
ECHO Arduino Due Programming Port is detected as %COMPORT%.
|
||||
|
||||
REM The bossac bootloader only runs if the memory on Arduino Due is erased.
|
||||
REM The Arduino IDE does this by opening and closing the COM port at 1200 baud.
|
||||
REM This causes the Due to execute a soft erase command.
|
||||
ECHO Forcing reset using 1200bps open/close on port
|
||||
ECHO MODE %COMPORT%:1200,N,8,1
|
||||
MODE %COMPORT%:1200,N,8,1
|
||||
|
||||
REM Wait X second for memory on Arduino Due is erased.
|
||||
ECHO Wait for memory on Arduino Due is erased...
|
||||
PING -n %WAIT_ERASED% 127.0.0.1>NUL
|
||||
|
||||
REM Execute bossac.exe
|
||||
ECHO Execute bossac with command line:
|
||||
ECHO "%BOSSACPATH%" -i -d --port=%COMPORT% -U false -e -w -v -b "%BINFILE%" -R
|
||||
START /WAIT "" "%BOSSACPATH%" -i --port=%COMPORT% -U false -e -w -v -b "%BINFILE%" -R
|
||||
|
||||
GOTO end
|
||||
|
||||
:error_args
|
||||
ECHO Error: wrong number of command line arguments passed!
|
||||
GOTO end
|
||||
|
||||
:error_arg1
|
||||
ECHO Error: command line argument 1 - path to bossac.exe not exist! - "C:\Program Files (x86)\arduino-1.5.2\hardware\tools\bossac.exe"
|
||||
ECHO Error: command line argument 1 - argument passed = %1
|
||||
GOTO end
|
||||
|
||||
:error_arg2
|
||||
ECHO Error: command line argument 2 - path to bin file not exist! - use $(OutputDirectory)\$(OutputFileName).bin
|
||||
ECHO Error: command line argument 2 - argument passed = %1
|
||||
GOTO end
|
||||
|
||||
:error_binfile
|
||||
ECHO Error: bin file "%BINFILE%" not exist!
|
||||
GOTO end
|
||||
|
||||
:error_comport
|
||||
ECHO Error: Arduino Due Programming Port not found!
|
||||
|
||||
:end
|
||||
|
||||
ECHO ======================== Done ========================
|
||||
@@ -1,3 +0,0 @@
|
||||
mode com3:1200,n,8,1
|
||||
pause
|
||||
C:\Users\Akmal\.platformio\packages\tool-bossac\bossac.exe -i --port=com3 -U false -e -w -v -b C:\Users\Akmal\ownCloud\compiled\due\Wiz5500\firmware999.bin -R
|
||||
@@ -1,5 +1 @@
|
||||
<<<<<<< HEAD
|
||||
..\tools\win\arduinoOTA.exe -address 192.168.88.21 -port 65280 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
=======
|
||||
..\tools\win\arduinoOTA.exe -address 192.168.88.21 -port 65280 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
>>>>>>> 9b164a1dfc40ee0e8f29dbedff4f3954edf55d76
|
||||
|
||||
@@ -1 +1 @@
|
||||
../tools/mac/arduinoOTA -address 192.168.88.21 -port 65280 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
../tools/mac/arduinoOTA -address 192.168.88.21 -port 80 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
|
||||
Binary file not shown.
BIN
compiled/esp32-wifi/data.bin
Normal file
BIN
compiled/esp32-wifi/data.bin
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
1
compiled/esp32-wifi/data/config.bin
Normal file
1
compiled/esp32-wifi/data/config.bin
Normal file
@@ -0,0 +1 @@
|
||||
1234567890
|
||||
62
compiled/esp32-wifi/data/config.json
Normal file
62
compiled/esp32-wifi/data/config.json
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"syslog":["192.168.88.2"],
|
||||
"mqtt1":["esp32","m2m.eclipse.org"],
|
||||
"mqtt":["elevator","192.168.88.2"],
|
||||
"mqtt4":["esp32","test.mosquitto.org"],
|
||||
"dmx":[30],
|
||||
"items": {
|
||||
"relay1":[6,32],
|
||||
"relay2":[6,33],
|
||||
"relays":[7,["relay1","relay2"]],
|
||||
"sensair1":[44,[254,
|
||||
"sensair",
|
||||
{"co2":{"emit":"co2"}},
|
||||
{"mode":"auto"}
|
||||
]
|
||||
],
|
||||
"elevator":[15,{"baud":9600,"serial":"8N1","ip":"192.168.88.255","port":502}],
|
||||
|
||||
"aaa1":[44,[254,
|
||||
"aaa",
|
||||
{"aaa1":{"emit":"aaa2"}},
|
||||
{"mode":"auto"}
|
||||
]
|
||||
]
|
||||
},
|
||||
"modbus":
|
||||
{
|
||||
"aaa":
|
||||
{"baud":19200,
|
||||
"poll":{"irs":[1]},
|
||||
"par":{
|
||||
"aaa1":{"ir":1}
|
||||
}
|
||||
|
||||
},
|
||||
"sensair":{"baud":9600,
|
||||
"poll":{"irs":[[0,3],21,[25,30]],"regs":[0,1,31],"delay":1000},
|
||||
"par":{
|
||||
"co2":{"ir":3},
|
||||
"meterStat":{"ir":0},
|
||||
"alarmStat":{"ir":1},
|
||||
"outStat":{"ir":0},
|
||||
"pwm":{"ir":21},
|
||||
"typeid":{"ir":25,"type":"u32"},
|
||||
"mapver":{"ir":27},
|
||||
"fwver":{"ir":28},
|
||||
"sensorid":{"ir":29,"type":"u32"},
|
||||
"ack":{"reg":0},
|
||||
"command":{"reg":1},
|
||||
"abc":{"reg":31}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
"in":{ "34":{"item":"relays","emit":"myhome/in/bedr","scmd":"TOGGLE","rcmd":""},
|
||||
|
||||
"17":{"T":64,"emit":"analog","map":[0,1024,0,100,15]}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
2
compiled/esp32-wifi/uploadCFG.sh
Executable file
2
compiled/esp32-wifi/uploadCFG.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
~/.platformio/packages/tool-mkspiffs/mkspiffs_espressif32_arduino -s 20480 -c data data.bin
|
||||
../tools/mac/arduinoOTA -v -address 192.168.88.50 -port 80 -username arduino -password password -sketch data.bin -upload /data -b
|
||||
@@ -1 +0,0 @@
|
||||
../tools/mac/arduinoOTA -address 192.168.8.58 -port 65280 -username arduino -password password -sketch StartCounter.ino.bin -b -upload /sketch
|
||||
@@ -1 +1 @@
|
||||
../tools/mac/arduinoOTA -address 192.168.88.45 -port 65280 -username arduino -password password -sketch firmware.bin -upload /sketch -b
|
||||
../tools/mac/arduinoOTA -v -address 192.168.11.207 -port 80 -username arduino -password password -sketch firmware.bin -upload /sketch -b
|
||||
BIN
compiled/esp8266-wifi/esp12-noserial/firmware.bin
Normal file
BIN
compiled/esp8266-wifi/esp12-noserial/firmware.bin
Normal file
Binary file not shown.
31
compiled/esp8266-wifi/esp12-noserial/options.txt
Normal file
31
compiled/esp8266-wifi/esp12-noserial/options.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
Компактная сборка с набором опций, умещающаяся в 50 процентов flash ESP12
|
||||
CLI и отладочная информация на serial0 отключена для возможности использования PIN0-1
|
||||
|
||||
(-)MULTIVENT
|
||||
(+)PWM_RELAY
|
||||
(+)MDNS
|
||||
(-)UARTBRIDGE
|
||||
(+)SYSLOG
|
||||
(+)PID
|
||||
(-)MCP23017
|
||||
(-)ARTNET
|
||||
(+)OTA
|
||||
(-)SPI LED
|
||||
(-)MOTOR CTR
|
||||
(+)AC HAIER
|
||||
(+)CCS811 & HDC1080
|
||||
(+)RESTART_LAN_ON_MQTT_ERRORS
|
||||
(-)HARDRESET, using soft
|
||||
(-)COUNTER
|
||||
(+)DHT
|
||||
(-)OWIRE
|
||||
(-)IPMODBUS
|
||||
(-)MODBUS
|
||||
(-)DMX
|
||||
(+)WiFi
|
||||
(+)FreeRam printing
|
||||
(+)WATCHDOG
|
||||
|
||||
Config server:lazyhome.ru
|
||||
201703L C++
|
||||
version:e9355ef_2023-10-31
|
||||
Binary file not shown.
BIN
compiled/esp8266-wifi/full/firmware.bin
Normal file
BIN
compiled/esp8266-wifi/full/firmware.bin
Normal file
Binary file not shown.
32
compiled/esp8266-wifi/full/options.txt
Normal file
32
compiled/esp8266-wifi/full/options.txt
Normal file
@@ -0,0 +1,32 @@
|
||||
Полная версия прошивки
|
||||
|
||||
(+)MULTIVENT
|
||||
(+)PWM_RELAY
|
||||
(+)MDNS
|
||||
(-)UARTBRIDGE
|
||||
(+)SYSLOG
|
||||
(+)PID
|
||||
(+)MCP23017
|
||||
(+)ARTNET
|
||||
(+)OTA
|
||||
(+)SPI LED
|
||||
(+)MOTOR CTR
|
||||
(+)AC HAIER
|
||||
(+)CCS811 & HDC1080
|
||||
(+)RESTART_LAN_ON_MQTT_ERRORS
|
||||
(-)HARDRESET, using soft
|
||||
(+)COUNTER
|
||||
(+)DHT
|
||||
(-)DS2482-100 USE_1W_PIN
|
||||
(+)OWIRE
|
||||
(-)IPMODBUS
|
||||
(+)MODBUS SERIAL_8N1 at Serial1 speed:9600
|
||||
(+)ADAFRUIT LED
|
||||
(+)DMX
|
||||
(+)WiFi
|
||||
(+)FreeRam printing
|
||||
(+)WATCHDOG
|
||||
|
||||
lazyhome.ru
|
||||
Config server:
|
||||
201703L C++ version:e9355ef_2023-10-31
|
||||
1
compiled/esp8266-wifi/full/ota.sh
Executable file
1
compiled/esp8266-wifi/full/ota.sh
Executable file
@@ -0,0 +1 @@
|
||||
../../tools/mac/arduinoOTA -address 192.168.11.208 -port 80 -username arduino -password password -b -upload /sketch -sketch firmware.bin
|
||||
1
compiled/esp8266-wifi/ota.bat
Normal file
1
compiled/esp8266-wifi/ota.bat
Normal file
@@ -0,0 +1 @@
|
||||
arduinoOTA -address 192.168.11.208 -port 80 -username arduino -password password -b -upload /sketch -sketch firmware.bin
|
||||
1
compiled/esp8266-wifi/ota.sh
Executable file
1
compiled/esp8266-wifi/ota.sh
Executable file
@@ -0,0 +1 @@
|
||||
../tools/mac/arduinoOTA -address 192.168.11.208 -port 80 -username arduino -password password -b -upload /sketch -sketch firmware.bin
|
||||
1
compiled/lighthub21/ListSerialPorts.bat
Normal file
1
compiled/lighthub21/ListSerialPorts.bat
Normal file
@@ -0,0 +1 @@
|
||||
wmic PATH Win32_SerialPort get DeviceID
|
||||
215
compiled/lighthub21/data/config.json
Normal file
215
compiled/lighthub21/data/config.json
Normal file
@@ -0,0 +1,215 @@
|
||||
{
|
||||
"dmx":[3,60],
|
||||
"syslog":["192.168.88.2"],
|
||||
"dmxin":["led5","led6","led7","led8"],
|
||||
"topics":{"root":"lazyhome.ru"},
|
||||
"mqtt":["lazyhome.ru-939a","192.168.88.3"],
|
||||
"modbus":
|
||||
{
|
||||
"airset":{
|
||||
"baud":9600,
|
||||
"serial":"8E1",
|
||||
"poll":{"regs":[[0,38],[1000,1008]],"delay":100000},
|
||||
"par":{
|
||||
"uheat":{"reg":0,"type":"u16"},
|
||||
"umot":{"reg":2,"type":"u16"},
|
||||
"amode":{"reg":3,"type":"u8","map":{}},
|
||||
"onoff":{"reg":1000},
|
||||
"fsauto":{"reg":1001},
|
||||
"pmode":{"reg":1002},
|
||||
"set":{"reg":1003},
|
||||
"frcautoff":{"reg":1007},
|
||||
"fault":{"reg":1008},
|
||||
|
||||
"t_heat":{"reg":8,"map":[0,1024,0,1024],"type":"i16"},
|
||||
"mode":{"reg":24}
|
||||
|
||||
}
|
||||
},
|
||||
"dim4":{"serial":"8N1",
|
||||
"poll":{"regs":[[0,4]],"delay":100000},
|
||||
"par":{
|
||||
"ch1":{"reg":0,"map":[]},
|
||||
"ch2":{"reg":1,"map":[]},
|
||||
"ch3":{"reg":2,"map":[]},
|
||||
"ch4":{"reg":3,"map":[]}
|
||||
}
|
||||
},
|
||||
"panel":{
|
||||
"serial":"8E1",
|
||||
"poll":{"regs":[[40000,40014],[30000,30002]],"delay":10000},
|
||||
"par":{
|
||||
"fan" :{"reg":40000,"map":[1,[0,7,0,100]],"id":1},
|
||||
"mode" :{"reg":40001,"mapcmd":[2,[[1,"FAN_ONLY"],[2,"HEAT"],[4,"COOL"],[8,"AUTO"]]]},
|
||||
"set" :{"reg":40002,"id":2},
|
||||
"pwr" :{"reg":40003,"mapcmd":[2,[[0,2],[1,1]]]},
|
||||
"alm01":{"reg":40004},
|
||||
"alm17":{"reg":40005},
|
||||
"alm33":{"reg":40006},
|
||||
"sethum" :{"reg":40007,"id":3},
|
||||
"setvoc" :{"reg":40008,"id":4},
|
||||
|
||||
"temp" :{"reg":30000,"map":[1,[-1000,1000,-100.0,100.0]],"type":"x10"},
|
||||
"hum" :{"reg":30001},
|
||||
"voc" :{"reg":30002},
|
||||
|
||||
"ch_temp" :{"reg":40009,"type":"x10","id":5},
|
||||
"ext_temp" :{"reg":40010,"type":"x10","id":6},
|
||||
"out_temp" :{"reg":40011,"type":"x10","id":7},
|
||||
"water_temp" :{"reg":40012,"type":"x10","id":8},
|
||||
"ch_hum" :{"reg":40013},
|
||||
"heat_pwr":{"reg":40014}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"ow":{
|
||||
"2861641227C1EFED":[{"emit":"t_1","item":"pid0/val"},{"emit":"pid_t"}]
|
||||
},
|
||||
"items": {
|
||||
"dimer1":[44,[1,
|
||||
"dim4",
|
||||
{"ch1":{"emit":"aaa1"},"ch2":{"emit":"aaa2"},"ch3":{"emit":"aaa3"}},
|
||||
{"mode":"auto"}
|
||||
]
|
||||
],
|
||||
|
||||
"p_bedr":[44,[2,"panel",
|
||||
{
|
||||
"fan" :{"sa":10, "act":
|
||||
[
|
||||
{"emit":"edem/ac/bedr/fan"},
|
||||
{"emit":"edem/vent/bedr/fan"}
|
||||
]
|
||||
},
|
||||
|
||||
"mode":{"sa":11,"emit":"edem/ac/bedr/mode"},
|
||||
"pwr" :{"sa":12,"emit":"edem/ac/bedr/pwr"},
|
||||
|
||||
"sethum":{"emit":"edem/vent/hum_bedr/set","item":"thermostat/set"},
|
||||
"hum" :{"emit":"edem/vent/hum_bedr/val"},
|
||||
|
||||
"setvoc":{"emit":"edem/vent/bedr/set","item":"lled/sat"},
|
||||
"voc" :{"emit":"edem/vent/bedr/val"},
|
||||
|
||||
"set" :{"sa":13, "act":
|
||||
[
|
||||
{"emit":"edem/fl2/term_bedr/set"},
|
||||
{"emit":"edem/ac/bedr/set","item":"pid0/set"}
|
||||
]
|
||||
},
|
||||
"temp" :{"emit":"edem/fl2/term_bedr/1/val"},
|
||||
"ch_temp":{"sa":14},
|
||||
"ch_hum":{"sa":15},
|
||||
"ext_temp":{"sa":16},
|
||||
"out_temp":{"sa":17},
|
||||
"water_temp":{"sa":18},
|
||||
"heat_pwr":{"sa":19},
|
||||
"cmd":{"sa":2,"reg":"mode","on":1,"off":0}
|
||||
}
|
||||
]],
|
||||
"airset1":[44,[247,"airset"]],
|
||||
"mbusdim1":[44,[1,0,3,100]],
|
||||
"mbusdim2":[44,[1,1,3,100]],
|
||||
"mbusdim3":[44,[1,2,3,100]],
|
||||
"mbusdim4":[44,[1,3,3,100]],
|
||||
"relay":[6,22],
|
||||
"pout1":[6,23],
|
||||
"pout2":[6,24],
|
||||
"pout3":[6,25],
|
||||
"pout4":[33,9],
|
||||
"pout5":[33,8],
|
||||
"pout6":[33,11],
|
||||
"pout7":[33,12],
|
||||
"lled":[3,[9,8,11,12]],
|
||||
"pwm0" :[33,4],
|
||||
"pwm1" :[33,5],
|
||||
"pwm2" :[3,6],
|
||||
"pwm3" :[3,7],
|
||||
"pwm10":[3,3],
|
||||
"thermostat":[5,2,33],
|
||||
"airgate1":[12,[-4,-27,59,617,284,5000]],
|
||||
"airgate2":[12,[-5,-26,60,750,160,5000]],
|
||||
"airgates":[7,["airgate1","airgate2"]],
|
||||
"pid0":[413,
|
||||
[
|
||||
[20,0.2,7,0,100],
|
||||
[{"item":"airgates/set","emit":"pid_out","pin":29},{"item":"pwm10/set"}]],
|
||||
32.1],
|
||||
"relaytermostat":[16,[[2,3.5,10000],{"pin":28},33]],
|
||||
"virtualAC0":[17,[]],
|
||||
"vent5":[18,
|
||||
{
|
||||
"":{"item":"dimmer3/set"},
|
||||
"airgate1":{"V":100,"set":255,"item":"airgate1/set"},
|
||||
"airgate2":{"V":200,"set":128,"cmd":2,"item":"airgate2/set"},
|
||||
"airgate4":{"V":150,"set":0,"emit":"edem/in/airgate4/set"}
|
||||
}
|
||||
],
|
||||
|
||||
|
||||
"unprot0":[6,33],
|
||||
"unprot1":[6,32],
|
||||
"unprot2":[6,31],
|
||||
"unprot3":[6,30],
|
||||
"unprot4":[6,29],
|
||||
"unprot5":[6,28],
|
||||
"unprot6":[66,27],
|
||||
"unprot7":[66,26],
|
||||
"led": [1,1],
|
||||
"led2":[1,5],
|
||||
"led3":[1,9],
|
||||
"led4":[1,13],
|
||||
"led5":[1,17],
|
||||
"led6":[1,21],
|
||||
"led7":[1,25],
|
||||
"led8":[1,29],
|
||||
"dimmer" :[0,33],
|
||||
"dimmer2":[0,34],
|
||||
"dimmer3":[0,35],
|
||||
"dimmer4":[0,36],
|
||||
"dimmer5":[0,37],
|
||||
"dimmer6":[0,38],
|
||||
"dimmers":[7,["dimmer","dimmer2","dimmer3","dimmer4","dimmer5","dimmer6"]],
|
||||
"leds":[7,["led","led2","led3","led4","led5","led6"]],
|
||||
"mbuses":[7,["mbusdim1","mbusdim2","mbusdim3","mbusdim4"]],
|
||||
"all":[7,["dimmers","uouts","relays","leds","mbuses"]],
|
||||
"relays":[7,["relay","pout1","pout2","pout3","pout4","pout5","pout6","pout7"]],
|
||||
"uouts":[7,["unprot0","unprot1","unprot2","unprot3","unprot4","unprot5","unprot6","unprot7"]]
|
||||
},
|
||||
"in":{
|
||||
"42":{"emit":"in0"},
|
||||
"44":{"emit":"in1"},
|
||||
"46":{"emit":"in2"},
|
||||
"49":{"emit":"in3"},
|
||||
"43":{"emit":"in4"},
|
||||
"45":{"emit":"in5"},
|
||||
"47":{"emit":"in6"},
|
||||
"48":{"emit":"in7"},
|
||||
"34":{"emit":"in8"},
|
||||
"36":{"emit":"in9","item":"unprot0","scmd":"TOGGLE","rcmd":""},
|
||||
"38":{"emit":"in10","item":"dimmers","scmd":"TOGGLE","rcmd":""},
|
||||
"40":{"emit":"in11","item":"leds","scmd":"TOGGLE","rcmd":""},
|
||||
"35":{"emit":"in12","item":"mbuses","scmd":"TOGGLE","rcmd":""},
|
||||
"37":{"emit":"in13","item":"relays","scmd":"TOGGLE","rcmd":""},
|
||||
"39":{"emit":"in14","item":"uouts","scmd":"TOGGLE","rcmd":""},
|
||||
"41":{"emit":"in15","item":"all","scmd":"TOGGLE","rcmd":""},
|
||||
|
||||
"54":{"T":66,"emit":"myhome/in/a00","map":[0,1024,0,1024,10]},
|
||||
"55":{"T":66,"emit":"myhome/in/a01","map":[0,1024,0,1024,10]},
|
||||
"56":{"T":66,"emit":"myhome/in/a02","map":[0,1024,0,1024,10]},
|
||||
"57":{"T":66,"emit":"myhome/in/a03","map":[0,1024,0,1024,10]},
|
||||
"58":{"T":66,"emit":"myhome/in/a04","map":[0,1024,0,1024,10]},
|
||||
|
||||
"61":{"T":66,"emit":"myhome/in/a07","map":[0,1024,0,1024,10]},
|
||||
"62":{"T":66,"emit":"myhome/in/a08","map":[0,1024,0,1024,10]},
|
||||
"63":{"T":66,"emit":"myhome/in/a09","map":[0,1024,0,1024,10]},
|
||||
"64":{"T":66,"emit":"myhome/in/a10","map":[0,1024,0,1024,10]},
|
||||
"65":{"T":66,"emit":"myhome/in/a11","map":[0,1024,0,1024,10]},
|
||||
"66":{"T":0,"emit":"myhome/in/d12"},
|
||||
"67":{"T":0,"emit":"myhome/in/d13"},
|
||||
"68":{"T":0,"emit":"myhome/in/d14"},
|
||||
"69":{"T":0,"emit":"myhome/in/d15"}
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
91
compiled/lighthub21/unlock/unlock.bat
Normal file
91
compiled/lighthub21/unlock/unlock.bat
Normal file
@@ -0,0 +1,91 @@
|
||||
@ECHO off
|
||||
|
||||
REM Wait X second for memory on Arduino Due is erased.
|
||||
SET WAIT_ERASED=4
|
||||
|
||||
ECHO ------ External tool BossacArduinoDue started ------
|
||||
|
||||
REM number of command line arguments ok?
|
||||
REM IF [%1]==[] GOTO error_args
|
||||
REM IF [%2]==[] GOTO error_args
|
||||
|
||||
REM set command line arguments
|
||||
SET BOSSACPATH=..\tools\win\tool-bossac\bossac.exe
|
||||
SET BINFILE=firmware.bin
|
||||
|
||||
REM parse command line arguments
|
||||
SET BOSSACPATH=%BOSSACPATH:"=%
|
||||
SET BINFILE=%BINFILE:"=%
|
||||
|
||||
REM workeround for bug in Atmel Studio 6.0.1996 Service Pack 2
|
||||
SET BINFILE=%BINFILE:\\=\%
|
||||
SET BINFILE=%BINFILE:.cproj=%
|
||||
|
||||
REM bossac path exist?
|
||||
IF NOT EXIST "%BOSSACPATH%" GOTO error_arg1
|
||||
|
||||
REM bin file exist?
|
||||
IF NOT EXIST "%BINFILE%" GOTO error_binfile
|
||||
|
||||
REM fetch DeviceID of Arduino Due Programming Port from WMI Service
|
||||
FOR /f "tokens=* skip=1" %%a IN ('wmic PATH Win32_SerialPort Where "Caption LIKE '%%BOSSA%%'" get DeviceID') DO (
|
||||
SET COMX=%%a
|
||||
GOTO exit1
|
||||
)
|
||||
|
||||
REM Arduino Due Programming Port not exist
|
||||
GOTO error_comport
|
||||
|
||||
:exit1
|
||||
|
||||
REM remove blank
|
||||
SET COMPORT=%COMX: =%
|
||||
|
||||
REM report in Atmel Studio 6.0 IDE output window
|
||||
ECHO BossacPath=%BOSSACPATH%
|
||||
ECHO BinFile=%BINFILE%
|
||||
ECHO Arduino Due Programming Port is detected as %COMPORT%.
|
||||
|
||||
REM The bossac bootloader only runs if the memory on Arduino Due is erased.
|
||||
REM The Arduino IDE does this by opening and closing the COM port at 1200 baud.
|
||||
REM This causes the Due to execute a soft erase command.
|
||||
ECHO Forcing reset using 1200bps open/close on port
|
||||
ECHO MODE %COMPORT%:1200,N,8,1
|
||||
MODE %COMPORT%:1200,N,8,1
|
||||
|
||||
REM Wait X second for memory on Arduino Due is erased.
|
||||
ECHO Wait for memory on Arduino Due is erased...
|
||||
PING -n %WAIT_ERASED% 127.0.0.1>NUL
|
||||
|
||||
REM Execute bossac.exe
|
||||
ECHO Execute bossac with command line:
|
||||
|
||||
"%BOSSACPATH%" -i --port=%COMPORT% --unlock -R
|
||||
REM START /WAIT "" "%BOSSACPATH%" -i --port=%COMPORT% -u -e -w -v -b "%BINFILE%" -R
|
||||
|
||||
GOTO end
|
||||
|
||||
:error_args
|
||||
ECHO Error: wrong number of command line arguments passed!
|
||||
GOTO end
|
||||
|
||||
:error_arg1
|
||||
ECHO Error: command line argument 1 - path to bossac.exe not exist! - "C:\Program Files (x86)\arduino-1.5.2\hardware\tools\bossac.exe"
|
||||
ECHO Error: command line argument 1 - argument passed = %1
|
||||
GOTO end
|
||||
|
||||
:error_arg2
|
||||
ECHO Error: command line argument 2 - path to bin file not exist! - use $(OutputDirectory)\$(OutputFileName).bin
|
||||
ECHO Error: command line argument 2 - argument passed = %1
|
||||
GOTO end
|
||||
|
||||
:error_binfile
|
||||
ECHO Error: bin file "%BINFILE%" not exist!
|
||||
GOTO end
|
||||
|
||||
:error_comport
|
||||
ECHO Error: Arduino Due Programming Port not found!
|
||||
|
||||
:end
|
||||
|
||||
ECHO ======================== Done ========================
|
||||
@@ -1,3 +1,90 @@
|
||||
mode com3:1200,n,8,1
|
||||
pause
|
||||
..\tools\win\tool-bossac\bossac.exe -i --port=com3 -U false -e -w -v -b firmware.bin -R
|
||||
@ECHO off
|
||||
|
||||
REM Wait X second for memory on Arduino Due is erased.
|
||||
SET WAIT_ERASED=4
|
||||
|
||||
ECHO ------ External tool BossacArduinoDue started ------
|
||||
|
||||
REM number of command line arguments ok?
|
||||
REM IF [%1]==[] GOTO error_args
|
||||
REM IF [%2]==[] GOTO error_args
|
||||
|
||||
REM set command line arguments
|
||||
SET BOSSACPATH=..\tools\win\tool-bossac\bossac.exe
|
||||
SET BINFILE=firmware.bin
|
||||
|
||||
REM parse command line arguments
|
||||
SET BOSSACPATH=%BOSSACPATH:"=%
|
||||
SET BINFILE=%BINFILE:"=%
|
||||
|
||||
REM workeround for bug in Atmel Studio 6.0.1996 Service Pack 2
|
||||
SET BINFILE=%BINFILE:\\=\%
|
||||
SET BINFILE=%BINFILE:.cproj=%
|
||||
|
||||
REM bossac path exist?
|
||||
IF NOT EXIST "%BOSSACPATH%" GOTO error_arg1
|
||||
|
||||
REM bin file exist?
|
||||
IF NOT EXIST "%BINFILE%" GOTO error_binfile
|
||||
|
||||
REM fetch DeviceID of Arduino Due Programming Port from WMI Service
|
||||
FOR /f "tokens=* skip=1" %%a IN ('wmic PATH Win32_SerialPort Where "Caption LIKE '%%Due%%'" get DeviceID') DO (
|
||||
SET COMX=%%a
|
||||
GOTO exit1
|
||||
)
|
||||
|
||||
REM Arduino Due Programming Port not exist
|
||||
GOTO error_comport
|
||||
|
||||
:exit1
|
||||
|
||||
REM remove blank
|
||||
SET COMPORT=%COMX: =%
|
||||
|
||||
REM report in Atmel Studio 6.0 IDE output window
|
||||
ECHO BossacPath=%BOSSACPATH%
|
||||
ECHO BinFile=%BINFILE%
|
||||
ECHO Arduino Due Programming Port is detected as %COMPORT%.
|
||||
|
||||
REM The bossac bootloader only runs if the memory on Arduino Due is erased.
|
||||
REM The Arduino IDE does this by opening and closing the COM port at 1200 baud.
|
||||
REM This causes the Due to execute a soft erase command.
|
||||
ECHO Forcing reset using 1200bps open/close on port
|
||||
ECHO MODE %COMPORT%:1200,N,8,1
|
||||
MODE %COMPORT%:1200,N,8,1
|
||||
|
||||
REM Wait X second for memory on Arduino Due is erased.
|
||||
ECHO Wait for memory on Arduino Due is erased...
|
||||
PING -n %WAIT_ERASED% 127.0.0.1>NUL
|
||||
|
||||
REM Execute bossac.exe
|
||||
ECHO Execute bossac with command line:
|
||||
"%BOSSACPATH%" -i --port=%COMPORT% -U false -w -v -b "%BINFILE%" -R
|
||||
REM START /WAIT "" "%BOSSACPATH%" -i --port=%COMPORT% -U false -e -w -v -b "%BINFILE%" -R
|
||||
|
||||
GOTO end
|
||||
|
||||
:error_args
|
||||
ECHO Error: wrong number of command line arguments passed!
|
||||
GOTO end
|
||||
|
||||
:error_arg1
|
||||
ECHO Error: command line argument 1 - path to bossac.exe not exist! - "C:\Program Files (x86)\arduino-1.5.2\hardware\tools\bossac.exe"
|
||||
ECHO Error: command line argument 1 - argument passed = %1
|
||||
GOTO end
|
||||
|
||||
:error_arg2
|
||||
ECHO Error: command line argument 2 - path to bin file not exist! - use $(OutputDirectory)\$(OutputFileName).bin
|
||||
ECHO Error: command line argument 2 - argument passed = %1
|
||||
GOTO end
|
||||
|
||||
:error_binfile
|
||||
ECHO Error: bin file "%BINFILE%" not exist!
|
||||
GOTO end
|
||||
|
||||
:error_comport
|
||||
ECHO Error: Arduino Due Programming Port not found!
|
||||
|
||||
:end
|
||||
|
||||
ECHO ======================== Done ========================
|
||||
1
compiled/lighthub21/uploadCFG.sh
Executable file
1
compiled/lighthub21/uploadCFG.sh
Executable file
@@ -0,0 +1 @@
|
||||
../tools/mac/arduinoOTA -address 192.168.88.45 -port 65280 -username arduino -password password -sketch data/config.json -b -upload /data
|
||||
91
compiled/lighthub21/uploadNative.bat
Normal file
91
compiled/lighthub21/uploadNative.bat
Normal file
@@ -0,0 +1,91 @@
|
||||
@ECHO off
|
||||
|
||||
REM Wait X second for memory on Arduino Due is erased.
|
||||
SET WAIT_ERASED=4
|
||||
|
||||
ECHO ------ External tool BossacArduinoDue started ------
|
||||
|
||||
REM number of command line arguments ok?
|
||||
REM IF [%1]==[] GOTO error_args
|
||||
REM IF [%2]==[] GOTO error_args
|
||||
|
||||
REM set command line arguments
|
||||
SET BOSSACPATH=..\tools\win\tool-bossac\bossac.exe
|
||||
SET BINFILE=firmware.bin
|
||||
|
||||
REM parse command line arguments
|
||||
SET BOSSACPATH=%BOSSACPATH:"=%
|
||||
SET BINFILE=%BINFILE:"=%
|
||||
|
||||
REM workeround for bug in Atmel Studio 6.0.1996 Service Pack 2
|
||||
SET BINFILE=%BINFILE:\\=\%
|
||||
SET BINFILE=%BINFILE:.cproj=%
|
||||
|
||||
REM bossac path exist?
|
||||
IF NOT EXIST "%BOSSACPATH%" GOTO error_arg1
|
||||
|
||||
REM bin file exist?
|
||||
IF NOT EXIST "%BINFILE%" GOTO error_binfile
|
||||
|
||||
REM fetch DeviceID of Arduino Due Programming Port from WMI Service
|
||||
FOR /f "tokens=* skip=1" %%a IN ('wmic PATH Win32_SerialPort Where "Caption LIKE '%%BOSSA%%'" get DeviceID') DO (
|
||||
SET COMX=%%a
|
||||
GOTO exit1
|
||||
)
|
||||
|
||||
REM Arduino Due Programming Port not exist
|
||||
GOTO error_comport
|
||||
|
||||
:exit1
|
||||
|
||||
REM remove blank
|
||||
SET COMPORT=%COMX: =%
|
||||
|
||||
REM report in Atmel Studio 6.0 IDE output window
|
||||
ECHO BossacPath=%BOSSACPATH%
|
||||
ECHO BinFile=%BINFILE%
|
||||
ECHO Arduino Due Programming Port is detected as %COMPORT%.
|
||||
|
||||
REM The bossac bootloader only runs if the memory on Arduino Due is erased.
|
||||
REM The Arduino IDE does this by opening and closing the COM port at 1200 baud.
|
||||
REM This causes the Due to execute a soft erase command.
|
||||
ECHO Forcing reset using 1200bps open/close on port
|
||||
ECHO MODE %COMPORT%:1200,N,8,1
|
||||
MODE %COMPORT%:1200,N,8,1
|
||||
|
||||
REM Wait X second for memory on Arduino Due is erased.
|
||||
ECHO Wait for memory on Arduino Due is erased...
|
||||
PING -n %WAIT_ERASED% 127.0.0.1>NUL
|
||||
|
||||
REM Execute bossac.exe
|
||||
ECHO Execute bossac with command line:
|
||||
|
||||
"%BOSSACPATH%" -i --port=%COMPORT% -w -v -b "%BINFILE%" -R
|
||||
REM START /WAIT "" "%BOSSACPATH%" -i --port=%COMPORT% -u -e -w -v -b "%BINFILE%" -R
|
||||
|
||||
GOTO end
|
||||
|
||||
:error_args
|
||||
ECHO Error: wrong number of command line arguments passed!
|
||||
GOTO end
|
||||
|
||||
:error_arg1
|
||||
ECHO Error: command line argument 1 - path to bossac.exe not exist! - "C:\Program Files (x86)\arduino-1.5.2\hardware\tools\bossac.exe"
|
||||
ECHO Error: command line argument 1 - argument passed = %1
|
||||
GOTO end
|
||||
|
||||
:error_arg2
|
||||
ECHO Error: command line argument 2 - path to bin file not exist! - use $(OutputDirectory)\$(OutputFileName).bin
|
||||
ECHO Error: command line argument 2 - argument passed = %1
|
||||
GOTO end
|
||||
|
||||
:error_binfile
|
||||
ECHO Error: bin file "%BINFILE%" not exist!
|
||||
GOTO end
|
||||
|
||||
:error_comport
|
||||
ECHO Error: Arduino Due Programming Port not found!
|
||||
|
||||
:end
|
||||
|
||||
ECHO ======================== Done ========================
|
||||
1
compiled/lighthub21/uploadOTA.BAT
Normal file
1
compiled/lighthub21/uploadOTA.BAT
Normal file
@@ -0,0 +1 @@
|
||||
..\tools\arduinoOTA -address 192.168.11.204 -port 80 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
@@ -1,5 +0,0 @@
|
||||
<<<<<<< HEAD
|
||||
..\tools\win\arduinoOTA.exe -address 192.168.88.21 -port 65280 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
=======
|
||||
..\tools\win\arduinoOTA.exe -address 192.168.88.21 -port 65280 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
>>>>>>> 9b164a1dfc40ee0e8f29dbedff4f3954edf55d76
|
||||
@@ -1 +1 @@
|
||||
../tools/mac/arduinoOTA -address 192.168.11.172 -port 65280 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
../tools/mac/arduinoOTA -address 192.168.11.172 -port 80 -username arduino -password password -sketch firmware.bin -b -upload /sketch
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
BIN
compiled/mega2560slim/firmware.bin
Executable file
BIN
compiled/mega2560slim/firmware.bin
Executable file
Binary file not shown.
7074
compiled/mega2560slim/firmware.hex
Normal file
7074
compiled/mega2560slim/firmware.hex
Normal file
File diff suppressed because it is too large
Load Diff
1
compiled/mega2560slim/update_bin.sh
Normal file
1
compiled/mega2560slim/update_bin.sh
Normal file
@@ -0,0 +1 @@
|
||||
cp ../../.pio/build/lighthub21/firmware.bin .
|
||||
1
compiled/mega2560slim/uploadOTA.sh
Executable file
1
compiled/mega2560slim/uploadOTA.sh
Executable file
@@ -0,0 +1 @@
|
||||
../tools/mac/tool-avrdude/avrdude -C ../tools/mac/tool-avrdude/avrdude.conf -P net:192.168.88.2:23000 -v -V -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i
|
||||
6597
compiled/nrf52840-5500
Normal file
6597
compiled/nrf52840-5500
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
6626
compiled/nrf52840/firmware.hex
Normal file
6626
compiled/nrf52840/firmware.hex
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
compiled/stm32/firmware.bin
Executable file
BIN
compiled/stm32/firmware.bin
Executable file
Binary file not shown.
BIN
compiled/stm32/firmware.elf
Executable file
BIN
compiled/stm32/firmware.elf
Executable file
Binary file not shown.
9850
compiled/stm32/firmware.map
Normal file
9850
compiled/stm32/firmware.map
Normal file
File diff suppressed because it is too large
Load Diff
1
compiled/stm32/upload.sh
Executable file
1
compiled/stm32/upload.sh
Executable file
@@ -0,0 +1 @@
|
||||
dfu-util -D firmware.bin -a 1
|
||||
BIN
compiled/tools/arduinoOTA
Executable file
BIN
compiled/tools/arduinoOTA
Executable file
Binary file not shown.
BIN
compiled/tools/arduinoOTA.exe
Normal file
BIN
compiled/tools/arduinoOTA.exe
Normal file
Binary file not shown.
Binary file not shown.
BIN
compiled/tools/mac/tool-esptool/avrdude
Normal file
BIN
compiled/tools/mac/tool-esptool/avrdude
Normal file
Binary file not shown.
Binary file not shown.
BIN
compiled/tools/win/tool-esptool/esptool
Normal file
BIN
compiled/tools/win/tool-esptool/esptool
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
||||
mode com3:1200,n,8,1
|
||||
pause
|
||||
..\tools\win\tool-bossac\bossac.exe -i --port=com3 -U false -e -w -v -b firmware.bin -R
|
||||
16
compiled/update_bin.bat
Normal file
16
compiled/update_bin.bat
Normal file
@@ -0,0 +1,16 @@
|
||||
copy ..\.pio\build\due\firmware.bin due
|
||||
copy ..\.pio\build\controllino\firmware.hex controllino
|
||||
copy ..\.pio\build\m5stack\firmware.bin m5stack
|
||||
copy ..\.pio\build\mega2560slim\firmware.hex mega2560slim
|
||||
copy ..\.pio\build\mega2560slim\firmware.bin mega2560slim
|
||||
copy ..\.pio\build\mega2560slim2\firmware.hex mega2560slim2
|
||||
copy ..\.pio\build\mega2560slim2\firmware.bin mega2560slim2
|
||||
copy ..\.pio\build\due-5100\firmware.bin due-5100
|
||||
copy ..\.pio\build\mega2560-5100\firmware.hex mega2560-5100
|
||||
copy ..\.pio\build\due-5500\firmware.bin due-5500
|
||||
copy ..\.pio\build\nrf52840\firmware.hex nrf52840-5500
|
||||
copy ..\.pio\build\esp32-wifi\firmware.bin esp32-wifi
|
||||
copy ..\.pio\build\stm32-enc2860\firmware.bin stm32-enc2860
|
||||
copy ..\.pio\build\esp8266-wifi\firmware.bin esp8266-wifi
|
||||
copy ..\.pio\build\lighthub21\firmware.bin lighthub21
|
||||
copy ..\.pio\build\mega2560-5500\firmware.hex mega2560-5500
|
||||
@@ -1,13 +1,15 @@
|
||||
cp ../.pio/build/due/firmware.bin due
|
||||
cp ../.pio/build/controllino/firmware.hex controllino
|
||||
cp ../.pio/build/m5stack/firmware.bin m5stack
|
||||
cp ../.pio/build/mega2560slim-5100/firmware.hex mega2560slim-5100
|
||||
cp ../.pio/build/due-5100/firmware.bin due-5100
|
||||
cp ../.pio/build/mega2560slim/firmware.hex mega2560slim
|
||||
cp ../.pio/build/mega2560slim/firmware.bin mega2560slim
|
||||
cp ../.pio/build/mega2560-optiboot/firmware.hex mega2560-optiboot
|
||||
cp ../.pio/build/mega2560-optiboot/firmware.bin mega2560-optiboot
|
||||
cp ../.pio/build/mega2560-5100/firmware.hex mega2560-5100
|
||||
cp ../.pio/build/due-5500/firmware.bin due-5500
|
||||
cp ../.pio/build/nrf52840-5500/firmware.hex nrf52840-5500
|
||||
cp ../.pio/build/nrf52840/firmware.hex nrf52840
|
||||
cp ../.pio/build/esp32-wifi/firmware.bin esp32-wifi
|
||||
cp ../.pio/build/stm32-enc2860/firmware.bin stm32-enc2860
|
||||
cp ../.pio/build/esp8266-wifi/firmware.bin esp8266-wifi
|
||||
cp ../.pio/build/lighthub21/firmware.bin lighthub21
|
||||
cp ../.pio/build/mega2560-5500/firmware.hex mega2560-5500
|
||||
cp ../.pio/build/mega2560-5500/firmware.hex mega2560-5500
|
||||
cp ../.pio/build/stm32/firmware.* stm32
|
||||
|
||||
25
config-examples/sonoff_s26_humidity_controller.json
Normal file
25
config-examples/sonoff_s26_humidity_controller.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"syslog":["95.31.43.9"],
|
||||
"items": {
|
||||
"ledhum":[6,-13],
|
||||
"reghum": [13, [
|
||||
[50, 10, 0, 60, 250, 200], [{"item": "relayhum"}, {"item":"ledhum"}]
|
||||
], 30, 12],
|
||||
|
||||
"relayhum": [16, [12, 1200], 255, 2]
|
||||
},
|
||||
"in":{
|
||||
"0":{"T":0,
|
||||
"click":{ "item":"reghum","icmd":"TOGGLE"},
|
||||
"dclick":{ "emit":"myhome/light-d2/light","ecmd":"TOGGLE"}
|
||||
},
|
||||
|
||||
"3":{"T":4,
|
||||
"temp":{"emit":"plugtemp"},
|
||||
"hum":{"item":"reghum/val","emit":"plughum"}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
"mqtt":["plug00","192.168.88.2"]
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user