Hi @Jermuk , I took a look at PackML and discovered what I think is an issue with the data model in Grafana:
@todd_abraham and I noticed that certain states in the state timeline are not displayed.
I dug a little deeper by simulating the following state transitions in the PackML state diagram:
1. Resetting
2. Idle
3. Starting
4. Execute
5. Holding
6. Held
7. Unholding
8. Execute
9. Suspending
10. Suspended
11. Unsuspending
12. Execute
13. Completing
14. Complete
(I did this by sending the above signal to the testLocation/DefaultArea/DefaultProductionLine/Command/Complete topic via the MQTT Explorer)
I see that each state is captured by Node-RED:
However, not all states are displayed in Grafana:
The following states are not displayed:
4. Execute
6. Held
10. Suspended
12. Execute
13. Completing
Notice all of the 5 missing states except "13. Completing" are relatively short states that are triggered automatically (via the SC state transition). The other states that do show I triggered manually by sending a command vai MQTT Explorer.
Maybe Grafana has trouble with the short automatic states? On the other hand, all the states show up in Node-RED