Integration with AT&T digital life

Inside that folder, isn’t there a config folder? And then some config.json file inside? I have to login to mine to see, on a phone right now. If you do have a config dir, go in with

cd config

Then do a

ls -la

And see if you have any json file. Do a chmod 666 on it:

chmod 666 config.json

Or whatever the filename is

ls -la returns “ms30250@ms30250-Standard-PC-i440FX-PIIX-1996:/var/node/homecloudhub.local/config$ ls -la homecloudhub.json
-rw-rw-rw- 1 ms30250 ms30250 51 May 13 22:37 homecloudhub.json”

The file has my correct IP for the ST hub and port 39500 but still hangs at “requesting init data”

I would be more than happy to let you SSH in?

I am sorry but I can’t right now. On the phone. Did you finish setting up the ST app? Setup the AT&T user and pass?

The ST app is installed in IDE but when I run the app on my phone it times out while searching and says “somethings wrong we cant load your screen right now”

When I attempt to run the server I see the following in IDE live logging

" 11:05:32 PM: error java.lang.NullPointerException: Cannot get property ‘localServerIp’ on null object @ line 716"

Im starting to think its the smart app. Its like its crashing or something. It never even asks me to manually add the server IP.

Ok, do you have a firewall on the linux machine? You need two ports open, one for SSDP discovery udp:1900 and one for port tcp:42457

If you do have a firewall, can you please temporarily disable it and see if that fixes the problem? If so, you will need to configure to accept those incoming ports.

Which OS are you running? You can try to disable the OS firewall to see if that is the problem. You really shouldn’t need it if you are running this behind a router.

systemctl stop firewalld

If that fixes your problem then run this to disable it permanently.

systemctl disable firewalld

I am running Ubuntu Desktop. When I check “systemctl stop firewalld” I get firewalld.service not loaded so no firewall. In ST live logging I am seeing…

bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:51 AM: info smartapp_pause called by smartAppName=Home Cloud Hub, value=200, smartAppVersionId=259cff91-a9fe-4041-85aa-e017cd16f4b3
bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:50 AM: info smartapp_pause called by smartAppName=Home Cloud Hub, value=200, smartAppVersionId=259cff91-a9fe-4041-85aa-e017cd16f4b3
bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:50 AM: info smartapp_pause called by smartAppName=Home Cloud Hub, value=200, smartAppVersionId=259cff91-a9fe-4041-85aa-e017cd16f4b3
bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:50 AM: info smartapp_pause called by smartAppName=Home Cloud Hub, value=200, smartAppVersionId=259cff91-a9fe-4041-85aa-e017cd16f4b3
bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:50 AM: info smartapp_pause called by smartAppName=Home Cloud Hub, value=200, smartAppVersionId=259cff91-a9fe-4041-85aa-e017cd16f4b3
bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:50 AM: info smartapp_pause called by smartAppName=Home Cloud Hub, value=200, smartAppVersionId=259cff91-a9fe-4041-85aa-e017cd16f4b3
bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:49 AM: info smartapp_pause called by smartAppName=Home Cloud Hub, value=200, smartAppVersionId=259cff91-a9fe-4041-85aa-e017cd16f4b3
bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:49 AM: info smartapp_pause called by smartAppName=Home Cloud Hub, value=200, smartAppVersionId=259cff91-a9fe-4041-85aa-e017cd16f4b3
bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:49 AM: info smartapp_pause called by smartAppName=Home Cloud Hub, value=200, smartAppVersionId=259cff91-a9fe-4041-85aa-e017cd16f4b3
bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:49 AM: info smartapp_pause called by smartAppName=Home Cloud Hub, value=200, smartAppVersionId=259cff91-a9fe-4041-85aa-e017cd16f4b3
bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:49 AM: info smartapp_pause called by smartAppName=Home Cloud Hub, value=200, smartAppVersionId=259cff91-a9fe-4041-85aa-e017cd16f4b3
bbe4e216-fc12-4439-8a67-c26f1cfb1efd 10:18:49 AM: trace Looking for local HCH server.

You may have iptables

Don’t disable it, just stop it and check discovery again. If it works, enable those two ports and reenable fw. Never disable your fw

With it Stopped/disabled I am still getting the same thing. What I dont understand is, why isnt the smart app telling me no server found and asking me to manually enter an IP? I feel like the app isnt functioning correctly.

Well, it should, what does it say?

It times out and I get this…

I’m not sure I agree with this if you have a firewall in front of your device there is no reason to have an OS level firewall running. It just adds a layer of complexity for home networks that’s simply not needed.

1 Like

My system is as follows…

ATT router with firewall running at the head of the network. two switches and then an AP/switch combo. Plugged into that is the Qnap nas with dual NICs. The second NIC runs as a virtual switch with its own IP. Behind that Virtual switch there is an ubuntu VM with no firewall running. The only firewall (port forwarding on port 42457) running is the one in the ATT modem/router on a gigabit fiber connection.

I have run port scans on the VM’s IP address and only see port 22 listening. I also tried installing ubuntu (same configuration) on a spare laptop and got the same results.

I am desperate to get this working since ive sunk a lot of money into this home automation.

The port does not need to be opened on the external router. Communication is all locally between the hub and the nodejs server. Can you oing the hub from the nodejs box?

Yes, it ping with no issues.

64 bytes from 192.168.1.205: icmp_seq=1 ttl=64 time=0.688 ms
64 bytes from 192.168.1.205: icmp_seq=2 ttl=64 time=0.470 ms
64 bytes from 192.168.1.205: icmp_seq=3 ttl=64 time=0.498 ms

Now have port 42457 showing open and listening when I port scan. SmartApp still not finding a server. After three days Im ready to give up. If either of you gentlemen are feeling generous and want to walk me through this it would be appreciated.

Feeling a bit defeated…

I am doing the exact same thing with my QNAP NAS but I am using CentOS 7. I only have one physical switch and an apple airport extreme.

On your ubuntu host, what does the homecloudhub journal show?

journalctl -u homecloudhub

Do you see any errors?

ady624 logged in with me this morning and sorted it all out. 90 percent of what he did was way over my head but its all working and I about a happy as a kid at Christmas. I can see all my DL devices and have set created some ifttt rules based on these sensors!!! I can’t say thanks enough, what a community!

1 Like

Do yourself a favor and take a snapshot of your VM. This way if an OS patch breaks it or something else goes wrong, you can always recover to that image.