Author Topic: CT50 Radio Thermostat not in gateway [solved]  (Read 4894 times)

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
CT50 Radio Thermostat not in gateway [solved]
« on: December 28, 2017, 08:46:05 PM »
I just added a CT50 Radio Thermostat to the collection. I set it up per Radio Thermostat to my home wifi and I am able to access it via their app. I reserved an address for it in my router and put that address in the settings on the Pi Gateway page but it never shows up in my Gateway. Any suggestions?
« Last Edit: January 31, 2018, 04:24:52 PM by Felix »

sparky

  • Sr. Member
  • ****
  • Posts: 296
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #1 on: December 28, 2017, 09:08:07 PM »
Did you manually add a new thermostat node?



Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #2 on: December 28, 2017, 09:16:19 PM »
i added it in the settings page on the Pi Gateway page. I double checked that it was in the settings.json5 file and it was there. am i missing somewhere else?

sparky

  • Sr. Member
  • ****
  • Posts: 296
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #3 on: December 28, 2017, 09:17:50 PM »
Yes, to add a new empty node, go to the terminal screen and type a new node ID and NEW in the message box then click SEND
« Last Edit: January 29, 2018, 11:04:13 AM by Felix »

sparky

  • Sr. Member
  • ****
  • Posts: 296
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #4 on: December 28, 2017, 09:23:16 PM »
After you add the NEW node you will have to add a new Event that's called "Thermostat status poll"  It polls approximately every 30 seconds.

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #5 on: December 28, 2017, 09:36:57 PM »
does it have to be any specific node number or just one that isnt in use?

sparky

  • Sr. Member
  • ****
  • Posts: 296
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #6 on: December 28, 2017, 09:38:21 PM »
Any number that's not used..  I used 99

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #7 on: December 28, 2017, 10:00:05 PM »
i used 6 which isnt in use but it didnt show up. is there somewhere else i have to put the 6 to tie it to the thermostat?

sparky

  • Sr. Member
  • ****
  • Posts: 296
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #8 on: December 28, 2017, 10:02:28 PM »
Did you see the new node show up in the Dashboard?

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #9 on: December 28, 2017, 10:02:55 PM »
no

sparky

  • Sr. Member
  • ****
  • Posts: 296
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #10 on: December 28, 2017, 10:16:52 PM »
What Gateway version are you using?

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #11 on: December 28, 2017, 10:34:03 PM »
the latest one felix put out. since i sent the message to add node 6 NEW, the only thing that shows up in my gateway is my sump pump. none of the three weathershields show up

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #12 on: December 29, 2017, 09:44:15 AM »
The thermostat doesn’t show up either. The sump pump shows up on the gateway but the Count shows 0. The sump pump reading does update. Any ideas?

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: CT50 Radio Thermostat not in gateway
« Reply #13 on: December 29, 2017, 11:24:36 AM »
First you need to add the node as sparky mentioned. This will be a "special" node which you define as thermostat (wifi). Set the IP address in the node settings. As long as it is active on the network and responds to queries, the node should update by the polling mechanism of this special node type.

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #14 on: December 29, 2017, 11:29:03 AM »
By define it as thermostat, you mean selecting it when it shows up on the gateway? I added a new node by sending a message in the terminal 6 and NEW. Since then the other nodes don’t show up In the gateway. Any ideas on a fix ? My Weathershield is still sending through the same RPi to WU. 

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #15 on: December 30, 2017, 09:36:16 AM »
I did a fresh install from pibakery/setup script.  The thermostat still doesn’t show up. The nodes other than my sump pump don’t show up on my iPhone or PC. Seems kinda strange. in the log terminal, it shows node 6 popping up as new but it never shows on the main gateway page
« Last Edit: December 30, 2017, 09:45:53 AM by Kilo95 »

sparky

  • Sr. Member
  • ****
  • Posts: 296
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #16 on: December 30, 2017, 10:26:04 AM »
Do you have a backup image of the previous Gateway version that you could load?  I also have the newest, 8.10, installed and I just tried to add a special node with no luck.  Although I can see it being created in the terminal window it does not show up in the Dashboard.

I'm not really surprised though because I've been having weird things happening ever since I installed the new version.  I've posted some of the issues here but it appears its because of something I did when installing from the responses I got.  I'm hoping I don't have all the issues when the new version comes out..  ;D

I installed my thermostat a few versions back and creating the special node as mentioned worked flawlessly.  So I'm thinking if you had a backup image you could load, then add the thermostat, then re-install the new gateway version you would have better luck.  Just a thought.

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #17 on: December 30, 2017, 10:30:30 AM »
No, I don’t have a backup of the previous version unfortunately. What’s the easiest way to back it up? I’ve tried to just copy the SD to a folder on my PC but when I go to make use of the backup, it doesn’t work. If someone could tell me how to clear the new node out of my gateway the rest of the stuff would probably work. I could be content until the issues have been rectified

sparky

  • Sr. Member
  • ****
  • Posts: 296
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #18 on: December 30, 2017, 10:34:26 AM »
I use Win32 Disk Imager although there are a lot of other imaging programs.

https://sourceforge.net/projects/win32diskimager/


Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #19 on: December 30, 2017, 10:43:52 AM »
That’s kinda what I was thinking. Maybe Felix can tell me how to clear the new node that isn’t showing up from the gateway. Maybe that’ll clear up my gateway so the other nodes will show up

sparky

  • Sr. Member
  • ****
  • Posts: 296
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #20 on: December 30, 2017, 10:47:50 AM »
That would be great if he did.. I feel like I messed you up, sorry for that  :(

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #21 on: December 30, 2017, 10:53:02 AM »
No problem. More than likely I did something wrong 😊

sparky

  • Sr. Member
  • ****
  • Posts: 296
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #22 on: December 30, 2017, 10:59:48 AM »
Thanks  :)

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #23 on: December 30, 2017, 08:02:34 PM »
I ended up getting another microSD and setting it up so everything works but the thermostat. Now I’ve got one setup that’s solid and the other I can play with to try to get the thermostat working 😊

If my PC will quit acting up I’ll save an image of the good one

sparky

  • Sr. Member
  • ****
  • Posts: 296
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #24 on: December 30, 2017, 08:19:36 PM »
I ended up getting another microSD and setting it up so everything works but the thermostat. Now I’ve got one setup that’s solid and the other I can play with to try to get the thermostat working 😊

Glad you got the weathershields back up and running

If my PC will quit acting up I’ll save an image of the good one

Great idea!

ericlq

  • NewMember
  • *
  • Posts: 1
Re: CT50 Radio Thermostat not in gateway
« Reply #25 on: January 28, 2018, 07:47:23 PM »
I had same issue. Here are the fix.
1. Stop the gateway by "sudo systemctl stop gateway"
2. Open gateway.js file by any editor
3. Go to line 395 (v8.10.0) or the line like this,
    var entry = { _id:node.nodeId, updated:Date.now(), label:node.label || 'NEW NODE', metrics:{} };
4. Change it to,
    var entry = { _id:node.nodeId, updated:Date.now(), label:node.label || 'NEW NODE', metrics:{} ,type:'',events:{}, descr:'' };
5. restart the gateway by "sudo systemctl restart gateway"

Then follow the new node instruction above the NEW node will show on the dashboard.

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: CT50 Radio Thermostat not in gateway
« Reply #26 on: January 29, 2018, 12:40:47 PM »
I just committed some fixes here and here in the main repo, these should make the thermostat node show up.
« Last Edit: January 29, 2018, 02:20:20 PM by Felix »

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #27 on: January 30, 2018, 09:11:07 AM »
whats the easiest way to update??
« Last Edit: January 31, 2018, 04:23:31 PM by Felix »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: CT50 Radio Thermostat not in gateway
« Reply #28 on: January 30, 2018, 10:52:48 AM »
whats the easiest way to update?
Replace the updated files from the last 2 commits linked above (make backups of the old ones just in case).

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #29 on: January 30, 2018, 04:39:47 PM »
all is well. it works. i went and redownloaded the index.html, metrics.js, and gateway.js files to their appropriate locations and restarted. i must have had something corrupt the last time or i missed the index.html the first time. either way, it works.

since i upgraded my gateway to the latest a couple months ago, i get prompted every time on my iphone that "THis Connection Is Not Private" and the certificate isn't trusted. is there a way i can make it trust this certificate so i can save 2-3 clicks everytime i go to my gateway?

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: CT50 Radio Thermostat not in gateway
« Reply #30 on: January 30, 2018, 04:56:49 PM »
In older browser versions you could add an exception but these days it seems you can't. Or maybe I don't know, last time I tried to find such a setting I could not find it.

The browser forces that warning since it's an "untrusted certificate". Basically you self sign it, not a trusted certificate authority (CA).
And chrome doesn't know you as a CA.

You could create a certificate with a CA, but you will need to pay for it. Then you're tied to your IP, if you have a dynamic IP, then this won't work.
ISPs issue new IPs based on certain conditions. Maybe you could buy a static IP from your ISP, but then ... just for this? See how it gets complicated... i'd rather do the extra clicks...

................

Maybe there's a way to create a mobile app that supresses this warning.

Anyone know better ways to use self signed certs?

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #31 on: January 30, 2018, 05:11:59 PM »
i gotcha. if someone else has another idea, i'm game

from a little quick research, it looks like you might be able to use a browser, download your certificate and email it to yourself. open on iphone, touch and hold and be able to install on iphone. i'll have to try tomorrow on my personal computer
« Last Edit: January 31, 2018, 04:22:51 PM by Felix »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: CT50 Radio Thermostat not in gateway
« Reply #32 on: January 31, 2018, 09:01:41 AM »
Ok, if you find a solution please post here.
In the interest of this topic, can we mark it [solved]?

Kilo95

  • Sr. Member
  • ****
  • Posts: 340
  • Country: us
Re: CT50 Radio Thermostat not in gateway
« Reply #33 on: January 31, 2018, 02:27:36 PM »
will do. yes! thanks ! [solved]