Forum Software Other applications Ferduino implemented in a home automation system

Ferduino implemented in a home automation system

If you are using Ferduino Mega 2560 with any other code, you can post your doubts here.

Post Number:#1 Post Fri Dec 30, 2016 7:04 am
Posts: 8
Topics: 3
Solve rating: 0
Joined: Mon Jun 09, 2014 1:17 pm
Topics: 3
Age: 62
Gender: None specified
National Flag:
Germany

Post Number:#2 Post Fri Dec 30, 2016 10:40 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi Rainer!

Welcome back.

It is not impossible, actually Ferduino code works with MQTT protocol so all you need change on code is the broker IP on setup to point to your home broker.

MQTT.setServer("104.131.49.99", 1883);



Obviously you need build the web pages to control, you can see the command and response to each function looking on serial monitor when using the web interface.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.


Post Number:#4 Post Mon Jan 02, 2017 8:40 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Happy new year for you too!

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#5 Post Tue Jan 03, 2017 11:11 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Here have some alternatives to be installed in a Raspberry Pi.

http://www.openhab.org/

https://home-assistant.io/

If you are worried with security it can work locally without internet access.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#6 Post Thu Jan 12, 2017 12:08 am
Posts: 60
Topics: 3
Images: 0
Solve rating: 1
Joined: Sun Jun 15, 2014 11:50 pm
Topics: 3
Age: 56
Gender: None specified
National Flag:
United States of America

Post Number:#7 Post Fri Feb 09, 2018 2:08 am
Posts: 274
Topics: 6
Images: 46
Solve rating: 0
Joined: Mon Sep 08, 2014 1:35 am
Topics: 6
Age: 43
Location: Aurora
Gender: Male
National Flag:
United States of America


Post Number:#8 Post Fri Feb 09, 2018 9:18 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Why not?

Just build the interface.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#9 Post Fri Feb 09, 2018 1:56 pm
Posts: 274
Topics: 6
Images: 46
Solve rating: 0
Joined: Mon Sep 08, 2014 1:35 am
Topics: 6
Age: 43
Location: Aurora
Gender: Male
National Flag:
United States of America


Post Number:#10 Post Mon Jun 10, 2019 3:38 pm
Posts: 2
Solve rating: 0
Joined: Mon Jun 10, 2019 10:51 am
Age: 37
Gender: None specified
National Flag:
Germany
Hi Fernando,

at first, your project is very, very great. ^:)^

I translated the program again in german. If desired, I like to upload it here.

I dont want to run the controller in web, so i integrated it in my Home-Automation-System.

But the command for "set data" in MQTT is the problem. Topic: XXX/XXX/topic/command is for public correct. Because the JSON-Command is for me incomprehensible.
Can you help me, please?

Best regards from lake constance

Florian

P.S: My english is terrible

Post Number:#11 Post Mon Jun 10, 2019 4:09 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Welcome Florian!

You should publish to XXX/XXX/topic/command and subscribe to XXX/XXX/topic/response in your MQTT broker.

The command expected by Ferduino Controller is NOT a JSON but the response is a JSON.

You should look to Webserver.h to see the values expected to each function or you can play with Ferduino Web Interface and a MQTT client to see the conversation and learn how it works.

Here the command to get time and date from controller:

2,0,0,0,K


Where:

2 is the function ID;
0 is the mode;
0 not used in this case;
0 not used in this case;
K is the terminator for command line.

The response should be a JSON like:

{
   "date": "2019-06-10",
   "time": "15:57:25"
}


To save the date and time the command is:

2,1,2019,06,10,16,03,25,K



Where:

2 is function ID;
1 is save mode in this case;
2019 is year;
06 is month;
10 is day;
16 is hour;
03 is minute;
25 is second;
K is terminator.

The response for this command should be:

{
   "response": "ok"
}


Best regards.

-------------------------------- Last edited Mon Jun 10, 2019 4:14 pm --------------------------------

Regarding the translation, can you send me a pull request on Github?
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#12 Post Fri Jun 14, 2019 3:52 am
Posts: 2
Solve rating: 0
Joined: Mon Jun 10, 2019 10:51 am
Age: 37
Gender: None specified
National Flag:
Germany
Perfect Fernando, thanks.

The MQTT protocol runs great.

Sorry for my late answer, but my IMac was crashed after the last OS X update :((


On weekend I will make an Github connection for the German translation.

Greetings Florian

Post Number:#13 Post Wed Jun 19, 2019 1:51 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Waiting for your pull request.

Which H.A.S. are you using?

Please show us your progress.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to Other applications





Who is online

Users viewing this topic: No registered users and 0 guests

cron