Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team
Question
Picmaster 1
Hello,
I am intrigued by the prospect of remotely updating the configuration of a keypad module through a specific TCP/IP packet sent to my HC3 (Home Center 3), accessible from anywhere in the world. To realize this, I understand the importance of having a fixed IP address or utilizing a DDNS (Dynamic Domain Name System) service.
To illustrate further, consider a scenario where the following information is stored within HC3: Code:
12345, Start: 25/06/23 10:00, Stop: 27/06/23 10:00, Switch Module: 23.
In this case, if the code 12345 is entered between 25/06/23 10:00 and 27/06/23 10:00, switch module 23 should activate for a duration of 10 seconds.
Here, I propose two approaches:
**Approach 1:**
Add multiple 4 to 10-digit numbers along with start and stop date/time, as well as a switch module ID, to a configuration file named "config."
A scheduled task (Cron), executed hourly, will read the start/stop dates from the "config" file. When the current date/time aligns with this range, the keypad will be updated with the respective code, enabling it to accept that code from that point onward. Once the HC3 receives a "code ok" message from the keypad, it will cross-reference the associated switch module from the "config" and trigger it to activate for 10 seconds.
**Approach 2:**
Similarly, incorporate multiple 4 to 10-digit codes, start/stop date/time, and switch module IDs into the "config" file.
Update the keypad to accept all codes from the "config." Upon receiving a "code ok" signal from the keypad, the HC3 will verify whether the current date/time falls within the specified range in the "config." If this condition holds true, the HC3 will identify the associated switch module and activate it for 10 seconds.
Now, addressing my inquiries:
a) Is it feasible to convey these settings to the HC3 using a JSON package over the internet? Other suggestions?
b) How and where would this information be stored within the HC3?
c) Are there any available sample scripts showcasing this functionality?
I am a seasoned C++ software engineer, though I admit I lack familiarity with HC3 and its capabilities. Should a comprehensive explanation necessitate more than a few sentences or examples, I am prepared to compensate you for your valuable time.
Kind regards,
Steve
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.