Enter forum description here ...
+9

bOS + IFTTT integration | Tutorial

Ricardo Pinto | visiontech.pt 10 months ago in General updated by Flávio Cicarelli Sanches 2 months ago 4

Hi,

I've decided to create a small tutorial on how to integrate bOS and IFTTT by using bOS RPC service.

bOS Offers a JSON RPC Service for integration of bOS Server with other systems. The RPC service can be enabled by editing the BOSService.exe.config file. Value "EnableRPC" should be set to "True". Service port can be changed in the "RPCServiceUri" parameter. The firewall exceptions must be set manually in Windows OS.

I'll be using bOS RPC service to interact with IFTTT. It also can be used to interact with Tasker on Android. I use both services with bOS, but I'll be posting a very simple example here just for IFTTT, as I don't have time right now to explain the complex logic of Tasker.

The most important thing here, is to master the integration between IFTTT and bOS. Then you can do whatever you want...

Let's start with a very simple example, so that later you can adapt to your needs.

WARNING 1:
The RPC service on bOS is used for beta purposes and doesn't provide any security. Use it only on secured networks behind firewall, or use it at your own risk.

WARNING 2:
Please don't use this on end customers. Use it in your home, in your office demos, etc. But please don't use it for professional purposes. While bOS is a powerful tool, IFTTT and Tasker rely on the internet, on external servers and services, etc, so you should not use this for professional use, neither rely on external services that you can't physically control. If you're a professional installer, and you use this integration and somehow it fails, it's YOUR reputation!

For more information, please visit: https://www.comfortclick.com/Software/Manuals/BOSServer#RPCService

In this example, we'll be using just a Date & Time trigger on IFTTT to turn on a light on bOS. I know that bOS has timers, but this is just for demo purposes to show you off the bOS + IFTTT integration. You can change and adapt the IFTTT integration to your needs, for example "If a new e-mail drops on my Gmail, set my KNX RGB light to red", or "If my Netatmo Weather Station detects strong wind, close all my KNX shutters".

So, first things first. You'll need:


Step 1
- Port forward TCP port 81 (Please don't forward external port 81 to internal 81! Use a higher external port, let's say 55081)

Step 2 - A fixed IP external address, or a Dynamic DNS

Step 3 - Get the Path for the circuit / object you'll be using on bOS

I'll jump Step 1 and 2, and explain Step 3:

In this example, I want to use an office light. So I open my bOS Configurator, scroll down to my KNX Light, click on Info tab, and copy the Path:


Now we need to form the JSON body to POST on IFTTT service.

The Path I've copied is: Devices\KNX Apartamento\iluminacao e tomadas\comando individual iluminacao\Focos mesas escritório

But we need to double the backslashes on the Path, so we turn this: Devices\KNX Apartamento\iluminacao e tomadas\comando individual iluminacao\Focos mesas escritório

Into this: Devices\\KNX Apartamento\\iluminacao e tomadas\\comando individual iluminacao\\Focos mesas escritório

The simple SetValue body post is something like this:

{"objectName":"INSERT PATH HERE","valueName":"Value","value":"true"}
where "value":"true" is to turn the value to true or 1. You can change to false or 0, or look for the other examples at: https://www.comfortclick.com/Software/Manuals/BOSServer#RPCService

So we past our path, and get something like this:

{"objectName":"Devices\\KNX Apartamento\\iluminacao e tomadas\\comando individual iluminacao\\Focos mesas escritório","valueName":"Value","value":"true"}

Now we're ready to go to IFTTT!


Choose to create a new Applet, click on THIS and choose your trigger. In this example we'll be using Date & Time.


Now click on THAT, and search for Webhooks. Then click on Make a web request.


Now let's fill the data:

URL:
http://your_ip_address_or_dynamic_dns_address:55081/SetValue


Method: POST


Content Type: application/json


Body: {"objectName":"Devices\\KNX Apartamento\\iluminacao e tomadas\\comando individual iluminacao\\Focos mesas escritório","valueName":"Value","value":"true"}

And that's it! Everyday at 1:00h the Office light turns on from IFTTT service.

This is just for demo purposes, so I've used a Date & Time trigger on IFTTT and a single light on bOS. With some patience, you can do whatever you want... call scenes, set other values etc.

Using IFTTT + bOS let's you exercise your imagination. For example: I use IFTTT as a translator between KNX and Xiaomi Yeelight, with bOS as the master. In my office, if I press a KNX button, bOS sends an action for IFTTT, which sends an action to Xiaomi Yeelight ledstrip.

I hope you enjoyed the tutorial. As soon as you master the integration, you'll do whatever you want with bOS and IFTTT.

Best regards,

Ricardo Pinto | VISIONTECH.PT

+3

email and calendar triggers

Francois Lesueur 1 year ago in General 0

Hello,


I feel there are no easy ways to trigger actions based on external events from the Internet : for example based on in-coming mails, or on a Google Calendar. 


The Google Calendar would enable for example to control heating based on a vacation calendar. I know that you can import one in bOS, but you have to do it. It doesn't happen automatically every 3 hours or so.


The email with the right title or the right template could trigger the opening of the door, or the heating of the swimming pool, or whatever. 


That would be easy to do with IFTTT, but in the meantime, some basic features in the existing calendar or email devices would help. 


Thanks you,

François 

+3
Under review

Background picture change on value

Fabien Fuster 2 years ago in General updated 2 years ago 2

Unless I missed it, I would love to be able to have a "dynamic" background picture that would change based on a node value.


As one simple exemple, we would be able to change a background picture to show day or night environment while the front layer could display the weather condition. both would change based on their respective node value. 


Again, should it be possible and I missed it, disregard my post (but I would love to know how to program this ;-))


Regards,

Fabien

+3
Under review

Delete events and logs

henrique_b 2 years ago in General updated by ComfortClick Support 2 years ago 1

How can I delete events and logs list?

+2
Under review

Alexa in Italian

Marco Magnani 11 months ago in General updated by ComfortClick Support 8 months ago 10

Dear,

yesterday I received my 7 echo units form Amazon, but I discovered that there is not the Alexa Skill in Italian: when are you releasing it?

Regards

Marco

+1
Under review

Alexa no longer has settings

Andy Gill 1 year ago in General updated by N Muthu 10 months ago 9

Following update to 4.4.4 The settings in the Alexa API are no longer there, I cant seem to do anything with it anymore?

+1

Comfortclick support ha-bridge (alexa)

Calvin Sidik 2 years ago in General updated by Tilen Suhadolnik 2 years ago 3

Hi, does Comfortclick support HA-Bridge for amazon alexa? 

+1

bOS Phone + Mobotix T25

Noel Fuentes 3 years ago in General 0

Dear friends,


Has anyone successfully configured bOS Phone with a Mobotix T25?


Thanks in advance.


Regards.

0
Under review

Clients logoff emmediately

van der heijden Stefan 1 month ago in General updated 4 weeks ago 12

Hello,

Suddenly without any change of configuration, all of my clients are logged off emmediately after logging on. It keeps just auto logging on and off without showing the gui. This is on windows, ios and even in just internet explorer.

I had this before a few weeks ago and fixed it with a restore of an earlier backup of the config, but now I'm sure I haven't changed anything. I'm running on the last stable release. 

I can offer the config on the server though.is there a logfile  I could take a look at?

Regards,

Stefan 

0

Enumeration Control with KNX

Abhishek Medhekar 4 months ago in General updated by Jürgen Jürgenson 4 months ago 1

Please suggest how to use enumeration control in CC Jigsaw.

Like Climate modes (Values: 0-3), Fan speed (Value 1-5), etc.