# Org.knx write a single KNX address by means of HomeyScript

**URL:** <https://community.homey.app/t/org-knx-write-a-single-knx-address-by-means-of-homeyscript/117421>\
**Category:** Apps\
**Tags:** app, homey-pro\
**Created:** [October 5, 2024, 9:21am UTC](https://community.homey.app/t/org-knx-write-a-single-knx-address-by-means-of-homeyscript/117421 "2024-10-05T09:21:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nico\_Tissink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nico_tissink/32/83681_2.png) [@Nico\_Tissink](https://community.homey.app/u/Nico_Tissink)\
**Post date:** [October 5, 2024, 9:21am UTC](https://community.homey.app/t/org-knx-write-a-single-knx-address-by-means-of-homeyscript/117421/1 "2024-10-05T09:21:12Z")

</div>

Hi,  
I want to write one bit (0/1) to a single KNX address (…/…/…) to use in an interface with a heating/cooling installation. I read in the readme documentation of the KNX app in Homey that this must be implemented a couple of months ago. I keep circling around the solution to use the knx.send ( address, value) function but I get back from Homey that this function does not exist. Can somebody help me by pointing me in the good direction how to use the right HomeyScript to write to a KNX singe address.

This is what I try to get working (but does not work) now:

```auto
const knxApp = await Homey.apps.getApp({ id: 'org.knx' });
if (knxApp && knxApp.enabled) {
    // Use the KNX app's function to send a message
    await knxApp.send({
        address: '1/1/1', // KNX group address
        value: 1 // Example value to send (e.g., turning a light ON)
    });
    console.log('KNX message sent');
} else {
    console.log('KNX app is not available or enabled.');
}

```

Thanks.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 5, 2024, 9:29am UTC](https://community.homey.app/t/org-knx-write-a-single-knx-address-by-means-of-homeyscript/117421/2 "2024-10-05T09:29:10Z")

</div>

The README says that sending telegrams _from flows_ got implemented:

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/4/24d974b84fd81275b2f1752e2e8bac92421d3ae1.png)

---

<div class="post-metadata">

**Author:** ![Nico\_Tissink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nico_tissink/32/83681_2.png) [@Nico\_Tissink](https://community.homey.app/u/Nico_Tissink)\
**Post date:** [October 5, 2024, 9:46am UTC](https://community.homey.app/t/org-knx-write-a-single-knx-address-by-means-of-homeyscript/117421/3 "2024-10-05T09:46:32Z")

</div>

Thanks! I was totally focussed on putting this in script but I can actually use this block in my flows.

---

<div class="post-metadata">

**Author:** ![perkare](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/perkare/32/81190_2.png) [@perkare](https://community.homey.app/u/perkare)\
**Post date:** [October 29, 2024, 8:30pm UTC](https://community.homey.app/t/org-knx-write-a-single-knx-address-by-means-of-homeyscript/117421/4 "2024-10-29T20:30:26Z")

</div>

Hi!  
I just found out that this sending telegram was implemented and I am trying to get it to work. But I cant seem to figure out the correct format for my value. My goal is to send a timestamp to the knx-bus every night at 3 o’clock to keep my watches in sync. So the Data Type is DPT10.001 but what should the value be? Should it be written as byte-values? bit-values? some specific string-format? Have tried to send “030000” but then watch is just set to 00:00 so it is receving something but I expect the value/format to be incorrect… Any suggestions?

---

<div class="post-metadata">

**Author:** ![Peter\_Knuth](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_knuth/32/83052_2.png) [@Peter\_Knuth](https://community.homey.app/u/Peter_Knuth)\
**Post date:** [February 11, 2025, 8:04pm UTC](https://community.homey.app/t/org-knx-write-a-single-knx-address-by-means-of-homeyscript/117421/5 "2025-02-11T20:04:28Z")

</div>

Hi, for me worked 13:45:50 format HH:MM:SS in Value field. To get actual time I used variable from time and date and after that wrote :01 - to complete the format with :SS  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/e/fe3ff6fa390e0bb730de6dfeafcb3edc82b6e2e7.png)

Furthermore if you set flow to run at specific time once a month, week or day you know exactly time of running the script. So you can manually type in value. For example if your flow will run daily at 3:00 AM, set the value to 03:00:00.

---

<div class="post-metadata">

**Author:** ![perkare](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/perkare/32/81190_2.png) [@perkare](https://community.homey.app/u/perkare)\
**Post date:** [February 12, 2025, 7:14am UTC](https://community.homey.app/t/org-knx-write-a-single-knx-address-by-means-of-homeyscript/117421/6 "2025-02-12T07:14:24Z")

</div>

Great, that worked! I thought I had tested all the obvious formats but apparently not 🙂 Thanks for the reply!
