szakal_a wrote:It seems not really a big deal to send a string via inside WLAN to control the lights, but from outside internet looks a bit difficult for me.
Did you try that? Thats a good starting point (I mean, do it on your own, not through some ready app/service). You will learn what for exactly tibbo is for:)
szakal_a wrote:I have read all the documentation but I have to tell you I can not really understand what is Tibbo module stands for exactly.
My guess is to be able to control the system from www, but I am not sure.
Tibbo has nothing to do with internet or www, it just allows you to connect to your ethernet module (and then sends/read bytes of data from CAN directly, exactly like you see it in monitor in hapcan programmer).
Accessing from internet / webpage / phone is building on top of that connection. Webpage served by tibbo is just a convenient configuration tool (ie how many concurrent connections allow, ports, etc)
szakal_a wrote:I really don't know why did I bought the Tibbo module, etc...
Without it, you would not be able to use hapcan programmer and in turn, program your devices to switch lights, etc (unless you also have rs232 module). After configuring that (assuming no further changes will be needed), is not needed unless you want to exchange messages with your CAN ie from phone.
szakal_a wrote:Please try to help me to make a "one button" smartphone application to control a relay.
Did you try to do it from your (W)LAN? Then, acessing from internet, is generic question how do you want to expose/access your inner network? And you have multiple possibilities (3 exposed options below require public ip, preferably static):
- expose ethernet module (just joking, dont do that)
- expose webserver that have webpage that works with ethernet module or some endpoint (ie restful api, which can be used by phone app directly)
- expose some integration software hosted locally (openhab, home assistant or whatever, for example:
https://home-assistant.io/docs/configuration/remote/) or take a look at ImperiHome/MyDomoAtHome
- use integration software hosted in cloud, then you need something within your LAN to connect to cloud to ask for commands. For example, from myopenhab.org: "Features of the openHAB Cloud service: Remote Access: It allows remote access to local openHAB instances without having to expose ports to the Internet or to require a complex VPN setup."
- similar to above hosted integration software, just pay for web hosting/virtual server yourself and deploy exposed integration software there (then local app reading from ethernet module would forward that through ssh)
- play with hosted processing chains, for example there was already mentioned node-red somewhere in the forum. You can use hosted node-red (fred) and/or hosted MQTT (cloudmqtt/thingstud.io/many more) in some scenarios:
a) local node-red communicating with hosted MQTT. your phone app would read/write (and interpret) commands to MQTT. Then you can use node-red to visually program logic and translate to hapcan messages.
b) hosted node-red and hosted MQTT where your local app is simply pushing/reading hapcan messages on one channel of MQTT and node-red is processing that into data for phone app on another channel
c) hosted MQTT where instead of node-red you create local app that communicates with hapcan and translates that into messages for phone (or just push and phone interprets that)
- multiple other ways (send/read tweets/mails from some technical account;) as there are a lot of new tools raising (check dioty.co - seems to have mobile app working on top of mqtt so half of the job is done, just feed messages from hapcan to mqtt; other solution could be Supla, which provides mobile app + full source code and works on pi so you can emulate hapcan)
As a summary, you didnt get many answers because most people dont want to expose their locally hosted services and they dont use cloud based versions because they dont want to expose their private data, not to mention that one day your relay can switch without you switching it (regardless of how hard providers are saying they are secure)..