Items not showing/updating in MyOpenHAB

Tags: #<Tag:0x00007f61793b0380> #<Tag:0x00007f61793b00d8> #<Tag:0x00007f61793b7338>

Hey guys,

today I’ve tried to connect my fresh local OpenHAB installation to myOpenHAB. So I entered uuid and secret, installed the myopenhab addon and created a myopenhab.persist file, with the content mentioned here. I’ve added the demo items for test purposes…

When I start openhab everything looks fine in the logs.

2015-10-01 14:04:57.659 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.7.1).
2015-10-01 14:05:04.713 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
2015-10-01 14:05:04.921 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
2015-10-01 14:05:12.112 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.script'
2015-10-01 14:05:13.469 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'myopenhab.persist'
[...]
2015-10-01 14:05:34.684 [INFO ] [.myopenhab.internal.MyOHClient] - Connected to my.openHAB service (UUID = f9c3b3ea-fc18-4611-a470-1dbcb20e80e9, base URL = http://localhost:8080)
2015-10-01 14:05:35.667 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.rules'

MyOpenHAB also shows that my machine is online.

BUT: My items in the web ui don’t get updated… :frowning: Any idea how to fix this? I’ve had OpenHAB 2 running before and worked fine… But the items added there remain in the list and new ones are not added… :frowning:

Day 2:

Still no updated items!

Event log shows exactly when I switched OpenHAB on and off:

Yesterday at 8:12 PM openhab online
Yesterday at 8:01 PM openhab offline
Yesterday at 12:56 PM openhab online

Any ideas?

Thanks so much in advance.

Output of DEBUG logging:

2015-10-02 08:41:54.834 [DEBUG] [.m.i.MyOpenHABServiceActivator] - MyOpenHAB service has been started.
2015-10-02 08:41:54.846 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - setEventPublisher
2015-10-02 08:41:54.848 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - my.openHAB service activated
2015-10-02 08:41:54.859 [DEBUG] [.p.internal.PersistenceManager] - Initializing myopenhab persistence service.
2015-10-02 08:41:54.877 [DEBUG] [o.o.i.m.i.MyOpenHABServiceImpl] - config is null

What does “config is null” mean? Could that be the problem?

Sascha

To see any of your items on my.openhab.org you need to configure my.openhab persistence. By default it doesn’t send any data to my.openHAB cause we are focused on our users privacy. You only need to enable it if you want to see your items and events on my.openHAB web interface and use IFTTT integration.

Hi Victor,

that’s exactly what I did. See my first posting. The log also shows that the persistence configuration has been read. But no update so far. :frowning:

Greetz and thank you!

Sascha

Hey guys,

I found the problem… well I didn’t find the exact problem, but I’ve figured out that it has got to do with the following section, when using the demo configuration:

Items {

  • : strategy = everyChange
    }

I removed this and changed it to the temperature only… and then the items got updated!

Items {
Temperature* -> “temperatures”
}

So there must be a bug somewhere.

Regards,

Sascha

Hi @belovictor,

Can you please guide me to setup persistence for myopenhab

  1. Which addon need to put in addons folder…?
  2. changes or settings required in openhab.cfg and myopenhab.persist ?
  3. How to setup IFTTT integration. ?

Just follow the procedures in

https://myopenhab.org/docs and

https://myopenhab.org/docs/ifttt

and you are good to go.

Forgot one:

I’ve got my myopenHAB.org working and I’m able to see the basic UI, paperUI and HABPanel after I had installed the openHAB Cloud Connector from paperUI --> addons --> misc. So far so good.

The issue is that I also do not see my items showing up, nor anything in my event log. I can’t seem to find where to set the persistence which may be the reason.

There is no option available in the persistence configuration in paperUI under addons --> persistence. Must I create a file manually?

I’ve searched all over looking for the answer but alas.

What about the official docs? :slight_smile:

http://docs.openhab.org/addons/io/openhabcloud/readme.html

No persistence file anymore, you need to expose your items …

# A comma-separated list of items to be exposed to external services like IFTTT. 
# Events of those items are pushed to the openHAB Cloud and commands received for
# these items from the openHAB Cloud service are accepted and sent to the local bus.
# Optional, default is an empty list.
#expose=

I have myopenhab.org working, the REST api works, remote basicui works

https://myopenhab.org/rest/items/

I have a list of items in the expose section of Expert Mode
I did have a couple of items exposed which were working / visible in the myopenhab gui
but it seems not to populate filtered lists of Name, LastUpdate & Status or update as I evolved openhab

I’ve tried re connecting / updating the Service IO, Checking the expose list, toggling the items
so they get some throughput

Ive noticed the entry for myopenhab.org has

my base URL = http://localhost:8080)

If that is affecting it

Hi it take a lot of my time… https://www.openhab.org/addons/integrations/openhabcloud/#configuration there is a note “The exposed items will show up after they receive an update to their state.” …

You need to turn ON/OFF or whatelse the item thru other way the first time.

Well that worked for me:

Add the Item to the list, change the state throu regular openhab interface (ie local basic UI) and the state will be reflected on myopenhab.

Another thing is, how do I remove “old items” ?
I have a new Item to replace the old one, both have the same name so I can call them same way on google. Nonetheless… google is still calling the old one because its still in the list under myopenhab.
But the Item was removed from openhab and the item name was removed from the openhabconnect configuration. When does that old item dissappear?

Log into myopenHAB, then click on your email address at the top-right corner and select “Account”. Under “Dangerous actions”, click “Delete Items and Events”.

You’ll then have to repeat the process of triggering exposed items on OH to get them to show up on myopenHAB.