The below animation is from DB1 using ui-statetrail
Example Data
[{"id":"cfa20ab9553a7307","type":"inject","z":"7f8982c35e9b9f8c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4470,"y":3240,"wires":[["1dd53e046a65a15e"]]},{"id":"1dd53e046a65a15e","type":"change","z":"7f8982c35e9b9f8c","name":"Example Data","rules":[{"t":"set","p":"payload","pt":"msg","to":"[{\"state\":\"FALSE\",\"timestamp\":1733819340000},{\"state\":\"TRUE\",\"timestamp\":1733819280000},{\"state\":\"FALSE\",\"timestamp\":1733819220000},{\"state\":\"TRUE\",\"timestamp\":1733819160000},{\"state\":\"FALSE\",\"timestamp\":1733819100000},{\"state\":\"FALSE\",\"timestamp\":1733819040000},{\"state\":\"TRUE\",\"timestamp\":1733818980000},{\"state\":\"FALSE\",\"timestamp\":1733818920000},{\"state\":\"TRUE\",\"timestamp\":1733818860000},{\"state\":\"TRUE\",\"timestamp\":1733818800000},{\"state\":\"TRUE\",\"timestamp\":1733818740000},{\"state\":\"TRUE\",\"timestamp\":1733818680000},{\"state\":\"FALSE\",\"timestamp\":1733818620000},{\"state\":\"FALSE\",\"timestamp\":1733818560000},{\"state\":\"FALSE\",\"timestamp\":1733818500000},{\"state\":\"FALSE\",\"timestamp\":1733818440000},{\"state\":\"FALSE\",\"timestamp\":1733818380000},{\"state\":\"FALSE\",\"timestamp\":1733818320000},{\"state\":\"FALSE\",\"timestamp\":1733818260000},{\"state\":\"FALSE\",\"timestamp\":1733818200000},{\"state\":\"FALSE\",\"timestamp\":1733818140000},{\"state\":\"FALSE\",\"timestamp\":1733818080000},{\"state\":\"FALSE\",\"timestamp\":1733818020000},{\"state\":\"FALSE\",\"timestamp\":1733817960000},{\"state\":\"FALSE\",\"timestamp\":1733817900000},{\"state\":\"TRUE\",\"timestamp\":1733817840000},{\"state\":\"TRUE\",\"timestamp\":1733817780000},{\"state\":\"TRUE\",\"timestamp\":1733817720000},{\"state\":\"TRUE\",\"timestamp\":1733817660000},{\"state\":\"TRUE\",\"timestamp\":1733817600000},{\"state\":\"TRUE\",\"timestamp\":1733817540000},{\"state\":\"TRUE\",\"timestamp\":1733817480000},{\"state\":\"TRUE\",\"timestamp\":1733817420000},{\"state\":\"TRUE\",\"timestamp\":1733817360000},{\"state\":\"TRUE\",\"timestamp\":1733817300000},{\"state\":\"TRUE\",\"timestamp\":1733817240000},{\"state\":\"TRUE\",\"timestamp\":1733817180000},{\"state\":\"TRUE\",\"timestamp\":1733817120000},{\"state\":\"TRUE\",\"timestamp\":1733817060000},{\"state\":\"TRUE\",\"timestamp\":1733817000000},{\"state\":\"TRUE\",\"timestamp\":1733816940000},{\"state\":\"FALSE\",\"timestamp\":1733816880000},{\"state\":\"FALSE\",\"timestamp\":1733816820000},{\"state\":\"TRUE\",\"timestamp\":1733816760000},{\"state\":\"TRUE\",\"timestamp\":1733816700000},{\"state\":\"FALSE\",\"timestamp\":1733816640000},{\"state\":\"FALSE\",\"timestamp\":1733816580000},{\"state\":\"FALSE\",\"timestamp\":1733816520000},{\"state\":\"FALSE\",\"timestamp\":1733816460000},{\"state\":\"FALSE\",\"timestamp\":1733816400000},{\"state\":\"TRUE\",\"timestamp\":1733816340000},{\"state\":\"TRUE\",\"timestamp\":1733816280000},{\"state\":\"TRUE\",\"timestamp\":1733816220000},{\"state\":\"TRUE\",\"timestamp\":1733816160000},{\"state\":\"TRUE\",\"timestamp\":1733816100000},{\"state\":\"TRUE\",\"timestamp\":1733816040000},{\"state\":\"TRUE\",\"timestamp\":1733815980000},{\"state\":\"TRUE\",\"timestamp\":1733815920000},{\"state\":\"TRUE\",\"timestamp\":1733815860000},{\"state\":\"TRUE\",\"timestamp\":1733815800000},{\"state\":\"TRUE\",\"timestamp\":1733815740000},{\"state\":\"TRUE\",\"timestamp\":1733815680000},{\"state\":\"TRUE\",\"timestamp\":1733815620000},{\"state\":\"TRUE\",\"timestamp\":1733815560000},{\"state\":\"TRUE\",\"timestamp\":1733815500000},{\"state\":\"TRUE\",\"timestamp\":1733815440000},{\"state\":\"TRUE\",\"timestamp\":1733815380000},{\"state\":\"TRUE\",\"timestamp\":1733815320000},{\"state\":\"TRUE\",\"timestamp\":1733815260000},{\"state\":\"TRUE\",\"timestamp\":1733815200000},{\"state\":\"TRUE\",\"timestamp\":1733815140000},{\"state\":\"TRUE\",\"timestamp\":1733815080000},{\"state\":\"TRUE\",\"timestamp\":1733815020000},{\"state\":\"TRUE\",\"timestamp\":1733814960000},{\"state\":\"TRUE\",\"timestamp\":1733814900000},{\"state\":\"TRUE\",\"timestamp\":1733814840000},{\"state\":\"TRUE\",\"timestamp\":1733814780000},{\"state\":\"TRUE\",\"timestamp\":1733814720000},{\"state\":\"TRUE\",\"timestamp\":1733814660000},{\"state\":\"TRUE\",\"timestamp\":1733814600000},{\"state\":\"TRUE\",\"timestamp\":1733814540000},{\"state\":\"TRUE\",\"timestamp\":1733814480000},{\"state\":\"TRUE\",\"timestamp\":1733814420000},{\"state\":\"TRUE\",\"timestamp\":1733814360000},{\"state\":\"TRUE\",\"timestamp\":1733814300000},{\"state\":\"TRUE\",\"timestamp\":1733814240000},{\"state\":\"TRUE\",\"timestamp\":1733814180000},{\"state\":\"TRUE\",\"timestamp\":1733814120000},{\"state\":\"TRUE\",\"timestamp\":1733814060000},{\"state\":\"TRUE\",\"timestamp\":1733814000000},{\"state\":\"FALSE\",\"timestamp\":1733813940000},{\"state\":\"FALSE\",\"timestamp\":1733813880000},{\"state\":\"FALSE\",\"timestamp\":1733813820000},{\"state\":\"FALSE\",\"timestamp\":1733813760000},{\"state\":\"FALSE\",\"timestamp\":1733813700000},{\"state\":\"FALSE\",\"timestamp\":1733813640000},{\"state\":\"TRUE\",\"timestamp\":1733813580000},{\"state\":\"TRUE\",\"timestamp\":1733813520000},{\"state\":\"TRUE\",\"timestamp\":1733813460000},{\"state\":\"TRUE\",\"timestamp\":1733813400000},{\"state\":\"TRUE\",\"timestamp\":1733813340000},{\"state\":\"TRUE\",\"timestamp\":1733813280000},{\"state\":\"TRUE\",\"timestamp\":1733813220000},{\"state\":\"TRUE\",\"timestamp\":1733813160000},{\"state\":\"TRUE\",\"timestamp\":1733813100000},{\"state\":\"FALSE\",\"timestamp\":1733813040000},{\"state\":\"FALSE\",\"timestamp\":1733812980000},{\"state\":\"FALSE\",\"timestamp\":1733812920000},{\"state\":\"FALSE\",\"timestamp\":1733812860000},{\"state\":\"TRUE\",\"timestamp\":1733812800000},{\"state\":\"TRUE\",\"timestamp\":1733812740000},{\"state\":\"TRUE\",\"timestamp\":1733812680000},{\"state\":\"TRUE\",\"timestamp\":1733812620000},{\"state\":\"TRUE\",\"timestamp\":1733812560000},{\"state\":\"TRUE\",\"timestamp\":1733812500000},{\"state\":\"FALSE\",\"timestamp\":1733812440000},{\"state\":\"FALSE\",\"timestamp\":1733812380000},{\"state\":\"FALSE\",\"timestamp\":1733812320000},{\"state\":\"FALSE\",\"timestamp\":1733812260000},{\"state\":\"FALSE\",\"timestamp\":1733812200000},{\"state\":\"FALSE\",\"timestamp\":1733812140000},{\"state\":\"FALSE\",\"timestamp\":1733812080000},{\"state\":\"FALSE\",\"timestamp\":1733812020000},{\"state\":\"FALSE\",\"timestamp\":1733811960000},{\"state\":\"FALSE\",\"timestamp\":1733811900000},{\"state\":\"FALSE\",\"timestamp\":1733811840000},{\"state\":\"FALSE\",\"timestamp\":1733811780000},{\"state\":\"FALSE\",\"timestamp\":1733811720000},{\"state\":\"FALSE\",\"timestamp\":1733811660000},{\"state\":\"FALSE\",\"timestamp\":1733811600000},{\"state\":\"FALSE\",\"timestamp\":1733811540000},{\"state\":\"FALSE\",\"timestamp\":1733811480000},{\"state\":\"FALSE\",\"timestamp\":1733811420000},{\"state\":\"FALSE\",\"timestamp\":1733811360000},{\"state\":\"FALSE\",\"timestamp\":1733811300000},{\"state\":\"FALSE\",\"timestamp\":1733811240000},{\"state\":\"FALSE\",\"timestamp\":1733811180000},{\"state\":\"FALSE\",\"timestamp\":1733811120000},{\"state\":\"FALSE\",\"timestamp\":1733811060000},{\"state\":\"FALSE\",\"timestamp\":1733811000000},{\"state\":\"FALSE\",\"timestamp\":1733810940000},{\"state\":\"FALSE\",\"timestamp\":1733810880000},{\"state\":\"FALSE\",\"timestamp\":1733810820000},{\"state\":\"FALSE\",\"timestamp\":1733810760000},{\"state\":\"FALSE\",\"timestamp\":1733810700000},{\"state\":\"FALSE\",\"timestamp\":1733810640000},{\"state\":\"FALSE\",\"timestamp\":1733810580000},{\"state\":\"FALSE\",\"timestamp\":1733810520000},{\"state\":\"FALSE\",\"timestamp\":1733810460000},{\"state\":\"TRUE\",\"timestamp\":1733810400000},{\"state\":\"TRUE\",\"timestamp\":1733810340000},{\"state\":\"TRUE\",\"timestamp\":1733810280000},{\"state\":\"TRUE\",\"timestamp\":1733810220000},{\"state\":\"TRUE\",\"timestamp\":1733810160000},{\"state\":\"TRUE\",\"timestamp\":1733810100000},{\"state\":\"TRUE\",\"timestamp\":1733810040000},{\"state\":\"TRUE\",\"timestamp\":1733809980000},{\"state\":\"TRUE\",\"timestamp\":1733809920000},{\"state\":\"TRUE\",\"timestamp\":1733809860000},{\"state\":\"TRUE\",\"timestamp\":1733809800000},{\"state\":\"TRUE\",\"timestamp\":1733809740000},{\"state\":\"TRUE\",\"timestamp\":1733809680000},{\"state\":\"FALSE\",\"timestamp\":1733809620000},{\"state\":\"FALSE\",\"timestamp\":1733809560000},{\"state\":\"FALSE\",\"timestamp\":1733809500000},{\"state\":\"FALSE\",\"timestamp\":1733809440000},{\"state\":\"TRUE\",\"timestamp\":1733809380000},{\"state\":\"TRUE\",\"timestamp\":1733809320000},{\"state\":\"TRUE\",\"timestamp\":1733809260000},{\"state\":\"TRUE\",\"timestamp\":1733809200000},{\"state\":\"TRUE\",\"timestamp\":1733809140000},{\"state\":\"TRUE\",\"timestamp\":1733809080000},{\"state\":\"TRUE\",\"timestamp\":1733809020000},{\"state\":\"TRUE\",\"timestamp\":1733808960000},{\"state\":\"TRUE\",\"timestamp\":1733808900000},{\"state\":\"TRUE\",\"timestamp\":1733808840000},{\"state\":\"TRUE\",\"timestamp\":1733808780000},{\"state\":\"TRUE\",\"timestamp\":1733808720000},{\"state\":\"TRUE\",\"timestamp\":1733808660000},{\"state\":\"TRUE\",\"timestamp\":1733808600000},{\"state\":\"TRUE\",\"timestamp\":1733808540000},{\"state\":\"TRUE\",\"timestamp\":1733808480000},{\"state\":\"TRUE\",\"timestamp\":1733808420000},{\"state\":\"TRUE\",\"timestamp\":1733808360000},{\"state\":\"TRUE\",\"timestamp\":1733808300000},{\"state\":\"TRUE\",\"timestamp\":1733808240000},{\"state\":\"TRUE\",\"timestamp\":1733808180000},{\"state\":\"TRUE\",\"timestamp\":1733808120000},{\"state\":\"TRUE\",\"timestamp\":1733808060000},{\"state\":\"TRUE\",\"timestamp\":1733808000000},{\"state\":\"TRUE\",\"timestamp\":1733807940000},{\"state\":\"TRUE\",\"timestamp\":1733807880000},{\"state\":\"TRUE\",\"timestamp\":1733807820000},{\"state\":\"TRUE\",\"timestamp\":1733807760000},{\"state\":\"TRUE\",\"timestamp\":1733807700000},{\"state\":\"TRUE\",\"timestamp\":1733807640000},{\"state\":\"TRUE\",\"timestamp\":1733807580000},{\"state\":\"TRUE\",\"timestamp\":1733807520000},{\"state\":\"TRUE\",\"timestamp\":1733807460000},{\"state\":\"TRUE\",\"timestamp\":1733807400000},{\"state\":\"TRUE\",\"timestamp\":1733807340000},{\"state\":\"TRUE\",\"timestamp\":1733807280000},{\"state\":\"TRUE\",\"timestamp\":1733807220000},{\"state\":\"TRUE\",\"timestamp\":1733807160000},{\"state\":\"TRUE\",\"timestamp\":1733807100000},{\"state\":\"TRUE\",\"timestamp\":1733807040000},{\"state\":\"TRUE\",\"timestamp\":1733806980000},{\"state\":\"FALSE\",\"timestamp\":1733806920000},{\"state\":\"TRUE\",\"timestamp\":1733806860000},{\"state\":\"TRUE\",\"timestamp\":1733806800000},{\"state\":\"TRUE\",\"timestamp\":1733806740000},{\"state\":\"TRUE\",\"timestamp\":1733806680000},{\"state\":\"FALSE\",\"timestamp\":1733806620000},{\"state\":\"FALSE\",\"timestamp\":1733806560000},{\"state\":\"TRUE\",\"timestamp\":1733806500000},{\"state\":\"TRUE\",\"timestamp\":1733806440000},{\"state\":\"TRUE\",\"timestamp\":1733806380000},{\"state\":\"TRUE\",\"timestamp\":1733806320000},{\"state\":\"TRUE\",\"timestamp\":1733806260000},{\"state\":\"TRUE\",\"timestamp\":1733806200000},{\"state\":\"TRUE\",\"timestamp\":1733806140000},{\"state\":\"FALSE\",\"timestamp\":1733806080000},{\"state\":\"TRUE\",\"timestamp\":1733806020000},{\"state\":\"TRUE\",\"timestamp\":1733805960000},{\"state\":\"FALSE\",\"timestamp\":1733805900000},{\"state\":\"TRUE\",\"timestamp\":1733805840000},{\"state\":\"TRUE\",\"timestamp\":1733805780000},{\"state\":\"TRUE\",\"timestamp\":1733805720000},{\"state\":\"TRUE\",\"timestamp\":1733805660000},{\"state\":\"TRUE\",\"timestamp\":1733805600000},{\"state\":\"TRUE\",\"timestamp\":1733805540000},{\"state\":\"TRUE\",\"timestamp\":1733805480000},{\"state\":\"TRUE\",\"timestamp\":1733805420000},{\"state\":\"TRUE\",\"timestamp\":1733805360000},{\"state\":\"TRUE\",\"timestamp\":1733805300000},{\"state\":\"TRUE\",\"timestamp\":1733805240000},{\"state\":\"TRUE\",\"timestamp\":1733805180000},{\"state\":\"TRUE\",\"timestamp\":1733805120000},{\"state\":\"TRUE\",\"timestamp\":1733805060000},{\"state\":\"TRUE\",\"timestamp\":1733805000000},{\"state\":\"TRUE\",\"timestamp\":1733804940000},{\"state\":\"TRUE\",\"timestamp\":1733804880000},{\"state\":\"TRUE\",\"timestamp\":1733804820000},{\"state\":\"TRUE\",\"timestamp\":1733804760000},{\"state\":\"TRUE\",\"timestamp\":1733804700000},{\"state\":\"TRUE\",\"timestamp\":1733804640000},{\"state\":\"TRUE\",\"timestamp\":1733804580000},{\"state\":\"TRUE\",\"timestamp\":1733804520000},{\"state\":\"TRUE\",\"timestamp\":1733804460000},{\"state\":\"TRUE\",\"timestamp\":1733804400000},{\"state\":\"TRUE\",\"timestamp\":1733804340000},{\"state\":\"TRUE\",\"timestamp\":1733804280000},{\"state\":\"TRUE\",\"timestamp\":1733804220000},{\"state\":\"TRUE\",\"timestamp\":1733804160000},{\"state\":\"TRUE\",\"timestamp\":1733804100000},{\"state\":\"TRUE\",\"timestamp\":1733804040000},{\"state\":\"TRUE\",\"timestamp\":1733803980000},{\"state\":\"TRUE\",\"timestamp\":1733803920000},{\"state\":\"TRUE\",\"timestamp\":1733803860000},{\"state\":\"TRUE\",\"timestamp\":1733803800000},{\"state\":\"TRUE\",\"timestamp\":1733803740000},{\"state\":\"TRUE\",\"timestamp\":1733803680000},{\"state\":\"TRUE\",\"timestamp\":1733803620000},{\"state\":\"TRUE\",\"timestamp\":1733803560000},{\"state\":\"TRUE\",\"timestamp\":1733803500000},{\"state\":\"TRUE\",\"timestamp\":1733803440000},{\"state\":\"TRUE\",\"timestamp\":1733803380000},{\"state\":\"TRUE\",\"timestamp\":1733803320000},{\"state\":\"TRUE\",\"timestamp\":1733803260000},{\"state\":\"TRUE\",\"timestamp\":1733803200000},{\"state\":\"TRUE\",\"timestamp\":1733803140000},{\"state\":\"TRUE\",\"timestamp\":1733803080000},{\"state\":\"TRUE\",\"timestamp\":1733803020000},{\"state\":\"TRUE\",\"timestamp\":1733802960000},{\"state\":\"TRUE\",\"timestamp\":1733802900000},{\"state\":\"TRUE\",\"timestamp\":1733802840000},{\"state\":\"TRUE\",\"timestamp\":1733802780000},{\"state\":\"TRUE\",\"timestamp\":1733802720000},{\"state\":\"TRUE\",\"timestamp\":1733802660000},{\"state\":\"TRUE\",\"timestamp\":1733802600000},{\"state\":\"TRUE\",\"timestamp\":1733802540000},{\"state\":\"TRUE\",\"timestamp\":1733802480000},{\"state\":\"TRUE\",\"timestamp\":1733802420000},{\"state\":\"TRUE\",\"timestamp\":1733802360000},{\"state\":\"TRUE\",\"timestamp\":1733802300000},{\"state\":\"TRUE\",\"timestamp\":1733802240000},{\"state\":\"TRUE\",\"timestamp\":1733802180000},{\"state\":\"TRUE\",\"timestamp\":1733802120000},{\"state\":\"TRUE\",\"timestamp\":1733802060000},{\"state\":\"TRUE\",\"timestamp\":1733802000000},{\"state\":\"TRUE\",\"timestamp\":1733801940000},{\"state\":\"TRUE\",\"timestamp\":1733801880000},{\"state\":\"TRUE\",\"timestamp\":1733801820000},{\"state\":\"TRUE\",\"timestamp\":1733801760000},{\"state\":\"TRUE\",\"timestamp\":1733801700000},{\"state\":\"TRUE\",\"timestamp\":1733801640000},{\"state\":\"TRUE\",\"timestamp\":1733801580000},{\"state\":\"TRUE\",\"timestamp\":1733801520000},{\"state\":\"TRUE\",\"timestamp\":1733801460000},{\"state\":\"TRUE\",\"timestamp\":1733801400000},{\"state\":\"TRUE\",\"timestamp\":1733801340000},{\"state\":\"TRUE\",\"timestamp\":1733801280000},{\"state\":\"TRUE\",\"timestamp\":1733801220000},{\"state\":\"TRUE\",\"timestamp\":1733801160000},{\"state\":\"TRUE\",\"timestamp\":1733801100000},{\"state\":\"TRUE\",\"timestamp\":1733801040000},{\"state\":\"TRUE\",\"timestamp\":1733800980000},{\"state\":\"TRUE\",\"timestamp\":1733800920000},{\"state\":\"TRUE\",\"timestamp\":1733800860000},{\"state\":\"TRUE\",\"timestamp\":1733800800000},{\"state\":\"TRUE\",\"timestamp\":1733800740000},{\"state\":\"TRUE\",\"timestamp\":1733800680000},{\"state\":\"TRUE\",\"timestamp\":1733800620000},{\"state\":\"TRUE\",\"timestamp\":1733800560000},{\"state\":\"TRUE\",\"timestamp\":1733800500000},{\"state\":\"TRUE\",\"timestamp\":1733800440000},{\"state\":\"TRUE\",\"timestamp\":1733800380000},{\"state\":\"TRUE\",\"timestamp\":1733800320000},{\"state\":\"TRUE\",\"timestamp\":1733800260000},{\"state\":\"TRUE\",\"timestamp\":1733800200000},{\"state\":\"TRUE\",\"timestamp\":1733800140000},{\"state\":\"FALSE\",\"timestamp\":1733800080000},{\"state\":\"FALSE\",\"timestamp\":1733800020000},{\"state\":\"FALSE\",\"timestamp\":1733799960000},{\"state\":\"FALSE\",\"timestamp\":1733799900000},{\"state\":\"FALSE\",\"timestamp\":1733799840000},{\"state\":\"FALSE\",\"timestamp\":1733799780000},{\"state\":\"FALSE\",\"timestamp\":1733799720000},{\"state\":\"FALSE\",\"timestamp\":1733799660000},{\"state\":\"FALSE\",\"timestamp\":1733799600000},{\"state\":\"FALSE\",\"timestamp\":1733799540000},{\"state\":\"FALSE\",\"timestamp\":1733799480000},{\"state\":\"FALSE\",\"timestamp\":1733799420000},{\"state\":\"FALSE\",\"timestamp\":1733799360000},{\"state\":\"FALSE\",\"timestamp\":1733799300000},{\"state\":\"FALSE\",\"timestamp\":1733799240000},{\"state\":\"FALSE\",\"timestamp\":1733799180000},{\"state\":\"FALSE\",\"timestamp\":1733799120000},{\"state\":\"FALSE\",\"timestamp\":1733799060000},{\"state\":\"FALSE\",\"timestamp\":1733799000000},{\"state\":\"FALSE\",\"timestamp\":1733798940000},{\"state\":\"FALSE\",\"timestamp\":1733798880000},{\"state\":\"FALSE\",\"timestamp\":1733798820000},{\"state\":\"FALSE\",\"timestamp\":1733798760000},{\"state\":\"FALSE\",\"timestamp\":1733798700000},{\"state\":\"FALSE\",\"timestamp\":1733798640000},{\"state\":\"FALSE\",\"timestamp\":1733798580000},{\"state\":\"FALSE\",\"timestamp\":1733798520000},{\"state\":\"FALSE\",\"timestamp\":1733798460000},{\"state\":\"FALSE\",\"timestamp\":1733798400000},{\"state\":\"FALSE\",\"timestamp\":1733798340000},{\"state\":\"FALSE\",\"timestamp\":1733798280000},{\"state\":\"FALSE\",\"timestamp\":1733798220000},{\"state\":\"FALSE\",\"timestamp\":1733798160000},{\"state\":\"FALSE\",\"timestamp\":1733798100000},{\"state\":\"FALSE\",\"timestamp\":1733798040000},{\"state\":\"TRUE\",\"timestamp\":1733797980000},{\"state\":\"TRUE\",\"timestamp\":1733797920000},{\"state\":\"TRUE\",\"timestamp\":1733797860000},{\"state\":\"TRUE\",\"timestamp\":1733797800000},{\"state\":\"TRUE\",\"timestamp\":1733797740000},{\"state\":\"FALSE\",\"timestamp\":1733797680000},{\"state\":\"FALSE\",\"timestamp\":1733797620000},{\"state\":\"FALSE\",\"timestamp\":1733797560000},{\"state\":\"FALSE\",\"timestamp\":1733797500000},{\"state\":\"TRUE\",\"timestamp\":1733797440000},{\"state\":\"TRUE\",\"timestamp\":1733797380000},{\"state\":\"TRUE\",\"timestamp\":1733797320000},{\"state\":\"TRUE\",\"timestamp\":1733797260000},{\"state\":\"TRUE\",\"timestamp\":1733797200000},{\"state\":\"TRUE\",\"timestamp\":1733797140000},{\"state\":\"TRUE\",\"timestamp\":1733797080000},{\"state\":\"TRUE\",\"timestamp\":1733797020000},{\"state\":\"TRUE\",\"timestamp\":1733796960000},{\"state\":\"TRUE\",\"timestamp\":1733796900000},{\"state\":\"TRUE\",\"timestamp\":1733796840000},{\"state\":\"TRUE\",\"timestamp\":1733796780000},{\"state\":\"TRUE\",\"timestamp\":1733796720000},{\"state\":\"TRUE\",\"timestamp\":1733796660000},{\"state\":\"TRUE\",\"timestamp\":1733796600000},{\"state\":\"TRUE\",\"timestamp\":1733796540000},{\"state\":\"TRUE\",\"timestamp\":1733796480000},{\"state\":\"TRUE\",\"timestamp\":1733796420000},{\"state\":\"TRUE\",\"timestamp\":1733796360000},{\"state\":\"TRUE\",\"timestamp\":1733796300000},{\"state\":\"TRUE\",\"timestamp\":1733796240000},{\"state\":\"TRUE\",\"timestamp\":1733796180000},{\"state\":\"TRUE\",\"timestamp\":1733796120000},{\"state\":\"TRUE\",\"timestamp\":1733796060000},{\"state\":\"TRUE\",\"timestamp\":1733796000000},{\"state\":\"TRUE\",\"timestamp\":1733795940000},{\"state\":\"TRUE\",\"timestamp\":1733795880000},{\"state\":\"TRUE\",\"timestamp\":1733795820000},{\"state\":\"TRUE\",\"timestamp\":1733795760000},{\"state\":\"TRUE\",\"timestamp\":1733795700000},{\"state\":\"TRUE\",\"timestamp\":1733795640000},{\"state\":\"TRUE\",\"timestamp\":1733795580000},{\"state\":\"TRUE\",\"timestamp\":1733795520000},{\"state\":\"TRUE\",\"timestamp\":1733795460000},{\"state\":\"TRUE\",\"timestamp\":1733795400000},{\"state\":\"TRUE\",\"timestamp\":1733795340000},{\"state\":\"TRUE\",\"timestamp\":1733795280000},{\"state\":\"TRUE\",\"timestamp\":1733795220000},{\"state\":\"TRUE\",\"timestamp\":1733795160000},{\"state\":\"TRUE\",\"timestamp\":1733795100000},{\"state\":\"TRUE\",\"timestamp\":1733795040000},{\"state\":\"TRUE\",\"timestamp\":1733794980000},{\"state\":\"TRUE\",\"timestamp\":1733794920000},{\"state\":\"TRUE\",\"timestamp\":1733794860000},{\"state\":\"TRUE\",\"timestamp\":1733794800000},{\"state\":\"TRUE\",\"timestamp\":1733794740000},{\"state\":\"TRUE\",\"timestamp\":1733794680000},{\"state\":\"TRUE\",\"timestamp\":1733794620000},{\"state\":\"TRUE\",\"timestamp\":1733794560000},{\"state\":\"TRUE\",\"timestamp\":1733794500000},{\"state\":\"TRUE\",\"timestamp\":1733794440000},{\"state\":\"TRUE\",\"timestamp\":1733794380000},{\"state\":\"TRUE\",\"timestamp\":1733794320000},{\"state\":\"TRUE\",\"timestamp\":1733794260000},{\"state\":\"TRUE\",\"timestamp\":1733794200000},{\"state\":\"TRUE\",\"timestamp\":1733794140000},{\"state\":\"TRUE\",\"timestamp\":1733794080000},{\"state\":\"TRUE\",\"timestamp\":1733794020000},{\"state\":\"TRUE\",\"timestamp\":1733793960000},{\"state\":\"TRUE\",\"timestamp\":1733793900000},{\"state\":\"TRUE\",\"timestamp\":1733793840000},{\"state\":\"TRUE\",\"timestamp\":1733793780000},{\"state\":\"TRUE\",\"timestamp\":1733793720000},{\"state\":\"TRUE\",\"timestamp\":1733793660000},{\"state\":\"TRUE\",\"timestamp\":1733793600000},{\"state\":\"TRUE\",\"timestamp\":1733793540000},{\"state\":\"TRUE\",\"timestamp\":1733793480000},{\"state\":\"TRUE\",\"timestamp\":1733793420000},{\"state\":\"TRUE\",\"timestamp\":1733793360000},{\"state\":\"TRUE\",\"timestamp\":1733793300000},{\"state\":\"TRUE\",\"timestamp\":1733793240000},{\"state\":\"TRUE\",\"timestamp\":1733793180000},{\"state\":\"TRUE\",\"timestamp\":1733793120000},{\"state\":\"TRUE\",\"timestamp\":1733793060000},{\"state\":\"TRUE\",\"timestamp\":1733793000000},{\"state\":\"TRUE\",\"timestamp\":1733792940000},{\"state\":\"TRUE\",\"timestamp\":1733792880000},{\"state\":\"TRUE\",\"timestamp\":1733792820000},{\"state\":\"TRUE\",\"timestamp\":1733792760000},{\"state\":\"TRUE\",\"timestamp\":1733792700000},{\"state\":\"TRUE\",\"timestamp\":1733792640000},{\"state\":\"TRUE\",\"timestamp\":1733792580000},{\"state\":\"TRUE\",\"timestamp\":1733792520000},{\"state\":\"TRUE\",\"timestamp\":1733792460000},{\"state\":\"FALSE\",\"timestamp\":1733792400000},{\"state\":\"FALSE\",\"timestamp\":1733792340000},{\"state\":\"FALSE\",\"timestamp\":1733792280000},{\"state\":\"FALSE\",\"timestamp\":1733792220000},{\"state\":\"FALSE\",\"timestamp\":1733792160000},{\"state\":\"FALSE\",\"timestamp\":1733792100000},{\"state\":\"FALSE\",\"timestamp\":1733792040000},{\"state\":\"FALSE\",\"timestamp\":1733791980000},{\"state\":\"FALSE\",\"timestamp\":1733791920000},{\"state\":\"FALSE\",\"timestamp\":1733791860000},{\"state\":\"FALSE\",\"timestamp\":1733791800000},{\"state\":\"FALSE\",\"timestamp\":1733791740000},{\"state\":\"FALSE\",\"timestamp\":1733791680000},{\"state\":\"FALSE\",\"timestamp\":1733791620000},{\"state\":\"FALSE\",\"timestamp\":1733791560000},{\"state\":\"FALSE\",\"timestamp\":1733791500000},{\"state\":\"FALSE\",\"timestamp\":1733791440000},{\"state\":\"FALSE\",\"timestamp\":1733791380000},{\"state\":\"FALSE\",\"timestamp\":1733791320000},{\"state\":\"FALSE\",\"timestamp\":1733791260000},{\"state\":\"FALSE\",\"timestamp\":1733791200000},{\"state\":\"FALSE\",\"timestamp\":1733791140000},{\"state\":\"FALSE\",\"timestamp\":1733791080000},{\"state\":\"FALSE\",\"timestamp\":1733791020000},{\"state\":\"FALSE\",\"timestamp\":1733790960000},{\"state\":\"FALSE\",\"timestamp\":1733790900000},{\"state\":\"FALSE\",\"timestamp\":1733790840000},{\"state\":\"FALSE\",\"timestamp\":1733790780000},{\"state\":\"FALSE\",\"timestamp\":1733790720000},{\"state\":\"FALSE\",\"timestamp\":1733790660000}]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":4660,"y":3240,"wires":[["baad0d9737c3e760"]]},{"id":"baad0d9737c3e760","type":"debug","z":"7f8982c35e9b9f8c","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":4830,"y":3240,"wires":[]}]
Sequence:
- I First get the data from a mysql database in the format timestamp,status. the data frequency is one datapoint / minute and state is either 'on' or 'off'.
- the data is used to chart the statetrail. statetrail automatically 'merges' the similar states.
- when i click on any 'segment' of the chart, it returns me the starttime and endtime of the segment and also the duration
- this in turn triggers a dropdown and upon selecting any option, another database is updated with the selected option along with the starttime and endtime retrieved from the click even on the chart.
In the link provided, i was able to generate a statetrail chart (hard coded in the js file) but thats it. i couldnt go any further.