I have ThingTemplate, A_TT, and have service CallService. CallService has Allow Override false.
I have Thing, B_TH, and it was generated, with A_TT as Base Thing Template.
It include properties and services from A_TT, also CallService.
But CallService in A_TT was changed one month ago (imported). And yesterday also (by editing).
But when I open CallService in B_TH, I see old version of code, including none of changes mentioned.If I push button on mashup connected with this service, it behaves like yesterday changes were included, but one-month ago changes not. (wrong observation on my side)
TWX used: 9.5.1-b359
Thing was closed in Composer, Edit was cancelled - but it still does not show correctly.
Problem does not look like browser connected, I've asked other developer for help, he logged with different PC and different account - and it's exactly this same.
Created new Thing based on this template - changes are included.
Does it make a difference when you run "RestartThing" explicitly?
The middle part "yesterday changes were included, but one-month ago changes not" sounds strange, because imports are all-or-nothing.
For the "what you see" when looking a thing in Composer - Composer caches a lot and doesn't always see the latest changes on the model. Closing the thing, saving it or restarting it is a good way of telling Composer to get the current data.
So I think there are two factors in effect here giving you a confusing result. HA setup might be another.
Try to reproduce this with a minimal setup,like one template, one thing, one service. If it's reproducable, create a ticket.
> Does it make a difference when you run "RestartThing" explicitly?
Nothing changed.
> "yesterday changes were included, but one-month ago changes not"
yup, you are right. Finally I found there was bug in other place, which made me believe older changes are not included in execution.
>Closing the thing, saving it or restarting it
All of them checked, none of them helped.
New information:
1. Created new Thing, NewDD_TT, based on this same template. Do not see any bug here, as I change template and save, change is seen in service.
2. Looks like TWX execute service correctly, based on current/nevest code from template. It's only service code shown inside B_TH is shown not correctly. (to be precise, there were two Things created with this template, both have this same bug)
Hi @ZbigniewK
If really this happens, I would raise a ticket, as I would expect that the code shown at B_TH level to be displayed correctly after a RestartThing.