Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

Comfort UPNP <-> SmartThings <-> Amazon Echo
 Moderated by: slychiu, mattbrain, benstinton Page:  First Page Previous Page  ...  5  6  7  8  9  10  11  12  Next Page Last Page  
 New Topic   Printer Friendly 
 Rating:  Rating
AuthorPost
 Posted: Friday Jan 27th, 2017 07:05 pm
   
181st Post
bagushandhoko
Member
 

Joined: Saturday Jul 25th, 2015
Location: Jakarta, Indonesia
Posts: 91
Status: 
Offline

  back to top

Hi Matt, 
i confuse ... before delete them ... i found my uploading file : my smartapps, my devicehandler, gone ( empty ) again ... but at mobile app, my apps still be able to accessed ...  is it the cause of error above ?


update : 
  • just realized,  i should choose the location first, sign in, and found the uploading file... but How to delete it ? 
  • How to delete my apps at mobile apps ?
so i wait your guideline

Last edited on Friday Jan 27th, 2017 07:33 pm by bagushandhoko



 Posted: Friday Jan 27th, 2017 07:36 pm
   
182nd Post
DavidJ
Member
 

Joined: Tuesday Feb 26th, 2008
Location: Little Berkhamsted, United Kingdom
Posts: 83
Status: 
Offline

  back to top

I believe what Matt is suggesting is that you go to the Smartthings IDE at https://graph.api.smartthings.com/ - Log in - Go to My Devices Handlers and delete all the ones in that start MattBrain. Then reinstall them all as you did yesterday, thereshould be 9. Do the same for the My SmartApps - theres only one there.



 Posted: Friday Jan 27th, 2017 07:53 pm
   
183rd Post
bagushandhoko
Member
 

Joined: Saturday Jul 25th, 2015
Location: Jakarta, Indonesia
Posts: 91
Status: 
Offline

  back to top

DavidJ wrote: I believe what Matt is suggesting is that you go to the Smartthings IDE at https://graph.api.smartthings.com/ - Log in - Go to My Devices Handlers and delete all the ones in that start MattBrain. Then reinstall them all as you did yesterday, thereshould be 9. Do the same for the My SmartApps - theres only one there.Already normal again ... Just need to delete location and create again ...No need  to delete mysmartapp or my device handler



 Posted: Saturday Jan 28th, 2017 04:52 pm
   
184th Post
bagushandhoko
Member
 

Joined: Saturday Jul 25th, 2015
Location: Jakarta, Indonesia
Posts: 91
Status: 
Offline

  back to top

hi Matt,
testing on and off lamp from smartthings work well ...  only the lamp status not update when lamp turning off by manual switch 
update 29.01
testng on and off lamp from amazon dot work well too 

Last edited on Sunday Jan 29th, 2017 10:06 am by bagushandhoko



 Posted: Sunday Jan 29th, 2017 06:01 pm
   
185th Post
Pgordon
Member
 

Joined: Saturday Sep 23rd, 2006
Location: London, United Kingdom
Posts: 237
Status: 
Offline

  back to top

Was playing a bit over the weekend. I didn't think I was seeing all the devices I should, so I figured I'd just run discovery again to see if anything new was found...

It was... this time it fairly quickly found 78 devices... almost double what was found before... I enabled all of them, and then I too saw the same error as in post 178... devicenetworkId must be unique...

As I backed out through the app, I noticed there was now a second instance of the comfort smart app installed... obviously the cause of the aforementioned error...

Attachment: IMG_3086.PNG (Downloaded 154 times)

Last edited on Sunday Jan 29th, 2017 06:02 pm by Pgordon



 Posted: Sunday Jan 29th, 2017 06:07 pm
   
186th Post
Pgordon
Member
 

Joined: Saturday Sep 23rd, 2006
Location: London, United Kingdom
Posts: 237
Status: 
Offline

  back to top

but interestingly... after I submitted that post, I went back to the same smartapps screen, and one of the 2 instances had disappeared... all on it's own...
I went back into discovery on the sole remaining instance, and its running now... currently up to 122 devices, and finding a few more every few minutes...



 Posted: Sunday Jan 29th, 2017 07:44 pm
   
187th Post
mattbrain
UCM Pi Users


Joined: Tuesday Jun 12th, 2007
Location: United Kingdom
Posts: 185
Status: 
Offline

  back to top

I need to clarify how to renew discovery - the ST interface isn't particularly clear. I will rtite these up in proper instructions and add to the forum, but below is a summary

Initial discovery should be done by going to:

MarketPlace -> SmartApps -> My Apps -> Comfort Manager (or Cytech Zone UPNP Manager v1 for 1.0.0 installs)

Subsequent discovery (once you have selected some initial devices) can be done from:

Automation -> SmartApps -> Comfort Manager (or Cytech Zone UPNP Manager v1 for 1.0.0 installs)

If you repeat the first stage you may end up duplicating devices causing the error message.

Thanks,

Matt



 Posted: Sunday Jan 29th, 2017 07:46 pm
   
188th Post
mattbrain
UCM Pi Users


Joined: Tuesday Jun 12th, 2007
Location: United Kingdom
Posts: 185
Status: 
Offline

  back to top

Pgordon wrote: but interestingly... after I submitted that post, I went back to the same smartapps screen, and one of the 2 instances had disappeared... all on it's own...
I went back into discovery on the sole remaining instance, and its running now... currently up to 122 devices, and finding a few more every few minutes...


Thats more devices that I have tested with - be aware that SmartThings limits SmartApp persistent memory to 100,000 bytes which may be run into during discovery for lots of devices.

We are considering changing discovery to overcome these limitations but it requires some changes at the back end which will follow when I refactor the UPNP engine.

Thanks,

Matt



 Posted: Monday Jan 30th, 2017 07:55 am
   
189th Post
bagushandhoko
Member
 

Joined: Saturday Jul 25th, 2015
Location: Jakarta, Indonesia
Posts: 91
Status: 
Offline

  back to top

mattbrain wrote: Thats more devices that I have tested with - be aware that SmartThings limits SmartApp persistent memory to 100,000 bytes which may be run into during discovery for lots of devices.

We are considering changing discovery to overcome these limitations but it requires some changes at the back end which will follow when I refactor the UPNP engine.

Thanks,

Matt

Is it why only 152 devices found from my system , i expect more that 192 devices, because except IRIO i use full 96 output and mostly have input related 

Last edited on Monday Jan 30th, 2017 07:56 am by bagushandhoko



 Posted: Monday Jan 30th, 2017 12:47 pm
   
190th Post
mattbrain
UCM Pi Users


Joined: Tuesday Jun 12th, 2007
Location: United Kingdom
Posts: 185
Status: 
Offline

  back to top

bagushandhoko wrote: mattbrain wrote: Thats more devices that I have tested with - be aware that SmartThings limits SmartApp persistent memory to 100,000 bytes which may be run into during discovery for lots of devices.

We are considering changing discovery to overcome these limitations but it requires some changes at the back end which will follow when I refactor the UPNP engine.

Thanks,

Matt

Is it why only 152 devices found from my system , i expect more that 192 devices, because except IRIO i use full 96 output and mostly have input related 


Wow - ok - there are a lot of devices there.

So, it is clear there is a need for more than 200 devices, and given the limitations in SmartThings I need to be a bit 'crafty' with memory management during discovery. May I propose the following:
1.For the time being can you limit the number of devices exposed to SmartThings to less that ~ 125?

2.I'll work on a workaround for discovery using the existing mechanism to run this through several passes, which will allow all your devices to be found whilst working within the constraints imposed by SmartThings. I'll work with Ben to put this in a future bugfix release (most likely 1.0.0c).

Can you comment on the number of events which occur with all the devices - one other constraint imposed by SmartThings is a maximum event triggers per SmartApp which is at around 250 per minute - this is reported in the Comfort Bridge device as EPM. If you exceed this threshold, SmartThings may drop events (although I have never seen this in practice).

Thanks,

Matt



 Posted: Monday Jan 30th, 2017 01:58 pm
   
191st Post
Pgordon
Member
 

Joined: Saturday Sep 23rd, 2006
Location: London, United Kingdom
Posts: 237
Status: 
Offline

  back to top

I believe I have also seen odd things with what's discovered... As I mentioned a couple of posts above, I am seeing some devices discovered which I'm fairly sure aren't in the config file I uploaded.. - but they may have been in the *default* template - and you remember that at one point earlier I uploaded the unmodified template inadvertently... is it not the case that uploading a config file should fully overwrite any config already uploaded previously? Is there any possibility that devices may have been remembered from a previous config? - I can't see any other reason why I would be getting additional devices...
Also, I'm fairly sure that even though it has found 123 devices, and seems to have topped out there, I reckon I am still missing some... Yesterday afternoon I spent a little time organising all 123 into their respective rooms, so I've created a dozen or so rooms in the app, moved everything thus far discovered into a room, and when looking at several rooms I am noticing absent devices...
The upside is that what is there does indeed seem to be working perfectly. :)  I have seen PIR's change state in the ST app, and I have used the app to control lights that are CBUS channels represented in Comfort as a flag or counter.
What I don't see are any responses - is that normal? - given what you've previously said about the memory limits in ST I'd half expect that you didn't try to discover & represent all the responses... that being the case, how does one then get a response represented in the ST app?
Cheers!
Paul G.



 Posted: Monday Jan 30th, 2017 02:08 pm
   
192nd Post
Pgordon
Member
 

Joined: Saturday Sep 23rd, 2006
Location: London, United Kingdom
Posts: 237
Status: 
Offline

  back to top

Pgordon wrote: What I don't see are any responses - is that normal? - given what you've previously said about the memory limits in ST I'd half expect that you didn't try to discover & represent all the responses... that being the case, how does one then get a response represented in the ST app?
Cheers!
Paul G.
DOH! - I just saw the relevant information in the instructions document! - ignore me, I haven't had enough coffee yet...
Cheers
Paul G.



 Posted: Monday Jan 30th, 2017 02:48 pm
   
193rd Post
mattbrain
UCM Pi Users


Joined: Tuesday Jun 12th, 2007
Location: United Kingdom
Posts: 185
Status: 
Offline

  back to top

Hi Paul

Yes, SmartThings may remember old devices if you have more than one instance of the SmartApp installed - as I mentioned earlier, the interface isn't ideal - rule of thumb is:

Initial discovery should be done by going to:
MarketPlace -> SmartApps -> My Apps -> Comfort Manager (or Cytech Zone UPNP Manager v1 for 1.0.0 installs)
Subsequent discovery (once you have selected some initial devices) can be done from:
Automation -> SmartApps -> Comfort Manager (or Cytech Zone UPNP Manager v1 for 1.0.0 installs)
If you repeat the first stage you may end up duplicating devices causing the error message.

I would recommend that any old devices 'hanging around' should be deleted which will tidy stuff up. Please check in Automation -> SmartApps to make sure you don't have more than one instance of the App installed which might cause some friction.

Thanks,

Matt



 Posted: Wednesday Feb 1st, 2017 01:09 am
   
194th Post
HenleyBranch
UCM Pi Users
 

Joined: Saturday Apr 30th, 2011
Location: United Kingdom
Posts: 75
Status: 
Offline

  back to top

Hi Matt

I have had a Comfort system going for 6+ years and have connected it to my Mac via Indigo. Have been following this thread with serious interest. I have now got all the required bits and am ready to roll.

I started following the steps on Github, but not being experienced with Pi have struggled with copying across the various files such as peer-ssdp.js across. I then discover there is now (as of 23rd Jan) a preconfigured disk image on drop box (on page 6 of this thread). Except the link doesn't work for me? Is this saved anywhere else?!

Really excited by what you have done here, and keen to get going.

H



 Posted: Wednesday Feb 1st, 2017 01:49 am
   
195th Post
mattbrain
UCM Pi Users


Joined: Tuesday Jun 12th, 2007
Location: United Kingdom
Posts: 185
Status: 
Offline

  back to top

Hi H

I updated the image to fix an issue - please see the new link below:

mattbrain wrote: Hi All

So the new version can be downloaded from this link: https://dl.dropboxusercontent.com/u/4178750/Cytech/1.0.0a.img.zip

A quick disclaimer (and as a result of Paul's observation) - I have been in the office today, so whilst I have tested the fix remotely by VPN'ing into my test environment, I have repackaged it by mounting the distribution image on a linux machine, popping in the changes and then saving them out. I haven't actually written an SD Card using this image myself so there is an outside risk it won't mount properly.

Please give it a go and let me know how you get on - my wife has a cold so suspect i'll be looking after the kids (and her) this evening and won't get chance to test this disk image until tomorrow.

The feedback you have both given me today has been invaluable - one of the things which caught me out is how windows and linux differ in their use of CR/LF. All the work I do is on OSX and Linux and had overlooked this obvious gotcha.

It's worth mentioning the text file editing will be the next thing to go - I want allow the configuration to be edited directly in the web gui and will make this happen for the next release.

Thanks,

Matt



 Posted: Wednesday Feb 1st, 2017 02:18 am
   
196th Post
HenleyBranch
UCM Pi Users
 

Joined: Saturday Apr 30th, 2011
Location: United Kingdom
Posts: 75
Status: 
Offline

  back to top

Thanks Matt, for such a prompt response. It's downloading now. Will try again tomorrow evening.

HB



 Posted: Tuesday Feb 7th, 2017 01:33 am
   
197th Post
mattbrain
UCM Pi Users


Joined: Tuesday Jun 12th, 2007
Location: United Kingdom
Posts: 185
Status: 
Offline

  back to top

** Just in case you missed the topic in the main forum **

Hi All

Ben and I are conscious that it isn't always easy to keep you guys informed when new releases are made available or to keep you in the loop.

We have created a simple mailing list, please register using the link below to ensure you're kept up-to date.

Mailing List

We promise not to share your details or send spammy mails - we'll limit what we send to information pertinent to the solution and you can opt out at any time,

Thanks,

Matt & Ben.



 Posted: Sunday Feb 12th, 2017 07:07 am
   
198th Post
bagushandhoko
Member
 

Joined: Saturday Jul 25th, 2015
Location: Jakarta, Indonesia
Posts: 91
Status: 
Offline

  back to top

Can you comment on the number of events which occur with all the devices - one other constraint imposed by SmartThings is a maximum event triggers per SmartApp which is at around 250 per minute - this is reported in the Comfort Bridge device as EPM. If you exceed this threshold, SmartThings may drop events (although I have never seen this in practice).

Thanks,

Matt

really sorry not monitor this thread for some time .....  How to know the events per minute ?  Other side the events occur per minute seem less than 250  



 Posted: Sunday Feb 12th, 2017 01:24 pm
   
199th Post
mattbrain
UCM Pi Users


Joined: Tuesday Jun 12th, 2007
Location: United Kingdom
Posts: 185
Status: 
Offline

  back to top

bagushandhoko wrote:
Can you comment on the number of events which occur with all the devices - one other constraint imposed by SmartThings is a maximum event triggers per SmartApp which is at around 250 per minute - this is reported in the Comfort Bridge device as EPM. If you exceed this threshold, SmartThings may drop events (although I have never seen this in practice).

Thanks,

Matt

really sorry not monitor this thread for some time .....  How to know the events per minute ?  Other side the events occur per minute seem less than 250  

Events Per Minute are reported by the ComfortBridge device in SmartThings - Its reported as xxx EPM where x is the number of events in the last minute. I'm going to add a couple of additional metrics such as daily, weekly and all-time high so it can be better monitored.
Thanks,
Matt



 Posted: Sunday Feb 12th, 2017 05:01 pm
   
200th Post
Pgordon
Member
 

Joined: Saturday Sep 23rd, 2006
Location: London, United Kingdom
Posts: 237
Status: 
Offline

  back to top

Matt, did you make any progress with the login option on the Pi? - I'd like to be able to logon to the console on he Pi, - if I'm reading it right, the load on the Pi by the comfort bridge is really trivial, (It's the latest Pi 3 model B), so I think I could easily have it doing some other things as well...
I recall there was an option to add a "1" to the end of the options set in a config file, - but I think the Windows vs Linux CRLF issue made it not work for me...
Not urgent, but when you have a moment, it would be a nice to have... :-)

Cheers

Paul G.



 Current time is 02:47 pmPage:  First Page Previous Page  ...  5  6  7  8  9  10  11  12  Next Page Last Page  
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems