there is a small type: "state_class: **mesurement"** should be replaced by "measurement" I think it cause malfunctioning