I am trying to figure out how use numeric state

Hi folks.can anyone show me a example, how to create numeric template for temp sensor above and below temperature notifycation?