Hello Kincony team,
I am trying to send sensor readings from my KinCony KC868-A16 V3 controller to a Telegram bot using the Custom Protocol (HTTP GET) and IFTTT.
Hardware and firmware:
• Controller: KC868-A16 V3
• Firmware: KCS 3.27.4
• Custom Protocol: Protocol ID 2
• Router: HTTP GET
• IFTTT: Enabled
• Telegram Bot API: https://api.telegram.org/bot<TOKEN>/sendMessage
The Telegram API URL contains the correct bot token and chat ID. I have also tested the Telegram bot separately.
What works:
• RS485 Modbus sensors work correctly.
• Temperature, humidity, pH, EC readings are received automatically.
• IFTTT rules can be created, saved and manually triggered using the Run button.
• The controller successfully starts the IFTTT rule. The problem:
When I press Run, the controller attempts to execute the HTTPS GET request, but the Telegram message is not delivered.
The system log shows the following errors:
web_handle_ifttt: cmd run
web_handle_ifttt: id 1
web_handle_ifttt: run ifttt rule 2
ifttt: run ifttt rule :2
esp-tls-mbedtls: No server verification option set in esp_tls_cfg_t
esp-tls-mbedtls: Failed to set client configurations
esp-tls: create_ssl_handle failed
esp-tls: Failed to open new connection
transport_base: Failed to open a new connection
HTTP_CLIENT: Connection failed, sock < 0
communication: HTTP GET request failed: ESP_ERR_HTTP_CONNECT
My questions:
1. Does KCS firmware 3.27.4 support HTTPS GET requests in Custom Protocol?
2. Is it necessary to configure a CA certificate or TLS certificate verification somewhere?
3. Is this a firmware issue with the ESP-TLS configuration?
4. Is there a recommended way to send Telegram Bot API messages directly from the KC868-A16 V3 without Home Assistant or an external gateway?
I would appreciate any advice or a firmware fix.
Thank you!
11-23-2026, 08:07 PM (This post was last modified: 11-23-2026, 08:18 PM by PrivatePerson.)
Thanks!
(11-21-2026, 12:01 PM)admin Wrote: you have test with this new firmware for you. it have tested work with telegram.
I have a KinCony KC868-A16 V3 controller running KCS firmware V3.27.5 beta.
I have successfully configured Telegram notifications using HTTP GET in Protocol → Custom → TX (For THEN). The connection to Telegram Bot API now works correctly.
However, I would like to send the actual live sensor readings from the Monitor page, not just fixed text.
My four sensor values are:
• pH
• EC
• Humidity (%)
• Temperature (°C)
My questions:
1. Is it possible to insert live sensor values from the Monitor page into the HTTP GET request in Custom Protocol?
2. What is the correct syntax or variable format for these values?
3. Can I use these variables directly in the Message field or URL field?
4. Is it possible to send all four values in one Telegram message?
5. Can this message be triggered automatically every xx minutes using IFTTT or another KCS function?
Could you please provide an example of the correct configuration or a sample HTTP GET URL?
Custom Protocol TX entries (Protocol -> Custom Protocol -> TX (For THEN)) support runtime template variables when HEX mode is unchecked. When an IFTTT rule triggers a TX entry, KCSv3 replaces each {{...}} placeholder with the latest live value used by the Web Monitor before transmitting the message or HTTP request.
Template rendering runs in memory at send time. It does not change the saved NVS configuration and does not trigger extra hardware polling.
Supported Routes and Fields
---------------------------
- Applies to all non-HEX routes: TCP Client, UDP Client, RS485, RS232, HTTP GET, and HTTP POST.
- Expanded fields:
- Message is expanded for TCP Client, UDP Client, RS485, RS232, and HTTP POST (request body).
- Url is expanded for HTTP GET and HTTP POST.
- HEX mode (ishex = 1): Template expansion is disabled so binary frames and URLs are transmitted verbatim.
- Multi-route triggers: When a single TX entry enables multiple routes, Message and Url are rendered once per trigger so all enabled routes receive the same snapshot.
Placeholder Syntax
------------------
{{<type>.<channel>.<field>}}
- <type>: Channel category (sensor, adc, input, output, or dac), lowercase.
- <channel>: 1-based Monitor channel number (1, 2, 3, ...). Channel 0 and leading zeros such as 01 are invalid.
- <field>: Field name for that channel type, lowercase.
- Optional ASCII spaces or tabs immediately inside the double braces are ignored (for example, {{ sensor.1.temperature }}).
- An unclosed {{ with no matching }} is transmitted literally.
Available Variables
-------------------
1. {{sensor.<ch>.temperature}}
- Channel Source: Monitor Sensor <ch>
- Output Format: 1 decimal (25.4)
- Notes: Uses the sensor's configured unit (°C or °F). Returns null for unconfigured sensors, read errors (-100), or Standard Modbus sensors.
2. {{sensor.<ch>.humidity}}
- Channel Source: Monitor Sensor <ch>
- Output Format: 1 decimal (60.2)
- Notes: Supported by humidity sensors (DHT11, DHT22, SHT31, KC-TS, KC-Modbus). Returns null for temperature-only, Standard Modbus, unconfigured, or unread sensors.
3. {{sensor.<ch>.value}}
- Channel Source: Monitor Sensor <ch>
- Output Format: 2 decimals (12.34)
- Notes: For Standard Modbus Sensor channels. Returns null for other sensor types, unconfigured channels, or read errors.
5. {{adc.<ch>.value}}
- Channel Source: Monitor ADC <ch>
- Output Format: Integer or 2 decimals (5.00)
- Notes: Matches Web Monitor: returns raw integer when min = 0 and max = 0; otherwise returns the scaled custom value with 2 decimal places.
6. {{input.<ch>.state}}
- Channel Source: Monitor Input <ch>
- Output Format: 0 or 1
- Notes: Latest digital input state (includes local, expanded, and remote inputs registered in Monitor).
Missing, Invalid, and Unknown Values
------------------------------------
Every matched {{...}} placeholder resolves to the literal token null when:
- The channel does not exist on the device (for example, {{dac.1.value}} on a board without DAC channels or {{sensor.99.temperature}}).
- A sensor channel is unconfigured, not yet ready, or reporting an invalid reading (<= -99.9, including -100).
- The field does not apply to that sensor type (for example, {{sensor.1.humidity}} on a DS18B20, or {{sensor.1.temperature}} on a Standard Modbus sensor).
- The placeholder syntax, type, channel number, or field name is invalid (for example, {{sensor.0.temperature}} or {{sensor.1.unknown}}).
- The underlying floating-point value is non-finite (NaN or Inf).
Emitting null keeps JSON payloads syntactically valid even when a sensor is temporarily disconnected.
Size Limits and Error Handling
------------------------------
- Saved template limits:
- Message: up to 255 bytes (256 bytes including NUL).
- Url: up to 511 bytes (512 bytes including NUL).
- Rendered output limits:
- Rendered Message: up to 511 bytes (512 bytes including NUL).
- Rendered Url: up to 1023 bytes (1024 bytes including NUL).
- If expansion exceeds the rendered buffer limit, KCSv3 logs an error and aborts that transmission instead of sending truncated data.
Examples
--------
1. HTTP POST JSON Telemetry
Push temperature, humidity, ADC value, and relay state to a webhook server.
- Route: HTTP POST
- HEX: unchecked
- Url:
http://192.168.1.100:8080/api/telemetry
- Message:
{"temp":{{sensor.1.temperature}},"hum":{{sensor.1.humidity}},"adc":{{adc.1.value}},"relay1":{{output.1.state}}}
- Sent request body (when Sensor 1 is 25.4 °C, 61.0 %, ADC 1 is scaled to 4.85, Output 1 is ON):
{"temp":25.4,"hum":61.0,"adc":4.85,"relay1":1}
- Sent request body (when Sensor 1 is disconnected):
{"temp":null,"hum":null,"adc":4.85,"relay1":1}
Note: HTTP POST sets Content-Type: application/json.
2. HTTP GET Query Parameters
Send sensor and analog readings via query parameters without a request body.
1. Create a Custom Protocol TX entry (for example, Protocol 1) using one of the HTTP or TCP templates above and click Save above settings.
2. Open IFTTT and create a new rule:
- IF: select Interval and set the desired period in seconds (for example, 60).
- THEN: select Custom Protocol and choose Protocol 1.
3. Enable and save the rule. Each interval tick renders the latest live Monitor values and sends the configured request.
11-26-2026, 08:20 PM (This post was last modified: 11-26-2026, 08:32 PM by PrivatePerson.)
I am using a KinCony KC868-A16 V3 controller with KCS firmware V3.27.5 beta.
I want to send the current sensor readings (pH, EC, humidity and temperature) to Telegram in a single message every xx minutes.
I have configured Protocol → TX (For THEN) and selected HTTP POST.
However, I have a problem: when I enter a complete JSON message in the Message field, for example:
{«chat_id»:»MY_CHAT_ID»,»text»:»TEST KinCony»}
and then refresh the page, only the first character { remains in the Message field. The rest of the text disappears.
I have tried entering the message again, but the same problem occurs.
My goal is to receive a Telegram message like this:
Greenhouse monitoring
pH: 7.18
EC: 4303
Humidity: 47.2%
Temperature: 23.6°C
Could you please explain the correct configuration?
Thank you!
I also have a few questions:
1. How can I send a Telegram message automatically at a fixed interval, for example once every hour or every 5, 10 or 30 minutes?
2. Is there a built-in timer or interval trigger in IFTTT for this purpose, or do I need to use another feature? Additional information:
I tested both HTTP GET and HTTP POST.
The Message field does not save the entered text. After refreshing the page, only the first character { remains, even when I enter a simple JSON message.
Could you please check whether this is a firmware bug in KCS V3.27.5 beta or a web interface issue?