Comments (3)
Hello!
-
1-Wire direct support (w/o DS-2482-100) was developed long time ago (but not tested in recent releases)
Search for line "#define _2482"
But hardware supported 1-wire much more reliable for long wires. -
Analog inputs - yes, I planning to add support
-
DHT22, BMP280 - not yet planned, because, seems to me, this sensors should be part of another wall-mounted module (not a part of DIN-rail mounted module), like this:
https://easyeda.com/anklimov/ESP8622_AC_Dimmer_with_Rotary_encoder_and_MQTT_copy-2e1dae587f2049459dc05094f78d69a1
Roadmap for next few months:
- To complete and publish hardware design (almost done) and produce first 3-4 controllers
- Analog Inputs
- dmx relay out
- Config webserver for DUE and ESP with JSON editor
from lighthub.
I tested config load from custom server on due and mega2560. It worked with both revisions.
Sorry about bugs I involved.
Can you point me how to test mqtt functionality of controller?
I successfully set up mosquitto. This is my mosquitto.log file:
1521389550: Opening ipv4 listen socket on port 1883.
1521389550: Opening ipv6 listen socket on port 1883.
1521389550: Opening websockets listen socket on port 9001.
1521396422: New connection from 192.168.3.178 on port 1883.
1521396422: New client connected from 192.168.3.178 as garden (c1, k15, u'test').
1521401059: Client garden has exceeded timeout, disconnecting.
1521401059: Socket error on client garden, disconnecting.
1521401159: New connection from 192.168.3.178 on port 1883.
1521401159: New client connected from 192.168.3.178 as garden (c1, k15, u'test').
1521401367: mosquitto version 1.4.14 terminating
This is my test config:
{
"mqtt":["garden","192.168.3.121",1883,"test","test"],
"ow":{
"286164123C4D5B57":{"emit":"t_soil1","item":"h_soil1"},
"286164123FF96F55":{"emit":"t_soil2"},
"286164123C4F26C3":{"emit":"t_soil3"}
},
"items":{
"h_soil1":[5,41,25],
"h_relay0":[6,31,1,1],
"h_relay1":[6,33,1,1],
"h_relay2":[6,35,1,1],
"h_relay3":[6,37,1,1],
"h_relay4":[6,39,1,1]
},
"in":{
"40":{"emit":"/garden/s_in/test"}
}
}
from lighthub.
it looks you've configured simple termostat (and, possibly, it even worked)
To be sure - pls check console output
To use MQTT functionality:
- Start any MQTT client (I'm using mqtt-spy, and possible to use some mobile apps)
- Establish connection with Mosquitto
- Subscribe any topics (use #)
And you will receive any events from LightHub - for your case - temperature from 3 sensors in topic /myhome/s_out/t_soilX
if you want to control some configured item - just publish message to topic /myhome/in/
Message payload should contain command for the Item
Allowed commands is itemtype dependent but basic set is
- ON
- OFF
- TOGGLE
- HALT
- REST
For dimmer channels - number 0..100
For RGB light - H,S,V - color definition in HSV notation
.. etc
This is OPENHAB compatible notation
I'm planning to add more dialects, for JSON for Domoticz, at least
Pls find some details in project wiki
.. And welcome to improve it - another weak place of project - avoidance of documentaton
from lighthub.
Related Issues (17)
- Need to disarm WDT on Mega before any DNS related operations and check DNS timeout to be less 15s for DUE HOT 1
- WDT reset didn’t turning off outputs - TODO - add output initialization after loading Config from NVRAM HOT 1
- MQTT credentials and config URI - to be stored in NVRAM and configured from CLI HOT 1
- DUE - large config saving to FLASH causes WDT triggering HOT 1
- NO_LINK is not defined compilation problem HOT 1
- Template for custom device HOT 2
- Strange behavior on restart if lan is not initialized HOT 5
- develop - compilation error HOT 2
- Syslog not working in Mega+WIZ5100 HOT 2
- library DmxDue USART0_Handler redefinition HOT 4
- NVRAM storage (config, ip, etc) is not working for ESP32 HOT 1
- No initial set of target temp for thermostat HOT 1
- ESP32 - wrong size /config.bin while GET on API
- ESP8266 config.json 100 bytes truncation while save
- feature request : ads1115, mcp4725, mcp23017 as output .... feature request HOT 1
- Global code refactoring, code reformat HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lighthub.