Enter forum description here ...
+10

smatr TV

imperialbms 7 years ago in Devices / Basic 0

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

+4

HEX for text

imperialbms 7 years ago in Devices / Basic updated by Dániel Czibolya 4 years ago 1

I'm new, and I'm having trouble displaying the current text from the DENON AVR amplifier. The text is only displayed in HEX format, do you know how much this value can be converted to text?

0

Response needed from TCP Server

madub 3 months ago in Devices / Basic updated 3 months ago 2

Hello,

I need to use the TCP Server connexion of ComfortClick's Basic Driver in order to receive data sent by a sensor device (VegeHub from Vegetronix).
The TCP server is receiving the data from my Vegehub device, and I can parse the data well.

The problem is that ComfortClick does not send any response to the device and does not close the connection despite closing being requested by the device.
How can I have ComfortClick send a 200 code OK response to an incoming message sent to ComfortClick's TCP Server ?
How can I have ComfortClick close the connexion once received ?

Thank you

0

Intercom integration

Dávid Kirchhofer 1 year ago in Devices / Basic updated by Pablo Lopez 1 year ago 6

Hello!

I would like to to intergate video intercom into CC. Which type of intercom recomended to use where the two way audio, video stream and door unlocking is working from the BOS app and not need to call other app from the BOS.

Thanks!

0

JSON parsing

Krzysztof Szczepański 1 year ago in Devices / Basic updated by Krzysztof Szczepański 1 year ago 13

I created a TcpServer with a JSON parser:

Image 4625

I added a string parser with a token :

Image 4627


I use Postman and send :

{"TestData":{"Data1":"1"}}


ComfortClick receives data:

POST / HTTP/1.1

Content-Type: text/plain

User-Agent: PostmanRuntime/7.32.3

Accept: */*

Postman-Token: e79d7b2e-8a0a-4ef6-bd47-8d5cc7e8c6f3

Host: 192.168.1.7:16900

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

Content-Length: 26


{"TestData":{"Data1":"1"}}


But the parser throws an error:

Devices : 15.08.2023 14:54:09 : Error : Devices\Test\String : Error parsing received data. Unexpected character encountered while parsing value: P. Path , line 0, position 0. w Newtonsoft.Json.JsonTextReader.ParseValue()

w Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)

w Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)

w ComfortClick.Tasks.Common.ReceiverBase.OnDataReceived(String data)


It looks like the header is being passed to the parser, not the JSON itself.

Bug or my configuration error?

How to disable header passing to parser?

Tested on ComfortClick v 4.9.36

0
Under review

Basic Device - Serial Connection - Received Data structured in a better format

Calin Birtocean 2 years ago in Devices / Basic updated by ComfortClick Support 2 years ago 2

Hi,

I have a meter connected serial to bOS. I am looking to find a way to structure the received data so I can interpret it in bOS and display it. For example highlighted in yellow below the data 30 30 30 30 30 30 30 31 30 30 31 35 would be the meter number 10015. The 30 represents a 0, 31 represents a 1, 32 represents a 2, etc

Here is a part from the meter datasheet:

Image 4489


Here is the way the meter connection is configured in bOS as Basic Device:

Image 4490

 

Here is the command for the request string:

Image 4491

Same command with different data type:

Image 4492


Both the above commands return the same data:

Image 4497

Image 4496

As seen the command is sent and data is received. The challenge I have is that the value left in the string variable created doesn't contain the full string 

Image 4499

This would be the data displayed using their software:

Image 4500

Any tips on how this can be handled in bOS so when receiving the data it can be structured in such a way so when extracting the 30 30 30 30 30 30 30 31 30 30 31 35  it can be used as being the value for meter number 10015.

Thank you, 

Calin

0

How to

Kenneth Ström 2 years ago in Devices / Basic updated 2 years ago 2

I have 2 variables Double (setpoints) A and B. When I change the value in one I want the following rule. A can´t be smaller than B and B can´t be bigger than A . Any ideas?

0

Shelly & TCP listener

Krzysztof Szczepański 3 years ago in Devices / Basic updated 1 year ago 1

I have a little problem integrating Shelly through the tcp server

Shelly integration is in your libraries https://www.comfortclick.com/BOS/Library/Devices/115

Everything works fine except the listener.

The listener is configured as a tcp server, accepts connections but does not respond and does not close the session which causes Shelly to hang.

Shelly expects any response from the host or session closure.

I did the tests using https://docs.microsoft.com/pl-pl/dotnet/api/system.net.sockets.tcplistener?view=net-6.0

If the listener answers the call from Shelly or closes the session, everything works fine.

Conversely, when the host accepts the call and nothing returns or closes the session, Shelly stops sending calls to the host and suspends Shelly until a reset. Shelly appears to be waiting for any information from the host, without it being able to complete the routine.

In the code from the MS website from lines 45 to 63 there is a procedure that sends back to the client what the client sent, while on line 64 the connection is closed.

Removing these lines causes the problem and probably simulates comfortclicka operation.

Is there any call that will get a reply from comfortclick's website eg http://192.168.1.10/comfortclickreply?par=1?

Alternatively, you could add a checkbox as an option - "Send this message as confirmation:", "message" ?

checked on bOS v4.9.8 and Shelly 1 with fw 20220209-092750 / v1.11.8-g8c7bb8d

0

json problem with decode answer message with space

Gruyère Energie SA 3 years ago in Devices / Basic updated by Tomasz Michalak 2 years ago 2

Hello,

I try to get the value with the basic device and UDP request. 

The answer is in json and the answer is correct you can see below an example

{
"ID": "2",
"State": 1,
"Error1": 0,
"Error2": 0,
"Plug": 3,
"AuthON": 0,
"Authreq": 0,
"Enable sys": 1,
"Enable user": 1,
"Max curr": 0,
"Max curr %": 1000,
"Curr HW": 13000,
"Curr user": 63000,
"Curr FS": 0,
"Tmo FS": 0,
"Curr timer": 0,
"Tmo CT": 0,
"Setenergy": 0,
"Output": 0,
"Input": 0,
}

When I try to read the data with the space for exemple "Enable sys" I have the error  "Error parsing received data. : Unexpected character while parsing path:"


How to decode the value with space ?

I try somes codes for space but nothing work.


Can you help me please ?

0
Under review

Regex multiple line text parsing

Paul G 3 years ago in Devices / Basic updated 3 years ago 18

Hi,


I have issued a basic http command that retrieves multiple lines, effectively we cannot get the values of the 7 groups that are returned under a specific matching. The question is how does COmfortClik handle the groups within regex text to be able to handle the group values, remember this is a text regex not a JSON or XML regex, so there are no tokens!!


Image 3398


Image 3402

The REGEX listener I have created is for a string (it has been validated as it works in any regex tester) ^\#>(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})$/gm

Image 3399

However, Comfortclick does not seem to handle the groups within a Text REGEX, despite multiple lines are coming in the system response

Image 3400

When executed through a host connection this is the same code returned

Image 3401