# With deCONZ v2.13.01 pin code cannot be set anymore, nor can arming be changed

**URL:** <https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613>\
**Category:** REST-API Support\
**Created:** [October 12, 2021, 8:11pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613 "2021-10-12T20:11:12Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![w.vuyk](https://forum.phoscon.de/user_avatar/forum.phoscon.de/w.vuyk/32/272_2.png) [@w.vuyk](https://forum.phoscon.de/u/w.vuyk)\
**Post date:** [October 12, 2021, 8:11pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/1 "2021-10-12T20:11:12Z")

</div>

I had the pincode sequences working fine with 2.13.00, but after updating the pin code can not be set anymore, nor the arm mode can be changed, even with the correct code. Has the methods changed or is this a bug introduced with 1.13.01?

Postman response:

 ![image](https://forum.phoscon.de/uploads/default/original/1X/aaeb14d1a8f81caa5aa5d638fac129e1f0357b34.png)

It differences when used by my plugin:

21:34:47.1993595 – (BridgeApi.SendJsonCommand) SendJsonCommand: [http://192.168.1.11:80/api/2E0373E8F5/alarmsystems/1/config:](http://192.168.1.11:80/api/2E0373E8F5/alarmsystems/1/config:) {“code0”:“1234”}  
System.Net.WebException(0x80131509): De externe server heeft een fout geretourneerd: (503) Server is niet beschikbaar.

(server is not available)

Not sure what happens here

---

<div class="post-metadata">

**Author:** ![w.vuyk](https://forum.phoscon.de/user_avatar/forum.phoscon.de/w.vuyk/32/272_2.png) [@w.vuyk](https://forum.phoscon.de/u/w.vuyk)\
**Post date:** [October 28, 2021, 8:35am UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/2 "2021-10-28T08:35:05Z")

</div>

Anyone knows why this was working and not anymore?

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [October 28, 2021, 3:24pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/3 "2021-10-28T15:24:45Z")

</div>

IDK, I don’t see change on alarm code beetween the 2 versions.  
But the error “failed to set code” happen when the fonction alarmSys-\>setCode fail, and this one can fail, if you can’t save it or if the encryption have fail.

---

<div class="post-metadata">

**Author:** ![w.vuyk](https://forum.phoscon.de/user_avatar/forum.phoscon.de/w.vuyk/32/272_2.png) [@w.vuyk](https://forum.phoscon.de/u/w.vuyk)\
**Post date:** [October 28, 2021, 6:52pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/4 "2021-10-28T18:52:24Z")

</div>

How could I work around this issue? Did the encryption key change between the two versions maybe? Or what are other reasons for not being able to save it?

It occurred when I upgraded to 2.13.1. I have a Conbee here on Windows that still runs v2.13.0 and alarmsystem is still functioning. I postponed upgrading this one because of this version.  
Should I provoke it and upgrade the windows system also to v2.13.1?

---

<div class="post-metadata">

**Author:** ![manup](https://forum.phoscon.de/user_avatar/forum.phoscon.de/manup/32/9_2.png) [@manup](https://forum.phoscon.de/u/manup)\
**Post date:** [October 28, 2021, 6:54pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/5 "2021-10-28T18:54:35Z")

</div>

I dived in the code, this is correct behavior but the error reason is not obvious.  
v2.13.1-beta now checks that the correct libssl version is installed when setting the code and if not returns above error.

One thing I’ve noticed recently is that this also requires to have a deCONZ version installed that is compiled on recent Debian/Raspbian/Ubuntu. The versions at [http://deconz.dresden-elektronik.de/raspbian](http://deconz.dresden-elektronik.de/raspbian) are compiled with Raspbian Stretch, which was good enough for pre Alarm Systems but lack the required C++ headers of the new libssl version.

I digged a bit deeper and found another problem here. Recent OS specific versions are only available via APT currently. For upcoming v2.13.2-beta the compilation on Raspbian Stretch will be replaced by Raspbian/Debian Buster and Ubuntu Bionic version so the problem should resolve then.

---

<div class="post-metadata">

**Author:** ![manup](https://forum.phoscon.de/user_avatar/forum.phoscon.de/manup/32/9_2.png) [@manup](https://forum.phoscon.de/u/manup)\
**Post date:** [October 28, 2021, 6:57pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/6 "2021-10-28T18:57:22Z")

</div>

On Windows the above mentioned issue shouldn’t apply, as far as I’ve seen this affects older Linux versions only due the outdated libssl versions.

---

<div class="post-metadata">

**Author:** ![w.vuyk](https://forum.phoscon.de/user_avatar/forum.phoscon.de/w.vuyk/32/272_2.png) [@w.vuyk](https://forum.phoscon.de/u/w.vuyk)\
**Post date:** [October 28, 2021, 7:03pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/7 "2021-10-28T19:03:58Z")

</div>

Ok, thanks for that extra info that might be the cause for my Raspbee indeed. I did update to latest versions of OS at least a year ago and since then stayed away from it as the last OS update left me with a non functioning network because a deconz change on a file was undone by the update. I stayed away from updates since then,.

So a refresh of the image could help (I do have backups of the zll.db)? Or is the new beta due soon so I could skip it for now?

Will upgrade the Windows version too to check on this one then too.

Thanks!

---

<div class="post-metadata">

**Author:** ![manup](https://forum.phoscon.de/user_avatar/forum.phoscon.de/manup/32/9_2.png) [@manup](https://forum.phoscon.de/u/manup)\
**Post date:** [October 28, 2021, 7:09pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/8 "2021-10-28T19:09:44Z")

</div>

Raspbian Buster is out since a while, you might already have it 🙂

To check on the command line:

`cat /etc/os-release`

The easiest way to migrate to a new image is to create a backup via the Phoscon App \> Menu \> Gateway. And to apply that on the new installation.

---

<div class="post-metadata">

**Author:** ![w.vuyk](https://forum.phoscon.de/user_avatar/forum.phoscon.de/w.vuyk/32/272_2.png) [@w.vuyk](https://forum.phoscon.de/u/w.vuyk)\
**Post date:** [October 28, 2021, 7:19pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/9 "2021-10-28T19:19:20Z")

</div>

> [@manup](#):
>
> cat /etc/os-release

It is buster alright, but guess missing the correct libssl stuff. I will plan installing the new image for next week!

---

<div class="post-metadata">

**Author:** ![manup](https://forum.phoscon.de/user_avatar/forum.phoscon.de/manup/32/9_2.png) [@manup](https://forum.phoscon.de/u/manup)\
**Post date:** [October 28, 2021, 7:41pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/10 "2021-10-28T19:41:17Z")

</div>

Should be enough to just install deCONZ Beta via APT repository as described in: [ConBee II Installation](https://phoscon.de/en/conbee2/install#raspbian)

That should get the latest version with correct compiled libssl version.

---

<div class="post-metadata">

**Author:** ![w.vuyk](https://forum.phoscon.de/user_avatar/forum.phoscon.de/w.vuyk/32/272_2.png) [@w.vuyk](https://forum.phoscon.de/u/w.vuyk)\
**Post date:** [October 28, 2021, 7:55pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/11 "2021-10-28T19:55:17Z")

</div>

But that is what I normally do. Although I remember having to install the v2.13.0 version with wget… and now this old guy is unsure how I did the v.2.13.1… Probably the same way…  
In that case I will check with the next beta and be sure to use the normal APT way

Just checked Windows install, all is good there!

---

<div class="post-metadata">

**Author:** ![Mimiix](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mimiix/32/10_2.png) [@Mimiix](https://forum.phoscon.de/u/Mimiix)\
**Post date:** [October 29, 2021, 8:41am UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/12 "2021-10-29T08:41:21Z")

</div>

> [@manup](#):
>
> Should be enough to just install deCONZ Beta via APT repository as described in: [ConBee II Installation](https://phoscon.de/en/conbee2/install#raspbian)

Is there a buster release yet?

---

<div class="post-metadata">

**Author:** ![w.vuyk](https://forum.phoscon.de/user_avatar/forum.phoscon.de/w.vuyk/32/272_2.png) [@w.vuyk](https://forum.phoscon.de/u/w.vuyk)\
**Post date:** [October 29, 2021, 9:53pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/13 "2021-10-29T21:53:35Z")

</div>

I used the image quite some time ago I think? It is in the list of images?

---

<div class="post-metadata">

**Author:** ![manup](https://forum.phoscon.de/user_avatar/forum.phoscon.de/manup/32/9_2.png) [@manup](https://forum.phoscon.de/u/manup)\
**Post date:** [November 1, 2021, 10:33am UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/14 "2021-11-01T10:33:57Z")

</div>

Yes, Buster is in the APT repositories since a while. But the Raspbian version for manual download is compiled on Stretch (since this is upward compatible with newer distros), but this has become problematic for Alarm Systems since the libssl version in Stretch is too old.

---

<div class="post-metadata">

**Author:** ![a1ad](https://forum.phoscon.de/user_avatar/forum.phoscon.de/a1ad/32/687_2.png) [@a1ad](https://forum.phoscon.de/u/a1ad)\
**Post date:** [November 8, 2021, 5:35pm UTC](https://forum.phoscon.de/t/with-deconz-v2-13-01-pin-code-cannot-be-set-anymore-nor-can-arming-be-changed/613/15 "2021-11-08T17:35:49Z")

</div>

I guess i have the same issue. First time setting it up:

curl [https://phoscon](https://phoscon)._ **.net/api/** _\*\*/alarmsystems/1/config -k -X PUT -d ‘{“code0”: “1234”}’ [{“error”:{“address”:"/alarmsystems/1",“description”:“internal error, failed to set code, occured”,“type”:901}}]% (edited)

(deconz beta on docker)
