View, Component Label, Show Network Status

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Trevor, Feb 10, 2026.

  1. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    530
    Likes Received:
    46
    Location:
    Melbourne Victoria
    Hi All,
    I just noticed this option in PICED/Schedule Plus.
    It turns on an indicator of the Cbus network connection state, it does this over any c-bus button control.
    Is there a way to only show this on a specific button and not on all of them. (Perhaps via logic)
    I'd like to have this action for a single C-Bus button but only on a specific page as well.
    Is this possible.
     
    Trevor, Feb 10, 2026
    #1
  2. Trevor

    Wonkey

    Joined:
    Aug 3, 2004
    Messages:
    489
    Likes Received:
    50
    Location:
    Adelaide
    Hi Trevor
    A little better explanation please of how you achieved over all buttons.
    'It turns on an indicator of the Cbus network connection state, it does this over any c-bus button control.'
    So we may understand what it is you are trying to do.
    Explain where you programmed to show C-Bus network connection state on a button.
    Viewing network state is normally available under View | Network States and there's also an area at the bottom of the screen when connected to C-Bus in different colour indicating networks on line off line etc.
     
    Wonkey, Feb 13, 2026
    #2
  3. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    530
    Likes Received:
    46
    Location:
    Melbourne Victoria
    Yes, thats were i found the command. In the menu it turns on an indicator for all the cbus buttons. Id like to just show this on 1 button, on a certain page. Can i program a button to do this eigher through the button setup or logic
     
    Trevor, Feb 13, 2026
    #3
  4. Trevor

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,616
    Likes Received:
    204
    Location:
    Adelaide, Australia
    There is an inbuilt system variable called 'Cbus State' that will return true if PICED/SP is connected to Cbus and False otherwise. You can create an indicator component and set it to this value. Is that what you want?
     
    Ashley, Feb 13, 2026
    #4
  5. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    530
    Likes Received:
    46
    Location:
    Melbourne Victoria
    Yes it is, I'll give it a try next week, cheers.
     
    Trevor, Feb 13, 2026
    #5
  6. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    530
    Likes Received:
    46
    Location:
    Melbourne Victoria
    Hi,
    I just tried this code below, it is changing the background color for the control but its not indicating it when connecting/disconnecting from cbus...(Just setting this up for now, will adjust the code later)

    Code:
    if ShowingPage("Welcome Screen") and GetBoolIBSystemIO("C-Bus State") then
      begin;
         SetCompIntegerProp("Welcome Screen","StatusofCbus", "Background Colour Active", 100);
            end;
      if ShowingPage("Welcome Screen") and NOT GetBoolIBSystemIO("C-Bus State") then
      begin;
         SetCompIntegerProp("Welcome Screen","StatusofCbus", "Background Colour Active",200);
            end;  
     
    Trevor, Feb 15, 2026
    #6
  7. Trevor

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,616
    Likes Received:
    204
    Location:
    Adelaide, Australia
    You are making this very complicated.
    Add a shape and select the background active and inactive colours in visual properties. also check "background status indication'. Go to SystemIO tab, select inbuilt and 'cbus state' All done.

    Also that code is not good. You are updating the display every 200mS. You need something like

    Code:
    If hasChanged(GetBoolIBSystemIO("C-Bus State") then
      if  ShowingPage("Welcome Screen") then
        if GetBoolIBSystemIO("C-Bus State") then
            setCompIntegerProp("Welcome Screen","StatusofCbus", "Background Colour Active", 100)
       else
            setCompIntegerProp("Welcome Screen","StatusofCbus", "Background Colour Active", 200)
    which only set the colour when the state changes.

    As far as your code not working. Are you sure you understand colours? 100 and 200 aren't much different. Colours are 24 bit. Look up colours in help. Also you are setting the active background colour. If the component isn't connected to anything it won't be active.
     
    Ashley, Feb 15, 2026
    #7
  8. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    530
    Likes Received:
    46
    Location:
    Melbourne Victoria
    Thanks for replying,
    It is just quickly thrown together, also noticed that both actions have the same - "Background Colour Active"
    Just fixing it up now...I have this so far now...i have the sys i/o set to the boolean "c-bus state" and added this to the special function for the button, set the colors now to green and red and updated the code for this as well. See below.
    Is this correct, because it still isn't canging when i change the connect to cbus option, but i can see the indicators on my other cbus buttons showing if it is not connected.
    Code:
    If hasChanged(GetBoolIBSystemIO("C-Bus State")) then
      if  ShowingPage("Welcome Screen") then
      if GetBoolIBSystemIO("C-Bus State") then
            setCompIntegerProp("Welcome Screen","StatusofCbus", "Background Colour Active", clGreen)
       else
            setCompIntegerProp("Welcome Screen","StatusofCbus", "Background Colour Inactive", clRed)
     
    Trevor, Feb 15, 2026
    #8
  9. Trevor

    Wonkey

    Joined:
    Aug 3, 2004
    Messages:
    489
    Likes Received:
    50
    Location:
    Adelaide
    Hi Trevor
    Its simpler than that, In Schedule plus or Piced use the button icon that has a hammer and screw driver on it.
    Select the key function 'Status', and System IO variable Inbuilt 'Network state'
     
    Wonkey, Feb 16, 2026
    #9
  10. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    530
    Likes Received:
    46
    Location:
    Melbourne Victoria
    Thanks, I'll look at that later, very busy at the moment..
     
    Trevor, Feb 16, 2026
    #10
  11. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    530
    Likes Received:
    46
    Location:
    Melbourne Victoria
    Hi Wonkey,
    I can't seem to find the icon you suggested...hammer and screw
     
    Trevor, Feb 16, 2026
    #11
  12. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    530
    Likes Received:
    46
    Location:
    Melbourne Victoria
    Hi All,
    I figured it out, silly me i was looking at the system I/O under Special Function, not under the Tab control
    All good now thanks to you both.
     
    Trevor, Feb 16, 2026
    #12
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.