¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

CH5 CrComLib.subscribeState Issues


 

Good afternoon all,
I've been dealing with CH5 in Angular since they first allowed us to join the crestronlabs forum for it. Over the last year I've updated and rechecked my test UI's, and recently i noticed an issue. Back when CrComLib was still at 0.1.0 the CrComLib.subsribeState('s', '1', (text) => { this.message = text; }); worked great. Everytime I'd update StringInput[1] in Simpl Windows or Simpl# it would display on the panel. Now i've run into the issue where it doesn't update UNTIL you issue a command to CrComLib, either by publishEvent or getState. I've been trying to get ahold of Crestron to figure out why this is, and even their Angular?NgCh5HorizontalSample UI (just modifying the header to remove the image and put my {{ message}} tag there) it does the same thing. If you tap on the theme change or anything else to send a new CrComLib, the header finally shows the text i sent from Simpl.

If anyone is having this issue or knows why, please let me know. I've been trying to figure it out for over 2 days now.


Chris Vetek
 

This sounds kinda similar to plain old vtpro seeming to not display default serial text until it¡¯s sent text manually. Not sure why




On Friday, May 22, 2020, 4:51 PM, nathan@... wrote:

Good afternoon all,
I've been dealing with CH5 in Angular since they first allowed us to join the crestronlabs forum for it. Over the last year I've updated and rechecked my test UI's, and recently i noticed an issue. Back when CrComLib was still at 0.1.0 the CrComLib.subsribeState('s', '1', (text) => { this.message = text; }); worked great. Everytime I'd update StringInput[1] in Simpl Windows or Simpl# it would display on the panel. Now i've run into the issue where it doesn't update UNTIL you issue a command to CrComLib, either by publishEvent or getState. I've been trying to get ahold of Crestron to figure out why this is, and even their Angular?NgCh5HorizontalSample UI (just modifying the header to remove the image and put my {{ message}} tag there) it does the same thing. If you tap on the theme change or anything else to send a new CrComLib, the header finally shows the text i sent from Simpl.

If anyone is having this issue or knows why, please let me know. I've been trying to figure it out for over 2 days now.


 

¿ªÔÆÌåÓý

Hi Nathan,

I¡¯m using CH5 Contract Editor generated classes ?and passing string works fine, in my case panel has it¡¯s own independent from control system theme and language states and setting in S#Pro:

tsw560Contract.UI.Language((sig, component) => { sig.StringValue = @"en"; });

While at panel level:

CrComLib.subscribeState('s', 'UI.Language', (lang: string) => {
this.currentLang = lang;
});

Receives event instantly and translate interface momentarily¡­.

On May 22, 2020, at 7:22 PM, nathan@... wrote:

Good afternoon all,
I've been dealing with CH5 in Angular since they first allowed us to join the crestronlabs forum for it. Over the last year I've updated and rechecked my test UI's, and recently i noticed an issue. Back when CrComLib was still at 0.1.0 the CrComLib.subsribeState('s', '1', (text) => { this.message = text; }); worked great. Everytime I'd update StringInput[1] in Simpl Windows or Simpl# it would display on the panel. Now i've run into the issue where it doesn't update UNTIL you issue a command to CrComLib, either by publishEvent or getState. I've been trying to get ahold of Crestron to figure out why this is, and even their Angular?NgCh5HorizontalSample UI (just modifying the header to remove the image and put my {{ message}} tag there) it does the same thing. If you tap on the theme change or anything else to send a new CrComLib, the header finally shows the text i sent from Simpl.

If anyone is having this issue or knows why, please let me know. I've been trying to figure it out for over 2 days now.


 

I've done both with Contract Editor and with simple joins with both the same result.?


 

Nathan,

There's a Discord channel for CH5 that might give assistance.?


 

James,

That Discord link didn't work for me. Is it possible for you to share a proper invite link?


 

Scott,

The discord is here:??

Once signed in, you'll see the #ch5 forum within.

Best,
Scott


 

Thanks Scott


 

Got this from Discord///
adding
""
setInterval(function() {},1000);
""

on the same function that calls CrComLib will call the function every 1 sec and refresh the value of what is subscribed.
I don't think that is the right solution but it works.


 

Thats close to what i did to temporarily fix it, except i made it 10 instead of 1000 due to 1 second just being way to slow to update data