E-mail with HTML tags/css (tip)
Hello everyone,
Ever wondered that the e-mails in plain text sucks?
Well I've got tired, so I got news for you: it's possible to beautify the e-mails sent from bOS.
This was tested with my Gmail SMTP. If you add HTML/CSS tags, the e-mail sent will understand those tags.
On my e-mail body I've added something like:
And the result on my inbox was:
Tada!!!
Use it! It's cooler than plain text.
Best regards
Counter Log - Help with kWh calculation
Hi people,
May I ask a little help about counter log?
I have a power sensor on an electric board. On ETS, I get an Instantaneous Power object (2 bytes), which comes in kW format. Like, if the house is consuming 1200W, I get 1,2 value on ETS, if it's consuming 250W, I get 0,25 value, and so on. I have the correct instant values showing on visualization.
I've tried to create counter logs, to get an approximate daily consumption, etc. The problem is that the values on the counter log don't make any sense.
For example, if the house is consuming constant 250W during 24hour, I should get 6 kWh by the end of the day, but the values don't make sense. On one day, it showed something like 138kWh on one day, which is impossible. I deleted all data now.
Either I'm configuring all wrong the counter log, or there's something I'm missing.
Thanks for any help
Z-wave The configuration parameters do not appear
Hi,
I have several z-wave devices from different manufacturers and I don't understand why in some I don't see any parameters to configure them.
I have tried to send them manually and it says "index outside the limits of the matrix"
I am doing something wrong?
Two of the devices that happen to them are Fibaro RGBW Controller and Qubino Flush RGBW Dimmer.
I would greatly appreciate a solution, at least I can send the parameters manually.
regards
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,
Alexa + blinds
Hi,
Since Alexa and Comfortclick are now in spanish, I've been doing some testing. It really works fine. But, what I'm missing is a "Blinds" Category in Alexa configuration in bOS. Is there a way to say "Alexa, raise/lower the blinds" (obviusly, in spanish :) ) using only one Endpoint or variable?
Thanks in advance.
Regards
Unable to handle data from Json array
When using the http driver, I am able to connect to an API and process the Json data. For example:
{
"id": 60662,
"country": "NL",
"main": true
}
But when the data is returned in a Json array, the data cannot be parsed! For example, the folowing respons cannot be handled by Comfortclick:
[
{
"id": 60662,
"country": "NL",
"main": true
}
]
or
[
{
"id": 60662,
"country": "NL",
"main": true
},
{
"id": 906428
"country": "UK",
"main": false
}
]
When will support for Json array's be implemented? A lot of sites are returning Json data within an array nowedays.
Or is there an other workarround to process Json data within an array?
Sonos cover picture
All objects are available to use in panels, except the cover picture. It's only available on the standard control, and it's a shame, because a cover picture is always nice looking, for example on a free positioning panel showing an entire room. Would it be possible to add this cover picture object to the list of available objects ?
Another nice improvement would be the ability to group players without going through the Sonos App - but of course that's a bit more complicated.
Can I set Z-Wave parameter by task?
is it possible now or in the future if something trigger then set a zwave device parameter?
Interfacing with Resol VBus using Basic HTTP
I have ComfortClick interfaced to my KNX devices but I would like to also link to my Solar Controller. The controller is a Resol Deltsol MX http://www.resol.de/index/produktdetail/kategorie/1/id/69/sprache/en connected to the Resol DL2 Dataloger http://www.resol.de/index/produktdetail/kategorie/2/id/12/sprache/en
All Resol and compatible controllers use the VBus and their are a variety of ways to connect to it. You can get raw VBus over TCP by telneting to port 7053 of any device on the VBus with an Ethernet interface (see here https://danielwippermann.github.io/resol-vbus/vbus-over-tcp.html) for example. This lets you issue commands as well as read data.
Initially I am just trying to read data from the bus by using the JSON Data Download API https://danielwippermann.github.io/resol-vbus/dlx-data-download-api.html
If I connect to my device on the following URL I get a JSON formatted response
http://dl2/dlx/download/live?sessionAuthUsername=admin&sessionAuthPassword=password
I am trying to read the temperature that is available as "value" in the following snipit
"headersets" : [
{
"timestamp" : 1506413326.784000,
"packets" : [
{
"header_index" : 0,
"timestamp" : 1506413311.424000,
"field_values" : [
{
"field_index" : 0,
"raw_value" : 22.900000,
"value" : "22.9"
},
Using the basic HTTP device with the the following settings I am able to read this Temp
The JSON token name is
headersets[0].packets[0].field_values[0].raw_value
Customer support service by UserEcho