Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[openhabcloud] Issue with item exposure in #1525 #4953

Closed
nesys opened this issue Feb 21, 2019 · 13 comments · Fixed by #4991
Closed

[openhabcloud] Issue with item exposure in #1525 #4953

nesys opened this issue Feb 21, 2019 · 13 comments · Fixed by #4991

Comments

@nesys
Copy link
Contributor

nesys commented Feb 21, 2019

After upgrading from #1502 to #1515 and after, the item exposure seems buggy.

In facts:

Expected Behavior

switch item changed via classic UI should be also changed in https://myopenhab.org/items

Current Behavior

Nothing happens. Also if I delete all items and events, events are recreated correctly, items not (after the requested action to see the item in myopenhab.org). I've also canceled and re-created from scratch my myopenhab account ... same issue

log:
2019-02-21 09:06:22.093 [WARN ] [io.openhabcloud.internal.CloudClient] - Received command from openHAB Cloud for item 'Andrea_Presence_IFTTT', which is not exposed.

So the recipe in IFTTT is working as expected. The issue is on OH side.

Possible Solution

That is working in #1502. Maybe some changes in between (but before #1515) need to be verified

Steps to Reproduce (for Bugs)

  1. delete all items and events
  2. expose an item via PaperUI
  3. see in myopenhab.org -> nothing

Context

Trying to work with exposed items and IFTTT recipes

Your Environment

My current configuration is openhabian #1525 on vmware VM.

@nesys
Copy link
Contributor Author

nesys commented Feb 21, 2019

@digitaldan
Copy link
Contributor

Hi @nesys I'm trying to understand the issue

you mention tagging which does not have any affect with myopenhab, the only items that will report state to myopenhab will be set in paper ui -> services -> openhab Cloud -Confiure -> Items to expose as in the picture below
image

Is this what you are referring to? Note that this is only really useful for IFTTT and does not have anything todo with tagging or exposing items to Alexa or Google home

After upgrading from #1502 to #1515 and after, the item exposure seems buggy.

I am trying to understand what those 2 PR's have to do with this issue? I just tried on my system and things seem to be working, but i'm not sure if you are running something different?

@wborn
Copy link
Member

wborn commented Feb 24, 2019

I am trying to understand what those 2 PR's have to do with this issue?

@nesys is referring to openHAB 2.5.0-SNAPSHOT build numbers. 😉

@nesys
Copy link
Contributor Author

nesys commented Feb 24, 2019

Is this what you are referring to? Note that this is only really useful for IFTTT and does not have anything todo with tagging or exposing items to Alexa or Google home

Exactly. And of course I'm referring to use IFTTT with OH. But Alexa is working correctly. I know this is not related to expose items ... I was thinking that was a useful information for you in case. Also the log above seems the flow between IFTTT and OH Cloud is working correctly, the issue is between my OH and myopenhab.org

@digitaldan
Copy link
Contributor

Got it , i understand now. I'll take a look, i ended up downgrading until the UI migrations are finished, I'll upgrade my instance a take a look.

@nesys
Copy link
Contributor Author

nesys commented Feb 24, 2019

thanks for your support @digitaldan ... in facts from OH #1502 I see this issue (still in current OH #1534)

@digitaldan
Copy link
Contributor

Hmm, so the cloud binding is no loner able to get the stored configuration from the OH core as it used to. The config is empty and this line return a null/empty object:
https://github.com/openhab/openhab2-addons/blob/master/addons/io/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java#L189

even though my config shows differently

Pid:            org.openhab.openhabcloud
BundleLocation: null
Properties:
   baseURL = https://myopenhab.org/
   expose = [F1_DansOffice_Light, ZONE4_STATUS, CloudZone1]
   mode = remote
   service.pid = org.openhab.openhabcloud

@wborn any ideas on what might have changed in the core?

@digitaldan
Copy link
Contributor

digitaldan commented Feb 24, 2019

@wborn Could this be related to this commit? It looks ok to me, but it does seem like the binding can not find its config service. openhab/openhab2-addons@2ef23f0

@digitaldan
Copy link
Contributor

let me give it a try

@digitaldan
Copy link
Contributor

👍 Yep, that did it, PR coming....

@nesys
Copy link
Contributor Author

nesys commented Feb 25, 2019

I can confirm, issue solved in OH #1536

@digitaldan
Copy link
Contributor

👍

Pshatsillo pushed a commit to Pshatsillo/openhab-addons that referenced this issue Jun 19, 2019
ne0h pushed a commit to ne0h/openhab-addons that referenced this issue Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants