Coder Social home page Coder Social logo

Comments (3)

anklimov avatar anklimov commented on September 1, 2024

Hello!

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.

livello avatar livello commented on September 1, 2024

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.

anklimov avatar anklimov commented on September 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.