State Timeline schema

I had the same problem, and solved it applying the following transformations:

  1. Grouping to matrix → Column=device_id, Row=time, Cell Value=status
  2. Convert field type → Field=Time\device_id as Time

Then just use the plot to plot the results.