Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register
Comfort Automation/ Security System Forums > Third Party (interfacing to Comfort) > alphaWerk UHAI RPi (Community Edition) > Problems getting started (device network id must be unique) and a few other issues

Problems getting started (device network id must be unique) and a few other issues
 Moderated by: slychiu, mattbrain, benstinton Page:  First Page Previous Page  1  2   
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Thursday Nov 16th, 2017 06:23 pm
   PM  Quote  Reply 
21st Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

If counter 59=0
Then set counter 59=255



 Posted: Thursday Nov 16th, 2017 06:47 pm
   PM  Quote  Reply 
22nd Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

slychiu wrote: If counter 59=0
Then set counter 59=255


Hi Slychui,
Apologies, Im slow to learn and quick to forget :-)
So, my understanding is
1) When velbus status changes, comfort updates the value of the counter.2) When the counter value changes, then it triggers a response.3) Then you are saying that the response should set the counter value again ?
Do I also not need to add a "IF counter value =255, then set counter to 0 ?



 Posted: Thursday Nov 16th, 2017 06:57 pm
   PM  Quote  Reply 
23rd Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

Sorry ignore my last post
You have to set a threshold with hystetesis
Eg
If counter 59 < 50 then lights on
If counter 59 > 80 then lights off



 Posted: Thursday Nov 16th, 2017 07:08 pm
   PM  Quote  Reply 
24th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

Thanks again,
But can you explain how this doesnt trigger a loop, as when I turn on the lights, then the counter value will change and trigger the same response again ?



 Posted: Thursday Nov 16th, 2017 07:34 pm
   PM  Quote  Reply 
25th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

slychiu wrote: Sorry ignore my last post
You have to set a threshold with hystetesis
Eg
If counter 59 < 50 then lights on
If counter 59 > 80 then lights off


Sorry, I'm still not getting it, here is what I have done
Set counter 59 to trigger response "corridoor lights"
Respoinse corridoor lights is as follows
If counter 59<60, then do response corridor light on
   else,
       if counter 59>80, then do response corridoor light off


I update comfort with this, and then as first test I go and manually turn on the light at the wall. The result is disco city, the light goes into a continious toggle, and I have to disconnect my velbus before I can talk to comfort again and remove it.
So, I am completely failing to understand how to prevent the toggle loop ?

Last edited on Friday Nov 17th, 2017 06:34 am by slychiu



 Posted: Friday Nov 17th, 2017 06:36 am
   PM  Quote  Reply 
26th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

If you just want to turn on the Lights if it is dark then

If Counter 59 < x then do lights on

Why do you need to turn off the lights?



 Posted: Friday Nov 17th, 2017 11:41 am
   PM  Quote  Reply 
27th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

slychiu wrote: If you just want to turn on the Lights if it is dark then

If Counter 59 < x then do lights on

Why do you need to turn off the lights?
 I am issueing a voice command, so I need to be able to trurn it in and turn it off



 Posted: Friday Nov 17th, 2017 11:58 am
   PM  Quote  Reply 
28th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

I understand that your counter 59 is the light level for automatic switch on of the lights.

It should not be used as general on/off control of the light, as this is why you are having the disco problem

If your voice command triggers responses then on and off commands can be linked to individual responses

I dont know if on and off words can map to values that are sewnt to the counter
eg On sets counter X to 255, Off sets counter X to 0. If so then your counyter response cam switch on or off the lights based on the value. Note that this should not be the same as counter 59 which is the light level



 Posted: Friday Nov 17th, 2017 12:06 pm
   PM  Quote  Reply 
29th Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

slychiu wrote: I understand that your counter 59 is the light level for automatic switch on of the lights.

It should not be used as general on/off control of the light, as this is why you are having the disco problem

If your voice command triggers responses then on and off commands can be linked to individual responses

I dont know if on and off words can map to values that are sewnt to the counter
eg On sets counter X to 255, Off sets counter X to 0. If so then your counyter response cam switch on or off the lights based on the value. Note that this should not be the same as counter 59 which is the light level



Hi slychui,
The objective was to use the counter as the device in St, so counter 59 is the actual light and the status in St is based on the counter value. The control piece is st adusting the counter value to 0 or 255, I don't think the st can adjust two different counters ?



 Posted: Friday Nov 17th, 2017 12:29 pm
   PM  Quote  Reply 
30th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

Perhaps Matt will have a solution to this
Control needs to be separate from status



 Posted: Friday Nov 17th, 2017 03:27 pm
   PM  Quote  Reply 
31st Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 546
Status: 
Offline

  back to top

slychiu wrote: Perhaps Matt will have a solution to this
Control needs to be separate from status


Thanks, will see what he things. I suspect that the solution might be an adaption of what he has so far, in that the control is executing a response, but the ST emulation will prob need to pull in the counter status.
Regards,Eamon



 Posted: Saturday Nov 25th, 2017 05:20 pm
   PM  Quote  Reply 
32nd Post
matt.brain@gmail.com
Member
 

Joined: Wednesday Mar 2nd, 2016
Location:  
Posts: 9
Status: 
Offline

  back to top

The best way to overcome this is to use CoRE or WebCore to report status and enable control to two separate devices to avoid the disco feature.



 Current time is 07:04 amPage:  First Page Previous Page  1  2   
Comfort Automation/ Security System Forums > Third Party (interfacing to Comfort) > alphaWerk UHAI RPi (Community Edition) > Problems getting started (device network id must be unique) and a few other issues
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems