Issue in establishing connection with EdiMax plug and openhab2( item file)

edimax-plug
Tags: #<Tag:0x00007f1e6e28d168>
(Rajeev) #1

I am unable to establish connection between EDImax plug and Openhab.

Here are the set of steps I followed

Step 1:Downloaded the binding [org.openhab.binding.edimax_1.9.0.201607291201.jar] from a github site into /opt/openhab2/conf/addons folder.

Step 2: Verified bind

openhab> bundle:list | grep Edi

Step 3: created an item file

EdimaxSimple {edimax="801F02FA6BB5:4711"} Number EdimaxCurrent "Current [%.1f]" {edimax="801F02FA6BB5:4711:CURRENT"} Number EdimaxPower "Power [%.1f]" {edimax="801F02FA6BB5:4711:POWER"}

Step 4:
Check the status of item file in openhab console but it seems it’s not getting loaded -getting message “no item found”

openhab> items list Edi No item found for this pattern.
Step 5: created a site map file and also included the EDImax binding text in addon.cfg file.

****** addons.cfg file*** legacy = true binding =mqtt,mqtt1,edimax

Frame label= "Power Plugin" { Switch item= EdimaxSimple Text item= EdimaxCurrent icon="battery-50" Text item= EdimaxPower icon="battery-50" }

Please ref to the screen - there is not data coming out from EDIMax plug.

IMG_3899

Attaching the output from log file.

2019-05-11 14:02:13.135 [WARN ] [basic.internal.render.SwitchRenderer] - Cannot determine item type of 'EdimaxSimple' org.eclipse.smarthome.core.items.ItemNotFoundException: Item 'EdimaxSimple' could not be found in the item registry at org.eclipse.smarthome.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:79) ~[?:?] at org.eclipse.smarthome.ui.internal.items.ItemUIRegistryImpl.getItem(ItemUIRegistryImpl.java:802) ~[?:?] at org.eclipse.smarthome.ui.basic.internal.render.SwitchRenderer.renderWidget(SwitchRenderer.java:84) [201:org.eclipse.smarthome.ui.basic:0.10.0.oh240] at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.renderWidget(PageRenderer.java:194) [201:org.eclipse.smarthome.ui.basic:0.10.0.oh240] at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:160) [201:org.eclipse.smarthome.ui.basic:0.10.0.oh240] at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:181) [201:org.eclipse.smarthome.ui.basic:0.10.0.oh240] at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processPage(PageRenderer.java:124) [201:org.eclipse.smarthome.ui.basic:0.10.0.oh240] at org.eclipse.smarthome.ui.basic.internal.servlet.WebAppServlet.service(WebAppServlet.java:189) [201:org.eclipse.smarthome.ui.basic:0.10.0.oh240] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [29:javax.servlet-api:3.1.0]
2019-05-11 14:02:13.171 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text 2019-05-11 14:02:13.172 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'EdimaxPower' for widget org.eclipse.smarthome.model.sitemap.Text 2019-05-11 14:02:13.174 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'EdimaxPower' for widget org.eclipse.smarthome.model.sitemap.Text 2019-05-11 14:02:13.177 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'EdimaxPower' for widget org.eclipse.smarthome.model.sitemap.Text

Just FYI, I am able to control the plug from the app on my phone.

Also , wanted to check if I need a things file (e,g MAC address of EDIPlug )
As well establish the connect.

Appreciate your help.

Sent from my iPad#@

0 Likes

(Rajeev) #2

This is in continuation to my previous query,
I have tried resolving the issue little differently and hence thought of sharing with this group.

Included thingsfile ( EDIMax.things)

Thing edimax:sp2101w:switch "Switch SP-2101W" [ ipAddress="192.168.188.26", username="admin", password="1234" ]

made changes to item file (EDIMax.items) as well.

Switch Light { channel="edimax:sp2101w:switch1:switch"}
Switch Light { channel="edimax:sp2101w:switch:switch",ON }
Number Current { channel="edimax:sp2101w:switch:current" }
Number Power { channel="edimax:sp2101w:switch:power" }

but unfortunately this is no change in the result - my sitemap file does pull any data from EDIMax plug. Yes, one more things I would like to inform that I have updated the firmware (2.08) through the app in my phone. My jar file is still the same and is located at /opt/openhab2/addons/org.openhab.binding.edimax_1.9.0.201607291201.jar

here are the entries from the log file. Looks like it is not able to retrieve item value.

2019-05-15 22:21:30.386 [INFO ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at 'items/Light' for the unknown item 'Light'.
2019-05-15 22:21:44.975 [WARN ] [basic.internal.render.SwitchRenderer] - Cannot determine item type of 'Light'
org.eclipse.smarthome.core.items.ItemNotFoundException: Item 'Light' could not be found in the item registry
	at org.eclipse.smarthome.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:79) ~[?:?]
	at org.eclipse.smarthome.ui.internal.items.ItemUIRegistryImpl.getItem(ItemUIRegistryImpl.java:802) ~[?:?]
	at org.eclipse.smarthome.ui.basic.internal.render.SwitchRenderer.renderWidget(SwitchRenderer.java:84) [201:org.eclipse.smarthome.ui.basic:0.10.0.oh240]
.
.
.
.
.
.
2019-05-15 22:21:45.010 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Light' for widget org.eclipse.smarthome.model.sitemap.Switch
2019-05-15 22:21:45.013 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Switch
2019-05-15 22:21:45.016 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Light' for widget org.eclipse.smarthome.model.sitemap.Switch
2019-05-15 22:21:45.020 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Light' for widget org.eclipse.smarthome.model.sitemap.Switch
2019-05-15 22:21:45.025 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Light' for widget org.eclipse.smarthome.model.sitemap.Switch
2019-05-15 22:21:45.030 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2019-05-15 22:21:45.033 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Current' for widget org.eclipse.smarthome.model.sitemap.Text
2019-05-15 22:21:45.036 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Current' for widget org.eclipse.smarthome.model.sitemap.Text
2019-05-15 22:21:45.039 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Current' for widget org.eclipse.smarthome.model.sitemap.Text
2019-05-15 22:21:47.034 [INFO ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at 'items/Light' for the unknown item 'Light'.
2019-05-15 22:22:08.598 [INFO ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at 'items/Light' for the unknown item 'Light'.
2019-05-15 22:22:09.270 [INFO ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at 'items/Light' for the unknown item 'Light'.

appreciate your help on this issue.

0 Likes