![]() |
|
Problems getting started (device network id must be unique) and a few other issues - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Third Party (interfacing to Comfort) (https://www.comfortforums.com/forum-5.html) +--- Forum: alphaWerk UHAI RPi (Community Edition) (https://www.comfortforums.com/forum-136.html) +--- Thread: Problems getting started (device network id must be unique) and a few other issues (/thread-4793.html) |
- slychiu - 11-16-2017 If counter 59=0 Then set counter 59=255 - wexfordman - 11-16-2017 [user=1]slychiu[/user] wrote: Quote:If counter 59=0 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 ? - slychiu - 11-16-2017 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 - wexfordman - 11-16-2017 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 ? - wexfordman - 11-16-2017 [user=1]slychiu[/user] wrote: Quote:Sorry ignore my last post 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 ? - slychiu - 11-17-2017 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? - wexfordman - 11-17-2017 [user=1]slychiu[/user] wrote: Quote:If you just want to turn on the Lights if it is dark thenI am issueing a voice command, so I need to be able to trurn it in and turn it off - slychiu - 11-17-2017 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 - wexfordman - 11-17-2017 [user=1]slychiu[/user] wrote: Quote:I understand that your counter 59 is the light level for automatic switch on of the lights. 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 ? - slychiu - 11-17-2017 Perhaps Matt will have a solution to this Control needs to be separate from status |