Controlling my thermostat with my Pronto

Discussion in 'C-Bus Serial Protocols' started by Guy Palmer, Aug 19, 2009.

  1. Guy Palmer

    Guy Palmer

    Joined:
    Aug 19, 2009
    Messages:
    25
    Likes Received:
    0
    Location:
    australia
    I am new to CBus, toolkit, etc, having just got CBus thermostat and (wireless) lighting. But I am experienced in programming my Pronto 9400.

    I can now control my lights using the Pronto but I can't work out how to control my thermostat (single zone, 5 relay). The lights work by sending an appropriate code to an appropriate group but I can't work out how to put my thermostat into the same sort of group.

    If someone could tell me how to control my thermostat from a light switch, then I could probably work out the rest.

    Any advice would be most gratefully received.
     
    Guy Palmer, Aug 19, 2009
    #1
  2. Guy Palmer

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The C-Bus Thermostat doesn't use lighting messages. It uses the HVAC Application. The only aspect of the C-Bus thermostat which will respond to a lighting message is the power (on/off) control.

    Will that be adequate for your requirements, or are you wanting to set temperature set-points and control zone dampers?
     
    Darren, Aug 20, 2009
    #2
  3. Guy Palmer

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,392
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    When you set up your thermostat in Toolkit you have on the C-Bus tab a thing called "Communication Group". In there you set a group number.

    This is NOT a lighting group, this a linking group, used to link thermostats together, and also used to allow remote control of a thermostat.

    So, after you have defined it and you know the NUMBER underlying the name, you can issue ON and OFF commands into cbus, against that group. But you must use application AC (hex).

    So, assuming your communication group was 93 (hex), you would issue a lighting-style ON command on application AC (hex), group 93 (hex). Similar for OFF.

    Again here, the Serial Interface Users Guide is your friend. If you want more excruciating detail about HVAC control and the massive headaches you can cause for yourself, the application definition for air con control is also there. It's a barrel of fun. :)
     
    ashleigh, Aug 20, 2009
    #3
  4. Guy Palmer

    Guy Palmer

    Joined:
    Aug 19, 2009
    Messages:
    25
    Likes Received:
    0
    Location:
    australia
    Thanks again, both. Very useful and quick replies.

    For the moment at least, I'm only interested in being able to turn my thermostat on and off remotely. As there is no feedback on temperature settings(?), I had assumed that I couldn't change these remotely.

    At the moment, I don't understand the toolkit at all and, for example, I don't understand the statement "the NUMBER underlying the name". I've set the group to "Group 1". It has address "001". Does that mean that the NUMBER is 01? If not, how to I find out what the NUMBER is?
     
    Guy Palmer, Aug 20, 2009
    #4
  5. Guy Palmer

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,392
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    You better understand toolkit :)

    Toolkit lets you apply a symbolic name to many things that, underneath, are just numbers.

    For example, you can have group called "Bedroom Lights". A nice english name we can all understand. But the units and the bus dont understand this. They want the number, which might for example be 93.

    When you want to play in protocol land you need numbers. Toolkit DOES let you assign names to the numbers - so it is your definitive resource for what the numbers are that are in use. You *must* set everything up in TK. When you do you will name a bunch of things. Note the underlying numbers, because thats what you will use.
     
    ashleigh, Aug 20, 2009
    #5
  6. Guy Palmer

    Guy Palmer

    Joined:
    Aug 19, 2009
    Messages:
    25
    Likes Received:
    0
    Location:
    australia
    I am not objecting to the use of numbers by computers! I'm just trying to find out how to find out what the underlying number is. In my case, would it be '01'?
     
    Guy Palmer, Aug 20, 2009
    #6
  7. Guy Palmer

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,392
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    Probably!

    Explore through the treeview, look at the applications and their contents. All should be revealed.
     
    ashleigh, Aug 21, 2009
    #7
  8. Guy Palmer

    Guy Palmer

    Joined:
    Aug 19, 2009
    Messages:
    25
    Likes Received:
    0
    Location:
    australia
    Thanks - I'll explore.

    A final question: I am clearly getting some feedback messages from my thermostat but I don't know what they mean. I downloaded the document entitled "C-Bus Application Messages & Behaviour: Chapter 0 - Introduction" from the C-Bus site and it says that the format of the these messages is discussed in "Chapter 25 - Heating, Venting and Air Conditioning". However, whilst I found many of the chapters on the C-Bus site, I couldn't find chapter 25. Is it available and, if so, from where?

    Thanks in advance.
     
    Guy Palmer, Aug 21, 2009
    #8
  9. Guy Palmer

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    It looks like that one hasn't been released yet. We will see if we can get that released soon.
     
    Darren, Aug 21, 2009
    #9
  10. Guy Palmer

    Guy Palmer

    Joined:
    Aug 19, 2009
    Messages:
    25
    Likes Received:
    0
    Location:
    australia
    Ok, thanks.
     
    Guy Palmer, Aug 21, 2009
    #10
  11. Guy Palmer

    m007kuzya

    Joined:
    Jul 18, 2009
    Messages:
    1
    Likes Received:
    0
    Location:
    moscow
    Hello all!

    I have a same problem as Guy Palmer.

    I need to control thermostat with my Beckhoff controller via rs232 port.

    I have no problem with control lighting application because i download Lighting Application.pdf. But i can't find description HVAC or Air Condition or samething like application. So i don't understend how i can read temperature and other parametres from thermostat...

    May be somebody can tell me rs232 command to read current and/or desired temperature?

    I watching to my rs232 port when i turn on my thermostat and change desired temperature on it. And i see this data:
    1) 055BAC0079022F02014103160000ED
    2) 055BAC0036020141038100F6
    3) 055B73000207FF25
    4) 055BAC0079022F02014103180000EB
    5) 055BAC001502011A810041
    6) 055BAC0079022F02014103180000EB
    7) 055B73000200000205000206001C
    8) 055BAC00050201030800E1
    ...
    ===
    I try to analyze this data.
    eg:
    055BAC0079022F02014103160000ED

    05 - header
    5B - unit address (91)
    AC - application address (172=Air Condition)
    0079 - turn on ( by analogy Lighting Application)
    02 - group address (communication group)
    2F02014103160000ED - i don't understand...
    Can somebody help me? :)

    ===
    And application log:
    Code:
    1) App= 172  Air Conditioning     Group= 002  temp1                Unit= 091                       Event= Temperature set to 26,5?C for zones: Unswitched; Sensor status = No error
    2) App= 172  Air Conditioning     Group= 002  temp1                Unit= 091                       Event= Communication Group on
    3) App= 172  Air Conditioning     Group= 002  temp1                Unit= 091                       Event= HVAC operating type: Zones = Unswitched; Plant equipment = Heat pump - reverse cycle; Mode = Heat; Flags = Temperature unit is ?C, Setback disabled, Guard disabled; Set Point = 24,0?C; Automatic Fan Mode; Fan running at default speed 
    4) App= 115  HVAC Actuator 1      Group= 000  [CG02] B (cool activation) Unit= 091                       Event= Group off
    5) App= 115  HVAC Actuator 1      Group= 005  [CG02] Y (heat/cool) Unit= 091                       Event= Group off
    6) App= 115  HVAC Actuator 1      Group= 006  [CG02] G (fan)       Unit= 091                       Event= Group off
    7) App= 172  Air Conditioning     Group= 002  temp1                Unit= 091                       Event= HVAC plant status: Zones = Unswitched; Plant equipment = Heat pump - reverse cycle; Flags = Damper open; No error
    8) App= 115  HVAC Actuator 1      Group= 007  [CG02] B (heat activation) Unit= 091                       Event= Group on
    
    P.s.: sorry for my terrible english, it's not my native language :)
     
    m007kuzya, Aug 21, 2009
    #11
  12. Guy Palmer

    Guy Palmer

    Joined:
    Aug 19, 2009
    Messages:
    25
    Likes Received:
    0
    Location:
    australia
    By trial and error, I have come up with the following. The The 9th and 10th characters say what the message is about. It can take the following values:

    01 = thermostat is off
    79 = thermostat is on
    05 = status of the heating unit itself
    15 = ???; currently ignoring (seems to take all sorts of values)
    36 = ???; currently ignoring (but seems similar to value 05, i.e. with an on and off state)

    If it is 79, then the 23rd and 24th characters say what temperature it is set at (in your code above, 16 which is 22degC in decimal).

    If it is 05, then the 17th and 18th characters say whether the heating unit is on or off (08 for on and 0A for off).
     
    Guy Palmer, Aug 22, 2009
    #12
  13. Guy Palmer

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,392
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    Be careful - trial and error is not quite right.

    We're trying to get that document put up on the web site. It might take a couple of days.

    Warning:
    The A/C control app is *very very very* complex. It's the largest longest application definition of any of them and by the time you understand it you'll have grey hairs :)
     
    ashleigh, Aug 22, 2009
    #13
  14. Guy Palmer

    Conformist

    Joined:
    Aug 4, 2004
    Messages:
    760
    Likes Received:
    67
    Location:
    Adelaide, South Australia
    Can I suggest that if you have a logic engine, you can map the IBsystemIO to a recognisable string and use the RS232 port (the PACA would do this nicely) there.
     
    Conformist, Aug 22, 2009
    #14
  15. Guy Palmer

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    That is an understatement :(

    Using trial and error you will work out bits of it, but you will never get it working 100% right under all circumstances.
     
    Darren, Aug 22, 2009
    #15
  16. Guy Palmer

    nickrusanov

    Joined:
    Aug 5, 2004
    Messages:
    308
    Likes Received:
    0
    Location:
    russia
    Any success?
     
    nickrusanov, Aug 27, 2009
    #16
  17. Guy Palmer

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Last edited by a moderator: Aug 28, 2009
    Darren, Aug 28, 2009
    #17
  18. Guy Palmer

    Guy Palmer

    Joined:
    Aug 19, 2009
    Messages:
    25
    Likes Received:
    0
    Location:
    australia
    Thanks very much. I've now got everything working, including changing the thermostat temperature setting from my Pronto.
     
    Guy Palmer, Aug 28, 2009
    #18
  19. Guy Palmer

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,392
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    Be vewy vewy careful. Changing the set point also requires you to change or set the operating modes in the same command. Your solution may well work for you but it is most likely difficult to generalise to other installations (without a bit of extra work).
     
    ashleigh, Aug 29, 2009
    #19
  20. Guy Palmer

    Guy Palmer

    Joined:
    Aug 19, 2009
    Messages:
    25
    Likes Received:
    0
    Location:
    australia
    Yes, I was vewy, vewy careful and have no plans to generalise my script.
     
    Guy Palmer, Aug 29, 2009
    #20
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.