Fatek Plc

Hi,
I am really need your helps,
I have this fatek plc:

And I dont understand how to add my plc to openHAB.
The plc connect to the intenet and i can see the ip on the fatek app,I installed the fatek binding but i cant see nothing in the openHUB.
If someone can explaine me how to add the plc it will be great.
Ty

That is an old version 1 binding so it may not show up as installed in the UIs.
Did you follow out detailed instructions in the official documentation?

With a 1.x version binding, there is nothing to see until you configure some Items to use the binding.
You’ll probably find some binding start up messages in your openhab.log which might help you decide if you have configured fatekplc.cfg correctly.

1 Like

First ty for your help,
I am beginner with the openHAB and dont understand well the system.
My goal is to turn the lighting on with the harmony hub.
Until now I installed the fatek banding, downloaded the jfatek.jar and put the file on addon folder.
what i need to do now?

**fatekplc.cfg:**
################################### Fatek PLC Binding #######################################
#
# the refresh interval in milliseconds which is used to poll values from the Fatek PLC
# (optional, defaults to 60000ms / 60 seconds)
# fatekplc:refresh=60000
#
# fatek connection uri, support tcp, udp and serial
# fatekplc:plc1.connectionUri=udp://10.0.0.13?plcId=1

My * items and *sitemap folders are empty.

When sharing configuration, pleas use code fences. It makes the posts more readable and sometimes spacing is important.

How to use code fences - Tutorials & Examples - openHAB Community

2 Likes

Help?

You need to configure that to point at your Fatek. The lines beginning with # are comments, examples - you need to edit in your own lines (with no #) with the detail that you want.

I don’t know what harmony hub has anything to do with this.

Hi
In fatekplc.cfg
Put this

fatekplc:refresh=100
fatekplc:plc.connectionUri=udp://Fatek_IP?plcId=1

Change Fatek_IP to IP of Fatek module, you can find it in Fatek Ethernet Module Configuration tool.
After this add to .items file your Fatek coils, register, etc.
example switch

Switch   Lights_GF_bathroom  "Bathroom"   (GF_Lights)   { fatekplc="plc:M46" }

I tried evreything! I am really dont understand how its work and what exactly to write
I know that is hard request but maybe you can send my what exactly i need to write?
my plc ip is 10.0.0.13 port 2013 model Fatek FBs-40MA

Your fatekplc.cfg

fatekplc:refresh=100
fatekplc:plc.connectionUri=udp://10.0.0.13?plcId=1

But port can’t be 2013 for Fatek protocol is 500
What board or extension do you use to connect to the ethernet? CBE, CBEH, CM55e?

1 Like

CBE,
123
Ok i do that :+1:t3:
About that:
Switch Lights_GF_bathroom “Bathroom” (GF_Lights) { fatekplc=“plc:M46” }
I dont understand well what to do with that…
I saw the plc numberes and make list which number is turning on the kitchen, bathroom…

Change 2013 to 500 please.

Switch Lights_GF_bathroom “Bathroom” (GF_Lights) { fatekplc=“plc:M46” }
I dont understand well what to do with that…

fatekplc=“plc:xxx” where xxx is your X, Y, M, T, R… in your fatek lader

simple lader
|X1|----------[TOGG Y1]
X1 (contact) input, Y1 (coil) output in PLC
When You press switch connected to X1 then Y1 changes to the opposite state.
if the switch is to be virtual, change X1 to M1 (virtual contact) then your item will be:

Switch Lights_GF_bathroom “Bathroom” (GF_Lights) { fatekplc=“plc:M1” }

Here i put some exemples of Fatek lader what I use with openHAB.

Ok I do it but i cant see the item on the paper UI,
What i do wrong?

I’ts OH 1 Binding, items will not show in Paper UI. Make sitemap and test it in Basic UI.

Ok I tried that but still not working
fatek.cfg:

fatekplc:refresh=100
fatekplc:plc.connectionUri=udp://10.0.0.13?plcId=1

fatek.items:

Switch Lights_GF_bathroom “Bathroom” (GF_Lights) { fatekplc=“plc:X1”}

fatek.sitemap:

sitemap demo label="dor" {
    Frame label="Demo" {
        Switch item=Lights_GF_bathroom icon="light"
        
        
    }
}

What I do worng?

What messages does the binding leave in your openhab.log ?


2020-01-26 16:47:36.170 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'homee.items'
2020-01-26 16:47:36.696 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'fatek.sitemap'
2020-01-26 16:47:38.404 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2020-01-26 16:47:39.470 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.1.120:8080
2020-01-26 16:47:39.470 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.1.120:8443
2020-01-26 16:47:40.163 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2020-01-26 16:47:40.238 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2020-01-26 16:47:40.310 [INFO ] [openhab.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2020-01-26 16:47:42.380 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = fc949ef3-7333-44de-baa0-a8a304f15c9e, base URL = http://localhost:8080)
2020-01-26 16:47:42.521 [INFO ] [io.hueemulation.internal.ConfigStore] - Hue Emulation pairing disabled
2020-01-26 16:47:42.896 [WARN ] [ulation.internal.HueEmulationService] - The UPnP Server service has not been started!
2020-01-26 16:47:42.897 [INFO ] [ulation.internal.HueEmulationService] - Hue Emulation service available under /api
2020-01-26 16:47:43.183 [INFO ] [ulation.internal.HueEmulationService] - Hue Emulation service available under /api
2020-01-26 16:47:44.021 [WARN ] [lipse.smarthome.io.net.exec.ExecUtil] - Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "arping" (in directory "."): CreateProcess error=2, The system cannot find the file specified)
2020-01-26 16:47:44.426 [WARN ] [lipse.smarthome.io.net.exec.ExecUtil] - Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "arping" (in directory "."): CreateProcess error=2, The system cannot find the file specified)
2020-01-26 16:47:44.632 [WARN ] [ng.lgwebos.internal.TVControlChannel] - error requesting channel list: 1010 tuner channel map does not exist.
2020-01-26 16:47:44.814 [INFO ] [ternal.dhcp.DHCPPacketListenerServer] - DHCP request packet listener online
2020-01-26 16:47:45.511 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename `fatek.sitemap` does not match the name `demo` of the sitemap - please fix this as you might see unexpected behavior otherwise.
2020-01-26 16:47:45.538 [WARN ] [basic.internal.render.SwitchRenderer] - Cannot determine item type of 'Lights_GF_bathroom'
org.eclipse.smarthome.core.items.ItemNotFoundException: Item 'Lights_GF_bathroom' could not be found in the item registry
	at org.eclipse.smarthome.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:85) ~[?:?]
	at org.eclipse.smarthome.ui.internal.items.ItemUIRegistryImpl.getItem(ItemUIRegistryImpl.java:837) ~[?:?]
	at org.openhab.ui.basic.internal.render.SwitchRenderer.renderWidget(SwitchRenderer.java:85) [bundleFile:?]
	at org.openhab.ui.basic.internal.render.PageRenderer.renderWidget(PageRenderer.java:194) [bundleFile:?]
	at org.openhab.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:160) [bundleFile:?]
	at org.openhab.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:181) [bundleFile:?]
	at org.openhab.ui.basic.internal.render.PageRenderer.processPage(PageRenderer.java:124) [bundleFile:?]
	at org.openhab.ui.basic.internal.servlet.WebAppServlet.service(WebAppServlet.java:189) [bundleFile:?]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [bundleFile:3.1.0]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544) [bundleFile:9.4.20.v20190813]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [bundleFile:?]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) [bundleFile:9.4.20.v20190813]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) [bundleFile:?]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [bundleFile:9.4.20.v20190813]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [bundleFile:?]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.Server.handle(Server.java:494) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) [bundleFile:9.4.20.v20190813]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_163]
2020-01-26 16:47:45.568 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Lights_GF_bathroom' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-26 16:47:45.568 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-26 16:47:45.568 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Lights_GF_bathroom' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-26 16:47:45.569 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Lights_GF_bathroom' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-26 16:47:45.569 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Lights_GF_bathroom' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-26 16:47:45.578 [INFO ] [ueemulation.internal.upnp.UpnpServer] - Hue Emulation UPNP server started on 127.0.0.1:8080
2020-01-26 16:47:45.592 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename `fatek.sitemap` does not match the name `demo` of the sitemap - please fix this as you might see unexpected behavior otherwise.

That’s easy for you to fix, though it is not a big deal.

I don’t see any announcements there from the binding. I don’t know if it normally does, when all is well.
Next step is probably to check at the karaf console if the package is running.

 18:13:36.439 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.sitemap'
2020-01-26 18:13:37.494 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'demo.sitemap'
2020-01-26 18:14:16.811 [WARN ] [basic.internal.render.SwitchRenderer] - Cannot determine item type of 'Lights_GF_bathroom'
org.eclipse.smarthome.core.items.ItemNotFoundException: Item 'Lights_GF_bathroom' could not be found in the item registry
	at org.eclipse.smarthome.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:85) ~[?:?]
	at org.eclipse.smarthome.ui.internal.items.ItemUIRegistryImpl.getItem(ItemUIRegistryImpl.java:837) ~[?:?]
	at org.openhab.ui.basic.internal.render.SwitchRenderer.renderWidget(SwitchRenderer.java:85) [bundleFile:?]
	at org.openhab.ui.basic.internal.render.PageRenderer.renderWidget(PageRenderer.java:194) [bundleFile:?]
	at org.openhab.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:160) [bundleFile:?]
	at org.openhab.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:181) [bundleFile:?]
	at org.openhab.ui.basic.internal.render.PageRenderer.processPage(PageRenderer.java:124) [bundleFile:?]
	at org.openhab.ui.basic.internal.servlet.WebAppServlet.service(WebAppServlet.java:189) [bundleFile:?]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [bundleFile:3.1.0]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544) [bundleFile:9.4.20.v20190813]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [bundleFile:?]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) [bundleFile:9.4.20.v20190813]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) [bundleFile:?]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [bundleFile:9.4.20.v20190813]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [bundleFile:?]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.Server.handle(Server.java:494) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) [bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) [bundleFile:9.4.20.v20190813]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_163]
2020-01-26 18:14:16.851 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Lights_GF_bathroom' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-26 18:14:16.852 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-26 18:14:16.852 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Lights_GF_bathroom' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-26 18:14:16.853 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Lights_GF_bathroom' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-26 18:14:16.853 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Lights_GF_bathroom' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-26 18:14:19.305 [INFO ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at 'items/Lights_GF_bathroom' for the unknown item 'Lights_GF_bathroom'.

Ok i changed the name of the sitemap to demo,
yes the karaf is running but still don’t working

How can I check if the plc is connect to openhab?