I have a subscription for a datachange of the property, and whenever there is a data change i am performing certain function and when the value is zero i have to perform certain function.
The data is getting updated by the remote thing and i have a value stream assigned to the thing.
I dont have an issue when the data changes, but when the data for the property is flowing 0 always. the data change event is not getting triggered and i am not able to perform the required action when the value is 0.
Can someone help me and let me know how can i write an event for which every time the data comes to the value stream weather it is changed or not, i have to rise an event and use the same event for subscription.
So the event fires based on the DataChange Setting
Value - Whenever the value changes
Always - Whenever the value is written (regardless if it is the same value)
Never - Never
On - Goes to True
Off - Goes to False
I have set the property datachange setting to "always" because of which i am able to log data to the value stream even though it is same.
But my problem lies in the subscription, where i have the option to set the event as Datachange for a property. But i don't have the option as always. Here if the data change happens, the subscription functionality is getting executed. If the value streaming is same then the subscription is not getting executed.
Do you have any thoughts on the this??? what could be the reason and how can we achieve it.
Logged and DataChange use the same DataChange aspect so they will always go hand in hand.
If you must have DataChange subscription to an Always then your logging will be always as well, if you don't want that then use your datachange subscription to detect if the VTQ is different (since it has old and new value it is easy to detect) and manually add the values to the stream vs. using the logged check box.
I have the below configuration for remote thing
and below is the configuration for local thing which is bound to remote thing.
and finally this was the configuration done for the subscription.
Is my configuration right ??
Is my configuration right to the purpose what i have asked for. Request your thoughts on the same.
In what you are describing that you want I don't think there is a way to get
logged - on value change
event - on always
with the automated logging at least.
you can get always/always and accept redundant entries
or do all of it through the datachange event.
Sorry I didnt get your point.
I have set the local thing logged aspect to true and datachange type always.
For remote thing that is pushing value to local thing, I did not set the logged to true, is that i need to set it to true?? and the push type to always pushed?
Where will i find "event - on always" in the subscription. we only have Alert,AlertAck,AlertReset,AnomalyMonitorStatus etc but not always.
Can you please elaborate little more on what should be my configuration so that when the value is streaming on to the platform to a remotething irrespective of the value is changed or not changed i want to run the subscription whenever it logs.
I tried with the configuration but i didnt get the subscription firing up if the value streaming are same.