Enter forum description here ...
+11
Under review

Is Google assistant on the roadmap of Comfortclick?

Fred Hartman 3 years ago in bOS Configurator / Devices updated by Benjamin H Najarian 2 months ago 56

Will the google assistant being supported by comfort click?

regards,
fred

+10

bOS + IFTTT integration | Tutorial

Ricardo Pinto | visiontech.pt 2 years ago in General updated by CS Domotic CS Domotic 6 months ago 9

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

+8

smatr TV

imperialbms 3 years ago in Devices / Basic 0

Has anyone tried to link confortclick with samsung tv? What communication parameters do you use?

+7
Under review

Blinking HUE lights (new feature for your projects)

Ricardo Pinto | visiontech.pt 7 months ago in Devices / HUE updated 4 months ago 7


Hello everyone,


If you're kind of like me, you'll never be satisfied with the basic implementations of your systems.


So today, I've decided to explore the Philips HUE official API.


I know that bOS has already implemented HUE control, but I wanted to use some cool features that are kind of hidden on normal apps: blinking lights!


The purpose of this implementation, is using Philips HUE blinking lights for multi purposes, like blinking when someone rings the door, etc.


You can rely on IFTTT to do that, using the WebHooks, but if you're like me, prefer to keep the most on local network and don't depend on external services.


In this example, what you'll get:


- Access Philips HUE API to create a username key

- Extract the username key

- Create a HTTP device on bOS

- Create a command to send the blinking command to Philips HUE hub


Suggestions: access your Philips HUE app, disable DHCP, and place a fixed IP address on your network so you can point to the correct IP address every time.


Step 1:


- Access the Philips HUE IP address

https://hub_address/debug/clip.html

- Create a username key

URL: /api

Message Body: {"devicetype":"comfortclick#dev"}

Click on the hub link button (the top round button on the hub with Philips written on it)

Click on POST


- Extract the username:


Copy the given username to a safe place, you'll need it for every command.

On my implementation, I want to blink all the lights on a specific light group, so I'll fetch the group number.


Step 2:


- Get the group ID's

URL: https://hub_address/api/your_username/groups

Message Body: leave the message body empty

Click on GET


In my case, the light group I want is ID 1


- Test the communication


URL: https://hub_address/api/your_username/groups/1/action

Message Body: {"alert": "select"}

Click on PUT


If it blinks once, perfect. Now you're ready to move to bOS.


There's two available commands for blinking: just once, or several. Depending on what you want, you'll have to change the Message Body for the correct code:


{"alert": "select"} will cause a short blink
{"alert": "lselect"} will cause several seconds of blinking

If you need to blink several times, you'll need to use {"alert": "lselect"} on the Message Body.


Step 3:


- Create HTTP device on BOS


Enable the HTTP device

Host URL: https://hub_address/api/your_username/groups/1/action

Create a Command, call it "Blink HUE"

Change the command method type to PUT

On Put Data, insert: {"alert": "lselect"}


That's it! Use the command as you want on your project.


On my case, I have the hue blinking when someone rings at my door.


If you want to explore other possibilites, please read the Philips HUE API, available for free. You can do the same on single lights, etc.


I'll post the example on the Examples Page of Comfortclick.

Btw, don't forget to at least say thanks! Most of us here, are either professionals or simple home users. I notice that most of the times someone posts something interesting, no one really cares. So don't just use the examples and don't pretend that you don't care. A simple "Thanks" is more than enough. Don't forget that every example posted here is not paid, it mostly depends on the time and patience of some members.

Happy easter.


Best regards

+6
Under review

Android Widget

Andrea Pedrotti-Ferrari 3 years ago in bOS Client updated by ComfortClick Support 3 years ago 1

Hello to all


Have you planned the possibility to add widget on Android devices? It would be very nice to execute commands directly without lunch each time the client. 


Thank you and kind regards 


Andrea 

+5
Under review

we need the option to change a font. when will you have it?

Dilight-Smart Home Dilight 2 years ago in bOS Configurator updated by ComfortClick Support 2 years ago 1

we need the option to change a font. when will you have it?

+5
Under review

SVG image file creation

Ricardo Pinto | visiontech.pt 3 years ago in bOS Configurator / Themes updated by ComfortClick Support 2 years ago 11

Hi,


I'm using some own icons or adapted ones in PNG, but I'm having some problems with SVG files.


I've tried to create an SVG icon on Corel Draw, and saved it in SVG format. I don't know the size to use, and as a vector file I've saved as it is.


When using it on bOS, either it doesn't show, or it shows huge, depending on the size. I sized down a little bit the icon and saved it again, but it's still very big or it shows in gray. Do I need to create a white and a black version, like the originals (normal and inverted color)?


Can you get me some sort of template, or any guidance to create the SVG files? I'm using PNG but I would prefer to use vector files. With preference for any guidance on how to create the normal and inverted SVG (I can invert the colors, but don't know how to gather them in a "readable" format for bOS).


Thanks

+5
Under review

Background picture change on value

Fabien Fuster 3 years ago in General updated by ComfortClick Support 9 months ago 4

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

+4

Digital clock

Артём Хииску 12 months ago in bOS Configurator updated by Flávio Sanches (ComfortClick) 11 months ago 5

Hello,


Could you please add digital clock in next update? For now it is possible to create something, that is looking like digital clock, but if we choose 

1.TimeOfDay, then it shows h/min/sec, but seconds aren't updating and we can't delete them from function (for example, time is 11:09, function shows us 11:09:00, seconds aren't updating).

2. Separately Hours(int) and Minutes(int), then it doesn't show us 0 before number ( for example, time is 11:09 , but bOS shows us 11:9 or 03:55 it shows 3:55).

There is a screenshot for you.


Best regards.

+4
Under review

Weather with no data

Kristián Vojčík 2 years ago updated by Joachim Oelschlägel 2 years ago 11

Hello I recently find out that Weather app on Jigsaw wont update and also I cannot change location, it cannot show any. Internet connection is good checked with PC ald also with Jigsaw thru update check with no errors. Also it happend on installation which is 8 months old and worked before. Any ideas what could happend? Thanks.