# VELUX Binding stop working

**URL:** <https://community.openhab.org/t/velux-binding-stop-working/156794>\
**Category:** Bindings\
**Created:** [June 19, 2024, 6:44pm UTC](https://community.openhab.org/t/velux-binding-stop-working/156794 "2024-06-19T18:44:19Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![alda1](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@alda1](https://community.openhab.org/u/alda1)\
**Post date:** [June 20, 2024, 7:54am UTC](https://community.openhab.org/t/velux-binding-stop-working/156794/21 "2024-06-20T07:54:17Z")

</div>

I have all rules in the DSL, so I prefer use same code for all.  
I’m not so familiar with Blockly, but I will check

edit:  
can’t find this  
 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/6/0/60c9721590183e0d493cf4a18a47f43739db9453.png)

---

<div class="post-metadata">

**Author:** ![hmerk](https://community.openhab.org/user_avatar/community.openhab.org/hmerk/32/56432_2.png) [@hmerk](https://community.openhab.org/u/hmerk)\
**Post date:** [June 20, 2024, 8:05am UTC](https://community.openhab.org/t/velux-binding-stop-working/156794/22 "2024-06-20T08:05:36Z")

</div>

What openHAB Version are you running ?

---

<div class="post-metadata">

**Author:** ![alda1](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@alda1](https://community.openhab.org/u/alda1)\
**Post date:** [June 20, 2024, 8:09am UTC](https://community.openhab.org/t/velux-binding-stop-working/156794/23 "2024-06-20T08:09:13Z")

</div>

4.1.1

---

<div class="post-metadata">

**Author:** ![hmerk](https://community.openhab.org/user_avatar/community.openhab.org/hmerk/32/56432_2.png) [@hmerk](https://community.openhab.org/u/hmerk)\
**Post date:** [June 20, 2024, 8:26am UTC](https://community.openhab.org/t/velux-binding-stop-working/156794/24 "2024-06-20T08:26:56Z")

</div>

![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/9/c/9cd3b620bf2017b18d72782417736ba446d6ef45.png)

Create a variable and name it veluxUID

---

<div class="post-metadata">

**Author:** ![alda1](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@alda1](https://community.openhab.org/u/alda1)\
**Post date:** [June 20, 2024, 8:37am UTC](https://community.openhab.org/t/velux-binding-stop-working/156794/25 "2024-06-20T08:37:27Z")

</div>

thanks, I’m lost with blockly  
also can’t find next instructions :  
 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/e/a/ea7bd202f95e41c4824529cbf2be874fb58c74b3.png)  
I see this:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/0/d016894c177e12dc66e7413bf2c30921c8e37c78.png)

---

<div class="post-metadata">

**Author:** ![hmerk](https://community.openhab.org/user_avatar/community.openhab.org/hmerk/32/56432_2.png) [@hmerk](https://community.openhab.org/u/hmerk)\
**Post date:** [June 20, 2024, 8:42am UTC](https://community.openhab.org/t/velux-binding-stop-working/156794/26 "2024-06-20T08:42:03Z")

</div>

Ok, my mistake. The additional thing blocks have been added recently, so are not available in your version.  
Sorry …

---

<div class="post-metadata">

**Author:** ![alda1](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@alda1](https://community.openhab.org/u/alda1)\
**Post date:** [June 20, 2024, 9:00am UTC](https://community.openhab.org/t/velux-binding-stop-working/156794/27 "2024-06-20T09:00:10Z")

</div>

so back to my instruction :  
`sendHttpPutRequest("http://localhost:8080/rest/things/velux:klf200:192_168_1_55/enable", "text/plain", "false", headers, 1000)`

what’s wrong ?  
I think it was working with OH3 but doesn’t work with OH4

---

<div class="post-metadata">

**Author:** ![Chiuaua79](https://community.openhab.org/user_avatar/community.openhab.org/chiuaua79/32/58738_2.png) [@Chiuaua79](https://community.openhab.org/u/Chiuaua79)\
**Post date:** [June 20, 2024, 3:09pm UTC](https://community.openhab.org/t/velux-binding-stop-working/156794/28 "2024-06-20T15:09:09Z")

</div>

The rule post that I linked did not show my complete rule In DSL.

My rule file starts as follows:

```php

var Timer VeluxEnableTimer = null
val headers = newHashMap("Authorization" -> "Bearer myOHAPIRESTToken", "WWW-Authenticate"-> "Basic")

rule "Velux KLF200 changed to OFFLINE"
        when
                Thing "velux:klf200:meterkast" changed
        then
                Etc.etc.etc.
end

```

The key in the above rule is the “val headers” that you define and the “token” inside (in above example “myOHAPIRESTToken”). Please refer to [create an API token](https://www.openhab.org/docs/configuration/apitokens.html). I don’t remember from the top of my head if you need to separately enable REST API access.

> [@alda1](#):
>
> ok, thanks. Is there any other way how to control velux roller shutters without problematic KLF200?

In my case a reset every three months or even less frequent does not pose very “problematic” to me. I’ve read someone placed his KLF200 elsewhere, closer to the devices and that seemed to help.

On the other hand, as the Velux KLF200 is specifically for devices with io protocol and can also be used for Somfy devices with io protocol, you could think the other way around and use a Somfy Connexoon, Tahoma or connectivity gateway. I’ve read that the new Tahoma also has a local developer mode so you don’t need the Somfy cloud, but overall I’ve read more problematic reviews about the Somfy gateways due to using the cloud than problems using the KLF200.

[Previous page](https://community.openhab.org/t/velux-binding-stop-working/156794.md?page=1)
