Log(smarthome, name, mapping, maxlen=50)
Just adds a log entry to the left side of the queue. If the queue already holds maxlen entries, the rightmost will be discarded automatically.
Assuming dt to be a datetime: remove all entries that are smaller or equal to this given datetime from the right side of the queue
Returns up to
numberentries from the log and prepares them together with the mapping