Howto configure normal switch so that its seen as climate entity

How do i configure a switch so that it would be seen for example cool button climate entity in home assistant ?

Use

or

2 Likes