Anel (PowerCtrol Hut) on Openhab 2.0

You are right, this information is not (yet) available as binding items. Feel free to add them, if you need them. I thought that this is static information that is not really needed at runtime.

I was surprised that the code was written, yet not available in openhabā€¦
like you say, not 100% needed, although I can image for debugging purposes it can be useful (like version number, to see if all the hutā€™s I receive are the same.
the information is available on the local hut site itself, yet that is just a little harderā€¦

as you say, probably the priorities

Hello Yves,

Which firmware version where you running ??
I updated al the other stuff but i still have problems with the anel relay. Im running at the moment 6.2

2017-10-11 23:42:50.640 [ERROR] [ng.anel.internal.AnelConnectorThread] - Error occured when received data from Anel device: 172.17.1.201
java.lang.IllegalArgumentException: Data with 16, 26, or 28 values expected but 30 received: NET-PwrCtrl:ANEL1 :172.17.1.201:255.255.255.0:172.17.1.254:0.4.163.16.12.96:Vloerverwarming,0:Alarm IN,0:Voordeur open,0:Buitenlamp voor,1:,0:,0:Deurbel,0:CV Ketel sturing,0:0:80:,1,0:,1,0:Paslezer,1,0:,1,0:Alarm MOTION,1,0:Alarm IN,1,0:Deurbel,1,0:Thermostaat,1,0:24.7ļæ½C:NET-PWRCTRL_06.2:h:n:xor:
at org.openhab.binding.anel.internal.AnelDataParser.parseData(AnelDataParser.java:75)[225:org.openhab.binding.anel:1.10.0]
at org.openhab.binding.anel.internal.AnelConnectorThread.run(AnelConnectorThread.java:254)[225:org.openhab.binding.anel:1.10.0]

@Thetmar not sure why I only saw this today.
I am now running on Anel 6.2
that was not working earlier this summer, at this moment 6.2 is supported.
I can advice you to go to the latest version of openhab. then it should work.
y

Hello Yves,

No problem i have the new anel binding already working for some time :wink:
Thanks for youre reply.

1 Like

there is a new update also for the extra sensor you can buy to add to your Anel Hutā€™s.

Hoi Yves,

Wich version of Openhab did you use? I want to upgrade to version 2.2 stable with openhabian. But the serial port is a problem. It can be filled in. Only dropdownā€¦and the anel wonā€™t do anything. :frowning:

sorry @Thetmar I did not see the message
Iā€™m using openHAB 2.2.0 Build #1003

I needed that version for Anel Hut 6.2 to work.
(The latests Anel sends more data and that is now handled

Hello Yves,

At this moment i gonna try again to get my anel back online with a new installation. openHAB 2.2.0-1 (Release Build)
I uploade the item file and the cfg file. When i delete the username i get a message in de log that i canā€™t connect. So when im put the username back again in the config file, it is goneā€¦ So it look likes it is working.
But when i change a state of a relais. I donā€™t see it at all in the config or openhab.

Openhab 2.2.0-1 release build
Anel HUT 6.2

Can you give a hint where to find the solution?

Kind regards Thetmar.

What does happen in the logging?

Do you have multipel anel huts?
If so they all need to use different ports.

F ex:
HUT 1
x331 for send
x431 for receive

HUT 2
x332 for send
x432 for receive

Hello Yves,

In the log everything looks fine see the screenshot. I have only one HUT and is listening on 32077 where openhab is sending at 32077.
The HUT is receiving at 32075 and openhab is sending at 32075.

Here is the config file from the anel. It was always working. But after a few updates of openhab and the HUT. It doesnā€™t work anymore. I have only installed by openhabian installer and used the first time the binding by add-ons --> bindings. And i also tryed the .jar file 1.11.0

ā€œ<ā€œnameā€>ā€ is wrong.
Should be something like anel

anel.host=172.17.1.201
anel30.user=admin
anel30.password=anel
anel30.udpReceivePort=32077
anel30.udpSendPort=32075

  • you should swap udpReceivePort & udpSendPort from HUT To the config files

aka Send on hut is udpReceivePort in the config file

I gonna try some things. I wille let you know in a few minutes.

Now iā€™ve tryed several things like:

anel1.host=172.17.1.201
anel.host=172.17.1.201

But now im getting an other fault. When i restart openhab (at this moment it is only openhab with one binding) im getting this on my log. I already try to changed the ports for udp traffic.
How is your config in openhab for the ANEL.

anel.host=172.17.1.201
anel1.udpReceivePort=32077
anel1.udpSendPort=32075
anel1.user=admin
anel1.password=anel
refresh=30000
cachePeriod=60

2018-04-08 22:27:19.162 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://172.17.1.200:8080
2018-04-08 22:27:19.190 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://172.17.1.200:8443
2018-04-08 22:27:24.517 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ā€˜anel.itemsā€™
2018-04-08 22:27:26.644 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-04-08 22:27:29.349 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-04-08 22:27:29.782 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2018-04-08 22:27:29.881 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-04-08 22:27:29.975 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2018-04-08 22:27:30.123 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-04-08 22:27:30.217 [ERROR] [ab.binding.anel.internal.AnelBinding] - Could not read configuration for Anel binding: .ANEL1 : Invalid config key

anel1.host=172.17.1.201
I get this:
2018-04-08 22:40:06.743 [ERROR] [ab.binding.anel.internal.AnelBinding] - Could not read configuration for Anel binding: .ANEL1 : Invalid config key

anel1.ANEL1=172.17.1.201
I get this:
2018-04-08 22:49:07.479 [ERROR] [ab.binding.anel.internal.AnelBinding] - Could not read configuration for Anel binding: .ANEL1 : Invalid config key

I donā€™t think the items file is the problem because that is started without any problems as i can see.

when you use
anel1.host=172.17.1.201

This has to be in your item file

Switch anel34_F1 ā€œsomethingā€ ( gHUT){anel=ā€œanel1:F1ā€}
(where gHUT is a group in another item file

I have no idea if these high ports are possible.
You can try ports 1330 & 1430
these Iā€™m using.

the version Iā€™m using that is working is

openHAB 2.2.0 Build #1003
(that was the last when I installed it)
now openhab is at 2.3 and a higher build, yet nothing is working when I installed that on a new machine this weekend. so I would advice against installing latest version.
no Idea how to find build 1003 back.

Hello Yves,

Thanks for your reply. I gonna take a look for build #1003 and check it.

First i gonne try to change the ports. And test it.

But also the item file is changed? Iā€™m using this at the moment.

String anel1name { anel=ā€œanel1:NAMEā€ }
Number anel1temperature { anel=ā€œanel1:TEMPERATUREā€ }
String anel1f1name { anel=ā€œanel1:F1NAMEā€ }
String anel1f2name { anel=ā€œanel1:F2NAMEā€ }
String anel1f3name { anel=ā€œanel1:F3NAMEā€ }

and

Switch anel1f1 { anel=ā€œanel1:F1ā€ }
Switch anel1f2 { anel=ā€œanel1:F2ā€ }
Switch anel1f3 { anel=ā€œanel1:F3ā€ }
Switch anel1f4 { anel=ā€œanel1:F4ā€ }

And so onā€¦

The thing i seeā€¦it that on my item file there is a space between } sign. Maybe this is the problem?
I gone change it.