wip: create calculated sensors from templates.