DAIKIN AC Units controlled via Wi-Fi
Hello everybody,
I've managed to integrate my DAIKIN AC units (Wi-Fi connected) in bOS so I can control them easily and use them in any scene.
The only thing that you need is to change the IP to match the IP of your units. Hope you enjoy it. Feel free to ask if is something that does not work as you wish.
All the best,
Laurentiu
New bOS's RPC API + Tasker | Tutorial
Hello!
Here we have a short tutorial on how to integrate bOS and TASKER using new bOS’ RPC service.
bOS offers a JSON RPC Service for integration with Tasker, IFTTT and other services.
This tutorial will show bOS RPC service interacting with TASKER on Android in a simple task, but the important thing here is to understand how to set-up the RPC service so you can do more complex integrations.
RPC service on the new bOS offers HTTP basic authentication with username and password.
In this example, we'll be using Tasker to turn a Z-Wave Socket off.
Of course, this can be done easily within bOS Client app, but this is just for demo purposes. You can change and adapt the task to your needs, for example, "If my phone battery is lower than 80%, turn the socket on", or "If I’ve reached my house, turn front door light on". The possibilities are endless.
Step 1: Configure your RPC service
- In bOS Configurator, under API, enable RPC and define your Username and Password:
Step 2: Find your Device Path
- In this example, the Info tab from the Z-Wave socket device will show us the path: Devices\Z-Wave\Socket\Basic
Now we need to form the JSON body to POST on TASKER.
The Path we have is: Devices\Z-Wave\Socket\Basic
We need to double the backslashes on the Path to form the JSON body to POST on TASKER service, so now we have: Devices\\Z-Wave\\Socket\\Basic
The simple SetValue body post looks 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 other RPC examples.
For our valueName, we have “State”:
To turn the Socket off, our body post is:
{"objectName":"Devices\\Z-Wave\\Socket\\Basic","valueName":"State","value":"false"}
Step 3: Tasker
- Create a new task and include the “HTTP Post” action:
- In your HTTP Post:
Server:Port
https://RPCUserName:RPCPassword@your_ip_address_or_dynamic_dns_address/API/RPC/SetValue
in our example: https://RPC:RPCCOLIBRI@ip_address_or_dynamic_dns_address/API/RPC/SetValue
Data / File (here we include our body post)
{"objectName":"Devices\\Z-Wave\\Socket\\Basic","valueName":"State","value":"false"}
Content Type
application/json; charset=utf-8
Trust Any Certificate:
Yes
Done! Now every time we run this task our Socket will turn off.
This is a simple example for demo purposes, but with more complex commands you can do whatever you want... call scenes, set other values, etc.
To call a RPC Service a HTTP POST call must be preformed with data content-type = "application/json";
Service offers the following commands
POST data example (Turn ON a light): {"objectName":"Devices\\EIB\\Light 1","valueName":"Value","value":"true"}
POST data example (Get light status): {"objectName":"Devices\\EIB\\Light 1","valueName":"Value"}
http://localhost:81/CallFunction
POST data example (Send alert to user):
{"objectName":"Building\\General\\Users\\User","functionName":"SendAlert","value":["'Hello'"]}
I hope you’ve enjoyed the tutorial and please post here the examples and ideas you have using the new bOS’ RPC API.
Themes unlock pin changeable by user
I have a menu that is secured with the theme unlock pin. However, I would like to be able to change it without having to get into the BOS Configurator. Is it possible?
If not, is there any other way to protect some info with a PIN/Paswword that I can change from the App?
Regards,
RegEx Parsec
Dear,
I try to use RegEx to collect some value data of my weather station (WS) from an HTML page. Unfortunately, the weather station doesn’t support API or XML, so from Http Device I import with success the WS html page in text and after I use RegEx to parsec it
The problem is that the RegEx implemented in bOS seams don’t manage the Capturing Group (in the picture is the $1) but only the matched string.
What I did was to select a specific part of the html imported page (the highlighted in the picture in green) and after extract the number 51 that is the value that I need to collect and associate to the integer variable in bOS as reported in the piture
Due to the WS uses almost the same html code to provide other sensors values ( e.g. for Outdor temp: <td bgcolor="#EDEFEF"><input name="outTemp" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="26.7" maxlength="8"></td>
I had to select the part of html code that contains the specific value number that I need to collect and use the capturing group to extract from the selected html code part the sensor value, but this regex sentence in bOS it seams doesn’t work
Can you help me to manage this issue or implement in bOS a way to manage the Capturing Group, please?
Marco
Protocol OCPP
Hello,
Have you planned the integration of the ocpp protocol?
It's the protocol for charging point.
https://www.openchargealliance.org/
Best regards.
"Visualization name" and "Scene"/"Schedule" options
Hello,
I'd like to propose a couple of features for future releases. I've searched for them in case someone had proposed them but I found nothing about that. Here they are:
1. I think it would be nice if every node (for example a light) had a "Visualization name" field. So, let's say we have that item on several pages, scenes and schedules and we need to change its name. Instead of changing the name on every page, scene and schedule, we only had to do it on just one place, on the "Visualization name". Automatically the name would change on every page, scene and schedule we had created.
2. I think it woud be nice too if end users can create their own schedules and scenes instead of us (integrators) doing it. For this purpose, maybe every node could have a "Schedule" or "Scene" check box, so we let the end user to add this item to their own schedules/scenes.
Thank you very much.
Best regards
Device Log Every 10 seconds Gateway reconnecting raised up
Hi,
in my bOS Configurator (Jigsaw) ever 10 seconds, there's a message "Gateway reconnecting" (Device Server)
After Gateway reconnecting message Gateway connected. And watchdog timed out raised.
Now, following errors raised in the Device Log
Devices : 03.09.2021 08:36:08 : Error : Server : Gateway connection lost. One or more errors occurred. (A task was canceled.) at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) 0x00011 in :0
at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) 0x00043 in :0
at System.Threading.Tasks.Task.Wait () 0x00000 in :0
at BOSServer.Gateway.GatewayClient.GatewayListener () 0x001be in <6ae0938c8ca24d228127d55fe601aa59>:0
Devices : 03.09.2021 08:36:08 : Error : Server : Gateway connection lost. Connection refused at System.Net.Sockets.TcpClient.Connect (System.String hostname, System.Int32 port) 0x0019d in <9bd67acb7e9448b0ae17ea9ad68db84f>:0
at BOSServer.Gateway.GatewayClient.GatewayListener () 0x00032 in <6ae0938c8ca24d228127d55fe601aa59>:0
Anyone has an idea?
Kind regards
Stephan
Connection to Siemens PLC
Hi,
I have been tryin to estabilish connection between Siemens S-7 1200 PLC & Grinder, I have tried with tcp/ip connection and modbus, but no success.
I am trying to read bool values and writing them.
Have anyone had any success with this type of aplication?
Customer support service by UserEcho